Educerie

1 higher-level section hidden.

Educerie · IB Diploma · Mathematics: analysis and approaches

IB Mathematics AA 2.2 · SL and HL

Functions, domain, range and inverse

What exactly makes a rule a function, which inputs is it allowed to take and which outputs can it give, and when can it be run backwards?

What you will learn

  • Understand that a function gives each input exactly one output, and how to test a rule, table or graph for this.
  • Know how to find the domain and range of a function, including on a restricted domain and in a model.
  • Understand that an inverse undoes a function and exists only when the function is one-to-one.
  • Know that the graph of f⁻¹ is the reflection of f in y = x, so domain and range swap.

You must be able to

  1. Find the largest possible domain and the range of a function, using a sketch to check the range.
  2. Find f⁻¹(k) by solving f(x) = k, by hand or with a GDC.
  3. Sketch the graph of f⁻¹ by reflecting the graph of f in y = x.
  4. State the domain and range of f⁻¹ from the range and domain of f.
  5. Explain why a function has no inverse, and restrict its domain so that it has one.
  6. State a suitable domain for a model and interpret its values and constants in context.

In the exam. everywhere, because every later topic is written in function notation. Directly, in short Paper 1 questions (find the domain, the range, f(3)f(3), f−1(5)f^{-1}(5), the domain of f−1f^{-1}; sketch f−1f^{-1}) and in the opening parts of Paper 2 modelling questions, where the context sets the domain and a constant must be explained in words. 2.5 then finds inverses algebraically.

1What makes a rule a function

A relation is any pairing of inputs with outputs. A function is a relation with one extra promise: each input is paired with exactly one output.

Figure 1 shows the difference with arrow diagrams, which the guide calls mappings.

Figure 1 · A function sends each input to exactly one output (a) A function (many-to-one is allowed) inputs outputs −2 0 2 0 4 x ↦ x² (b) Not a function (one-to-many) inputs outputs 4 9 −3 −2 2 3 x ↦ ±√x Two inputs may share an output. One input may never have two.
Figure 1 · A function sends each input to exactly one output
  • Panel (a). The rule is "square it". Both −2-2 and 22 go to 44. That is allowed: two inputs may share an output. This is called many-to-one. Each input still has only one arrow leaving it.
  • Panel (b). The rule is "take the square root, positive or negative". The input 44 has two arrows, to −2-2 and to 22. That is one-to-many. It is not a function, because "the output for 44" does not name one number.

A third kind, one-to-one, is in section 8.

  • On a graph the same test becomes the vertical line test, as Figure 2 shows. Every vertical line is one value of xx. If any vertical line crosses the graph more than once, that xx has more than one yy. The graph is not a function.
    • Example: the parabola y=x2−2y = x^{2} - 2 passes. The circle x2+y2=9x^{2} + y^{2} = 9 fails, because the line x=1.5x = 1.5 meets it twice.
Figure 2 · The vertical line test (a) y = x² − 2 · a function x y −2 2 2 4 one crossing (b) x² + y² = 9 · not a function x y two crossings x = 1.5 3 −3 3 −3 If any vertical line meets the graph more than once, some input has two outputs: not a function.
Figure 2 · The vertical line test

The same check works on a list of pairs. Look for a first coordinate that appears twice with different partners.

  • {(1,4),(2,4),(3,5)}\{(1, 4), (2, 4), (3, 5)\} is a function, since each first coordinate appears once.
  • {(1,4),(1,5),(2,6)}\{(1, 4), (1, 5), (2, 6)\} is not, since the input 11 has two outputs.

2Function notation

  • Function notation names the function and its input together. f(x)f(x) is read "f of x". It means "the output of ff when the input is xx".
    • The letters change with the context. v(t)v(t) is a velocity at time tt. C(n)C(n) is the cost of nn items.
  • The IB also uses mapping notation, g:x↦2x2+5xg: x \mapsto 2x^{2} + 5x. It reads "g maps x to 2x2+5x2x^{2} + 5x" and means the same as g(x)=2x2+5xg(x) = 2x^{2} + 5x.
  • The input is the independent variable: you choose it. The output is the dependent variable: it depends on your choice. On a graph the input goes across and the output goes up, so y=f(x)y = f(x). The output g(a)g(a) is also called the image of aa.

