One-one and inverse functions

AS · P1 · 12 min

An inverse function undoes a function: if ff turns 33 into 77, then f−1f^{-1} turns 77 back into 33. Only one-one functions have inverses, which is why so many Cambridge questions first ask you to restrict a domain, then find f−1(x)f^{-1}(x), then sketch ff and f−1f^{-1} on the same axes. Expect at least one inverse function part on every Paper 1, often the hardest part of the functions question.

Undoing a function

If f(x)=2x+3f(x) = 2x + 3, then ff means "double, then add 33". To undo it you reverse the steps in the opposite order: "subtract 33, then halve". So

f−1(x)=x−32f^{-1}(x) = \frac{x - 3}{2}

Check: f(5)=13f(5) = 13 and f−1(13)=5f^{-1}(13) = 5.

Definition

The inverse of a one-one function ff is the function f−1f^{-1} that reverses ff: if f(a)=bf(a) = b then f−1(b)=af^{-1}(b) = a. It satisfies

f−1f(x)=xfor x in the domain of f,ff−1(x)=xfor x in the domain of f−1f^{-1}f(x) = x \quad\text{for } x \text{ in the domain of } f, \qquad ff^{-1}(x) = x \quad\text{for } x \text{ in the domain of } f^{-1}

Why it must be one-one

If ff is many-one, some output comes from two inputs. For f(x)=x2f(x) = x^2 on R\mathbb{R}, f(3)=f(−3)=9f(3) = f(-3) = 9. Undoing 99 would have to give both 33 and −3-3, but a function can only give one output. So a function has an inverse if and only if it is one-one.

The fix is to restrict the domain so that the function is one-one. x2x^2 for x≥0x \ge 0 is one-one, and its inverse is x\sqrt{x}.

Domains and ranges swap

The inverse takes outputs of ff back to inputs, so the roles of domain and range swap.

Key result
domain of f−1=range of frange of f−1=domain of f\text{domain of } f^{-1} = \text{range of } f \qquad\qquad \text{range of } f^{-1} = \text{domain of } f

The graph of y=f−1(x)y = f^{-1}(x) is the reflection of the graph of y=f(x)y = f(x) in the line y=xy = x.

Finding an inverse algebraically

Finding f inverse
  1. Find the range of ff first (you will need it for the domain of f−1f^{-1}).
  2. Write y=f(x)y = f(x).
  3. Rearrange to make xx the subject.
  4. If you take a square root, use the domain of ff to decide whether it is +x+\sqrt{\phantom{x}} or −x-\sqrt{\phantom{x}}.
  5. Swap xx and yy (or just write the answer as f−1(x)=…f^{-1}(x) = \dots in terms of xx).
  6. State the domain of f−1f^{-1}, which is the range of ff.
A linear function

The function ff is defined by f(x)=5x−2f(x) = 5x - 2 for x∈Rx \in \mathbb{R}. Find f−1(x)f^{-1}(x).

Solutiony=5x−2⇒y+2=5x⇒x=y+25y = 5x - 2 \quad\Rightarrow\quad y + 2 = 5x \quad\Rightarrow\quad x = \frac{y + 2}{5}

So f−1(x)=x+25f^{-1}(x) = \dfrac{x + 2}{5} for x∈Rx \in \mathbb{R}.

A reciprocal function

The function ff is defined by f(x)=4x−1+2f(x) = \dfrac{4}{x - 1} + 2 for x>1x > 1. Find f−1(x)f^{-1}(x) and state its domain.

Solution

Range of ff: for x>1x > 1, 4x−1>0\dfrac{4}{x - 1} > 0 (and takes every positive value), so f(x)>2f(x) > 2.

y=4x−1+2⇒y−2=4x−1⇒x−1=4y−2⇒x=1+4y−2y = \frac{4}{x - 1} + 2 \quad\Rightarrow\quad y - 2 = \frac{4}{x - 1} \quad\Rightarrow\quad x - 1 = \frac{4}{y - 2} \quad\Rightarrow\quad x = 1 + \frac{4}{y - 2}

So f−1(x)=1+4x−2f^{-1}(x) = 1 + \dfrac{4}{x - 2}, with domain x>2x > 2 (the range of ff).

A completed square: choosing the sign

The function hh is defined by h(x)=(2x−3)2−4h(x) = (2x - 3)^2 - 4 for x>32x > \tfrac{3}{2}. Find an expression for h−1(x)h^{-1}(x) and state its domain.

Solution

