Skip to content
IB Diploma ProgrammeSL & HL

Odd, even and inverse functions

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Odd, even and inverse functions notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Odd, even and inverse functions notes as text: skim, search, and jump between subtopics.

~10 min read

1. Even functions

A function f is even if f(-x)=f(x) for every x in its domain. Replacing x by -x leaves the value unchanged.

Because f(-x)=f(x), the graph of an even function is unchanged by a reflection in the y-axis. The functions x², x⁴ and cos x are even.

To show that a function is even, replace x with -x in the rule, simplify, and show that the result is f(x). Do this for a general x, not for one chosen value.

f(-x)=f(x) for all x in the domain

Worked example 13 marks

Consider the family of functions fn defined by fn(x) = sum_r=0ⁿ(-2x²)^(r), where x ∈ R and n ∈ N.

(a) Show that fn is an even function for all values of n.

  1. 1

    attempt to replace x with -x (M1) [1]

  2. 2

    fn(-x)=sum_r=0ⁿ(-2(-x)²)^(r), or -2(-x)²=-2x² seen anywhere (A1) [1]

  3. 3

    fn(-x)=fn(x) (A1) [1]

  4. 4

    so fn is even for all values of n (AG)

2. Odd functions, and functions that are neither

A function f is odd if f(-x)=-f(x) for every x in its domain. Replacing x by -x changes the sign of the value.

The graph of an odd function is unchanged by a half-turn about the origin. The functions x, x³ and sin x are odd.

Many functions are neither even nor odd. To show this, find one value of x where f(-x) is equal to neither f(x) nor -f(x). Periodic functions can be even or odd too: cos x is even and sin x is odd.

To classify a function, replace x with -x, simplify, and compare the result with f(x) and with -f(x).

even: f(-x)=f(x)

odd: f(-x)=-f(x)

Worked example 15 marks

(a) Determine whether f(x)=x³-4x is even, odd or neither.

(b) Determine whether g(x)=x²+2x is even, odd or neither.

  1. 1

    (a) attempt to replace x with -x: f(-x)=(-x)³-4(-x) (M1) [1]

  2. 2

    f(-x)=-x³+4x (A1) [1]

  3. 3

    -x³+4x=-(x³-4x)=-f(x), so f is odd (R1) [1]

  4. 4

    (b) g(-x)=x²-2x (A1) [1]

  5. 5

    g(1)=3 but g(-1)=-1, which is neither g(1) nor -g(1), so g is neither (R1) [1]

3. Finding the inverse function

The inverse function f⁻¹ undoes f: if f(a)=b then f⁻¹(b)=a. So f⁻¹(f(x))=x and f(f⁻¹(x))=x.

To find it, write y=f(x), swap x and y, then rearrange to make y the subject. The result is f⁻¹(x). Write the answer in function notation: a bare equation in y does not name f⁻¹.

The domain of f⁻¹ is the range of f, and the range of f⁻¹ is the domain of f. The graphs of f and f⁻¹ are reflections of each other in the line y=x.

Take care with f⁻¹(x): it means the inverse function, not 1/(f(x)).

f⁻¹(f(x))=x

domain of f⁻¹=range of f

Worked example 14 marks

The function f is defined by f(x)=(2x+1)/(x-3), for x≠ 3.

Find an expression for f⁻¹(x), and state its domain.

  1. 1

    write y=(2x+1)/(x-3) and swap x and y: x=(2y+1)/(y-3) (M1) [1]

  2. 2

    xy-3x=2y+1, so y(x-2)=3x+1 (M1) [1]

  3. 3

    f⁻¹(x)=(3x+1)/(x-2) (A1) [1]

  4. 4

    f(x)=2+7/(x-3) never equals 2, so the domain of f⁻¹ is x∈R, x≠ 2 (A1) [1]

4. Domain restriction and one-to-one functions

A function has an inverse only if it is one-to-one: each output comes from exactly one input. To justify this, show that the function is strictly increasing or strictly decreasing, or that it has no turning points.

An even function such as x² gives the same output for x and -x, so it is many-to-one. Its inverse does not exist on the whole domain. Restrict the domain to part of it where the function is one-to-one, for example x≥ 0.

