Composite and inverse functions: existence, formulas, domains and graphs
“Form composite functions, determine when a function has an inverse, find and graph the inverse, and use restriction of domain to invert non-one-to-one functions”
A function has an inverse precisely when it is one-to-one; the inverse is found by swapping and then solving, its graph is the reflection of in , and non-one-to-one functions must first have their domain restricted before an inverse exists.
What this dot point is asking
NESA wants you to form composite functions and , determine when a function has an inverse using the horizontal line test or one-to-one criterion, find the inverse algebraically, sketch it as the reflection in , and restrict the domain of a non-one-to-one function so an inverse exists.
A composite function is like a two-machine assembly line: whatever comes out of the first machine gets fed straight into the second, so the order you bolt the machines together changes what you get at the end. An inverse function is the "undo" button: if one machine turns a temperature in Celsius into Fahrenheit, the inverse turns Fahrenheit back into Celsius. The catch is that you can only undo a machine cleanly if every output came from just one input, the way a good vending machine gives a different snack for every button. When a machine reuses an output (like squaring, where and both give ) you first have to agree to use only half of it, otherwise the undo button would not know which answer to return.
The answer
Composite functions
The composite is the function : apply first, then to the result.
Domain: must be in the domain of , and must be in the domain of . In other words, the natural domain of is
Composition is not commutative: usually .
Composition is associative: .
When does an inverse exist
A function has an inverse (on its given domain) if and only if it is one-to-one: every value of in the range comes from exactly one .
Equivalent test (the horizontal line test): every horizontal line meets the graph at most once. Strictly increasing or strictly decreasing functions are automatically one-to-one. Many "natural" functions like , , , and are not one-to-one on their natural domain and need their domain restricted.
Finding an inverse algebraically
The inverse "undoes" : for and for .
To find from :
- Swap and .
- Solve for in terms of .
- State the domain of , which is the range of .
The inverse graph
The graph of is the reflection of the graph of in the line . Point on corresponds to on . Horizontal asymptotes of become vertical asymptotes of and vice versa.
If is increasing, so is . If is decreasing, so is .
The graph of is the mirror image of the graph of in the line : every point on becomes on . Because the coordinates swap, the domain and range swap, intercepts swap axes (an -intercept becomes a -intercept), and horizontal asymptotes become vertical ones. Wherever the two graphs meet, they meet on the line (a point with is its own mirror image), which is why you can find a self-inverse intersection by solving .
See the inverse appear as a reflection, stage by stage
Take (whose inverse is , found below). The four panels build the inverse purely by reflecting in , with no algebra, so you can see why swapping coordinates is the same as mirroring.
Stage 1, draw the function and the mirror line. Plot and the dashed line . The line is the mirror; every point will be flipped across it. Mark the -intercept to track later.
Stage 2, reflect a single point. Take a point on , say . Reflecting in swaps its coordinates to give . The connector between them crosses at right angles, which is exactly what "reflection in " means.
Stage 3, reflect the whole graph. Reflect every point of in the same way and the images trace out a new straight line: . The original is now muted; its mirror image is the inverse, in accent. Because is increasing, so is its inverse.
Stage 4, read off the swapped intercepts. The reflection swaps the axes, so the -intercept of at becomes the -intercept of at . This is the graphical face of "domain and range swap" and is a quick way to sketch an inverse without finding its equation.
Restricting the domain
For a non-one-to-one function , choose a domain on which is one-to-one, then invert. Different restrictions give different inverses.
- : restrict to to get . Restricting to gives .
- : standard restriction is . Inverse is on .
- : standard restriction is . Inverse is on .
Operations and inverses
The inverse of a composition reverses the order:
provided both inverses exist on appropriate domains. Think of putting on socks then shoes: to undo, take off shoes then socks.
How exam questions ask about composite and inverse functions
These dot points are examined with a small set of recurring instructions. Translate each one to the method:
- "Find and ." Substitute the inner function into the outer one, both ways, and simplify. They usually differ, so compute both; do not assume symmetry.
- "State the domain of ." Two conditions: in the domain of , and in the domain of . The binding one is whichever restricts more.
- "Find " or "find the inverse function." Swap and , solve for , and state the domain of (which is the range of ).
- "Does have an inverse?" or "is one-to-one?" Apply the horizontal line test, or argue is strictly increasing/decreasing. If it fails, the answer is no on that domain.
- "State a restriction so that has an inverse, then find it." Pick an interval on which is monotonic (for , take or ), then invert; the restriction decides the sign of the square root.
- "Sketch and on the same axes." Draw , draw dashed, and reflect; mark that intercepts and asymptotes swap axes. You do not need the inverse's equation to draw it.
- "Show that " or "verify the inverse." Compute (and/or ) and show it simplifies to .
- "Where do and meet?" For an increasing , intersections lie on , so solve .
Six examples covering composition with a domain check, finding inverses of linear and exponential functions, restricting domains, verifying an inverse by composition, and inverting a real Australian conversion formula.
Form a composition and find its domain
Let (domain ) and . Apply first, then : this means substituting into .
The domain requires two conditions: must be in the domain of (all of ) and must be in the domain of (that is, ). The binding constraint is , giving .
Domain of : .
Find the inverse of a linear function
For , use the swap-and-solve method. Write , swap and to get , then solve for :
Both and are decreasing linear functions, and their graphs are reflections of each other in the line .
Find the inverse of an exponential function
For , the domain is and the range is (since always, so always). The inverse will therefore have domain .
Swap and : . Solve for by isolating the exponential, then taking the natural log:
Restrict the domain to create an invertible function
The function on all of is not one-to-one: for example, . A horizontal line at hits the graph twice.
Restrict to : on this half of the parabola, is strictly increasing with range , so it passes the horizontal line test.
Now swap and solve: with , so (the positive square root, because the restriction forces ).
Verify by composition
To check that is the correct inverse of , compute and confirm it equals :
Invert an Australian conversion formula
A driver wants the reverse of the speed-conversion rule that turns kilometres per hour into metres per second. The forward rule is (a km/h freeway speed becomes m/s). Find , which converts metres per second back to kilometres per hour.
Write , swap the variables to get , and solve:
So . Check it against the school-zone limit: km/h forward gives m/s, and the inverse returns km/h. The inverse of "multiply by " is "multiply by ", as expected for a linear scaling.
Final answers: domain of is ; for ; for ; on for the restricted parabola; for the km/h to m/s rule.
- Composing in the wrong order
- applies first; applies first. These give different functions in general.
- Confusing the inverse with the reciprocal
- means the inverse function, not . For example, if , then , not .
- Forgetting to restrict
- Writing as "the inverse of " without specifying misses half the picture: the original function must be made one-to-one first.
- Wrong domain for the inverse
- The domain of equals the range of . For with range , the inverse has domain .
- Mixing up which side gets the
- When solving for , the choice of or is determined by the restricted domain of , not arbitrary.
The marks here come from order, domains, and the reflection. To collect them:
- For composition, write the substitution explicitly. Show before simplifying, so a marker sees you applied the inner function first.
- Always state the domain (and range) when asked for an inverse. "Find the inverse" almost always carries a mark for the domain of , which is the range of . Leaving it off is a common one-mark loss.
- Justify one-to-one, do not just assert it. Say "strictly increasing, so one-to-one" or "the horizontal line meets the graph twice, so not one-to-one". A bare yes/no rarely earns the reasoning mark.
- Use the reflection to sketch fast. With drawn, reflect a couple of key points (intercepts, an endpoint) rather than tabulating the inverse; mark that domain and range swap.
- Keep and separate. is the inverse function; is the reciprocal. They are almost never equal.
- Let the restriction fix the sign. When you invert a restricted parabola, the restriction (, say) tells you to take rather than ; state which and why.
Exam-style questions
Questions in the style of NESA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
HSC-style4 marksLet and . Find , , and the inverse function .Show worked answer →
Composition is "outside applied to inside".
.
.
To invert , swap and and solve: .
.
Markers reward correct composition in both orders (they differ), the swap-and-solve method for the inverse, and a tidy final expression.
HSC-style4 marksThe function is not one-to-one on . State a domain restriction that makes one-to-one, find the inverse on that restricted domain, and state the domain and range of the inverse.Show worked answer →
Restrict to . On this domain, is increasing and one-to-one, with range .
Inverse: swap and in to get with , so .
on domain with range .
Markers expect a domain choice that yields a one-to-one function, a correct inverse derived by swap-and-solve with the right sign, and a domain and range that match.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksLet and . Find and .Show worked solution →
Substitute the inner function into the outer one, both ways. For , feed into :
For , feed into :
Marker's note: one mark for , one mark for correctly expanded. Writing the same answer for both (assuming composition is commutative) loses a mark.
foundation3 marksFind the inverse function of , then verify your answer by showing that .Show worked solution →
Swap and , then solve. Write and swap the variables:
So .
Verify by composition. Substitute into :
Marker's note: one mark for the swap-and-solve method, one for , one for the verification simplifying to . A verification that stops before the final does not earn the last mark.
core3 marksLet with domain and . Find and state its natural domain.Show worked solution →
Substitute into .
Apply both domain conditions. First must be in the domain of , which is all of . Second, must be in the domain of , so :
The natural domain of is .
Marker's note: one mark for , one for setting up , one for the domain or . Reading the domain straight off (giving the same answer here by luck) misses the required reasoning and is penalised when the two disagree.
core4 marksThe function has domain all real numbers. (a) State the range of . (b) Find and state its domain.Show worked solution →
Part (a): find the range. Since for every real , we have . As , , and as , from above. So the range is .
Part (b): invert by swap-and-solve. Write and swap:
Take natural logs and solve for :
So . Its domain is the range of , namely .
Marker's note: one mark for the range in (a); one for isolating , one for , one for the domain in (b). Forgetting the factor of (writing ) is the common slip.
core3 marksA graph shows two curves drawn on the same axes together with the dashed line . The first curve is an increasing exponential-shaped curve passing through the points and with the -axis as a horizontal asymptote. The second curve passes through and with the -axis as a vertical asymptote. Explain, using two specific features read from the graph, why the second curve is the inverse of the first.Show worked solution →
Feature 1: the points are reflected in . The first curve passes through and . Reflecting each point in swaps its coordinates, giving and , which are exactly the two points the second curve passes through. Every point on the first curve corresponds to on the second.
Feature 2: the asymptote swaps axes. The first curve has the -axis (a horizontal asymptote); under reflection in a horizontal asymptote becomes a vertical one, and indeed the second curve has the -axis as its asymptote. This is the graphical signature of domain and range swapping.
Because the two curves are mirror images in (matching swapped points and swapped asymptotes), the second is the inverse of the first.
Marker's note: one mark for identifying the swapped points and , one for the horizontal-to-vertical asymptote swap, one for the conclusion tying both to reflection in . A vague "they look symmetrical" without naming specific swapped features caps the answer at one mark.
exam5 marksLet for . (a) Show that is its own inverse, that is . (b) Hence, or otherwise, find the exact coordinates of any point where the graph of meets the line .Show worked solution →
Part (a): compute . The outer rule is ; here the input is . Build the numerator and denominator separately, clearing the inner fraction by writing each over .
Numerator :
Denominator :
Divide; the common factor cancels:
Since , the function undoes itself, so .
Part (b): meet the line . Because is its own inverse, its graph is symmetric in , and any intersection with that line solves :
Solve with the quadratic formula:
Both values satisfy , so the graph meets at and .
Marker's note: two marks for correctly building and simplifying to (writing each of and over is the key step), one for stating ; one for reducing to , one for both exact points . Leaving the intersection as a decimal without the exact surd form is penalised.
exam4 marksThe function is defined on the restricted domain . (a) Explain why this restriction makes one-to-one. (b) Find and state its domain.Show worked solution →
Part (a): show one-to-one on . Complete the square:
The vertex is at . For the factor is strictly increasing, so is strictly increasing on this domain. A strictly increasing function passes the horizontal line test, so it is one-to-one and an inverse exists.
Part (b): invert on the restricted branch. From , swap and :
Take the square root. Because the restriction forces on the inverse (the range endpoint carries over), choose the positive root:
So . The domain of is the range of ; since the minimum value of on is , the range is , so the domain of is .
Marker's note: one mark for completing the square and arguing strictly increasing (hence one-to-one) in (a); one for reaching , one for choosing with a reason and writing , one for the domain in (b). Taking (which suits the branch instead) is the classic sign error.