2.14 · AHL · HL onlyPaper 1Paper 2Paper 3

Odd, even and inverse functions

In a minute

An has a graph that mirrors in the yy-axis, and an has a graph that looks the same after a half-turn about the origin. You test for both by simplifying f(−x)f(-x). You'll also cut a domain down so that an inverse exists, and recognise functions, which undo themselves.

You'll be able to

  • Decide whether a function is even, odd or neither by simplifying f(−x)f(-x), and use the symmetry of its graph.
  • Recognise odd and even trigonometric and other , and combine symmetry with the period to find values.
  • Restrict a domain so that an inverse exists, then find f−1(x)f^{-1}(x) and its domain, choosing the sign of any square root.
  • Evaluate f−1(a)f^{-1}(a) on a restricted domain by solving f(x)=af(x) = a, with a calculator where needed.
  • Recognise a function from its graph, or show that (f∘f)(x)=x(f \circ f)(x) = x.
Before you start2 quick questions on what this builds on
Check yourself
The point (3,−4)(3, -4) lies on the graph of y=f(x)y = f(x). Which point must lie on the graph of y=f(−x)y = f(-x)?
Check yourself
Let f(x)=x−2+1f(x) = \sqrt{x - 2} + 1, for x≥2x \ge 2. What is the domain of f−1f^{-1}?

Revise first: 2.5 Composite and inverse functions and 2.11 Transformations of graphs

Even and odd functions

Take f(x)=x2f(x) = x^{2}. Then f(3)=9f(3) = 9 and f(−3)=9f(-3) = 9. An input and its negative give the same output, so the graph mirrors in the yy-axis.

Now take g(x)=x3g(x) = x^{3}. Then g(2)=8g(2) = 8 and g(−2)=−8g(-2) = -8. The outputs are negatives, so a half-turn (180∘180^{\circ}) about the origin lands the graph on itself.

Learn this
even: f(−x)=f(x)odd: f(−x)=−f(x)\text{even: } f(-x) = f(x) \qquad \text{odd: } f(-x) = -f(x)

Learn these: they aren't in the formula booklet. Both need a domain where −x-x is in it whenever xx is.

Left: an even function, symmetric in the y-axis, with its points at x equals a and x equals negative a at the same height. Right: an odd function, with its points at x equals a and x equals negative a joined by a line through the origin, one above and one below the x-axis. y x y x −a a −a a even: mirror in the y-axis odd: half-turn about the origin
An even graph is symmetric in the yy-axis. An odd graph has half-turn symmetry about the origin.

In 2.11 you saw that y=f(−x)y = f(-x) reflects y=f(x)y = f(x) in the yy-axis. So ff is when that reflection changes nothing. A half-turn is a reflection in the yy-axis followed by one in the xx-axis.

1. To test by algebra, write f(−x)f(-x): replace every xx with (−x)(-x), brackets included.

2. Simplify. Use (−x)n=xn(-x)^{n} = x^{n} when nn is even and (−x)n=−xn(-x)^{n} = -x^{n} when nn is odd.

3. Compare. If you get f(x)f(x), ff is even. If you get −f(x)-f(x), ff is .

If you get neither, show it with one number aa: f(−a)≠f(a)f(-a) \ne f(a) and f(−a)≠−f(a)f(-a) \ne -f(a). Then ff is neither even nor odd.

A polynomial is even when every power of xx is even, and odd when every power is odd. A constant is x0x^{0}, an even power.

Worked exampleDetermine whether each function is even, odd or neither. f(x)=2x6−7x2f(x) = 2x^{6} - 7x^{2}, g(x)=4x−x3g(x) = 4x - x^{3} and h(x)=x2+xh(x) = x^{2} + x, each for x∈Rx \in \mathbb{R}.

Try it first, then reveal one step at a time.

  1. f(−x)=2(−x)6−7(−x)2=2x6−7x2f(-x) = 2(-x)^{6} - 7(-x)^{2} = 2x^{6} - 7x^{2}. This is f(x)f(x), so ff is even.
Check yourself
Each function has domain x∈Rx \in \mathbb{R}. Which one is odd?

Symmetry gives you points for free. If ff is odd and (a,b)(a, b) is on its graph, so is (−a,−b)(-a, -b). And if ff is odd and defined at 00, then f(0)=−f(0)f(0) = -f(0), so f(0)=0f(0) = 0.

Worked exampleThe function ff is odd, with domain −5≤x≤5-5 \le x \le 5. For 0≤x≤50 \le x \le 5, its only turning point is a local maximum at (2,5)(2, 5), and its graph meets the xx-axis only at x=0x = 0 and x=4x = 4. (a) Write down the coordinates of the local minimum for −5≤x≤0-5 \le x \le 0. (b) Solve f(x)=0f(x) = 0 for −5≤x≤5-5 \le x \le 5.

Try it first, then reveal one step at a time.

  1. (a) Odd sends each point (a,b)(a, b) to (−a,−b)(-a, -b). So the local maximum (2,5)(2, 5) becomes a local minimum at (−2,−5)(-2, -5): a peak turned upside down is a trough.
Check yourself
The function gg is even. Its graph has a local minimum at (−3,−1)(-3, -1). Which point must also be a local minimum?

Odd and even periodic functions

The graphs of sin⁡x\sin x, cos⁡x\cos x and tan⁡x\tan x (3.7) repeat forever. They are .

Being periodic doesn't decide the symmetry. sin⁡x\sin x and cos⁡x\cos x share the period 2π2\pi, but one is and one is . sin⁡x+1\sin x + 1 is neither.

Worked exampleLet f(x)=sin⁡x2+cos⁡xf(x) = \frac{\sin x}{2 + \cos x}, for x∈Rx \in \mathbb{R}. (a) Show that ff is odd. (b) Given that f(π3)=35f\left(\frac{\pi}{3}\right) = \frac{\sqrt{3}}{5}, write down f(−π3)f\left(-\frac{\pi}{3}\right).

Try it first, then reveal one step at a time.

  1. (a) Replace xx with −x-x: f(−x)=sin⁡(−x)2+cos⁡(−x)f(-x) = \frac{\sin(-x)}{2 + \cos(-x)}.
Check yourself
Each function has domain x∈Rx \in \mathbb{R}. Which one is even?

The period lets you slide an input by pp. Then the symmetry turns a negative input into a positive one.

Worked exampleThe function ff is odd and periodic with period 88, and f(3)=2f(3) = 2. Find f(5)f(5).

Try it first, then reveal one step at a time.

  1. Use the period to slide the input: f(5)=f(5−8)=f(−3)f(5) = f(5 - 8) = f(-3).
Check yourself
The function gg is even and periodic with period 1010, and g(3)=−7g(3) = -7. Find g(7)g(7).

Restricting the domain to find an inverse

In 2.5 you saw that only a function has an . f(x)=x2f(x) = x^{2}, for x∈Rx \in \mathbb{R}, fails: 33 and −3-3 both give 99.

Throw away the left half. On the x≥0x \ge 0, each output comes from one input, so there is an inverse: x\sqrt{x}.

The parabola y equals x squared. Its right half, for x at least 0, is drawn solid and its left half is faint and dashed. The curve y equals root x is its reflection in the dashed line y equals x. y x y = x solid: y = x², x ≥ 0 y = √x dashed: left half removed
Keeping only x≥0x \ge 0 makes y=x2y = x^{2} one-to-one. Its inverse, y=xy = \sqrt{x}, is the reflection in y=xy = x.

An is never one-to-one on R\mathbb{R}, because f(−a)=f(a)f(-a) = f(a). It always needs a restricted domain before it has an inverse.

1. Find where the graph turns: complete the square for a quadratic, or solve f′(x)=0f'(x) = 0.

2. Keep one side of the turning point. The question usually says which, for example x≤kx \le k.

3. Make xx the subject of y=f(x)y = f(x). If a square root gives two signs, the domain decides which to keep. Say why.

4. Swap xx and yy. The domain of f−1f^{-1} is the of the restricted ff.

