When does a function have an inverse, and how do we form, evaluate and graph composite and inverse functions?
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 focused answer to the HSC Maths Advanced dot point on composite and inverse functions. Composition order and domain, the horizontal line test, finding the inverse by swapping and solving, the reflection in , and restricting domains to invert non-one-to-one functions, with worked examples.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
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.
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 .
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 (2022 HSC Q18).
- "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 (2021 HSC Q19).
- "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 .
Exam-style practice questions
Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
2022 HSC Q184 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.
2021 HSC Q194 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.