Rearranging a restricted function can give a ± sign. Choose the sign that matches the domain of f, because the range of f⁻¹ is the domain of f.

The domain of f⁻¹ is the range of the restricted function. Find it from the restricted function, not from the rule alone.

range of f⁻¹=domain of f

Worked example 16 marks

The function g is defined as g(x) = 1/(1+2x²) for 0 ≤ x < (√2)/2.

(i) Justify that g⁻¹ exists.

(ii) Find g⁻¹(x), giving its domain.

  1. 1

    g is a one-to-one function (A1) [1]

  2. 2

    since g is strictly decreasing, or has no points of zero gradient (turning points) (R1) [1]

  3. 3

    attempt to rearrange and swap x and y (at any stage): x=1/(1+2y²)⇒ x+2xy²=1 (M1) [1]

  4. 4

    y²=(1-x)/2x, so y=±√((1-x)/2x) (A1) [1]

  5. 5

    y≥0 on the domain of g: g⁻¹(x)=√((1-x)/2x) (A1). Award A0 if g⁻¹(x) is missing. [1]

  6. 6

    domain 1/2 < x ≤ 1 (A1), which can be awarded independently [1]

5. Self-inverse functions

A function is self-inverse if f⁻¹(x)=f(x) for every x in its domain. Applying f twice returns the starting value: f(f(x))=x.

To show that a function is self-inverse, substitute f(x) into f and simplify to x. Or find f⁻¹(x) by swapping x and y, and show that it equals f(x).

Because the domain of f⁻¹ is the range of f, the domain and range of a self-inverse function must be equal. The graph of a self-inverse function is unchanged by a reflection in the line y=x.

Show the algebra for a general x. Checking one value, such as f(f(2))=2, does not show that a function is self-inverse.

f⁻¹(x)=f(x)

f(f(x))=x

Worked example 13 marks

The function f is defined by f(x)=(x+3)/(x-1), for x≠ 1.

Show that f is self-inverse.

  1. 1

    attempt to substitute f(x) into f: f(f(x))=((x+3)/(x-1)+3)/((x+3)/(x-1)-1) (M1) [1]

  2. 2

    multiply top and bottom by x-1: (x+3+3(x-1))/(x+3-(x-1))=4x/4 (A1) [1]

  3. 3

    f(f(x))=x, so f⁻¹(x)=f(x) and f is self-inverse (A1) [1]

