Educerie

This whole subtopic is higher level. Nothing in it is on an SL paper.

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 2.14 · HL only

Odd and even functions, inverse functions with restricted domains, and self-inverse functions

What does the symmetry of a graph say about its formula, how do you make a function reversible when it is not, and when is a function its own inverse?

What you will learn

  • HL Know the tests for odd and even functions and the symmetry each gives the graph
  • HL Know which trigonometric functions are odd and which are even
  • HL Understand why a domain must sometimes be restricted before an inverse exists, and how it fixes the inverse
  • HL Understand that a self-inverse function satisfies f(f(x)) = x and has a graph symmetric in y = x

You must be able to

  1. HL Show that a function is odd or even, or give a counterexample to show it is neither
  2. HL Find the largest domain on which a function has an inverse, justifying the choice
  3. HL Find an inverse function with its domain and range
  4. HL Show that a function is self-inverse by working out f(f(x))
  5. HL Sketch a function and its inverse on the same axes, with intercepts and asymptotes swapped
  6. HL Find an unknown constant given that a function is odd, even or self-inverse

In the exam. Paper 1 (17 of the 22 past questions on it) and sometimes Paper 2 (the other 5), in short parts of about 2 or 3 marks. "Show that" is the commonest command; "find", "state" and "sketch" (alone, or as "find, hence or otherwise, sketch") come next. Parity is also used quietly in calculus (5.x) and trigonometry (3.x).

1Even and odd: the definitions and the picture

Even: f(−x)=f(x)f(-x) = f(x) for every xx in the domain. Odd: f(−x)=−f(x)f(-x) = -f(x) for every xx in the domain.

Both statements are about every xx, so the domain must be symmetric about 00: whenever xx belongs to it, −x-x must too.

Example: x\sqrt{x}, with domain x≥0x \ge 0, is neither, because −x-x is not available.

The pictures

  • From 2.11, y=f(−x)y = f(-x) is y=f(x)y = f(x) reflected in the yy-axis. When the two coincide, f(−x)=f(x)f(-x) = f(x): an even function is symmetric in the yy-axis.
  • A half turn about the origin sends (x,y)(x, y) to (−x,−y)(-x, -y). That is a reflection in the yy-axis then one in the xx-axis. It turns y=f(x)y = f(x) into y=−f(−x)y = -f(-x).
    • When that coincides with the original, f(−x)=−f(x)f(-x) = -f(x): an odd function has half-turn (order 2 rotational) symmetry about the origin.

Figure 1 shows one of each.

Figure 1 · An even function and an odd function (a) even: y = x⁴ − 5x² + 4 x y −2 −1 1 2 4 (b) odd: y = x³ − 4x x y −2 −1 1 2 −3 3 (−1.5, −2.19) (1.5, −2.19) (1, −3) (−1, 3) (a) f(−x) = f(x): a mirror image in the y-axis. (b) f(−x) = −f(x): a half turn about the origin.
Figure 1 · An even function and an odd function

In Figure 1(a), y=x4−5x2+4y = x^{4} - 5x^{2} + 4 is −2.19-2.19 at both x=1.5x = 1.5 and x=−1.5x = -1.5.

In Figure 1(b), y=x3−4xy = x^{3} - 4x is −3-3 at x=1x = 1 and +3+3 at x=−1x = -1.

Why the words "even" and "odd"

  • The power xnx^{n} is even when nn is even, because (−x)4=x4(-x)^{4} = x^{4}. It is odd when nn is odd, because (−x)3=−x3(-x)^{3} = -x^{3}.
  • A polynomial with only even powers (a constant counts, being x0x^{0}) is therefore even. One with only odd powers is odd.
    • Example: x4−5x2+4x^{4} - 5x^{2} + 4 is even and x3−4xx^{3} - 4x is odd. x3+x2x^{3} + x^{2} mixes the two and is neither.

Three facts worth keeping.

  • An odd function defined at 00 passes through the origin, since f(0)=−f(0)f(0) = -f(0) forces f(0)=0f(0) = 0.
  • The only function that is both even and odd is f(x)=0f(x) = 0.
  • Beyond the 2.14 guide, but useful in calculus (5.x): the derivative of a differentiable even function is odd. The derivative of an odd one is even.

