A feeds one 's output into another: (f∘g)(x)=f(g(x)). In a model it chains quantities, such as time to items to cost. An undoes f, and a parabola gets one once you keep only one side of its vertex.
You'll be able to
Form and evaluate (f∘g)(x)=f(g(x)), applying the functions in the right order.
Build a from two models, interpret it in context, and solve equations it gives with your GDC.
Use (f∘f−1)(x)=(f−1∘f)(x)=x, and find f−1(x) and its .
Restrict the domain of a quadratic so it has an inverse, choose the right sign of the square root, and interpret f−1(a) in context.
Before you start2 quick questions on what this builds on
Check yourself
A stone's height is h(t)=50−4.9t2 metres after t seconds. Find h(2).
Check yourself
A function f has domain 0≤x≤5 and 2≤f(x)≤17, and it has an inverse. What is the domain of f−1?
Think of each function as a machine. Put x into g, then put its output, g(x), into f. The two machines together make one new function: a .
Learn this
(f∘g)(x)=f(g(x))
Read f∘g as “f of g”. The function written next to x acts first. So in f∘g, g acts first even though f is written first.
Worked exampleLet f(x)=2x+5 and g(x)=x2−3, for x∈R. Find (f∘g)(4) and (g∘f)(4).
Try it first, then reveal one step at a time.
(f∘g)(4)=f(g(4)), so start with the inside function: g(4)=42−3=13.
Put this output into f: f(13)=2(13)+5=31.
For the other order, start with f: f(4)=2(4)+5=13.
Then g(13)=132−3=166. So (g∘f)(4)=166: a different number, so the order matters.
(f∘g)(4)=31
Check yourself
Let f(x)=x+4 and g(x)=3x2, for x∈R. Find (g∘f)(x).
In 2.2 you converted temperatures with F=1.8C+32. A composite can chain two conversions into one.
Worked exampleA thermometer reads in kelvin (K). The function g(x)=x−273.15 converts x K to degrees Celsius, and f(x)=1.8x+32 converts x degrees Celsius to degrees Fahrenheit. (a) Find (f∘g)(x). (b) Find (f∘g)(300) and say what it means.
Try it first, then reveal one step at a time.
(a) g acts first: (f∘g)(x)=f(x−273.15)=1.8(x−273.15)+32.
Expand: 1.8x−491.67+32=1.8x−459.67. This one function turns kelvin straight into degrees Fahrenheit.
(b) (f∘g)(300)=1.8(300)−459.67=80.33.
So a temperature of 300 K is 80.33∘F.
The order matters: (g∘f)(x) would treat x as degrees Celsius, then subtract 273.15 from a Fahrenheit value, which means nothing.
(f∘g)(x)=1.8x−459.67
A composite only works where the output of g is an input f accepts. With f(x)=x and g(x)=x−7, (f∘g)(3)=f(−4), which doesn't exist. So g(x) must lie in the of f.
Check yourself
Let f(x)=4x−1 and g(x)=x2+2, for x∈R. Find (g∘f)(−1).
Composite functions in context
In a model, a composite chains quantities. If g turns time into a number of items, and f turns a number of items into a cost, then f∘g turns time straight into cost.
The output of g must be the quantity f expects as its input, in the same units. Swap the two and the composite usually changes, so say which step happens first.
Worked exampleA bureau changes euros into US dollars. c(x)=1.08x gives the dollars received for x euros, and k(x)=x−12 takes off a fee of 12 units of whatever currency it is applied to. (a) Describe (c∘k)(x) and (k∘c)(x) in context. (b) Which is better for the customer, and by how much?
Try it first, then reveal one step at a time.
(a) (c∘k)(x)=c(x−12)=1.08(x−12): a fee of 12 euros is taken first, then the rest is changed into dollars.
(k∘c)(x)=k(1.08x)=1.08x−12: all x euros are changed first, then a fee of 12 dollars is taken.
So k∘c is better: the customer gets 0.96 dollars more, whatever the amount. A fee of 12 euros is worth 12.96 dollars, more than a fee of 12 dollars.
(k∘c)(x)−(c∘k)(x)=0.96
Check yourself
A weather balloon is h(t) metres high t minutes after launch. The air temperature, in degrees Celsius, at a height of h metres is T(h). What does (T∘h)(10) represent?
A composite model can give an equation you can't solve by hand. Write down the equation, then solve it with your GDC.
Worked exampleA car bought for 26000 dollars is worth V(t)=26000(0.82)t dollars after t years. Its yearly insurance costs I(V)=350+0.045V dollars when the car is worth V dollars. (a) Find (I∘V)(t). (b) Use your GDC to find when the insurance falls to 950 dollars. Give your answer to 3 s.f.
Try it first, then reveal one step at a time.
(a) V acts first: (I∘V)(t)=350+0.045×26000(0.82)t=350+1170(0.82)t.
(b) Write down the equation: 350+1170(0.82)t=950.
Graph y=350+1170(0.82)x and y=950, and find where they meet: x=3.3652…
Interpret: the insurance falls to 950 dollars about 3.37 years after the car is bought.
Another route: solve I(V)=950 first, giving V=13333.3…, then solve V(t)=13333.3… Keep the full value of V, not a rounded one.
t≈3.37 years
Check yourself
A circular ripple has radius r(t)=0.6t+0.2 metres, t seconds after a stone lands. Its area is A(r)=πr2. Find the time when the area of the ripple is 10 m2, in seconds. Give your answer to 3 s.f.
Inverse functions: undo, then find
In 2.2 you met the f−1. It undoes f: if f(a)=b, then f−1(b)=a.
So doing f and then f−1 takes every input back to where it started. The same happens in the other order.
Learn this
(f∘f−1)(x)=(f−1∘f)(x)=x
Use this to check an inverse you have found: compose the two and you should get back x.
To find f−1(x), undo f with algebra:
1. Write y=f(x).
2. Swap x and y. This step earns a method mark, so show it.
3. Rearrange to make y the subject, and write the result as f−1(x)=….
4. The domain of f−1 is the of f. Check one value: if f(a)=b, then f−1(b) should be a.
You may rearrange first and swap the letters last instead. Either order gives the same f−1(x).
Worked exampleA taxi fare is F(d)=3.5+2.5d dollars for a trip of d km, where d≥0. (a) Find F−1(x). (b) Find F−1(21.5) and interpret it.
Try it first, then reveal one step at a time.
(a) Write y=3.5+2.5x, using x for the input. Swap x and y: x=3.5+2.5y.
Make y the subject: 2.5y=x−3.5, so y=2.5x−3.5=0.4x−1.4.
Check with the identity: F(F−1(x))=3.5+2.5(0.4x−1.4)=3.5+x−3.5=x.
(b) F−1(21.5)=0.4(21.5)−1.4=7.2.
Interpret: a fare of 21.50 dollars pays for a trip of 7.2 km. F−1 turns a fare back into a distance.
F−1(x)=0.4x−1.4
Check yourself
Let f(x)=4x−9, for x∈R. Which function g gives (f∘g)(x)=x?
Worked exampleAn investment is worth A(t)=2000e0.045t dollars after t years, where t≥0. (a) Find A−1(x). (b) State the domain of A−1. (c) Find A−1(3000) to 3 s.f., and interpret it.
Try it first, then reveal one step at a time.
(a) Swap: x=2000e0.045y. Divide by 2000: e0.045y=2000x.
Take natural logs: 0.045y=ln(2000x), so A−1(x)=0.0451ln(2000x).
(b) For t≥0, A(t) starts at A(0)=2000 and grows without limit. So the range of A is A(t)≥2000, and the domain of A−1 is x≥2000.
(c) A−1(3000)=0.0451ln(1.5)=9.0103…≈9.01.
Interpret: the investment takes about 9.01 years to grow to 3000 dollars.
A−1(x)=0.0451ln(2000x)
Check yourself
A car park charges P(h)=4+3.2h dollars for h hours. Find P−1(20), the number of hours you can park for 20 dollars.
Check yourself
Let f(x)=3+x−18, for x>1. Find f−1(x).
Restricting the domain
In 2.2 you saw that only a has an inverse. A parabola fails: a horizontal line can meet it twice.
Take f(x)=(x−1)2+2. Both x=−1 and x=3 give 6, so f−1(6) would have two answers. On x∈R, f has no inverse.
Fix this by keeping only one side of the vertex. On x≥1 the graph only rises, so every output comes from one input.
Keeping x≥1 makes f(x)=(x−1)2+2 one-to-one. Its inverse is the reflection of that half in y=x.
Either side works, but each side gives a different inverse. With x≤1, the same f would have the inverse 1−x−2 instead of 1+x−2.
1. Find the vertex (complete the square, or use your GDC's minimum or maximum) and keep the side you are given.
2. Swap x and y, and rearrange. A square root gives ±: the restricted domain decides the sign. Say why.
3. The domain of f−1 is the range of the restricted f, and the range of f−1 is the restricted domain.
Worked exampleLet f(x)=(x+1)2−6. (a) Show that f has no inverse when its domain is x∈R. (b) The domain is now restricted to x≤−1. Find f−1(x).
Try it first, then reveal one step at a time.
(a) f(−3)=(−2)2−6=−2 and f(1)=22−6=−2. Two inputs share an output, so f is not one-to-one and has no inverse.
(b) The vertex is (−1,−6), and x≤−1 is its left side, so f only decreases there. Swap: x=(y+1)2−6.
Rearrange: (y+1)2=x+6, so y+1=±x+6.
Choose the sign: the range of f−1 is y≤−1, so y+1≤0. Take the negative root: f−1(x)=−1−x+6.
Its domain is the range of the restricted f: x≥−6. Check: f(−3)=−2, and −1−−2+6=−3.
f−1(x)=−1−x+6
Check yourself
Let f(x)=2x2−12x+7, for x≥k. Find the smallest value of k for which f has an inverse.
Check yourself
Let h(x)=9−(x−1)2, for x≥1. Find h−1(x).
Check yourself
For the same function, h(x)=9−(x−1)2 with x≥1, state the domain of h−1.
In a model, the context often restricts the domain for you. Time, length and speed can't be negative.
Worked exampleA car travelling at v km/h needs d(v)=0.006v2+0.2v metres to stop, where v≥0. (a) Explain why d has an inverse on this domain. (b) Use your GDC to find d−1(50). Give your answer to 3 s.f., and interpret it.
Try it first, then reveal one step at a time.
(a) The vertex of y=0.006v2+0.2v is at v=−2×0.0060.2≈−16.7, outside the domain. So for v≥0, d only increases, and it is one-to-one.
(b) d−1(50) is the speed v with d(v)=50. Write down the equation: 0.006v2+0.2v=50.
Graph y=0.006x2+0.2x and y=50 for x≥0, and find where they meet: x=76.129…
The equation also has a negative solution, x=−109.46…, but it is outside the domain v≥0, so reject it.
Interpret: a car that needs 50 m to stop was travelling at about 76.1 km/h.
d−1(50)≈76.1 km/h
Common mistakes
Composing in the wrong order. In (f∘g)(x) the function next to x acts first, so substitute g(x) into f.
Describing a composite in context without saying which step comes first. Say, for example, “the fee is taken before the money is converted”.
Leaving ± in f−1(x). Use the restricted domain to reject one sign, and show why.
Giving the domain of f−1 from its formula, or with the wrong endpoint. It is the range of f: use ≤ where f reaches the endpoint and < where it doesn't.
Giving a negative time or speed as f−1(a) in a model. Check each solution against the domain and reject the ones outside it.
Exam tips
“Find f−1(x)”: show the line where you swap x and y. It earns a method mark even if the algebra slips later.
“Describe the meaning of (f∘g)(x)” or “interpret”: answer in words about the context, saying which step happens first and naming the quantities with units.
To find f−1(a) without a formula, solve f(x)=a on your GDC. Write down the equation first, then give the value in the domain, to 3 s.f.
Key takeaways
Learn this(f∘g)(x)=f(g(x))
Learn thisIn (f∘g)(x), the function next to x acts first: do g, then f. The output of g must lie in the domain of f.
Learn thisIn context, (f∘g)(x) means “do the step g models, then the step f models”. Swapping the order usually changes the result.
Learn this(f∘f−1)(x)=x for x in the domain of f−1(f−1∘f)(x)=x for x in the domain of f
Learn thisTo find f−1(x) for a one-to-one f: write y=f(x), swap x and y, then make y the subject. The domain of f−1 is the range of f.
Learn thisA function has an inverse only if it is one-to-one. A quadratic becomes one-to-one when its domain is restricted to one side of its vertex (h,k): x≥h or x≤h.
Learn thisWhen rearranging gives ±, the restricted domain of f (the range of f−1) decides the sign.
Practise this
12 past-paper questions on Composite and inverse functions in the AI HL bank, each with a mark scheme and a worked explanation.