Recap

  • Even: f(-x)=f(x), so the graph is symmetric in the y-axis. Odd: f(-x)=-f(x), so the graph has half-turn symmetry about the origin.
  • To test parity, replace x with -x and compare with f(x) and -f(x). If neither matches, the function is neither.
  • To find f⁻¹, swap x and y, rearrange, and write the result as f⁻¹(x).
  • The domain of f⁻¹ is the range of f. The range of f⁻¹ is the domain of f.
  • An inverse needs a one-to-one function. Justify it with strictly increasing, strictly decreasing, or no turning points.
  • A many-to-one function needs its domain restricted. Pick the sign of the root from the restricted domain.
  • Self-inverse: f⁻¹(x)=f(x), equivalently f(f(x))=x, with the domain equal to the range.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State whether cos x is an even function or an odd function.1 mark
    Answer
    1. cos x is even, since cos(-x)=cos x (A1).

    Trap: sin(-x)=-sin x makes sine the odd function. Replace x with -x rather than guess.

  2. Do not use a calculator. Determine whether f(x)=x³+x² is even, odd or neither.2 marks
    Answer
    1. f(-x)=-x³+x² (M1).
    2. this is neither f(x) nor -f(x), so f is neither (A1).

    Trap: An x³ term does not make the whole function odd. Test the whole rule: one odd term and one even term give neither.

  3. Do not use a calculator. The function f is defined by f(x)=x³/(x²+1). Show that f is an odd function.3 marks
    Answer
    1. f(-x)=((-x)³)/((-x)²+1) (M1).
    2. =(-x³)/(x²+1) (A1).
    3. =-x³/(x²+1)=-f(x) (A1).
    4. so f is odd (AG).

    Trap: (-x)²=x², not -x². Keep the bracket round -x when replacing.

  4. Do not use a calculator. The function f is defined by f(x)=3x-7, for x∈R. Find f⁻¹(x).2 marks
    Answer
    1. x=3y-7, so y=(x+7)/3 (M1).
    2. f⁻¹(x)=(x+7)/3 (A1).

    Trap: f⁻¹(x) is the inverse function, not 1/(3x-7). Swap x and y, then rearrange.

  5. Do not use a calculator. The function f is defined by f(x)=(x+1)/(x-2), for x≠ 2. Find f⁻¹(x) and state its domain.4 marks
    Answer
    1. swap x and y: x=(y+1)/(y-2) (M1).
    2. xy-2x=y+1, so y(x-1)=2x+1 (M1).
    3. f⁻¹(x)=(2x+1)/(x-1) (A1).
    4. f(x)=1+3/(x-2) never equals 1, so the domain of f⁻¹ is x∈R, x≠1 (A1).

    Trap: The domain of f⁻¹ is the range of f. Copying x≠2 from f gives the wrong excluded value.

  6. Do not use a calculator. The function f is defined by f(x)=x²-6x+11, for x≥ k. (a) Find the smallest value of k for which f has an inverse. (b) For this value of k, find f⁻¹(x) and state its domain.6 marks
    Answer
    1. (a)
    2. f(x)=(x-3)²+2, with turning point at x=3 (M1).
    3. f is one-to-one for x≥3, so k=3 (A1).
    4. (b)
    5. swap x and y: (y-3)²=x-2 (M1).
    6. y=3±√(x-2), and the range of f⁻¹ is y≥3, so take the + root (R1).
    7. f⁻¹(x)=3+√(x-2) (A1).
    8. domain x≥2, the range of f (A1).

    Trap: The domain of f⁻¹ is the range of f, which is x≥2, not x≥3. The root sign comes from the domain of f.

  7. Do not use a calculator. The function f is defined by f(x)=(2x+1)/(x-2), for x≠2. (a) Show that f is self-inverse. (b) State the range of f.4 marks
    Answer
    1. (a)
    2. f(f(x))=(2f(x)+1)/(f(x)-2) with f(x)=(2x+1)/(x-2) substituted (M1).
    3. numerator ×(x-2): 2(2x+1)+(x-2)=5x (A1).
    4. denominator ×(x-2): (2x+1)-2(x-2)=5, so f(f(x))=5x/5=x (A1).
    5. (b)
    6. f is self-inverse, so its range equals its domain: y∈R, y≠2 (A1).

    Trap: One check such as f(f(3))=3 does not show the result for every x. Substitute f(x) into f algebraically.

  8. Do not use a calculator. The function f is defined by f(x)=x⁴+(k-2)x³-5x²+4, for x∈R. Given that f is an even function, find the value of k.4 marks
    Answer
    1. f(-x)=x⁴-(k-2)x³-5x²+4 (M1).
    2. even means f(-x)=f(x) (M1).
    3. -(k-2)x³=(k-2)x³ for all x, so k-2=0 (A1).
    4. k=2 (A1).

    Trap: Using f(-x)=-f(x) is the test for an odd function. For an even function set f(-x)=f(x).

  9. Do not use a calculator. The function f is defined by f(x)=(kx+4)/(x-2), for x≠2, where k is a constant. Given that f is self-inverse, (a) find the value of k, (b) state the range of f.6 marks
    Answer
    1. (a)
    2. swap x and y: x=(ky+4)/(y-2) (M1).
    3. xy-2x=ky+4, so y(x-k)=2x+4 (A1).
    4. f⁻¹(x)=(2x+4)/(x-k) (A1).
    5. self-inverse means f⁻¹(x)=f(x): (2x+4)/(x-k)=(kx+4)/(x-2), so (2x+4)(x-2)=(kx+4)(x-k), giving 2x²-8=kx²+(4-k²)x-4k (M1).
    6. comparing x² terms, k=2, which also fits 4-k²=0 and -4k=-8 (A1).
    7. (b)
    8. f(x)=(2x+4)/(x-2)=2+8/(x-2), so the range is y≠2 (A1).

    Trap: Collecting terms in y gives y(x-k)=2x+4. A sign slip here, such as y(x+k), changes the value of k.

  10. The function f is defined by f(x)=e^(x)-e^(-x), for x∈R. (a) Show that f is an odd function. (b) By considering f'(x), explain why f⁻¹ exists. (c) Find an expression for f⁻¹(x), and state its domain.10 marks
    Answer
    1. (a)
    2. f(-x)=e^(-x)-e^(x) (M1).
    3. =-(e^(x)-e^(-x))=-f(x) (A1), so f is odd (AG).
    4. (b)
    5. f'(x)=e^(x)+e^(-x)>0 for all x (A1).
    6. so f is strictly increasing, hence one-to-one, and f⁻¹ exists (R1).
    7. (c)
    8. swap x and y: x=e^(y)-e^(-y), so (e^(y))²-x e^(y)-1=0 (M1)(A1).
    9. quadratic formula in e^(y): e^(y)=(x±√(x²+4))/2 (M1).
    10. √(x²+4)>|x|, so x-√(x²+4)<0; e^(y)>0, so take the + sign (R1).
    11. f⁻¹(x)=ln((x+√(x²+4))/2) (A1).
    12. f(x)→±∞ as x→±∞, so the range of f, and the domain of f⁻¹, is x∈R (A1). Check: f(ln2)=2-1/2=3/2 and f⁻¹(3/2)=ln4/2=ln2.

    Trap: The quadratic in e^(y) has two roots, but x-√(x²+4) is negative and e^(y) never is: keeping ± leaves a relation, not f⁻¹(x).

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
g⁻¹ exists because g is one-to-one (no reason given, so R1 is lost)g is one-to-one, since it is strictly decreasing or has no turning points
y=√((1-x)/2x) (A0: g⁻¹(x) missing)g⁻¹(x)=√((1-x)/2x), written in function notation
The domain of g⁻¹ is 0≤ x<(√2)/2, the same as gThe domain of g⁻¹ is 1/2<x≤1, the range of g
f(-2)=f(2), so f is evenf(-x)=f(x) shown for a general x, so f is even