From a rule. Evaluating means substituting the input everywhere xx appears, in brackets, so signs survive. Take g(x)=2x2+5xg(x) = 2x^{2} + 5x.

g(−3)=2(−3)2+5(−3)=18−15=3\begin{aligned}g(-3) &= 2(-3)^{2} + 5(-3) \\[6pt] &= 18 - 15 \\[6pt] &= 3\end{aligned}g(a−2)=2(a−2)2+5(a−2)the input is a whole expression=2a2−8a+8+5a−10=2a2−3a−2\begin{aligned}g(a - 2) &= 2(a - 2)^{2} + 5(a - 2) && \textcolor{#838c91}{\text{the input is a whole expression}} \\[6pt] &= 2a^{2} - 8a + 8 + 5a - 10 \\[6pt] &= 2a^{2} - 3a - 2\end{aligned}

Solving runs the other way: you are given an output and asked for the input or inputs.

g(x)=3g(x) = 32x2+5x−3=02x^{2} + 5x - 3 = 0(2x−1)(x+3)=0(2x - 1)(x + 3) = 0x=12orx=−3x = \frac{1}{2} \quad\text{or}\quad x = -3check: g ⁣(12)=12+52=3 ✓\text{check: } g\!\left(\tfrac12\right) = \tfrac12 + \tfrac52 = 3 \ \checkmark
  • Two inputs give the output 33. That is fine for a function, but it matters in section 8.
  • Keep the two apart: g(2)g(2) asks for an output; g(x)=2g(x) = 2 asks for an input.

From a set of pairs or a table. g(a)g(a) is the second number in the pair whose first number is aa, or the entry under aa. Here is a table for a function mm.

xx−1-10235
m(x)m(x)32−1-157
  • Then m(3)=5m(3) = 5.
  • A nested value is worked from the inside out. m(m(0))m(m(0)) is m(2)m(2), because m(0)=2m(0) = 2, and m(2)=−1m(2) = -1.
  • Reading m(x)=7m(x) = 7 goes the other way, bottom row first: x=5x = 5.

From a graph

  • g(a)g(a) is the height of the curve above x=ax = a.
  • g(x)=kg(x) = k asks where the curve is at height kk. Draw a horizontal line at kk and read the xx-values where it meets the curve (none, one or several).

3Domain: which inputs are allowed

The domain of a function is the set of inputs it is defined for. Unless a question says otherwise, the exam takes the largest possible domain, usually all real numbers, x∈Rx \in \mathbb{R}. You only restrict it when something would break.

At this level three things break a rule for real numbers:

  • Dividing by zero. g(x)=72x+5g(x) = \dfrac{7}{2x + 5} is undefined when 2x+5=02x + 5 = 0. Domain: x∈Rx \in \mathbb{R}, x≠−52x \ne -\dfrac{5}{2}.
  • The square root (or any even root) of a negative number. h(x)=3x−12h(x) = \sqrt{3x - 12} needs 3x−12≥03x - 12 \ge 0, so the domain is x≥4x \ge 4.
  • The logarithm of zero or a negative number. ln⁡(5−x)\ln(5 - x) needs 5−x>05 - x > 0, so x<5x < 5. You meet this properly in 2.9.

Combine them when they appear together.

  • k(x)=12x+7k(x) = \dfrac{1}{\sqrt{2x + 7}}: the root needs 2x+7≥02x + 7 \ge 0 and the division needs 2x+7≠0\sqrt{2x + 7} \ne 0. So 2x+7>02x + 7 > 0, and the domain is x>−72x > -\dfrac{7}{2}, with a strict inequality.
  • m(x)=x−1x−6m(x) = \dfrac{\sqrt{x - 1}}{x - 6}: both conditions hold at once, x≥1x \ge 1 and x≠6x \ne 6.
  • The guide's own example is f(x)=2−xf(x) = \sqrt{2 - x}. The expression under the root must not be negative: 2−x≥02 - x \ge 0, so the domain is x≤2x \le 2.
  • Figure 3 shows it. The graph starts at (2,0)(2, 0) and runs away to the left forever. Along the x-axis, that is exactly x≤2x \le 2.
Figure 3 · Domain and range of f(x) = √(2 − x) x y −6 −4 −2 2 1 2 3 (2, 0) domain: x ≤ 2 (and on to the left) range: f(x) ≥ 0 y = √(2 − x) The domain is read along the x-axis, the range up the y-axis. Here: x ≤ 2 and f(x) ≥ 0.
Figure 3 · Domain and range of f(x) = √(2 − x)

Ways to write a domain.

  • Inequalities in xx, like x≤2x \le 2 or x≠−52x \ne -\frac52, are the plainest.
  • Set notation says the same thing: {x:x≤2}\{x : x \le 2\}, or x∈Rx \in \mathbb{R}, x≠3x \ne 3.
  • Interval notation. The IB writes it with square brackets only. A bracket facing the number includes that end. A bracket turned away excludes it. An infinite end is always excluded.
    • The guide's notation list gives [a,b][a, b] for a≤x≤ba \le x \le b and ]a,b[]a, b[ for a<x<ba < x < b. So x≤2x \le 2 is ]−∞,2]]-\infty, 2], −1<x≤4-1 < x \le 4 is ]−1,4]]-1, 4], and x∈Rx \in \mathbb{R}, x≠3x \ne 3 is ]−∞,3[∪]3,∞[]-\infty, 3[ \cup ]3, \infty[.
    • Round brackets at an excluded end, as in (−1,4](-1, 4], mean the same and are accepted too. Use whichever form you can write without slips.

A function is a rule together with its domain. When a question states the domain, as in f(x)=x2f(x) = x^{2} for x≥0x \ge 0, use that one even if the rule would accept more.

  • When the function is a set of pairs or a table, the domain is just the list of inputs, each written once. {(−2,1),(0,1),(3,6),(5,−4)}\{(-2, 1), (0, 1), (3, 6), (5, -4)\} has domain {−2,0,3,5}\{-2, 0, 3, 5\}.
    • Such a domain is discrete: separate values with nothing between. An interval is continuous.

Reading a domain from a drawn graph

  • Follow the curve left to right. A filled dot means the end point is included. An open dot means it is not. An arrowhead means the graph carries on.
  • Example: a graph begins at a filled dot at (−3,2)(-3, 2), peaks at (1,6)(1, 6) and ends at an open dot at (5,1)(5, 1). Its domain is −3≤x<5-3 \le x < 5.

4Range: which outputs you get

The range is the set of outputs the function actually produces from its domain. It is written in terms of the output: f(x)≥0f(x) \ge 0, or y≥0y \ge 0, or in interval notation [0,∞[[0, \infty[. A graph helps: look at how far it reaches up and down.

  • For f(x)=2−xf(x) = \sqrt{2 - x} in Figure 3, the square root is never negative. It equals 00 when x=2x = 2, and it grows without limit as xx runs left. So the range is f(x)≥0f(x) \ge 0.
  • For the drawn graph of section 3, the highest output is 66. After the peak the curve falls through every height down to, but not including, 11. The start height 22 lies inside that stretch. The range is 1<y≤61 < y \le 6.

A square pushed up. x2≥0x^{2} \ge 0 for every xx, so x2+3≥3x^{2} + 3 \ge 3. The range of x2+3x^{2} + 3 is f(x)≥3f(x) \ge 3, reached where the square is zero.

A quadratic, from its vertex

  • f(x)=x2+6x+11f(x) = x^{2} + 6x + 11 for x∈Rx \in \mathbb{R}. A quadratic is lowest or highest at its vertex, so find that first.
  • Completing the square gives f(x)=(x+3)2+2f(x) = (x + 3)^{2} + 2, so the vertex is (−3,2)(-3, 2). The parabola opens upwards, so f(x)≥2f(x) \ge 2.
  • A negative coefficient, as in q(x)=5+4x−x2q(x) = 5 + 4x - x^{2}, makes the vertex the highest point. q(2)=9q(2) = 9, so q(x)≤9q(x) \le 9. On the GDC, read the minimum or maximum point.

A line on a restricted domain. j(x)=−3x+2j(x) = -3x + 2 for −1≤x≤5-1 \le x \le 5. The gradient is negative, so jj is highest at the left end and lowest at the right. j(−1)=5j(-1) = 5 and j(5)=−13j(5) = -13, so the range is −13≤j(x)≤5-13 \le j(x) \le 5.

A curve on a restricted domain

  • p(x)=(x−1)2p(x) = (x - 1)^{2} for −2≤x≤2-2 \le x \le 2. The end points give p(−2)=9p(-2) = 9 and p(2)=1p(2) = 1. Writing 1≤p(x)≤91 \le p(x) \le 9 is wrong.
  • Figure 4 shows why: the curve dips to its vertex at (1,0)(1, 0) inside the domain. The range is 0≤p(x)≤90 \le p(x) \le 9.
Figure 4 · The range is not found from the end points alone x y −2 −1 1 2 3 3 6 9 (−2, 9) (2, 1) vertex (1, 0) range: 0 ≤ p(x) ≤ 9 p(x) = (x − 1)² on −2 ≤ x ≤ 2. The lowest output is at the vertex, not at an end point.
Figure 4 · The range is not found from the end points alone

Find a range from the graph, not from the end points. Sketch it, or look at it on your GDC, and read off the lowest and the highest outputs, including any turning point inside the domain.

An open end. t(x)=x2+1t(x) = x^{2} + 1 for 1<x≤31 < x \le 3. On x>0x > 0 the curve only rises, so the outputs run from t(1)=2t(1) = 2 to t(3)=10t(3) = 10. The input 11 is excluded, so the output 22 is never reached. The range is 2<t(x)≤102 < t(x) \le 10.

One value missing

  • r(x)=4x+1r(x) = \dfrac{4}{x + 1}. The domain is x≠−1x \ne -1.
  • A fraction with a top of 44 is never zero. So r(x)=0r(x) = 0 has no solution, and the graph gets as close to the x-axis as you like without touching it.
  • The range is r(x)≠0r(x) \ne 0, written in interval notation as ]−∞,0[∪]0,∞[]-\infty, 0[ \cup ]0, \infty[. A range does not have to be one unbroken stretch.

A finite set. For {(−2,1),(0,1),(3,6),(5,−4)}\{(-2, 1), (0, 1), (3, 6), (5, -4)\} the range is the list of second numbers, each written once: {−4,1,6}\{-4, 1, 6\}. The repeated 11 is listed one time.

5A function as a model

  • The guide treats a function as a mathematical model: a rule that describes a real quantity. The context sets the domain, and that is often smaller than the domain the algebra allows.
  • Example: a ball is thrown straight up from the ground. Its height in metres after tt seconds is h(t)=20t−4.9t2h(t) = 20t - 4.9t^{2}.
    • The formula works for any tt. The ball does not. It leaves the ground at t=0t = 0 and lands when h(t)=0h(t) = 0 again.
20t−4.9t2=020t - 4.9t^{2} = 0t(20−4.9t)=0t(20 - 4.9t) = 0t=0ort=204.9=4.08 (3 s.f.)t = 0 \quad\text{or}\quad t = \frac{20}{4.9} = 4.08 \ \text{(3 s.f.)}
  • So a sensible domain is 0≤t≤4.080 \le t \le 4.08. The highest point is at t=209.8≈2.04 st = \dfrac{20}{9.8} \approx 2.04\ \mathrm{s}, where h≈20.4 mh \approx 20.4\ \mathrm{m}. So the range in context is 0≤h(t)≤20.40 \le h(t) \le 20.4.
  • Figure 5 shows the model and the part of the curve that means nothing.
Figure 5 · A model has the domain its context allows t (s) h (m) 1 2 3 4 5 10 15 20 lands, t ≈ 4.08 highest, h ≈ 20.4 m outside 0 ≤ t ≤ 4.08 the formula no longer describes the ball h(t) = 20t − 4.9t² only describes the flight while the ball is in the air: 0 ≤ t ≤ 4.08.
Figure 5 · A model has the domain its context allows
  • A count of items only makes sense for whole numbers. So the domain is discrete, n∈Zn \in \mathbb{Z}, n≥0n \ge 0, and the range is a list of separate values.
    • A "suitable domain" answer needs the context's reason.

Saying what values mean. Models also come with "what does this represent?" questions.

Example: a water tank is being emptied by a pump. The litres left after tt minutes are modelled by V(t)=480−12tV(t) = 480 - 12t, for 0≤t≤400 \le t \le 40.

  • The −12-12 is the gradient: the tank loses 12 litres every minute.
  • The 480480 is V(0)V(0), the volume in litres at the start, before the pump has run.
  • V(10)=360V(10) = 360: after 10 minutes 360 litres remain (input given, output asked for).
  • V(t)=300V(t) = 300 means "after how many minutes are 300 litres left?". Solve 480−12t=300480 - 12t = 300, so t=15t = 15. That is an output given, an input asked for.
  • The tank is empty at V(40)=0V(40) = 0, so the domain is 0≤t≤400 \le t \le 40 and the range 0≤V(t)≤4800 \le V(t) \le 480.

Name the quantity and its unit: "the amount" alone is too vague.

6The inverse: undoing a function

An inverse function reverses the effect of a function. If ff takes aa to bb, then f−1f^{-1} takes bb back to aa.

f(a)=bf(a) = b means exactly the same as f−1(b)=af^{-1}(b) = a.

  • A booth pays K(x)=0.8x−2K(x) = 0.8x - 2 euros for xx dollars handed in. You multiply by 0.80.8, then take off a 22-euro fee.
    • To undo it, do the opposite operations in the opposite order: add 22, then divide by 0.80.8. So K−1(x)=x+20.8K^{-1}(x) = \dfrac{x + 2}{0.8} turns euros received back into dollars handed in.
    • Doing one and then the other returns what you started with: K−1(K(x))=(0.8x−2)+20.8=xK^{-1}(K(x)) = \dfrac{(0.8x - 2) + 2}{0.8} = x.
  • A temperature conversion works the same way. An invented scale reads T(c)=2c+30T(c) = 2c + 30 for cc degrees Celsius. The inverse subtracts 3030, then halves: T−1(x)=x−302T^{-1}(x) = \dfrac{x - 30}{2}.
  • This gives the guide's key link: solving f(x)=kf(x) = k is the same as finding f−1(k)f^{-1}(k). You do not need a formula for f−1f^{-1} to find one value of it.
    • Example: a customer walks away with 30 euros.
K−1(30)=?means: which input gives K(x)=30?K^{-1}(30) = ? \qquad \textcolor{#838c91}{\text{means: which input gives }K(x) = 30\text{?}}0.8x−2=300.8x - 2 = 300.8x=320.8x = 32x=40, so K−1(30)=40x = 40, \ \text{so}\ K^{-1}(30) = 40
  • On Paper 2, for a function you cannot rearrange easily, the GDC does it. To find q−1(12)q^{-1}(12) for q(x)=x3+3x+2q(x) = x^{3} + 3x + 2, solve x3+3x+2=12x^{3} + 3x + 2 = 12. Use the equation solver, or intersect y=q(x)y = q(x) with y=12y = 12. This gives x=1.70x = 1.70 (3 s.f.), so q−1(12)=1.70q^{-1}(12) = 1.70.
  • Reading an inverse value off a table works the same way. Suppose ff is one-to-one and is given by
xx−1-1025
f(x)f(x)8−3-351
  • Then f−1(1)f^{-1}(1) is the input whose output is 11. Find 11 in the bottom row and read the number above it, so f−1(1)=5f^{-1}(1) = 5. Likewise f−1(8)=−1f^{-1}(8) = -1.
    • This is only unambiguous because no output appears twice.
  • An inverse in context. In the tank of section 5, V−1(300)=15V^{-1}(300) = 15. Its input is a volume and its output a time, so the tank holds 300 litres after 15 minutes.
  • One warning about the notation. f−1(x)f^{-1}(x) is the inverse function, not 1f(x)\dfrac{1}{f(x)}. The −1-1 is a label, not an exponent.
    • Example: for K(x)=0.8x−2K(x) = 0.8x - 2, 1K(x)\dfrac{1}{K(x)} is 10.8x−2\dfrac{1}{0.8x - 2}, which converts nothing into anything.
  • Finding a formula for f−1f^{-1} by algebra is the job of 2.5.

7Only one-to-one functions have inverses

  • A function is one-to-one when every output comes from exactly one input: no two inputs share an output. Equivalently, f(a)=f(b)f(a) = f(b) only when a=ba = b.
  • Only a one-to-one function has an inverse, because the inverse has to send each output back to a single input. A function where some output is shared is many-to-one.
  • On a graph, the check is the horizontal line test. If any horizontal line meets the graph of ff more than once, ff is not one-to-one and has no inverse.
  • Figure 6 shows what goes wrong otherwise. f(x)=x2f(x) = x^{2} on all real numbers sends both −1.58-1.58 and 1.581.58 to 2.52.5. The horizontal line y=2.5y = 2.5 meets the graph twice. Its reflection in y=xy = x is a sideways curve that fails the vertical line test, so it is not a function.
    • To explain why in words, name two different inputs with the same output, such as f(−1)=f(1)f(-1) = f(1) for x2x^{2}. Or say that a horizontal line meets the graph twice.
Figure 6 · Only a one-to-one function has an inverse (a) y = x², all real x: no inverse x y −2 2 4 −2 2 4 y = 2.5 reflection: not a function (b) y = x², x ≥ 0: inverse √x x y −2 2 4 −2 2 4 f(x) = x² f⁻¹(x) = √x Reflect y = x² and you get a sideways curve that fails the vertical line test. Restrict to x ≥ 0 and it works.
Figure 6 · Only a one-to-one function has an inverse

Checking with algebra.

  • For f(x)=3x−5f(x) = 3x - 5, f(a)=f(b)f(a) = f(b) gives 3a−5=3b−53a - 5 = 3b - 5, so a=ba = b: one-to-one.
  • For f(x)=x2f(x) = x^{2}, f(a)=f(b)f(a) = f(b) gives a2=b2a^{2} = b^{2}, which allows a=−ba = -b: not one-to-one.

Quick judgments:

  • Slanted lines, x3x^{3} and 1x\dfrac1x are one-to-one.
  • x2x^{2}, ∣x∣|x|, any parabola and a horizontal line y=cy = c are many-to-one.
  • A function that only ever increases, or only ever decreases, over its domain always passes the horizontal line test. That is the quickest reason to give for why an inverse exists.
  • Section 2's g(x)=3g(x) = 3 had two solutions, so gg has no inverse on R\mathbb{R}.

Restricting the domain

  • The fix for a many-to-one function is to keep only a part of its domain on which it is one-to-one. On x≥0x \ge 0 alone, x2x^{2} is one-to-one, and its inverse is x\sqrt{x}, as panel (b) of Figure 6 shows.
  • For a parabola, cut at the vertex. Take w(x)=(x−3)2+1w(x) = (x - 3)^{2} + 1, whose vertex is (3,1)(3, 1). On all of R\mathbb{R} it has no inverse, since w(2)=w(4)=2w(2) = w(4) = 2.
  • Restrict to x≥3x \ge 3. The graph then only rises, and the range is w(x)≥1w(x) \ge 1. So the inverse has domain x≥1x \ge 1 and range y≥3y \ge 3.
    • The restriction x≤3x \le 3 works too, and gives an inverse with range y≤3y \le 3.

8The inverse as a reflection in y=xy = x

If (a,b)(a, b) is on the graph of ff, then f(a)=bf(a) = b, so f−1(b)=af^{-1}(b) = a. The point (b,a)(b, a) is on the graph of f−1f^{-1}.

Swapping the coordinates of every point is the same as reflecting the whole graph in the line y=xy = x. So:

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.

  • Figure 7 does it for the guide's function f(x)=2−xf(x) = \sqrt{2 - x}. Take four points on ff: (−7,3)(-7, 3), (−2,2)(-2, 2), (1,1)(1, 1) and (2,0)(2, 0). Swap each: (3,−7)(3, -7), (2,−2)(2, -2), (1,1)(1, 1) and (0,2)(0, 2). Join them with the reflected shape.
  • The point (1,1)(1, 1) lies on the mirror line, so it stays where it is. The inverse here is f−1(x)=2−x2f^{-1}(x) = 2 - x^{2} for x≥0x \ge 0, a result 2.5 shows you how to find.
Figure 7 · The inverse is the reflection in y = x x y −6 −4 −2 2 −6 −4 −2 2 (−7, 3) (−2, 2) (3, −7) (2, −2) (1, 1) f(x) = √(2 − x) f⁻¹(x) = 2 − x², x ≥ 0 y = x Every point (a, b) on f becomes (b, a) on f⁻¹. The domain of f⁻¹ is the range of f.
Figure 7 · The inverse is the reflection in y = x

The reflection swaps what you read along the x-axis with what you read up the y-axis. So:

  • the domain of f−1f^{-1} is the range of ff, and
  • the range of f−1f^{-1} is the domain of ff.

In Figure 7, the range of ff is f(x)≥0f(x) \ge 0, so the domain of f−1f^{-1} is x≥0x \ge 0. That is where the "x≥0x \ge 0" in f−1(x)=2−x2f^{-1}(x) = 2 - x^{2} comes from. Without it, 2−x22 - x^{2} would be a whole parabola.

The range of f−1f^{-1} is the domain of ff, which is x≤2x \le 2. So the range of f−1f^{-1} is f−1(x)≤2f^{-1}(x) \le 2.

A swap works for end points too. If vv is one-to-one with domain −4≤x≤1-4 \le x \le 1 and range 2≤v(x)≤112 \le v(x) \le 11, then v−1v^{-1} has domain 2≤x≤112 \le x \le 11 and range −4≤v−1(x)≤1-4 \le v^{-1}(x) \le 1. No formula is needed.

To sketch an inverse in the exam:

  • Draw the line y=xy = x lightly.
  • Pick three or four clear points on ff, including any intercepts and end points.
  • Swap their coordinates and join them with the mirror-image shape.

An x-intercept (a,0)(a, 0) on ff becomes a y-intercept (0,a)(0, a) on f−1f^{-1}, and the other way round. If ff has an asymptote y=ky = k, f−1f^{-1} has the asymptote x=kx = k. Keep the same scale on both axes so the two graphs look like mirror images.

  • A worked case. Let s(x)=(x+1)2−4s(x) = (x + 1)^{2} - 4 for x≥−1x \ge -1, one-to-one because the domain starts at the vertex.
    • Points on ss: (−1,−4)(-1, -4), (0,−3)(0, -3), (1,0)(1, 0), (2,5)(2, 5). Swapped, they lie on s−1s^{-1}: (−4,−1)(-4, -1), (−3,0)(-3, 0), (0,1)(0, 1), (5,2)(5, 2).
    • The x-intercept (1,0)(1, 0) has become the y-intercept (0,1)(0, 1), and the y-intercept (0,−3)(0, -3) the x-intercept (−3,0)(-3, 0).
    • The range of ss is s(x)≥−4s(x) \ge -4, so s−1s^{-1} has domain x≥−4x \ge -4 and range y≥−1y \ge -1: the upper half of a sideways parabola.

9HLSelf-inverse functions

This is AHL 2.14, taught in full in that unit. It sits here because it follows straight from the reflection.

Some functions are their own inverse: f−1=ff^{-1} = f, so f(f(x))=xf(f(x)) = x. Their graphs are symmetric about y=xy = x.

  • Every line of gradient −1-1, y=c−xy = c - x, is one.
  • So is every y=kxy = \dfrac{k}{x}, x≠0x \ne 0. Applying it twice gives kk/x=x\dfrac{k}{k/x} = x.

Practice questions

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