Composite and Inverse Functions AA SL
A composite function feeds the output of one function into another, and an inverse function undoes what a function does. This page shows how to form and evaluate a composite function in the right order, how to find an inverse by swapping and rearranging, and how to state the domain of an inverse, with worked examples and exam-style questions.
Formulas at a glance
None of the results on this page are in the formula booklet. Composite function notation, the inverse function and the cancelling rule are definitions and properties you are expected to know.
Composite function notation
Not in the bookletInverse cancels the original function
Not in the bookletVisualising an inverse
Graph of = reflection of in
Not in the bookletWorking out the domain of an inverse
Domain of = Range of
Not in the bookletWhich method to use
Work from the inside out for composites, and swap and for inverses.
| The question asks you to | Do this | Watch for |
|---|---|---|
| Find an expression for | Replace every in with the whole expression , then simplify | is usually not the same as |
| Evaluate for a number | Find first, then apply to that value | The function written next to acts first |
| State the domain of | Start with the domain of , then remove any for which is not allowed in | For example, needs |
| Solve | Build the composite first, then solve the equation | Check each solution is in the domain |
| Find | Write , swap and , then make the subject | The domain of is the range of |
| Find , or solve | Solving gives , so use whichever is quicker | When the formula for is simple, solve the equation directly |
| Decide whether an inverse exists | Check that is one-to-one: every output comes from one input only | Restrict the domain if it is not, for example with |
| Check an inverse | Show that | The graph of is the reflection of the graph of in |
| Write down the domain or range of | Swap the two: domain of is the range of , and range of is the domain of | Read the range of from its restricted domain |
Section 1 of 2 SL2.5
Composite functions
A composite function applies one function to the output of another: means apply first, then . To find it, substitute the whole expression for into wherever appears, then simplify. The order matters, because and are usually different.
Composite function notation
This is a definition rather than a formula-booklet entry, so it's worth being fluent with the notation itself.
Work from the inside out
Evaluate (or substitute for) the innermost function first, then carry that result outward one layer at a time.
This applies just as well when three or more functions are chained together, e.g. .
Key terms
What is the inner function?
In , is the inner function because it acts on first. Its output becomes the input of the outer function .
e.g. If and , then , with applied first.
How do you find a composite function algebraically?
Write the outer function with brackets where is, then put the whole inner function inside the brackets and simplify.
e.g. For and , .
How do you evaluate a composite function at a number?
Work from the inside out: evaluate the inner function at the number, then evaluate the outer function at that result.
e.g. With and : , then , so .
What is the identity function?
The identity function leaves every input unchanged, so its output is just . A function composed with its inverse gives this result.
e.g. If and , then .
Worked example, step by step
The question No calculator needed [4 marks]
Let and .
(a) Find an expression for , giving your answer in the form .
(b) Solve .
Worked solution: worked example
Answer: (a) . (b) or .
Step 1 - Read the order.
. The function acts first and its output goes into , so is the inner function.
Why? The function nearest to is applied first. Writing out in full before you substitute stops the two functions being swapped, which is the most common slip on this topic.
Step 2 - Substitute the inner function.
In , replace every with : M1 - Substitute into :
Why? Every in the outer function is replaced by the whole expression for the inner function, so keep that expression in brackets. Without the brackets, only the would be squared.
Step 3 - Expand and simplify.
A1 -
Why? The question asks for the form , so multiply out the bracket and collect the constants. Remember the middle term of is .
Step 4 - Set the composite equal to 10.
M1 - Set the composite equal to and rearrange to a quadratic equation
Why? Now that the composite is a single expression in , solving is an ordinary quadratic equation. Move everything to one side and divide by the common factor to make it easier to factorise.
Step 5 - Solve.
A1 - and
Why? Both solutions are valid, because and are defined for every real number.
Step 6 - Check.
For : and . For : and . Both give .
Why? Substituting a solution into and then into uses the original functions, so it also catches an error in the composite itself.
M1 Substitute into :
A1
M1 Set the composite equal to and rearrange to a quadratic equation
A1 and
Now you try: enter your answers to be marked
These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.
Find;
Worked solution: practice question 1
Worked solution: practice question 2
Solve .
Worked solution: practice question 3
Your score so far: 0 out of 12 marks
Calculator steps: Evaluate a function at a point
Common mistakes
- Evaluating a composite function in the wrong order. in general - work out the inner function first, and check carefully which letter is written first.
- Reading as . The small circle is composition, not multiplication - there's no product of and happening here at all.
- Skipping a layer in a triple composite. With something like , substituting two functions in at once instead of working strictly inside-out is a common source of algebra slips.
Inverse functions
The inverse function reverses , so that . To find it, write , swap and , and rearrange to make the subject. Only a one-to-one function has an inverse, and the graph of is the reflection of the graph of in the line .
How inverses behave
None of these are formula-booklet entries - they're properties you're expected to know and use directly.
Domain of an inverse
Not in the booklet - prior knowledge. Input and output swap roles when you invert, so their domains and ranges swap too.
Key terms
What is a one-to-one function?
A one-to-one function gives a different output for every different input, so each output comes from exactly one input. Only such a function has an inverse.
e.g. is one-to-one, but is not, because .
How do you check that an inverse is correct?
Compose it with the original function. If , the inverse is correct.
e.g. For and : .
How are the graphs of and related?
They are reflections of each other in the line . If is on the graph of , then is on the graph of .
e.g. If the graph of passes through , then the graph of passes through .
How do you restrict a domain so that an inverse exists?
For a function that is not one-to-one, restrict the domain to a part where it is, such as one side of the vertex of a parabola. The inverse then exists on that restricted domain.
e.g. is not one-to-one, but restricting to gives the inverse .
Worked example, step by step
The question No calculator needed [5 marks]
Let , for , .
(a) Find .
(b) Write down the domain of .
(c) Solve .
Worked solution: worked example
Answer: (a) . (b) , . (c) .
Step 1 - Make x the subject.
Write . Then M1 - Write and make the subject
Why? An inverse undoes , so you solve for the input in terms of the output . Subtract first so that the fraction is on its own, then take the reciprocal of both sides.
Step 2 - Swap x and y.
Replace by to write the inverse as a function of : A1 -
Why? The input of a function is always written as , so after rearranging you rename the variable. This is the step that is easy to forget.
Step 3 - Find the domain from the range of f.
The fraction is never zero, so never equals . The range of is all real numbers except , so the domain of is . A1 - Domain
Why? The domain of is the range of , because the outputs of become the inputs of . It also matches the formula: is undefined when .
Step 4 - Use the inverse to solve f(x) = 6.
If then . So M1 - Use A1 -
Why? Solving is the same as finding , because the inverse takes an output of back to its input. Here that avoids having to solve the equation from scratch, since you already have .
Step 5 - Check.
, which is the value in the question. Also , so is in the domain of .
Why? Putting the answer back into confirms both the inverse and the arithmetic.
M1 Write and make the subject
A1
A1 Domain
M1 Use
A1
Now you try: enter your answers to be marked
Worked solution: practice question 1
Find .
Worked solution: practice question 2
Worked solution: practice question 3
Your score so far: 0 out of 12 marks
Calculator steps: Evaluate a function at a point, Enter a function and draw its graph
Common mistakes
- Confusing with . The here means "inverse function", not "reciprocal" - these are almost always different expressions.
- Assuming every function has an inverse. An inverse function only exists for a one-to-one function - if two inputs share an output, the domain needs restricting first.
- Swapping and inconsistently. When finding an inverse, every must become and every must become at the same step - missing one leads to an equation that won't rearrange cleanly.
Using your GDC
The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.
Evaluate a function at a point
Used in: Composite functions, Inverse functions
How to evaluate a function at a point on a TI-84 Plus CE
Call the function from the home screen | |
Press Y= and type the function into Y1: X,T,θ,n ^ 3 − 2 X,T,θ,n + 1. |
Y1=X^3-2X+1 |
Press 2nd mode (QUIT) to return to the home screen. Press vars, then ▶ to open the Y-VARS menu, choose 1:Function and then 1:Y1. Use this menu rather than typing the letter Y and the number 1. |
|
Type the x-value in brackets, ( 2 . 5 ), and press enter. , which is to 3 significant figures. |
Y1(2.5) 11.625 |
Another way: the table | |
Press 2nd window (TBLSET) and set Indpnt to Ask, then press 2nd graph (TABLE). The table is empty. Type 2 . 5 and press enter: the Y1 column fills in. |
X | Y1 2.5 | 11.625 |
Another way: trace the graph | |
Press graph to draw the graph, then trace. Type 2 . 5 (an X= prompt appears) and press enter. The cursor jumps to that x-value and the bottom of the screen shows the point. |
X=2.5 Y=11.625 |
Y1( from the Y-VARS menu is the exact route: the answer is the function's value, not a cursor position. Use the table when you want several values.
The full guide: Evaluate a function at a point
Enter a function and draw its graph
Used in: Inverse functions
How to enter a function and draw its graph on a TI-84 Plus CE
Enter the function in Y= and draw it | |
Press Y=. If there are old functions, move to each one with ▲ or ▼ and press clear to erase it. A function is only drawn while the = sign beside it is highlighted. |
Plot1 Plot2 Plot3 \Y1= \Y2= \Y3= |
With the cursor next to Y1=, type X,T,θ,n x² − 4 X,T,θ,n + 3. The calculator uses X,T,θ,n for . |
Plot1 Plot2 Plot3 \Y1=X²-4X+3 \Y2= \Y3= |
Press window and set Xmin = −2, Xmax = 6, Ymin = −2, Ymax = 8, leaving Xscl and Yscl as 1. For a negative number use the (−) key, not the subtraction key. |
WINDOW Xmin=-2 Xmax=6 Xscl=1 Ymin=-2 Ymax=8 Yscl=1 |
Press graph. The curve is an upward-opening parabola. It meets the -axis at . |
|
Draw more than one function, or hide one | |
Type the next function next to Y2= (press ▼ to reach it) and press graph again: every function whose = sign is highlighted is drawn. To keep a function but not draw it, move onto its = sign with ◀ and press enter, so the highlight disappears. Press enter again to turn it back on. |
|
If the graph is blank or cut off | |
Press zoom and choose 6:ZStandard to draw with the standard window, or choose 0:ZoomFit, which keeps your Xmin and Xmax and sets Ymin and Ymax so the whole curve fits. Choosing a window by hand is in set a good viewing window. For a graph that contains sin, cos or tan, check the angle mode first: press mode and see switching between degrees and radians. |
|
If the graph does not appear, the cause is usually the window, not the function. Look at the window values before you retype anything.
The full guide: Enter a function and draw its graph
See the full list of GDC guides for every calculator task.
Syllabus content covered
| Code | Syllabus content |
|---|---|
| SL2.2 | Informal concept that an inverse function reverses or undoes the effect of a function. Inverse function as a reflection in the line , and the notation . Students should be aware that inverse functions exist for one-to-one functions; the domain of is equal to the range of . Example: solving is equivalent to finding . |
| SL2.5 | Composite functions, . Identity function. Finding the inverse function , including . The existence of an inverse for one-to-one functions. |
Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).
Quick questions
What does f composed with g mean?
means - substitute into first, then take that result and substitute it into . It is generally not the same as .
How do you find the inverse of a function?
Write , swap and , then rearrange to make the subject again - the result is .
Does the order of composition matter?
Yes. and usually give different expressions, because the inner function is applied first and changes what gets fed into the outer function.
Does every function have an inverse?
No - only a one-to-one function has an inverse. If two different inputs give the same output, the domain needs restricting before an inverse can exist.
How do I find when equals a given number?
First find the expression for , then set it equal to the number and solve. For and , gives , so .
How do I find without finding the whole inverse?
Solve for . For , gives , so .
Is the same as ?
No. The product multiplies two outputs, whereas the composite feeds one output into the other function. For and the product is , but .
How do I find the inverse of a function that contains an exponential?
Swap and rearrange, using the logarithm to undo the exponential. For : , so and .
Can I compose a function with itself?
Yes, . For , .
Can a function be its own inverse?
Yes. For , swapping gives , so and . Its graph is symmetric about the line .
Ready to practise properly?
Practice questions on every section, marked instantly like the real exam.