Frequently asked questions

How do I tell whether a function is even, odd or neither?
Replace x with -x and simplify. If f(-x) = f(x) for every x, the function is even. If f(-x) = -f(x), it is odd. If the result matches neither, the function is neither. For x³ - 4x the result -x³ + 4x = -f(x) shows it is odd, and for x² + 2x one value of x shows it is neither.
How do I find the inverse of a function?
Write y = f(x), swap x and y, then rearrange to make y the subject. Write the result in function notation as f⁻¹(x). Take care: f⁻¹(x) means the inverse function, not 1/(f(x)). For f(x) = 3x - 7 the inverse is f⁻¹(x) = (x + 7)/3.
Why does a function need a restricted domain before it has an inverse?
A function has an inverse only if it is one-to-one. An even function such as x² gives the same output for x and -x, so it is many-to-one. Restrict the domain, for example to x ≥ 0, so that the function is one-to-one. Then choose the sign of the root that matches the domain of f.
What is the domain of an inverse function?
The domain of f⁻¹ is the range of f, and the range of f⁻¹ is the domain of f. Find it from the restricted function, not from the rule alone. For f(x) = (2x + 1)/(x - 3), f(x) = 2 + 7/(x - 3) never equals 2, so the domain of f⁻¹ is x ≠ 2.
How do I show that a function is self-inverse?
Substitute f(x) into f and simplify to x for a general x, so that f(f(x)) = x. This shows f⁻¹(x) = f(x). For f(x) = (x + 3)/(x - 1) the numerator is 4x and the denominator is 4, so f(f(x)) = x.
Why is checking one value not enough to show a function is even?
Checking one pair such as f(-2) = f(2) does not show that a function is even. Replace x with -x in the rule for a general x, simplify, and show that the result is f(x). For a function such as x⁴ + (k-2)x³ - 5x² + 4, the x³ term must vanish for every x.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters