Form and interpret composite functions in context, find inverse functions algebraically, restrict a domain so an inverse exists, and solve f(x) = f⁻¹(x) with technology.
Each is in the Maths AI glossary, with every other term in the subject.
The function obtained by applying one function to the output of another; the composite is defined by
With a free account, Augment remembers where you stopped and what you have practiced.
The replacement of a function's domain by a smaller set of inputs, usually chosen so that the function becomes one-to-one and has an inverse.
A diagram that represents a function as a box with an input arrow and an output arrow, showing the rule that turns each input into its output.
The function that maps every input to itself, ; its graph is the line .
A function that is equal to its own inverse, so that and for every in its domain.
Find composite functions , both as values and as expressions.
Interpret a composite function in context, explaining why the order of the two processes matters.
Determine the domain and range of a composite function.
Find the inverse of a function algebraically and state its domain and range.
Show that two functions are inverses by composing them to give the identity function.
Determine a domain restriction that makes a many-to-one function one-to-one, and find the inverse on that domain.
Solve equations of the form using technology.
Interpret an inverse function in context, including situations where a process cannot be exactly undone.
Many real processes happen in stages. A price has tax added and then a discount taken off; a sum of money is converted into another currency and then a fee is charged; a population grows over time and its size decides how much food it needs. Each stage is a function, and the whole process is a single new function made by feeding the output of one stage into the next. Running a process backwards, from the result to the starting value, is the job of an inverse function.
Subtopic 2.2, Functions, domain and range, introduced inverse functions as reflections in the line and found single values such as by solving . The work here adds the algebra: building composite functions, finding a formula for an inverse, and choosing a domain that allows an inverse to exist at all.
A simple way to picture a function is as a machine: a number goes in, the machine applies a rule, and a number comes out. A function with rule takes the input 2 and gives the output 5. Thinking of functions as machines makes it natural to connect two of them, so that the output of the first becomes the input of the second.
The two chains of machines in the figure use the same two functions, and , in opposite orders. Starting from 2, one order gives 11 and the other gives 5.