For x>32x > \tfrac{3}{2}, 2x−3>02x - 3 > 0, so (2x−3)2>0(2x - 3)^2 > 0 and h(x)>−4h(x) > -4. The range of hh is h(x)>−4h(x) > -4.

y=(2x−3)2−4⇒(2x−3)2=y+4⇒2x−3=y+4y = (2x - 3)^2 - 4 \quad\Rightarrow\quad (2x - 3)^2 = y + 4 \quad\Rightarrow\quad 2x - 3 = \sqrt{y + 4}

Only the positive root is used, because 2x−3>02x - 3 > 0 on the domain of hh. Then

x=3+y+42x = \frac{3 + \sqrt{y + 4}}{2}

So h−1(x)=3+x+42h^{-1}(x) = \dfrac{3 + \sqrt{x + 4}}{2} for x>−4x > -4.

Restricting the domain of a quadratic

A quadratic is one-one on any domain that lies entirely on one side of its vertex. Completing the square shows where the vertex is.

Key result

For f(x)=a(x−p)2+qf(x) = a(x - p)^2 + q:

  • on x≥px \ge p (or any domain to the right of pp), ff is one-one;
  • on x≤px \le p (or any domain to the left of pp), ff is one-one;
  • on a domain containing values on both sides of pp, ff is many-one.
The least value of k

The function ff is defined by f(x)=x2−6x+5f(x) = x^2 - 6x + 5 for x≥kx \ge k.

(a) Find the least 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.

Solution

(a) f(x)=(x−3)2−4f(x) = (x - 3)^2 - 4. The vertex is at x=3x = 3. The function is one-one on x≥kx \ge k provided the domain does not extend to the left of the vertex, so the least value is k=3k = 3.

(b) With x≥3x \ge 3, the range of ff is f(x)≥−4f(x) \ge -4.

y=(x−3)2−4⇒x−3=+y+4⇒x=3+y+4y = (x - 3)^2 - 4 \quad\Rightarrow\quad x - 3 = +\sqrt{y + 4} \quad\Rightarrow\quad x = 3 + \sqrt{y + 4}

(positive root, since x−3≥0x - 3 \ge 0). So f−1(x)=3+x+4f^{-1}(x) = 3 + \sqrt{x + 4} for x≥−4x \ge -4.

The left branch: a negative root

The function ff is defined by f(x)=2(x+1)2−3f(x) = 2(x + 1)^2 - 3 for x≤−1x \le -1. Find f−1(x)f^{-1}(x) and state the domain and range of f−1f^{-1}.

Solution

On x≤−1x \le -1, ff is one-one with range f(x)≥−3f(x) \ge -3.

y=2(x+1)2−3⇒(x+1)2=y+32y = 2(x + 1)^2 - 3 \quad\Rightarrow\quad (x + 1)^2 = \frac{y + 3}{2}

Here x+1≤0x + 1 \le 0, so we need the negative root:

x+1=−y+32⇒x=−1−y+32x + 1 = -\sqrt{\frac{y + 3}{2}} \quad\Rightarrow\quad x = -1 - \sqrt{\frac{y + 3}{2}}

So f−1(x)=−1−x+32f^{-1}(x) = -1 - \sqrt{\dfrac{x + 3}{2}}. Domain of f−1f^{-1}: x≥−3x \ge -3. Range of f−1f^{-1}: f−1(x)≤−1f^{-1}(x) \le -1.

Check: f(−3)=2(4)−3=5f(-3) = 2(4) - 3 = 5, and f−1(5)=−1−4=−3f^{-1}(5) = -1 - \sqrt{4} = -3. Correct.

The graphical relationship

Swapping xx and yy reflects every point (a,b)(a, b) to (b,a)(b, a), which is reflection in the line y=xy = x. So the graph of f−1f^{-1} is the mirror image of the graph of ff in y=xy = x.

y = x^2 + 1 + 0 sqrt(x) y = sqrt(x - 1) y = x (0, 1) (1, 0)

The graph shows f(x)=x2+1f(x) = x^2 + 1 for x≥0x \ge 0 and its inverse f−1(x)=x−1f^{-1}(x) = \sqrt{x - 1} for x≥1x \ge 1. The point (0,1)(0, 1) on ff reflects to (1,0)(1, 0) on f−1f^{-1}.

Sketching f and its inverse on one diagram
  1. Draw the line y=xy = x (the syllabus requires the mirror line to be shown).
  2. Sketch y=f(x)y = f(x) over its domain only, labelling end points and intercepts.
  3. Reflect each key point (a,b)(a, b) to (b,a)(b, a) and sketch y=f−1(x)y = f^{-1}(x) through them.
  4. Use equal scales on both axes if you can, so that the symmetry is visible.