Worked exampleLet f(x)=x2−8x+3f(x) = x^{2} - 8x + 3, for x≤kx \le k. (a) Find the largest value of kk for which ff has an inverse. (b) For this value of kk, find f−1(x)f^{-1}(x) and state its domain.

Try it first, then reveal one step at a time.

  1. (a) Complete the square: x2−8x+3=(x−4)2−16+3=(x−4)2−13x^{2} - 8x + 3 = (x - 4)^{2} - 16 + 3 = (x - 4)^{2} - 13. The vertex is (4,−13)(4, -13).
Check yourself
Let f(x)=(x+3)2−2f(x) = (x + 3)^{2} - 2, for x≤−3x \le -3. Find f−1(x)f^{-1}(x).
Worked exampleLet f(x)=ln⁡(x2+4)f(x) = \ln(x^{2} + 4), for x∈Rx \in \mathbb{R}. (a) Show that ff is even, and explain why ff has no inverse. (b) The function gg is defined by g(x)=ln⁡(x2+4)g(x) = \ln(x^{2} + 4), for x≥0x \ge 0. Find g−1(x)g^{-1}(x) and state its domain.

Try it first, then reveal one step at a time.

  1. (a) f(−x)=ln⁡((−x)2+4)=ln⁡(x2+4)=f(x)f(-x) = \ln\big((-x)^{2} + 4\big) = \ln(x^{2} + 4) = f(x), so ff is even. Then f(−1)=f(1)=ln⁡5f(-1) = f(1) = \ln 5: two inputs share an output, so ff is not one-to-one and has no inverse.
Check yourself
Let f(x)=2x2+10x−1f(x) = 2x^{2} + 10x - 1, for x≥kx \ge k. Find the smallest value of kk for which ff has an inverse.

f−1(a)f^{-1}(a) is the input xx with f(x)=af(x) = a. On Paper 2, solve f(x)=af(x) = a with your GDC and keep the solution in the domain.

Worked exampleLet f(x)=x3−4x+1f(x) = x^{3} - 4x + 1, for x≥ax \ge a, where aa is the smallest value for which ff has an inverse. (a) Find the exact value of aa. (b) Use your calculator to find f−1(5)f^{-1}(5). Give your answer to 3 s.f.

Try it first, then reveal one step at a time.

  1. (a) f′(x)=3x2−4=0f'(x) = 3x^{2} - 4 = 0 gives x=±23x = \pm\frac{2}{\sqrt{3}}. At x=23x = \frac{2}{\sqrt{3}}, f′′(x)=6x>0f''(x) = 6x > 0, so this is a local minimum, and ff only increases after it. So a=23=1.1547…a = \frac{2}{\sqrt{3}} = 1.1547\ldots

Self-inverse functions

In 2.8 you saw that f(x)=1xf(x) = \frac{1}{x} undoes itself: f(f(x))=11/x=xf\big(f(x)\big) = \frac{1}{1/x} = x. A function that is its own inverse is called .

Two self-inverse graphs, each with the dashed line y equals x. Left: the line y equals 6 minus x from (0, 6) to (6, 0). Right: the quarter circle y equals the square root of 25 minus x squared from (0, 5) to (5, 0). Each graph is its own reflection in y equals x. y x y x 6 6 5 5 y = x y = x y = 6 − x y = √(25 − x²)
y=6−xy = 6 - x, drawn for 0≤x≤60 \le x \le 6, and y=25−x2y = \sqrt{25 - x^{2}}, for 0≤x≤50 \le x \le 5, are both symmetric in y=xy = x, so both are self-inverse.

1. To test by algebra, show that (f∘f)(x)=x(f \circ f)(x) = x for every xx in the domain.

2. Or find f−1(x)f^{-1}(x) the usual way, and show that it is the same formula with the same domain.

Worked exampleLet f(x)=6−xf(x) = 6 - x, for x∈Rx \in \mathbb{R}. Show that ff is self-inverse.

Try it first, then reveal one step at a time.

  1. Feed f(x)f(x) into ff: (f∘f)(x)=f(6−x)=6−(6−x)(f \circ f)(x) = f(6 - x) = 6 - (6 - x).

