This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
Topic 2 Functions · 2.14 Odd and even functions, inverse functions with restricted domains, and self-inverse functions
What you must be able to do
| You must be able to | Level | What it looks like in the exam |
|---|---|---|
| Test a function for being even, f(−x) = f(x), or odd, f(−x) = −f(x) | HL | "Show that f is odd" (2 to 3 marks); "determine whether…" with a reason (2 marks each) |
| Link even and odd to the symmetry of the graph | HL | "Hence describe the symmetry of the graph" (1 mark) |
| Classify the periodic functions: cos even, sin and tan odd | HL | Used inside longer questions; sometimes a direct classification |
| Use the rules for sums, products and composites of odd and even functions | HL | Short proofs, 3 to 4 marks |
| Restrict a domain so that an inverse exists, and find f⁻¹ with its domain and range | HL | "Find the largest domain of the form x ≤ k…"; "find f⁻¹(x) and state its domain" (4 to 6 marks) |
| Recognise and prove that a function is self-inverse | HL | "Show that (f ∘ f)(x) = x. Hence write down f⁻¹(x)" (3 to 5 marks) |
Before you start
You need inverse functions from 2.2 and 2.5: swap x and y, make y the subject, the domain of f⁻¹ is the range of f, and the graph of f⁻¹ is the reflection of f in y = x. You need the graphs of sin, cos and tan (3.x), exponentials and logarithms (2.9), and the reflections y = −f(x) and y = f(−x) from 2.11, because odd and even are about exactly those two.
1The idea in one paragraph
A function is even if putting in −x gives the same output as x: its graph is unchanged by reflection in the y-axis. A function is odd if putting in −x gives the negative of the output: its graph is unchanged by a half turn about the origin. Most functions are neither, and that is fine. The second idea is the inverse: a function can be reversed only if it is one-to-one, so a function that is not must have its domain restricted until it is, and the choice of domain decides which inverse you get. The third idea joins the two: a function that is its own inverse, f⁻¹ = f, has a graph that is unchanged by reflection in the line y = x.
2Even and odd functions
Even: f(−x) = f(x) for every x in the domain. Odd: f(−x) = −f(x) for every x in the domain.
Both definitions need the domain to be symmetric about 0: if x is in it, −x must be too.
What they look like. Reflecting a graph in the y-axis gives y = f(−x) (2.11). If that is the same graph, f(−x) = f(x): so an even function is symmetric in the y-axis. A half turn about the origin sends (x, y) to (−x, −y), which is a reflection in the y-axis followed by one in the x-axis, giving y = −f(−x). If that is the same graph, f(−x) = −f(x): so an odd function has rotational symmetry of order 2 about the origin. Figure 1 shows one of each.
In Figure 1(a), y = x⁴ − 5x² + 4 takes the same value −2.19 at x = 1.5 and at x = −1.5. In Figure 1(b), y = x³ − 4x takes the value −3 at x = 1 and +3 at x = −1.
Where the names come from. A power xⁿ is even when n is even, since (−x)⁴ = x⁴, and odd when n is odd, since (−x)³ = −x³. So a polynomial with only even powers (a constant counts, as x⁰) is even, and one with only odd powers is odd. x⁴ − 5x² + 4 is even; x³ − 4x is odd; x³ + x² is neither.
Two facts worth having. An odd function that is defined at 0 must pass through the origin, since f(0) = −f(0) forces f(0) = 0. And the only function that is both odd and even is f(x) = 0.
3How to test a function
Work out f(−x), simplify it, and compare it with f(x) and with −f(x).
Worked example 1 · four functions (Paper 1).
(a) f(x) = x² cos 3x. f(−x) = (−x)² cos(−3x) = x² cos 3x = f(x), using cos(−θ) = cos θ. Even.
(b) g(x) = x/(x² + 1). g(−x) = −x/(x² + 1) = −g(x). Odd.
(c) h(x) = x³ + x². h(−x) = −x³ + x², which is neither h(x) nor −h(x). To prove "neither", one number is enough: h(1) = 2 and h(−1) = 0, so h(−1) ≠ h(1) and h(−1) ≠ −h(1). Neither.
(d) k(x) = ln((1 + x)/(1 − x)), for −1 < x < 1. k(−x) = ln((1 − x)/(1 + x)) = −ln((1 + x)/(1 − x)) = −k(x), using ln(1/A) = −ln A. Odd.
For a "show that", the marks are for writing f(−x) out and simplifying it into the required form, then the conclusion. A graph from the GDC suggests the answer but does not prove it. For "neither", a single counterexample with numbers is the proof.
4Periodic functions
The guide includes periodic functions. From the unit circle (3.x), the point at angle −θ is the reflection of the point at angle θ in the horizontal axis, so it has the same cosine and the opposite sine:
cos(−x) = cos x (even) sin(−x) = −sin x (odd) tan(−x) = −tan x (odd)
Figure 2 shows the three graphs. The cosine curve is a mirror image in the y-axis; the sine and tangent curves are unchanged by a half turn about the origin. The reciprocal functions follow: sec x is even, cosec x and cot x are odd.
A sum of periodic functions need not be either: sin x + cos x is neither, since at x = π/4 it is √2 and at x = −π/4 it is 0.
5Sums, products and composites
These rules come straight from the definitions and save a lot of algebra. They can also be asked as proofs.
| Combination | Result | Why |
|---|---|---|
| even + even | even | f(−x) + g(−x) = f(x) + g(x) |
| odd + odd | odd | −f(x) − g(x) = −(f(x) + g(x)) |
| even × even | even | f(x)g(x) unchanged |
| odd × odd | even | (−f(x))(−g(x)) = f(x)g(x) |
| odd × even | odd | (−f(x))g(x) = −f(x)g(x) |
| f ∘ g with g even | even | f(g(−x)) = f(g(x)) |
| f ∘ g with f and g odd | odd | f(g(−x)) = f(−g(x)) = −f(g(x)) |
Products behave like the signs of the powers: x · x = x², so odd × odd is even, just as (−) × (−) = (+). So x sin x is even, x² sin x is odd, sin x tan x is even, and sin(x³) is odd. An even function plus an odd one is usually neither: x² + x.
One use you will meet in calculus (5.x): for an odd function the areas either side of the origin cancel, so the integral from −a to a of an odd function is 0.
6Inverses when the domain must be restricted
From 2.5: a function has an inverse only if it is one-to-one, every output coming from exactly one input. A graph that fails the horizontal line test has no inverse on its full domain. The fix is to restrict the domain to a piece on which it is one-to-one, usually cutting at a turning point.
Worked example 2 · a quadratic (Paper 1). Let f(x) = x² − 6x + 5, x ≤ k.
(a) Find the largest value of k for which f⁻¹ exists. Complete the square: f(x) = (x − 3)² − 4. The vertex is at x = 3, and f is decreasing to its left, so f is one-to-one on x ≤ 3. Any k > 3 would include points on both sides of the vertex with equal outputs, such as f(2) = f(4) = −3. So k = 3.
(b) Find f⁻¹(x), stating its domain.
The range of f on x ≤ 3 is f(x) ≥ −4, since the vertex is the lowest point. So the domain of f⁻¹ is x ≥ −4, and its range is f⁻¹(x) ≤ 3.
Figure 3 shows the kept half of the parabola, the discarded half dashed, and the inverse as the reflection of the kept half in y = x. The vertex (3, −4) reflects to the end point (−4, 3). Had the right half, x ≥ 3, been chosen, the inverse would be 3 + √(x + 4): the sign of the root is decided by the domain you kept, and that sign is the mark most often lost.
Worked example 3 · an exponential. f(x) = e²ˣ − 3, x ∈ ℝ. It is increasing, so no restriction is needed, but the range matters.
The range of f is f(x) > −3, because e²ˣ > 0; so the domain of f⁻¹ is x > −3. Figure 4 shows the pair. The horizontal asymptote y = −3 of f reflects in y = x into the vertical asymptote x = −3 of f⁻¹, and the intercept (0, −2) of f reflects into (−2, 0).
Worked example 4 · a harder inverse (Paper 1 or Paper 3). Let f(x) = (eˣ − e⁻ˣ)/2, x ∈ ℝ. Show that f is odd, and find f⁻¹(x).
f(−x) = (e⁻ˣ − eˣ)/2 = −f(x), so f is odd. f is increasing (eˣ increases and e⁻ˣ decreases), so it is one-to-one on ℝ, and its range is ℝ. For the inverse, the trick is to see a quadratic in eʸ:
As a check, f⁻¹ should be odd too, since the reflection of a graph with half-turn symmetry about the origin in y = x keeps that symmetry.
Trigonometric functions are the most famous restricted domains. sin x is not one-to-one on ℝ, but it is on −π/2 ≤ x ≤ π/2, and that restriction defines arcsin; cos x is restricted to 0 ≤ x ≤ π for arccos, and tan x to −π/2 < x < π/2 for arctan. These are the inverse trigonometric functions you use in 3.x and in 2.16.
7Self-inverse functions
A function is self-inverse if f⁻¹ = f. Applying it twice gets you back where you started:
f is self-inverse if and only if (f ∘ f)(x) = x for every x in its domain.
On the graph, f⁻¹ is the reflection of f in y = x. If that reflection is f itself, the graph is symmetric in the line y = x. Its domain and range are the same set.
The simple examples in Figure 5(b): y = 5 − x (any line of gradient −1), y = 4/x (any k/x, which is why 1/x in 2.8 is its own inverse), and y = √(4 − x²) for 0 ≤ x ≤ 2, a quarter circle. And f(x) = x, trivially.
Worked example 5 · proving it (Paper 1). Show that f(x) = (2x + 3)/(x − 2), x ≠ 2, is self-inverse.
So f ∘ f is the identity and f⁻¹ = f. Figure 5(a) shows the graph: the vertical asymptote x = 2 and the horizontal asymptote y = 2 are reflections of each other in y = x, as they must be, and so are the intercepts (−1.5, 0) and (0, −1.5).
The general rule for (ax + b)/(cx + d). Its asymptotes are x = −d/c and y = a/c. For the graph to be symmetric in y = x they must swap, so −d/c = a/c, that is d = −a. Any function (ax + b)/(cx − a) is self-inverse, provided it is not a constant. So (3x + 5)/(x + k) is self-inverse exactly when k = −3.
Watch the domain. For f(x) = √(4 − x²) on 0 ≤ x ≤ 2, f(f(x)) = √(4 − (4 − x²)) = √(x²) = |x|, and |x| = x only because x ≥ 0 there. On −2 ≤ x ≤ 2 the same formula is not self-inverse; it is not even one-to-one.
8Where marks are lost
Testing with one number and calling it proof of odd or even. f(2) = f(−2) does not make f even. You must show f(−x) = f(x) for all x, in algebra. A single number proves only "neither".
Thinking "not even" means "odd". Most functions are neither. x³ + x² is not even and not odd.
Writing (−x)³ as x³. Brackets matter: (−x)³ = −x³ and (−x)² = x², while −x² means −(x²).
Choosing the wrong sign of the square root. In an inverse, the sign comes from the domain of f, which becomes the range of f⁻¹. On x ≤ 3, the inverse is 3 − √(x + 4), not 3 + √(x + 4).
Forgetting the domain of the inverse. It is the range of f, and it is usually worth a mark on its own.
Restricting to the wrong side. "Largest k with x ≤ k" means cut at the turning point, with the kept piece to its left.
Claiming self-inverse from the graph alone. A "show that" needs f(f(x)) = x with the algebra written out.
Losing a sign when simplifying f(f(x)). Put the inner fraction in brackets and multiply every term by the common denominator.
9Work it right
- For parity, write f(−x) in full with brackets, simplify, and compare with f(x) and −f(x). For "neither", give one numerical counterexample.
- Use the combination rules for products and composites; odd × odd is even.
- Before finding an inverse, check f is one-to-one on its domain. If not, cut at the turning point.
- Find the range of f first; it is the domain of f⁻¹.
- Swap x and y, make y the subject, and choose any ± by the range of f⁻¹.
- For self-inverse, show f(f(x)) = x; for (ax + b)/(cx + d), the condition is d = −a.
- Check a graph: odd, even and self-inverse each have a symmetry you can see.
10Try it
Marks in brackets. Q1 to Q5 are Paper 1 style, no calculator. Q6 is Paper 2 style, with a GDC.
Q1. Determine whether each function is odd, even or neither. Justify each answer.
(a) f(x) = x⁵ − 2x³ 2 marks
(b) g(x) = x² + cos x 2 marks
(c) h(x) = x + 1 2 marks
(d) k(x) = x sin x 2 marks
Q2. Let f(x) = x² + 4x + 1, x ≥ k.
(a) Find the least value of k for which f has an inverse. 2 marks
(b) For this value of k, find f⁻¹(x) and state its domain. 4 marks
Q3. Let f(x) = (4x − 7)/(x + k), x ≠ −k.
(a) Find the value of k for which f is self-inverse. 2 marks
(b) For this value of k, show that (f ∘ f)(x) = x. 3 marks
Q4. Let f(x) = ln(x − 1) + 2, x > 1. Find f⁻¹(x), and state the domain and range of f⁻¹. 4 marks
Q5. The function f is odd and the function g is even, both with domain ℝ. Prove that
(a) f ∘ g is even; 2 marks
(b) the product f·g is odd. 2 marks
Q6. Let f(x) = x³ + x − 1, x ∈ ℝ.
(a) Explain why f has an inverse. 1 mark
(b) Find f⁻¹(5). 2 marks
(c) Solve f(x) = f⁻¹(x). 3 marks
11In one breath
Even means f(−x) = f(x), a mirror image in the y-axis; odd means f(−x) = −f(x), a half turn about the origin; most functions are neither, and one numerical counterexample proves it. Even powers and cos are even; odd powers, sin and tan are odd; an odd function defined at 0 passes through the origin. Sums keep the parity, odd × odd is even, odd × even is odd, and a composite with an even inside is even. A function has an inverse only if it is one-to-one, so restrict its domain at a turning point; the range of f becomes the domain of f⁻¹, and it decides the sign of any square root. Exponentials invert to logarithms, asymptotes swap across y = x, and an expression like eʸ − e⁻ʸ inverts through a quadratic in eʸ. A self-inverse function satisfies f(f(x)) = x, its graph is symmetric in y = x, and (ax + b)/(cx + d) is self-inverse exactly when d = −a.
Answers
Q1. (a) f(−x) = −x⁵ + 2x³ = −f(x): odd. M1 for f(−x) written out, A1 for the conclusion.
(b) g(−x) = x² + cos(−x) = x² + cos x = g(x): even. M1, A1. Quoting cos(−x) = cos x is enough.
(c) h(1) = 2 and h(−1) = 0. Since h(−1) ≠ h(1) and h(−1) ≠ −h(1): neither. M1 for a valid counterexample, A1. "It has no symmetry", with no numbers, scores A0.
(d) x and sin x are both odd, and odd × odd is even; or directly k(−x) = (−x)sin(−x) = (−x)(−sin x) = x sin x: even. M1, A1.
Q2. (a) f(x) = (x + 2)² − 3, with vertex at x = −2, so f is one-to-one on x ≥ −2: k = −2. M1 for completing the square or the vertex, A1.
(b) Swap: x = (y + 2)² − 3, so y + 2 = √(x + 3), taking the positive root because y ≥ −2. f⁻¹(x) = −2 + √(x + 3), with domain x ≥ −3, the range of f. M1 for swapping and rearranging, A1 for the positive root with a reason, A1 for f⁻¹(x), A1 for the domain.
Q3. (a) For (ax + b)/(cx + d) to be self-inverse, d = −a, so k = −4. Or: the asymptotes x = −k and y = 4 must be reflections in y = x, so −k = 4. M1 for a valid condition, A1.
(b) f(f(x)) = [4(4x − 7)/(x − 4) − 7] / [(4x − 7)/(x − 4) − 4] = [(16x − 28 − 7x + 28)/(x − 4)] / [(4x − 7 − 4x + 16)/(x − 4)] = 9x/9 = x. M1 for substituting f into itself, A1 for the numerator 9x and denominator 9 over a common denominator, A1 for the conclusion f(f(x)) = x.
Q4. Swap: x = ln(y − 1) + 2, so ln(y − 1) = x − 2, y − 1 = eˣ⁻², and f⁻¹(x) = eˣ⁻² + 1. The range of f is ℝ, so the domain of f⁻¹ is x ∈ ℝ; the range of f⁻¹ is the domain of f, f⁻¹(x) > 1. M1 for swapping and exponentiating, A1 for f⁻¹(x), A1 for the domain, A1 for the range.
Q5. (a) (f ∘ g)(−x) = f(g(−x)) = f(g(x)) = (f ∘ g)(x), since g is even. So f ∘ g is even. M1 for using g(−x) = g(x) inside f, A1 for the conclusion. Notice that f's parity was not needed.
(b) (f·g)(−x) = f(−x)g(−x) = (−f(x))(g(x)) = −(f·g)(x). So f·g is odd. M1 for using both definitions, A1 for the conclusion.
Q6. (a) f′(x) = 3x² + 1 > 0, or from the graph, f is strictly increasing, so it is one-to-one and has an inverse. R1. "It passes the horizontal line test" with reference to the graph is also accepted.
(b) f⁻¹(5) is the x with f(x) = 5, that is x³ + x − 6 = 0. Using the GDC, x = 1.63 (3 s.f.). M1 for setting f(x) = 5, A1.
(c) f is increasing, so the graphs of f and f⁻¹ meet only on y = x: solve f(x) = x, that is x³ − 1 = 0, so x = 1. R1 for reducing to f(x) = x with the reason, M1 for solving, A1. Intersecting f and f⁻¹ on the GDC gives the same answer and earns the A1, but not the R1.
Educerie · written from the published IB Diploma Programme Mathematics: analysis and approaches guide, first assessment 2021, section 2.14 Odd and even functions, inverse functions with restricted domains, and self-inverse functions. Original text, examples and questions. Diagrams drawn by Educerie. Last reviewed 25 September 2026.