Skip to main content
SingaporeMathsSyllabus dot point

How do we combine functions and reverse them, and when does an inverse exist?

Form and find the domain of composite functions, determine when a composite is defined, find inverse functions and their domains, and use the graphical relationship between a function and its inverse

A focused answer to the H2 Mathematics outcome on composite and inverse functions. Forming composites and their domains, the condition for a composite to exist, finding inverses, and the reflection in y equals x.

Generated by Claude Opus 4.810 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to combine functions by composition, decide when a composite is defined and state its domain, find inverse functions and their domains, and use the fact that the graph of f1\mathrm{f}^{-1} is the reflection of the graph of f\mathrm{f} in the line y=xy = x.

The answer

Composite functions

The composite fg\mathrm{fg} means "do g\mathrm{g} first, then f\mathrm{f}": fg(x)=f(g(x))\mathrm{fg}(x) = \mathrm{f}(\mathrm{g}(x)). The order matters, and in general fggf\mathrm{fg} \neq \mathrm{gf}.

The composite fg\mathrm{fg} is defined only if the range of g\mathrm{g} is contained in the domain of f\mathrm{f}, so that every output of g\mathrm{g} is a legal input for f\mathrm{f}. When it exists, the domain of fg\mathrm{fg} is the domain of the inner function g\mathrm{g}.

When the composite fails

If some output of g\mathrm{g} lies outside the domain of f\mathrm{f}, the composite fg\mathrm{fg} is not defined. For example, if f(x)=x\mathrm{f}(x) = \sqrt{x} (domain x0x \geq 0) and g\mathrm{g} produces negative values, then fg\mathrm{fg} cannot be formed for those inputs.

Inverse functions

The inverse f1\mathrm{f}^{-1} undoes f\mathrm{f}: f1(f(x))=x\mathrm{f}^{-1}(\mathrm{f}(x)) = x. An inverse exists only if f\mathrm{f} is one-to-one. To find it:

  1. Write y=f(x)y = \mathrm{f}(x).
  2. Rearrange to make xx the subject.
  3. Swap to get f1(x)\mathrm{f}^{-1}(x).
  4. The domain of f1\mathrm{f}^{-1} is the range of f\mathrm{f}, and the range of f1\mathrm{f}^{-1} is the domain of f\mathrm{f}.

The graphical relationship

The graph of f1\mathrm{f}^{-1} is the reflection of the graph of f\mathrm{f} in the line y=xy = x. A point (a,b)(a, b) on f\mathrm{f} corresponds to (b,a)(b, a) on f1\mathrm{f}^{-1}. Where the graphs of f\mathrm{f} and f1\mathrm{f}^{-1} intersect, they meet on the line y=xy = x (for increasing functions).

Examples in context

Example 1. Checking a composite exists. With f(x)=lnx\mathrm{f}(x) = \ln x (domain x>0x > 0) and g(x)=x2+1\mathrm{g}(x) = x^2 + 1, the range of g\mathrm{g} is [1,)(0,)[1, \infty) \subseteq (0, \infty), so fg(x)=ln(x2+1)\mathrm{fg}(x) = \ln(x^2 + 1) is defined for all real xx. Reversing, gf(x)=(lnx)2+1\mathrm{gf}(x) = (\ln x)^2 + 1 needs x>0x > 0.

Example 2. Inverse of an exponential model. A population P(t)=200e0.1tP(t) = 200 e^{0.1t} is one-to-one, so its inverse t=10ln(P200)t = 10 \ln\left(\dfrac{P}{200}\right) recovers the time from a measured population. The domain of the inverse is P200P \geq 200, matching the range of the original model.

Try this

Q1. Given f(x)=x2\mathrm{f}(x) = x^2 for x0x \geq 0 and g(x)=x4\mathrm{g}(x) = x - 4 for xRx \in \mathbb{R}, find gf(x)\mathrm{gf}(x) and fg(x)\mathrm{fg}(x). [3 marks]

  • Cue. gf(x)=x24\mathrm{gf}(x) = x^2 - 4; fg(x)=(x4)2\mathrm{fg}(x) = (x - 4)^2 but only valid where x40x - 4 \geq 0, that is x4x \geq 4.

Q2. The function f\mathrm{f} is defined by f(x)=32x\mathrm{f}(x) = 3 - 2x for xRx \in \mathbb{R}. Find f1(x)\mathrm{f}^{-1}(x) and verify f1f(x)=x\mathrm{f}^{-1}\mathrm{f}(x) = x. [3 marks]

  • Cue. f1(x)=3x2\mathrm{f}^{-1}(x) = \dfrac{3 - x}{2}; substituting f(x)\mathrm{f}(x) gives 3(32x)2=x\dfrac{3 - (3 - 2x)}{2} = x.

Q3. Explain the geometric relationship between the graphs of f\mathrm{f} and f1\mathrm{f}^{-1}, and state where they can intersect. [2 marks]

  • Cue. f1\mathrm{f}^{-1} is the reflection of f\mathrm{f} in y=xy = x; for increasing functions any intersection lies on y=xy = x.

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original5 marksThe functions f\mathrm{f} and g\mathrm{g} are defined by f(x)=2x+1\mathrm{f}(x) = 2x + 1 for xRx \in \mathbb{R} and g(x)=1x\mathrm{g}(x) = \dfrac{1}{x} for xRx \in \mathbb{R}, x0x \neq 0. Find fg(x)\mathrm{fg}(x), state its domain, and find an expression for f1(x)\mathrm{f}^{-1}(x).
Show worked answer →

fg(x)=f(g(x))=2(1x)+1=2x+1\mathrm{fg}(x) = \mathrm{f}(\mathrm{g}(x)) = 2\left(\dfrac{1}{x}\right) + 1 = \dfrac{2}{x} + 1.

The domain of fg\mathrm{fg} is the domain of g\mathrm{g} (the inner function), namely xRx \in \mathbb{R}, x0x \neq 0, since every output of g\mathrm{g} is a valid input to f\mathrm{f}.

For the inverse of f\mathrm{f}: let y=2x+1y = 2x + 1, so x=y12x = \dfrac{y - 1}{2}. Hence f1(x)=x12\mathrm{f}^{-1}(x) = \dfrac{x - 1}{2} for xRx \in \mathbb{R}.

Markers reward correct composition order (apply g\mathrm{g} first), the domain taken from the inner function, and a correct rearrangement for the inverse.

Original4 marksThe function h\mathrm{h} is defined by h(x)=(x3)2+1\mathrm{h}(x) = (x - 3)^2 + 1 for x3x \geq 3. Find h1(x)\mathrm{h}^{-1}(x) and state its domain.
Show worked answer →

Let y=(x3)2+1y = (x - 3)^2 + 1, so (x3)2=y1(x - 3)^2 = y - 1 and x3=±y1x - 3 = \pm\sqrt{y - 1}.

Because the domain is x3x \geq 3 we have x30x - 3 \geq 0, so we take the positive root: x=3+y1x = 3 + \sqrt{y - 1}.

Hence h1(x)=3+x1\mathrm{h}^{-1}(x) = 3 + \sqrt{x - 1}.

The domain of h1\mathrm{h}^{-1} is the range of h\mathrm{h}. Since h\mathrm{h} has minimum 11 at x=3x = 3 and increases, the range is [1,)[1, \infty), so the domain of h1\mathrm{h}^{-1} is x1x \geq 1.

Markers reward choosing the correct root using the domain, the inverse expression, and the domain of the inverse equal to the range of h\mathrm{h}.

Related dot points