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 $y = x$, and restricting domains to invert non-one-to-one functions, with worked examples.
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 .
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.
- IMATH_52 : restrict to to get . Restricting to gives .
- IMATH_57 : standard restriction is . Inverse is on .
- IMATH_61 : 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.
Worked examples
Composition with domain check
Let (domain ) and . Find and its domain.
.
Domain: need , that is . Domain of is .
Inverse of a linear function
. Swap and solve: , so .
. Both and are decreasing linear functions, and their graphs reflect across .
Inverse of an exponential
has domain and range .
Swap: , so , so .
, with domain (the range of ).
Domain restriction
on is not one-to-one (the parabola has its vertex at and is symmetric about it).
Restrict to : is increasing with range .
Swap: , so (positive root because ), so .
on .
Checking with composition
For and :
. So is correct.
Common traps
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.
In one sentence
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.
Past exam questions, worked
Real questions from past NESA papers on this dot point, with our answer explainer.
2022 HSC Q184 marksLet $f(x) = 2 x - 3$ and $g(x) = x^2$. Find $f(g(x))$, $g(f(x))$, and the inverse function $f^{-1}(x)$.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 $f(x) = x^2$ is not one-to-one on $\mathbb{R}$. State a domain restriction that makes $f$ 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.
Related dot points
- Apply translations, reflections and dilations to the graph of a function and identify the resulting equation
A focused answer to the HSC Maths Advanced dot point on graph transformations. Vertical and horizontal translations, reflections in the axes, vertical and horizontal dilations, the order of combined transformations, and how each affects the equation, with worked examples.
- Sketch graphs of sums, differences, products, quotients, squares and reciprocals of two known functions
A focused answer to the HSC Maths Advanced dot point on combining functions graphically. How to build sketches of $f + g$, $f g$, $f / g$, $1 / f$ and $f^2$ from the graphs of $f$ and $g$, where features come from, and what asymptotes and zeros do, with worked examples.
- Sketch and interpret graphs of exponential and logarithmic functions, including transformations, and use the inverse relationship between them
A focused answer to the HSC Maths Advanced dot point on exponential and logarithmic graphs. Key features of $e^x$ and $\ln x$, their inverse relationship, transformations, asymptotes, and graphs of related forms such as $e^{-x}$ and $\ln(x + a)$, with worked examples.