Where f and its inverse meet

If ff is increasing, the graphs of ff and f−1f^{-1} can only meet on the mirror line y=xy = x. So f(x)=f−1(x)f(x) = f^{-1}(x) can be solved by the much easier equation f(x)=xf(x) = x.

Intersection of f and its inverse

The function ff is defined by f(x)=x2−4x+6f(x) = x^2 - 4x + 6 for x≥2x \ge 2. Find the coordinates of the points where the graphs of y=f(x)y = f(x) and y=f−1(x)y = f^{-1}(x) meet.

Solution

f(x)=(x−2)2+2f(x) = (x - 2)^2 + 2 is increasing for x≥2x \ge 2, so the graphs meet on y=xy = x:

x2−4x+6=x⇒x2−5x+6=0⇒(x−2)(x−3)=0x^2 - 4x + 6 = x \quad\Rightarrow\quad x^2 - 5x + 6 = 0 \quad\Rightarrow\quad (x - 2)(x - 3) = 0

Both x=2x = 2 and x=3x = 3 are in the domain. The points are (2,2)(2, 2) and (3,3)(3, 3).

y = x^2 - 4x + 6 + 0 sqrt(x - 2) y = 2 + sqrt(x - 2) y = x (2, 2) (3, 3)
Watch out

f−1(x)f^{-1}(x) is not 1f(x)\dfrac{1}{f(x)}. The −1-1 is notation for "inverse", not a power.

Choosing the wrong sign of the square root. Use the domain of ff: if x≥px \ge p take +x+\sqrt{\phantom{x}}, if x≤px \le p take −x-\sqrt{\phantom{x}}. Writing ±\pm in the final answer scores no accuracy mark.

Forgetting the domain of f−1f^{-1}. It is the range of ff, and many mark schemes award a mark for it.

Giving the answer in terms of yy. Your final answer must be f−1(x)=…f^{-1}(x) = \dots in terms of xx.

Reflecting in the wrong line. The mirror is y=xy = x, not the xx-axis or yy-axis.

Exam tip
  • "Find an expression for f−1(x)f^{-1}(x)" usually earns 3 marks: one for the first rearrangement, one for the correct root or step, one for the final form in terms of xx.
  • "State the domain of f−1f^{-1}" is a separate 1-mark part. Work out the range of ff before you start inverting.
  • "Explain why ff has an inverse" or "show that ff is one-one": say it is increasing (or decreasing) throughout its domain, or that the domain lies on one side of the vertex.
  • On a sketch of ff and f−1f^{-1}, examiners look for: the line y=xy = x drawn, the two curves as reflections, and end points or intercepts swapped correctly.
Summary
  • Only one-one functions have inverses. Restrict the domain of a quadratic to one side of its vertex.
  • To find f−1f^{-1}: write y=f(x)y = f(x), make xx the subject, then write in terms of xx.
  • Use the domain of ff to choose the sign of any square root.
  • Domain of f−1f^{-1} = range of ff; range of f−1f^{-1} = domain of ff.
  • ff−1(x)=f−1f(x)=xff^{-1}(x) = f^{-1}f(x) = x.
  • The graph of f−1f^{-1} is the reflection of the graph of ff in y=xy = x; draw the line y=xy = x on sketches.
  • For increasing ff, solve f(x)=f−1(x)f(x) = f^{-1}(x) by solving f(x)=xf(x) = x.

Practice questions

Question
  1. Find f−1(x)f^{-1}(x) for f(x)=4x+7f(x) = 4x + 7, x∈Rx \in \mathbb{R}.
  2. Find f−1(x)f^{-1}(x) for f(x)=3x−12f(x) = \dfrac{3x - 1}{2}, x∈Rx \in \mathbb{R}.
  3. f(x)=2x+3f(x) = \dfrac{2}{x + 3} for x>−3x > -3. Find f−1(x)f^{-1}(x) and state its domain.
  4. f(x)=(x−2)2+1f(x) = (x - 2)^2 + 1 for x≥2x \ge 2. Find f−1(x)f^{-1}(x) and state its domain.
  5. f(x)=x2+6xf(x) = x^2 + 6x for x≥kx \ge k. Find the least value of kk for which f−1f^{-1} exists, and for this value find f−1(x)f^{-1}(x) and its domain.
  6. f(x)=5−(x+1)2f(x) = 5 - (x + 1)^2 for x≤−1x \le -1. Find f−1(x)f^{-1}(x) and state its domain and range.
  7. f(x)=2x+1f(x) = 2x + 1 for x≥0x \ge 0 and g(x)=x2g(x) = x^2 for x≥0x \ge 0. Find gf(x)gf(x) and hence find (gf)−1(x)(gf)^{-1}(x), stating its domain.
  8. f(x)=3x−4f(x) = 3x - 4 for x∈Rx \in \mathbb{R}. Solve f(x)=f−1(x)f(x) = f^{-1}(x).
  9. (a) Express 2x2−12x+112x^2 - 12x + 11 in the form a(x+b)2+ca(x + b)^2 + c. (b) The function ff is defined by f(x)=2x2−12x+11f(x) = 2x^2 - 12x + 11 for x≤1x \le 1. Find the range of ff and an expression for f−1(x)f^{-1}(x).
  10. f(x)=(x−1)2+1f(x) = (x - 1)^2 + 1 for x≥1x \ge 1. Sketch y=f(x)y = f(x) and y=f−1(x)y = f^{-1}(x) on the same diagram, and find the coordinates of the points where they meet.