2Using the symmetry without a formula

  • If ff is even and (a,b)(a, b) is on the graph, so is (−a,b)(-a, b).
  • If ff is odd and (a,b)(a, b) is on the graph, so is (−a,−b)(-a, -b).

Worked example 1 · from points (Paper 1). The function ff is even and gg is odd. The graph of ff passes through (2,5)(2, 5) and (−3,−1)(-3, -1); that of gg through (1,4)(1, 4) and (−3,2)(-3, 2).

(a) Write down two more points on y=f(x)y = f(x). The mirror in the yy-axis keeps heights and flips the xx-coordinate: (−2,5)(-2, 5) and (3,−1)(3, -1).

(b) Write down two more points on y=g(x)y = g(x). The half turn flips both coordinates: (−1,−4)(-1, -4) and (3,−2)(3, -2).

3Testing a function with algebra

The method never changes. Replace every xx by a bracket (−x)(-x) and simplify. Then compare with f(x)f(x) and with −f(x)-f(x).

Worked example 2 · four functions (Paper 1).

(a) f(x)=x4sin⁡xf(x) = x^{4}\sin x. f(−x)=(−x)4sin⁡(−x)=x4(−sin⁡x)=−f(x)f(-x) = (-x)^{4}\sin(-x) = x^{4}\bigl(-\sin x\bigr) = -f(x), using sin⁡(−θ)=−sin⁡θ\sin(-\theta) = -\sin\theta. Odd.

(b) g(x)=2x−12x+1g(x) = \dfrac{2^{x} - 1}{2^{x} + 1}. Clear the negative power:

g(−x)=2−x−12−x+1=2x(2−x−1)2x(2−x+1)multiply top and bottom by 2x, which is not zero=1−2x1+2x=−g(x)\begin{aligned}g(-x) &= \frac{2^{-x} - 1}{2^{-x} + 1} \\[6pt] &= \frac{2^{x}\left(2^{-x} - 1\right)}{2^{x}\left(2^{-x} + 1\right)} && \textcolor{#838c91}{\text{multiply top and bottom by }2^{x}\text{, which is not zero}} \\[6pt] &= \frac{1 - 2^{x}}{1 + 2^{x}} = -g(x)\end{aligned}

Odd.

(c) h(x)=x2+3xh(x) = x^{2} + 3x. h(−x)=x2−3xh(-x) = x^{2} - 3x, which equals neither h(x)h(x) nor −h(x)-h(x). For "neither", one counterexample with numbers is a proof: h(1)=4h(1) = 4 and h(−1)=−2h(-1) = -2, and −2-2 is neither 44 nor −4-4. Neither.

(d) k(x)=x29−x2k(x) = x^{2}\sqrt{9 - x^{2}}, for −3≤x≤3-3 \le x \le 3. The domain is symmetric. k(−x)=(−x)29−(−x)2=x29−x2=k(x)k(-x) = (-x)^{2}\sqrt{9 - (-x)^{2}} = x^{2}\sqrt{9 - x^{2}} = k(x). Even.

A "show that" needs the written algebra: f(−x)f(-x) expanded, simplified, then compared. A calculator graph suggests the answer but proves nothing. A sketch of the symmetry can answer "describe the symmetry", not "show that".

Finding an unknown constant

  • When the parity is given and a constant is missing, set f(−x)=f(x)f(-x) = f(x) (or =−f(x)= -f(x)) and compare terms.
  • For a polynomial, even means every odd-power coefficient is zero. Odd means every even-power coefficient is zero, the constant term included.

Examples:

  • f(x)=(3x−4)(x+a)=3x2+(3a−4)x−4af(x) = (3x - 4)(x + a) = 3x^{2} + (3a - 4)x - 4a is even, so the xx coefficient vanishes: 3a−4=03a - 4 = 0, so a=43a = \tfrac{4}{3}.
  • g(x)=x3+(a2−9)x2−7xg(x) = x^{3} + (a^{2} - 9)x^{2} - 7x is odd, so a2−9=0a^{2} - 9 = 0 and a=±3a = \pm 3. Both signs count.

4Periodic functions

On the unit circle (3.x), the point at angle −θ-\theta is the reflection of the point at angle θ\theta in the horizontal axis. Same horizontal position, opposite height. So

cos⁡(−x)=cos⁡x\cos(-x) = \cos x (even) sin⁡(−x)=−sin⁡x\qquad \sin(-x) = -\sin x (odd) tan⁡(−x)=−tan⁡x\qquad \tan(-x) = -\tan x (odd)

and the reciprocals follow: sec⁡x\sec x is even, and cosec⁡x\operatorname{cosec} x and cot⁡x\cot x are odd.

Figure 2 shows the three graphs. Cosine mirrors in the yy-axis. Sine and tangent return to themselves after a half turn.

Figure 2 · Cosine is even; sine and tangent are odd (a) y = cos x: even x y −2π −π π 2π (b) y = sin x: odd x y −2π −π π 2π (c) y = tan x: odd x y −2π −π π 2π cos(−x) = cos x, sin(−x) = −sin x, tan(−x) = −tan x. Each graph is drawn for −2π ≤ x ≤ 2π.
Figure 2 · Cosine is even; sine and tangent are odd

Shifted versions. Sliding a graph sideways usually destroys its symmetry. Not always. For sin⁡(x+c)\sin(x + c):

  • Odd when cc is a multiple of π\pi, since the curve becomes ±sin⁡x\pm\sin x again.
  • Even when cc is an odd multiple of π2\tfrac{\pi}{2}, since the curve becomes ±cos⁡x\pm\cos x. For example sin⁡(x+3π2)=−cos⁡x\sin\left(x + \tfrac{3\pi}{2}\right) = -\cos x.
  • Neither for any other cc.

A sum of a sine and a cosine is neither. For example, sin⁡2x+cos⁡x\sin 2x + \cos x equals 3\sqrt{3} at x=π6x = \tfrac{\pi}{6} and 00 at x=−π6x = -\tfrac{\pi}{6}.

5Sums, products and composites

These rules come straight from the definitions and are often asked as proofs in their own right.

CombinationResultWhy
even + evenevenf(−x)+g(−x)=f(x)+g(x)f(-x) + g(-x) = f(x) + g(x)
odd + oddodd−f(x)−g(x)=−(f(x)+g(x))-f(x) - g(x) = -\bigl(f(x) + g(x)\bigr)
even ×\times evenevenproduct unchanged
odd ×\times oddeven(−f(x))(−g(x))=f(x)g(x)\bigl(-f(x)\bigr)\bigl(-g(x)\bigr) = f(x)g(x)
odd ×\times evenodd(−f(x))g(x)=−f(x)g(x)\bigl(-f(x)\bigr)g(x) = -f(x)g(x)
f∘gf \circ g, gg evenevenf(g(−x))=f(g(x))f(g(-x)) = f(g(x))
f∘gf \circ g, ff even, gg oddevenf(g(−x))=f(−g(x))=f(g(x))f(g(-x)) = f(-g(x)) = f(g(x))
f∘gf \circ g, both oddoddf(g(−x))=f(−g(x))=−f(g(x))f(g(-x)) = f(-g(x)) = -f(g(x))

Products behave like signs, (−)×(−)=(+)(-) \times (-) = (+).

  • xsin⁡xx\sin x is even.
  • x2sin⁡xx^{2}\sin x is odd.
  • tan⁡xcos⁡x\tan x \cos x is odd, since it is sin⁡x\sin x.
  • cos⁡(x3)\cos(x^{3}) is even.

Even plus odd is usually neither: x2+xx^{2} + x.

Inverses and parity

  • If an odd function is one-to-one, its inverse is also odd. Indeed f(a)=bf(a) = b gives f(−a)=−bf(-a) = -b, so f−1(−b)=−a=−f−1(b)f^{-1}(-b) = -a = -f^{-1}(b).
  • An even function has no inverse on a domain symmetric about 00, since f(−x)=f(x)f(-x) = f(x) puts two inputs on one output. Restrict it first.

An integral consequence

  • Beyond the 2.14 guide; you meet it in 5.x.
  • For an odd function continuous on −a≤x≤a-a \le x \le a, the areas either side of the origin cancel, so ∫−aaf(x) dx=0\displaystyle\int_{-a}^{a} f(x)\,dx = 0.

6When there is no inverse yet: restricting the domain

  • From 2.5, a function has an inverse only if it is one-to-one: each output comes from exactly one input. So no horizontal line crosses the graph twice.
  • The cure is to restrict the domain to a one-to-one piece, usually by cutting at a turning point.
    • Locate it by completing the square for a quadratic, or by solving f′(x)=0f'(x) = 0 for anything else (5.x).
  • When asked to justify, say that ff is monotonic (always increasing or always decreasing) on your piece. Or say that the horizontal line test fails once you pass the turning point.

Worked example 3 · a quadratic, cut on the left (Paper 1). Let f(x)=x2−6x+5f(x) = x^{2} - 6x + 5, x≤kx \le k. Find the largest value of kk for which f−1f^{-1} exists.

Complete the square: f(x)=(x−3)2−4f(x) = (x - 3)^{2} - 4, vertex at x=3x = 3. Left of the vertex ff is decreasing, so it is one-to-one on x≤3x \le 3.

Any larger kk lets in points from both sides with equal outputs, such as f(2)=f(4)=−3f(2) = f(4) = -3. So k=3k = 3 (Figure 3, in the next section).

Worked example 4 · a cubic, with calculus (Paper 1). Let f(x)=x3−3x2−9xf(x) = x^{3} - 3x^{2} - 9x, x≤kx \le k. Find the largest kk for which f−1f^{-1} exists.

f′(x)=3x2−6x−9=3(x−3)(x+1)f'(x) = 3x^{2} - 6x - 9 = 3(x - 3)(x + 1). So f′>0f' > 0 for x<−1x < -1, f′<0f' < 0 for −1<x<3-1 < x < 3 and f′>0f' > 0 for x>3x > 3.

From the far left, ff rises to a maximum at x=−1x = -1 and then turns. So ff is increasing, hence one-to-one, on x≤−1x \le -1: k=−1k = -1.

Worked example 5 · an interval that does not start at a turning point. Find the largest aa for which f(x)=2cos⁡(2x+π6)f(x) = 2\cos\left(2x + \tfrac{\pi}{6}\right), 0≤x≤a0 \le x \le a, has an inverse.

The start is fixed at 00, so look forward. f′(x)=−4sin⁡(2x+π6)f'(x) = -4\sin\left(2x + \tfrac{\pi}{6}\right) is negative at x=0x = 0 (the value is −2-2).

It first reaches zero when 2x+π6=π2x + \tfrac{\pi}{6} = \pi, that is x=5π12x = \tfrac{5\pi}{12}. Up to there ff decreases, so a=5π12a = \tfrac{5\pi}{12}.

The famous cases.

  • sin⁡x\sin x is not one-to-one on R\mathbb{R} but is on −π2≤x≤π2-\tfrac{\pi}{2} \le x \le \tfrac{\pi}{2}. That defines arcsin⁡\arcsin.
  • cos⁡x\cos x is restricted to 0≤x≤π0 \le x \le \pi for arccos⁡\arccos.
  • tan⁡x\tan x is restricted to −π2<x<π2-\tfrac{\pi}{2} < x < \tfrac{\pi}{2} for arctan⁡\arctan (AHL 3.9).

7Finding the inverse, with its domain and range

The steps are the same every time. Students skip the last two.

  1. Find the range of ff on its (possibly restricted) domain. It is the domain of f−1f^{-1}.
  2. Write y=f(x)y = f(x), swap xx and yy, and make yy the subject.
  3. If a square root appears, let the domain of ff choose the sign: that domain is the range of f−1f^{-1}.
  4. State f−1(x)f^{-1}(x) with its domain, and its range if asked.

Worked example 3 continued · the inverse (Paper 1). For f(x)=x2−6x+5f(x) = x^{2} - 6x + 5, x≤3x \le 3, find f−1(x)f^{-1}(x) and state its domain.

x=(y−3)2−4x = (y-3)^{2} - 4(y−3)2=x+4(y-3)^{2} = x + 4y−3=−x+4y is the old x, and the old x was ≤3, so y−3≤0: take the negative rooty - 3 = -\sqrt{x+4} \qquad \textcolor{#838c91}{y\text{ is the old }x\text{, and the old }x\text{ was }\le 3\text{, so }y - 3 \le 0\text{: take the negative root}}f−1(x)=3−x+4f^{-1}(x) = 3 - \sqrt{x+4}

The vertex is the lowest point, so the range of ff is f(x)≥−4f(x) \ge -4. The domain of f−1f^{-1} is x≥−4x \ge -4, and its range is f−1(x)≤3f^{-1}(x) \le 3.

Figure 3 shows the kept half, the dashed discarded half, and the inverse as the reflection of the kept half in y=xy = x. The vertex (3,−4)(3, -4) reflects to the end point (−4,3)(-4, 3).

Had the right half been kept, the inverse would be 3+x+43 + \sqrt{x+4}: the domain decides the sign.

Figure 3 · Restricting y = x² − 6x + 5 to x ≤ 3, and its inverse x y −4 3 −4 3 y = x (3, −4) (−4, 3) f, x ≤ 3 f⁻¹, x ≥ −4 discarded half Keep the left half of the parabola. Its inverse, y = 3 − √(x + 4), is its reflection in y = x.
Figure 3 · Restricting y = x² − 6x + 5 to x ≤ 3, and its inverse

Worked example 6 · an exponential (Paper 1). f(x)=e2x−3f(x) = e^{2x} - 3, x∈Rx \in \mathbb{R}. It is increasing, so no restriction is needed. The range matters.

x=e2y−3x = e^{2y} - 3e2y=x+3e^{2y} = x + 32y=ln⁡(x+3)2y = \ln(x+3)f−1(x)=12ln⁡(x+3),x>−3f^{-1}(x) = \frac{1}{2}\ln(x+3),\quad x > -3

Since e2x>0e^{2x} > 0, the range of ff is f(x)>−3f(x) > -3. That is the domain of f−1f^{-1}, and it keeps the logarithm defined.

In Figure 4 the horizontal asymptote y=−3y = -3 of ff reflects into the vertical asymptote x=−3x = -3 of f−1f^{-1}. The intercept (0,−2)(0, -2) reflects into (−2,0)(-2, 0).

Figure 4 · y = e²ˣ − 3 and its inverse y = ½ ln(x + 3) x y −3 2 −3 −2 2 y = x y = −3 x = −3 (0, −2) (−2, 0) f f⁻¹ The horizontal asymptote y = −3 of f reflects to the vertical asymptote x = −3 of f⁻¹.
Figure 4 · y = e²ˣ − 3 and its inverse y = ½ ln(x + 3)

Sketching ff and f−1f^{-1} on one set of axes. Draw y=xy = x first. Then reflect each labelled feature of ff:

  • an end point (a,b)(a, b) becomes (b,a)(b, a)
  • an xx-intercept becomes a yy-intercept
  • a horizontal asymptote y=cy = c becomes the vertical asymptote x=cx = c

If ff is increasing, the two graphs can meet only on y=xy = x. So the equation f(x)=xf(x) = x tells you whether they cross at all.

Worked example 7 · an exponential quadratic (Paper 1). Let f(x)=e2x−6ex+5f(x) = e^{2x} - 6e^{x} + 5, x≥kx \ge k.

(a) Find the least value of kk for which f−1f^{-1} exists, justifying your answer.

(b) For this kk, find f−1(x)f^{-1}(x), stating its domain.

(a) f′(x)=2e2x−6ex=2ex(ex−3)f'(x) = 2e^{2x} - 6e^{x} = 2e^{x}(e^{x} - 3), zero at x=ln⁡3x = \ln 3. For x>ln⁡3x > \ln 3, ex>3e^{x} > 3 so f′(x)>0f'(x) > 0: ff is increasing, hence one-to-one.

Left of ln⁡3\ln 3 it decreases, so outputs repeat. k=ln⁡3k = \ln 3.

(b) Complete the square in exe^{x}: f(x)=(ex−3)2−4f(x) = (e^{x} - 3)^{2} - 4. The lowest value is f(ln⁡3)=−4f(\ln 3) = -4 and ff grows without bound. So the range is f(x)≥−4f(x) \ge -4.

x=(ey−3)2−4x = (e^{y} - 3)^{2} - 4ey−3=+x+4y≥ln⁡3, so ey≥3 and ey−3≥0: the positive roote^{y} - 3 = +\sqrt{x+4} \qquad \textcolor{#838c91}{y \ge \ln 3\text{, so }e^{y} \ge 3\text{ and }e^{y} - 3 \ge 0\text{: the positive root}}f−1(x)=ln⁡(3+x+4),x≥−4f^{-1}(x) = \ln\left(3 + \sqrt{x+4}\right),\quad x \ge -4

Worked example 8 · a rational function (Paper 1). Find the inverse of f(x)=3x+1x−2f(x) = \dfrac{3x+1}{x-2}, x≠2x \ne 2, and state its domain.

x=3y+1y−2x = \frac{3y+1}{y-2}xy−2x=3y+1xy - 2x = 3y + 1y(x−3)=2x+1collect the terms in y on one side, then factorisey(x - 3) = 2x + 1 \qquad \textcolor{#838c91}{\text{collect the terms in }y\text{ on one side, then factorise}}f−1(x)=2x+1x−3,x≠3f^{-1}(x) = \frac{2x+1}{x-3},\quad x \ne 3

The horizontal asymptote y=3y = 3 of ff means 33 is never an output. So the domain of f−1f^{-1} excludes it.

Since f−1≠ff^{-1} \ne f, this ff is not self-inverse (section 8).

Worked example 9 · a harder inverse and an odd function (Paper 1). Let f(x)=ex−e−xex+e−xf(x) = \dfrac{e^{x} - e^{-x}}{e^{x} + e^{-x}}, x∈Rx \in \mathbb{R}. Show that ff is odd, and find f−1(x)f^{-1}(x) with its domain.

f(−x)=e−x−exe−x+ex=−f(x)f(-x) = \dfrac{e^{-x} - e^{x}}{e^{-x} + e^{x}} = -f(x), so ff is odd.

Multiplying top and bottom by exe^{x} gives f(x)=1−2e2x+1f(x) = 1 - \dfrac{2}{e^{2x} + 1}, which increases from −1-1 towards 11. So ff is one-to-one with range −1<f(x)<1-1 < f(x) < 1.

For the inverse, clear the fractions and isolate e2ye^{2y}:

x=ey−e−yey+e−yx = \frac{e^{y} - e^{-y}}{e^{y} + e^{-y}}x(ey+e−y)=ey−e−yx\left(e^{y} + e^{-y}\right) = e^{y} - e^{-y}x e2y+x=e2y−1multiply by eyx\,e^{2y} + x = e^{2y} - 1 \qquad \textcolor{#838c91}{\text{multiply by }e^{y}}e2y(1−x)=1+xe^{2y}(1 - x) = 1 + xy=12ln⁡1+x1−x,−1<x<1y = \frac{1}{2}\ln\frac{1+x}{1-x},\quad -1 < x < 1

The result is itself odd, as section 5 predicts. Its domain −1<x<1-1 < x < 1 is the range of ff.

When eye^{y} and e−ye^{-y} do not combine so neatly, multiply through by eye^{y} and solve a quadratic in eye^{y}.

Example: g(x)=ex−3e−xg(x) = e^{x} - 3e^{-x} (increasing, range R\mathbb{R}):

x=ey−3e−yx = e^{y} - 3e^{-y}(ey)2−x ey−3=0multiply by ey: a quadratic in ey\left(e^{y}\right)^{2} - x\,e^{y} - 3 = 0 \qquad \textcolor{#838c91}{\text{multiply by }e^{y}\text{: a quadratic in }e^{y}}ey=x+x2+122the other root, x−x2+122, is negative and ey>0: reject ite^{y} = \frac{x + \sqrt{x^{2}+12}}{2} \qquad \textcolor{#838c91}{\text{the other root, }\tfrac{x - \sqrt{x^{2}+12}}{2}\text{, is negative and }e^{y} > 0\text{: reject it}}g−1(x)=ln⁡x+x2+122,x∈Rg^{-1}(x) = \ln\frac{x + \sqrt{x^{2}+12}}{2},\quad x \in \mathbb{R}

8Self-inverse functions

A function is self-inverse if f−1=ff^{-1} = f. Applying it twice returns you to where you began.

ff is self-inverse if and only if (f∘f)(x)=x(f \circ f)(x) = x for every xx in its domain.

  • On the graph, f−1f^{-1} is the reflection of ff in y=xy = x. So a self-inverse graph is symmetric in the line y=xy = x.
    • Its domain and range are the same set. If (a,b)(a, b) is on the graph, so is (b,a)(b, a).

Figure 5(b) shows simple ones:

  • y=5−xy = 5 - x (any line of gradient −1-1)
  • y=4xy = \dfrac{4}{x} (any kx\dfrac{k}{x}, including the reciprocal of 2.8)
  • the quarter circle y=4−x2y = \sqrt{4 - x^{2}}, 0≤x≤20 \le x \le 2

Trivially, f(x)=xf(x) = x too.

Figure 5 · Self-inverse: the graph is its own mirror image in y = x (a) y = (2x + 3)/(x − 2) x y −4 6 −4 6 (b) y = 5 − x, y = 4/x, y = √(4 − x²) x y 2 4 2 4 x = 2 y = 2 y = x 5 − x 4/x √(4 − x²) y = x (a) y = (2x + 3)/(x − 2): asymptotes x = 2 and y = 2 swap into each other. (b) Three more.
Figure 5 · Self-inverse: the graph is its own mirror image in y = x

Worked example 10 · proving it (Paper 1). Show that f(x)=2x+3x−2f(x) = \dfrac{2x+3}{x-2}, x≠2x \ne 2, is self-inverse.

f(f(x))=2(2x+3)x−2+32x+3x−2−2=4x+6+3x−6x−22x+3−2x+4x−2common denominators=7x7=x\begin{aligned}f(f(x)) &= \frac{\dfrac{2(2x+3)}{x-2} + 3}{\dfrac{2x+3}{x-2} - 2} \\[6pt] &= \frac{\dfrac{4x + 6 + 3x - 6}{x-2}}{\dfrac{2x + 3 - 2x + 4}{x-2}} && \textcolor{#838c91}{\text{common denominators}} \\[6pt] &= \frac{7x}{7} \\[6pt] &= x\end{aligned}

So f∘ff \circ f is the identity and f−1=ff^{-1} = f.

In Figure 5(a), the vertical asymptote x=2x = 2 and the horizontal asymptote y=2y = 2 are mirror images in y=xy = x. So are the two marked intercepts, (−1.5,0)(-1.5, 0) and (0,−1.5)(0, -1.5).

The rule for ax+bcx+d\dfrac{ax+b}{cx+d}, c≠0c \ne 0

  • Its asymptotes are x=−dcx = -\dfrac{d}{c} and y=acy = \dfrac{a}{c}. For the graph to be symmetric in y=xy = x these must swap, so −dc=ac-\dfrac{d}{c} = \dfrac{a}{c}, that is d=−ad = -a.
  • Every ax+bcx−a\dfrac{ax+b}{cx-a} that is not constant is self-inverse.

Worked example 11 · finding the parameter (Paper 1). The function f(x)=7x−12x+kf(x) = \dfrac{7x - 1}{2x + k} is self-inverse. Find kk, and state the domain of ff.

Here a=7a = 7 and d=kd = k, so k=−7k = -7. The asymptotes x=−k2x = -\tfrac{k}{2} and y=72y = \tfrac{7}{2} then swap.

The domain is x≠72x \ne \tfrac{7}{2}, where 2x−7=02x - 7 = 0.

Watch the domain. For f(x)=4−x2f(x) = \sqrt{4 - x^{2}} on 0≤x≤20 \le x \le 2, f(f(x))=x2=∣x∣f(f(x)) = \sqrt{x^{2}} = \lvert x\rvert. That equals xx only because x≥0x \ge 0.

On −2≤x≤2-2 \le x \le 2 the same formula is not even one-to-one.

Practice questions

6 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.