Every line y=c−xy = c - x is self-inverse, and so is y=xy = x.

Check yourself
Each function has domain x∈Rx \in \mathbb{R}. Which one is self-inverse?

The domain matters. Take f(x)=25−x2f(x) = \sqrt{25 - x^{2}}, for 0≤x≤50 \le x \le 5. Then (f∘f)(x)=25−(25−x2)=x2(f \circ f)(x) = \sqrt{25 - (25 - x^{2})} = \sqrt{x^{2}}. This is xx only because x≥0x \ge 0 here.

Check yourself
Let f(x)=25−x2f(x) = \sqrt{25 - x^{2}}, for 0≤x≤50 \le x \le 5. This function is self-inverse. Find f−1(3)f^{-1}(3).
Worked exampleLet f(x)=ln⁡(ex+1ex−1)f(x) = \ln\left(\frac{\mathrm{e}^{x} + 1}{\mathrm{e}^{x} - 1}\right), for x>0x > 0. Find f−1(x)f^{-1}(x) and its domain, and hence show that ff is self-inverse.

Try it first, then reveal one step at a time.

  1. Write y=ln⁡(ex+1ex−1)y = \ln\left(\frac{\mathrm{e}^{x} + 1}{\mathrm{e}^{x} - 1}\right), so ey=ex+1ex−1\mathrm{e}^{y} = \frac{\mathrm{e}^{x} + 1}{\mathrm{e}^{x} - 1}.

Common mistakes

  • Concluding ff is even from one value, such as f(−1)=f(1)f(-1) = f(1). Simplify f(−x)f(-x) for a general xx.
  • Drawing the missing half of an odd graph by mirroring in the yy-axis. Rotate it 180∘180^{\circ} about the origin instead.
  • Keeping ±\pm in an inverse, or picking a sign with no reason. The restricted domain fixes the sign: say how.
  • Writing x2=x\sqrt{x^{2}} = x without checking the domain. It equals ∣x∣\lvert x\rvert, so it is xx only for x≥0x \ge 0.
  • Finding f−1(a)f^{-1}(a) as 1f(a)\frac{1}{f(a)}. Solve f(x)=af(x) = a, and keep only a solution in the domain of ff.

Exam tips

  • “Show that ff is odd”: write f(−x)f(-x), simplify step by step, and end with f(−x)=−f(x)f(-x) = -f(x). The conclusion is given (AG), so the marks are for the working.
  • For f−1(x)f^{-1}(x) on a restricted domain, give a reason for your choice of root and state the domain of f−1f^{-1}: the range of ff.
  • On Paper 2, write down the equation f(x)=af(x) = a before you solve it on your GDC for f−1(a)f^{-1}(a).

Key takeaways

Learn thiseven: f(−x)=f(x)odd: f(−x)=−f(x)\text{even: } f(-x) = f(x) \qquad \text{odd: } f(-x) = -f(x)
Learn thisEven: symmetric in the yy-axis. Odd: half-turn symmetry about the origin, and f(0)=0f(0) = 0 if 00 is in the domain.
Learn thiscos⁡x\cos x is even; sin⁡x\sin x and tan⁡x\tan x are odd. Periodic means f(x+p)=f(x)f(x + p) = f(x). Odd ×\times odd and even ×\times even are even; odd ×\times even is odd.
Learn thisNo inverse? Restrict the domain to one side of the turning point. Choose the sign of the root from that domain. The domain of f−1f^{-1} is the range of ff.
Learn thisf−1(a)f^{-1}(a) is the solution of f(x)=af(x) = a in the domain of ff, not 1f(a)\frac{1}{f(a)}.
Learn thisSelf-inverse: f−1(x)=f(x)f^{-1}(x) = f(x), or (f∘f)(x)=x(f \circ f)(x) = x. The graph is symmetric in y=xy = x.

Practise this

8 past-paper questions on 2.14 in the AA HL bank, each with a mark scheme and a worked explanation.

Practise 2.14 →