Answers
  1. y=4x+7y = 4x + 7, x=y−74x = \dfrac{y - 7}{4}. f−1(x)=x−74f^{-1}(x) = \dfrac{x - 7}{4}.

  2. 2y=3x−12y = 3x - 1, x=2y+13x = \dfrac{2y + 1}{3}. f−1(x)=2x+13f^{-1}(x) = \dfrac{2x + 1}{3}.

  3. Range of ff: f(x)>0f(x) > 0. x+3=2yx + 3 = \dfrac{2}{y}, so f−1(x)=2x−3f^{-1}(x) = \dfrac{2}{x} - 3 for x>0x > 0.

  4. Range of ff: f(x)≥1f(x) \ge 1. x−2=+y−1x - 2 = +\sqrt{y - 1}, so f−1(x)=2+x−1f^{-1}(x) = 2 + \sqrt{x - 1} for x≥1x \ge 1.

  5. f(x)=(x+3)2−9f(x) = (x + 3)^2 - 9; least k=−3k = -3. Range f(x)≥−9f(x) \ge -9. x+3=y+9x + 3 = \sqrt{y + 9}, so f−1(x)=−3+x+9f^{-1}(x) = -3 + \sqrt{x + 9} for x≥−9x \ge -9.

  6. Range of ff: f(x)≤5f(x) \le 5. (x+1)2=5−y(x + 1)^2 = 5 - y, and x+1≤0x + 1 \le 0, so x+1=−5−yx + 1 = -\sqrt{5 - y}. f−1(x)=−1−5−xf^{-1}(x) = -1 - \sqrt{5 - x}, domain x≤5x \le 5, range f−1(x)≤−1f^{-1}(x) \le -1.

  7. gf(x)=(2x+1)2gf(x) = (2x + 1)^2 for x≥0x \ge 0, with range gf(x)≥1gf(x) \ge 1. 2x+1=y2x + 1 = \sqrt{y} (positive, since 2x+1>02x + 1 > 0), so (gf)−1(x)=x−12(gf)^{-1}(x) = \dfrac{\sqrt{x} - 1}{2} for x≥1x \ge 1.

  8. ff is increasing, so solve f(x)=xf(x) = x: 3x−4=x3x - 4 = x, x=2x = 2. (Check: f−1(x)=x+43f^{-1}(x) = \dfrac{x + 4}{3}, and f−1(2)=2=f(2)f^{-1}(2) = 2 = f(2).)

  9. (a) 2(x−3)2−72(x - 3)^2 - 7. (b) For x≤1x \le 1 the function is decreasing (left of the vertex x=3x = 3), with f(1)=1f(1) = 1 and f(x)f(x) increasing without limit as xx decreases. Range f(x)≥1f(x) \ge 1. (x−3)2=y+72(x - 3)^2 = \dfrac{y + 7}{2} and x−3<0x - 3 < 0, so x=3−y+72x = 3 - \sqrt{\dfrac{y + 7}{2}}. f−1(x)=3−x+72f^{-1}(x) = 3 - \sqrt{\dfrac{x + 7}{2}} for x≥1x \ge 1.

  10. ff starts at (1,1)(1, 1) and increases; f−1(x)=1+x−1f^{-1}(x) = 1 + \sqrt{x - 1} starts at (1,1)(1, 1), its reflection in y=xy = x. They meet on y=xy = x: (x−1)2+1=x(x - 1)^2 + 1 = x, so x2−3x+2=0x^2 - 3x + 2 = 0, x=1x = 1 or 22. Points (1,1)(1, 1) and (2,2)(2, 2).

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action