When is applied first and is applied to the result, the combined function is written and read " composed with " or "
The notation reads from right to left, which surprises many students. In , the function closest to acts on first, in the same way that in
To find a value of a composite, work from the inside out: evaluate the inner function, then put that number into the outer function. To find an expression, replace every in the outer function's rule by the whole expression for the inner function, in brackets.
For most pairs of functions, and are different functions, as the example shows: and
There are special pairs that do commute. Two functions that both multiply by a constant, such as and , give in either order, and two functions that both add a constant commute as well. A function and its inverse always commute, which is the basis of the inverse work later. These cases are exceptions, and in general the order is assumed to change the result unless a calculation shows otherwise.
A function can be composed with itself. The composite applies the same rule twice, so . For
Repeated composition describes processes that repeat a step. If a population model says next year's population is , then the population two years later is given by composing that rule with itself. This is the same idea as a recursive sequence, where each term is a function of the one before. Some textbooks write for
It is often useful to work in reverse and split a complicated function into simpler stages. The function doubles , adds 5 and then takes the square root. One way to write it is
Spotting the inner and outer functions is the skill behind subtopic 2.8, Transformations of graphs, where is applied to followed by adding 3, and behind the chain rule for differentiating composite functions in subtopic 5.9.
A composite only works for an input when two conditions hold: must be in the domain of , so that exists, and the output
The range of is the set of outputs that gives when its inputs are restricted to the values actually produces. This is usually smaller than the full range of . The safest method is to find the expression for the composite, then graph it with the GDC on its domain and read off the least and greatest values, as in subtopic 2.2.
In applied work, a composite function describes a process with stages, and the order of the stages has a meaning that can be checked against the real situation. Each function's input and output should be named with units, so that the output of the inner function is clearly the kind of quantity the outer function expects.
Value added tax (VAT) in the United Kingdom has a standard rate of 20%, in force since 4 January 2011. Suppose a shop sells an item whose price before VAT is pounds and a customer has a voucher worth £10. Two functions describe the two steps.
Applying VAT first and then the voucher gives . Applying the voucher first and then VAT gives
Price before VAT (£) | VAT then voucher, | Voucher then VAT, |
|---|---|---|
50 | 50.00 | 48.00 |
80 | 86.00 | 84.00 |
150 | 170.00 | 168.00 |
Hypothetical shop prices using the UK standard VAT rate of 20%, in force since 4 January 2011 (HM Revenue and Customs).
With a percentage discount instead of a fixed voucher the order stops mattering. A 15% discount is , and
because both steps multiply by a constant and multiplication of numbers can be done in either order. In context, a fixed amount off is worth more once VAT is added to it, whereas a percentage off removes the same fraction of the price whichever step comes first.
A small workshop makes wooden chairs. Its accountant models the cost of making one chair from the cost of materials (in dollars) as , which adds a share of labour and running costs, and sets the selling price at a 25% markup on the production cost, . The selling price as a function of the materials cost is the composite
YouTubeAn inverse function reverses the effect of a function: if takes 3 to 11, then takes 11 back to 3. Subtopic 2.2 showed that an inverse exists only for a one-to-one function, since a many-to-one function would need to send one output back to two different inputs. It also showed that the graph of
Composite functions give a precise way to describe "undoing". Applying and then returns every input unchanged, and so does applying and then . The function that leaves every input unchanged has its own name.
The composite gives for every in the domain of , since the input goes through
To undo a chain of processes, the steps are undone in the reverse order, in the same way that putting on socks and then shoes is undone by removing the shoes first. For functions,
The VAT-then-voucher function is undone by first reversing the voucher (add 10) and then reversing the VAT (divide by 1.2).
A customer who paid £86 had an item priced at before VAT.
A function sends to . Its inverse sends back to , so finding the inverse means solving
The method has four steps.
Write .
Swap and , so that the equation reads .
Rearrange to make
Steps 2 and 3 can be done in either order: making the subject first and swapping at the end gives the same result.
When appears in both the numerator and the denominator, the rearranging needs one extra move: multiply out the fraction, collect every term containing on one side, and factorise out.
An exponential function and a logarithm undo each other: and for
In a model, the inverse function answers the reverse question. If gives the size of a population after hours, then gives the time at which the population reaches a given size. The input and output swap their meanings and their units, and the domain of the inverse is the set of sizes the population actually reaches.
When the inverse keeps the variable names of the context, as in this example, the letters are not swapped: swapping would turn "time" into the name of a population. Swapping and is a convention for abstract functions written in ; in context, the inverse is found by making the input variable the subject.
A many-to-one function has no inverse on its full domain. The function gives the same output for and
The cure is to keep only part of the domain, on which the function is one-to-one. For a quadratic, the graph rises on one side of its vertex and falls on the other, so either side alone passes the horizontal line test.
The natural place to cut is at a turning point, because that is where the graph changes from falling to rising or the other way round. Any interval that contains no turning point in its interior gives a one-to-one function. The largest such interval runs from the turning point to the end of the original domain, and it is the usual choice because it keeps as many inputs as possible.
With restricted to , the inverse is found in the usual way.
The sign reflects the two halves of the parabola. The restriction decides which sign to keep: the outputs of are the inputs of , which are all at least 3, so
Restricting to instead keeps the falling half and gives
The graph shows each point on the kept half of matched by the point on : the vertex
YouTubeSome functions undo themselves: applying them twice returns the original input. The function is the simplest example, since
Since the graph of is the reflection of the graph of in , a self-inverse function has a graph that is symmetrical about the line
The graphs of and are reflections of each other in . Any point where the graph of meets the line
For a decreasing function the graphs can also cross away from the line. The function has inverse
The intersections and are each other's reflections. Solving here gives only
Find an expression for algebraically.
Enter and
Some GDCs can draw an inverse directly (for example the DrawInv command on a TI-84 Plus CE), which is a useful check on an algebraic inverse but does not give an expression to intersect.
In mathematics, every one-to-one function has an exact inverse. Real processes are often not so tidy, because information is lost, rounded or charged for along the way. Currency exchange is a clear case. A bureau de change sells foreign currency at one rate and buys it back at a less generous rate; the difference, called the spread, is how the bureau earns its money.
Suppose a bureau sells euros at €1.12 for each pound and buys them back at €1.22 for each pound (hypothetical rates). The outward exchange is (pounds to euros), and the return exchange is
A traveller who changes £500 into euros and immediately changes them back receives , losing about 8.2% of the money. The composite of the two real exchanges is not the identity function, so the return exchange is not the inverse of the outward one. The gap between and the identity measures the cost of the round trip.
Composite and inverse functions appear on Paper 1 as short questions of 4–7 marks and as parts of longer Paper 2 questions, often together with a model from subtopic 2.5 or 2.9. Typical shapes are: find or a value such as ; interpret a composite in context; find
The markscheme for an inverse gives a mark for swapping and at any stage, a mark for an attempt to make the variable the subject, and the last mark only for an answer in the form . For the domain or range of an inverse, examiners expect the swap: the domain of
Context questions often ask what a composite or an inverse means. A full answer names the input and the output with units, for example " is the selling price in dollars of a chair whose materials cost dollars". A one-word answer such as "price" does not show which function was applied first.
The functions and are defined for
;
A composite function applies one function to the output of another: , with applied first.
In general
I can evaluate by working from the inside out.
I can find expressions for and
28 exam-style questions on this subtopic, written in the style of the IB papers. The first has its markscheme open. Counted on
Ingrid lives in Toronto and is travelling to Zurich via Paris. Her bank converts Canadian dollars (CAD) to euros (EUR) by first deducting a fixed fee of 10 CAD and then converting the remainder at a rate of 1 CAD = 0.66 EUR. The number of euros she receives for CAD is given by .
In Paris she converts euros to Swiss francs (CHF) at a rate of 1 EUR = 0.93 CHF, with no fee. The number of Swiss francs she receives for EUR is given by .
Find .
2 marks
Consider the functions and
Tomás pours a cup of coffee and leaves it on his desk. The temperature of the coffee, in °C, minutes after it is poured is modelled by
If and , then .
(a) Find .
(b) Find expressions for and .
(c) Solve .
(a) The inner function is , so evaluate it first: . Then apply to 11.
(b) For , replace in by
(c) Set the two expressions equal and simplify.
So or . Check with :
(a)
(b)
In each case, ask what is done to first (the inner function ) and what is done last (the outer function ).
(a) First is worked out, then the exponential is applied: and . Check: .
(b) First 2 is added to , then the result is cubed, reciprocated and multiplied by 5: and
Other correct answers exist, for example and
(a) Find an expression for and determine its domain and range.
(b) Find an expression for and state its domain.
(a) Substitute into .
The square root needs , so , which gives
The domain is
On this domain runs from 0 (at the ends) up to 8 (at ), so the square root runs from 0 to
(b) Substitute into .
The simplified expression works for every real , but the composite does not, because must act first and only accepts . The domain is
(a) Find an expression for and interpret it. [2]
(b) Calculate the selling price of a chair whose materials cost $12. [1]
(c) The workshop wants to sell a chair for $40. Find the greatest materials cost it can afford. [2]
(a) The production cost is worked out first, so is the inner function.
The selling price of a chair is $1.75 for every dollar of materials, plus a fixed $7.50.
(b) . The selling price is $28.50.
(c) Solve .
The materials can cost at most $18.57 (to the nearest cent). Part (c) runs the composite backwards, from a selling price to a materials cost, so it evaluates the inverse of at 40.
Compose in both orders and simplify.
Both composites are the identity function, so and are inverses of each other. AG
Write the answer as , and state its domain, which is the range of .
(b) ,
(a) Write and swap and .
So ,
(b) Write and swap and .
So
Check (b) with one value: and
(a) Find . [3]
(b) State the domain of and explain your answer with reference to the graph of . [2]
(a) Write and swap and . (M1)
The terms in are collected on the left and is factorised out. M1
A1
(b) The domain of is (). A1
The domain of is the range of . The graph of has a horizontal asymptote , which it approaches but never reaches, so 3 is the only value that
(b) The function is defined by , . Find and state its range.
(a) Swap and in , then isolate the exponential.
So . Since
(b) Swap and in , then isolate the logarithm.
So . The range of
(b) Hence find the time taken for the culture to reach 10,000 bacteria. [2]
(c) State the domain of in context. [1]
(a) Write and make the subject. Here the letters keep their meanings, so there is no need to swap: stays the number of bacteria and stays the time.
So
(b) , so about 9.99 hours.
(c) The model starts at with 500 bacteria and increases, so the domain of is .
(a) Find the least value of for which has an inverse. [2]
(b) For this value of , write down the domain and range of . [2]
(c) Find . [2]
(a) Graph on the GDC (window , ). The graph has a local maximum at and a local minimum at . (M1)
To the right of the graph rises all the way to , so is one-to-one on . Any domain starting to the left of 3 contains the minimum, and then some outputs (just above 1) occur twice.
So the least value is . A1
(b) On , the outputs run from to
Domain of : . Range of :
(c) is the input with and
The only solution in is , so
A cubic has no simple algebraic inverse, so here the GDC finds the value of the inverse without a formula, as in subtopic 2.2.
The functions and are self-inverse for any constant .
Show that is self-inverse.
Find and compare it with . Write and swap and .
So
An alternative is to show that , which takes more algebra here.
Use the intersection tool for each point where the graphs cross, and check that each lies in the domains of both and .
Write down the equation solved, a sketch of both graphs, and the solutions.
Solve .
Graph and in the window , , with added as a check.
Both functions are increasing, so the graphs meet on . The GDC's intersection tool gives two points.
Both values satisfy , so both are valid. At each one, : the points are about and
(a) Write down the range of . [1]
(b) Find an expression for . [3]
(c) State the domain of . [1]
(d) Solve . [2]
The function is defined by , .
(e) Find an expression for . [2]
(f) Hence find the value of for which . [2]
(a) A1
(b) (interchanging and , seen anywhere) (M1)
, so
(c) A1 (FT from their range in (a))
(d) Sketch of and , or equivalent GDC working (M1)
or A1
(e) Attempt to substitute into (M1)
A1
(f) , so (M1)
(0.846573…) A1
Total [11]
Find for , . [2]
The function is defined by , . Find and state its domain. [3]
The function is defined by , . Find and write down the domain of . [3]
The function is defined for . (a) Find the least value of for which exists. (b) For this value of , find and state its domain. [5]
Show that , , is self-inverse. [3]
An oil spill is circular. Its radius, in metres, hours after a leak starts is , and the area of a circle of radius is . (a) Find and interpret it in context. (b) Calculate the area after 6 hours. (c) Find the time at which the area reaches 200 m². [6]
A bureau sells euros at €1.15 per pound and buys them back at €1.25 per pound (hypothetical rates). A traveller changes £300 into euros, spends €200 and changes the rest back into pounds. Calculate the amount received. Explain, using composite functions, why the bureau's buy-back is not the inverse of its sale. [4]
The function is defined by , . (a) Find . (b) Solve . [5]
The functions , , and , , are given. Find and , stating the domain of each. Comment on whether and are inverses of each other. [5]
, so .
gives , so , domain (the range of ).
gives , so , domain .
(a) has its vertex at , so . (b) , domain .
gives , so and .
(a) , the area of the spill in m² after hours. (b) m². (c) gives , so hours (11.957…).
£300 buys €345; €145 remain; . The sale is and the buy-back ; , so the composite is not the identity function.
(a) , . (b) Graph both on the GDC: or (both in ).
, domain ; , domain . Since for , they are not inverses on these domains; is many-to-one on . Restricting to makes and inverses.
The domain of contains the inputs of whose outputs can accept; it cannot be read from a simplified formula alone.
An inverse undoes a function: , the identity function; the inverse of a composite undoes the steps in reverse order.
To find : write , swap and , make the subject, and write . In context, make the input variable the subject instead of swapping.
The domain of is the range of , and the range of is the domain of .
A many-to-one function has an inverse only after its domain is restricted, usually to one side of a turning point; the restriction decides the sign of any square root.
A self-inverse function satisfies ; its graph is symmetrical about .
To solve , graph both functions on the GDC and find every intersection; for a decreasing function some may lie off .
I can split a function into an inner and an outer function.
I can find the domain and range of a composite function, starting from the inner function's domain.
I can interpret a composite function in context, naming the input, the output and the order of the stages.
I can show that two functions are inverses by composing them in both orders.
I can find the inverse of linear, cubic, rational, exponential and logarithmic functions and write it as .
I can state the domain and range of an inverse function from the range and domain of the original.
I can choose the largest domain on which a function is one-to-one, using a turning point found with the GDC.
I can choose the correct sign of a square root in an inverse on a restricted domain.
I can show that a function is self-inverse.
I can solve with the GDC, including intersections that do not lie on .
I can explain why a real process, such as a currency exchange with a spread, has no exact inverse.
(CHF) A1
Note: Accept or .
[2 marks]
Find an expression for , giving your answer in the form .
2 marks
(M1)
A1
[2 marks]
Ingrid needs 900 CHF for her stay in Zurich. Find the number of Canadian dollars she must convert. Give your answer correct to two decimal places.
2 marks
(M1)
(CAD) A1
Note: Award (M1) for equating their answer to (b) to 900 or for an attempt to find . Follow through from part (b). Do not award the final A1 if the answer is not given to 2 dp.
[2 marks]
Find .
2 marks
Find an expression for . Give your answer in the form .
2 marks
Solve the equation .
3 marks
Write down the temperature of the coffee when it is poured.
1 mark
Find an expression for .
3 marks
Find and interpret your answer in context.
2 marks
State the domain of .
1 mark