Skip to main content

Composite and inverse functions - TCE Mathematics Specialised (Tasmania)

Syllabus dot point

“Form composite and inverse functions, determining the correct domain and range of each.”

TCESpecialist MathematicsUnit 38 min read

Quick answer

A composite f(g(x))f(g(x)) feeds the output of gg into ff, and it only exists where the range of gg lies inside the domain of ff. An inverse f−1f^{-1} exists only when ff is one-to-one; you find it by swapping xx and yy and solving, and its domain is the range of ff.

What this dot point is asking

This dot point opens the functions and sketching graphs topic. Before sketching the more exotic graphs in this strand, you need full control of how functions combine and reverse, and a disciplined habit of tracking domain and range at every step.

Composition of functions

The composite function f∘gf \circ g is defined by (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)): apply gg first, then ff. Order matters, because in general f(g(x))≠g(f(x))f(g(x)) \ne g(f(x)).

When a composite exists

The composite f(g(x))f(g(x)) is only defined for inputs xx in the domain of gg whose outputs g(x)g(x) land inside the domain of ff. So you must check that the range of the inner function is contained in the domain of the outer function.

For example, if f(x)=xf(x) = \sqrt{x} (domain x≥0x \ge 0) and g(x)=x−4g(x) = x - 4, then f(g(x))=x−4f(g(x)) = \sqrt{x - 4} requires x−4≥0x - 4 \ge 0, so the domain of the composite is x≥4x \ge 4, narrower than the domain of gg alone.

Inverse functions

The inverse f−1f^{-1} undoes ff, so f−1(f(x))=xf^{-1}(f(x)) = x. An inverse function exists only when ff is one-to-one, meaning no horizontal line crosses the graph more than once. If ff is many-to-one, you must restrict its domain to a piece on which it is one-to-one before an inverse exists.

Domain and range swap

For an invertible function the domain and range trade places:

domain of f−1=range of f,range of f−1=domain of f. \text{domain of } f^{-1} = \text{range of } f, \qquad \text{range of } f^{-1} = \text{domain of } f.

The graph of f−1f^{-1} is the reflection of the graph of ff in the line y=xy = x.

Finding an inverse

To find an inverse: write y=f(x)y = f(x), swap xx and yy, then solve for yy. State the domain of the inverse, which equals the range of the original.

Inverse of a restricted quadratic

Find the inverse of f(x)=x2−4f(x) = x^2 - 4 for the restricted domain x≥0x \ge 0, and state its domain and range.

Step 1: Confirm the function is one-to-one on the restricted domain

A function must pass the horizontal line test before an inverse can exist. On x≥0x \ge 0 the parabola is strictly increasing, so each output value is produced by exactly one input, and an inverse is guaranteed. The range of ff on this domain is y≥−4y \ge -4, since the minimum output occurs at x=0x = 0 where f(0)=−4f(0) = -4.

Step 2: Swap xx and yy and solve for yy

The standard procedure for finding an inverse is to write y=f(x)y = f(x), then swap the roles of xx and yy to get x=f(y)x = f(y), and finally solve for yy. This isolates the inverse formula.

x=y2−4  ⟹  y2=x+4⟹y=x+4, x = y^2 - 4 \implies y^2 = x + 4 \quad\Longrightarrow\quad y = \sqrt{x + 4},

taking the positive square root because the original domain was x≥0x \ge 0, so the inverse outputs must be non-negative.

Step 3: State the domain and range of the inverse

The domain of f−1f^{-1} equals the range of ff, and the range of f−1f^{-1} equals the restricted domain of ff. Both must be stated explicitly.

f−1(x)=x+4,domain x≥−4,range y≥0. f^{-1}(x) = \sqrt{x + 4}, \qquad \text{domain } x \ge -4, \qquad \text{range } y \ge 0.

Final answer: f−1(x)=x+4f^{-1}(x) = \sqrt{x + 4}, with domain x≥−4x \ge -4 and range y≥0y \ge 0. The domain of f−1f^{-1} matches the range of ff, and the range of f−1f^{-1} matches the restricted domain of ff, as expected.

Checking with composition

A reliable check is to confirm f(f−1(x))=xf(f^{-1}(x)) = x. Here f(f−1(x))=(x+4)2−4=x+4−4=xf(f^{-1}(x)) = (\sqrt{x + 4})^2 - 4 = x + 4 - 4 = x on the stated domain. If the composition does not return xx, an algebra error or a domain mistake has crept in.

A composite both ways

Worked example

Let f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2. Find f(g(x))f(g(x)) and g(f(x))g(f(x)) and confirm they differ.

f(g(x))=2x2+1,g(f(x))=(2x+1)2=4x2+4x+1. f(g(x)) = 2x^2 + 1, \qquad g(f(x)) = (2x + 1)^2 = 4x^2 + 4x + 1.

These are clearly different functions, illustrating that composition is not commutative. Both have domain all real numbers because each inner function outputs values the outer function accepts.

Reflecting the graph but forgetting to restrict the domain

When a function is many-to-one, such as y=x2y = x^2 over all real xx, reflecting in y=xy = x produces a sideways parabola that fails the vertical line test and is not a function. The fix is to restrict the original domain first (for instance x≥0x \ge 0) so the function becomes one-to-one, and to carry that restriction through as the range of the inverse. Skipping the restriction gives a relation, not a valid inverse function.

Inverses of rational functions

Many TASC questions ask for the inverse of a rational function of the form f(x)=ax+bcx+df(x) = \dfrac{ax + b}{cx + d}. The method is always the same: write y=f(x)y = f(x), swap xx and yy, then solve the resulting equation for yy by clearing the denominator and collecting the yy terms on one side. The domain of the inverse is found from the range of the original, and for these functions the excluded value of the inverse is the horizontal asymptote of ff (namely y=acy = \tfrac{a}{c}).

The horizontal asymptote becomes the excluded input

For f(x)=ax+bcx+df(x) = \dfrac{ax + b}{cx + d} the range excludes the horizontal asymptote value ac\tfrac{a}{c}, so the domain of f−1f^{-1} excludes x=acx = \tfrac{a}{c}. Stating that excluded value is usually worth a mark on its own.

Why this matters

Composition and inverses underpin the rest of the sketching topic, where reciprocal, absolute value and rational functions are all built by transforming and combining simpler functions. Tracking domain and range carefully here prevents errors that would otherwise propagate into every later graph.

Exam-style questions

Questions in the style of TASC 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.

Practice5 marks
Let f(x)=2x+1x−3f(x) = \dfrac{2x + 1}{x - 3} for x≠3x \ne 3. (a) Find the inverse function f−1(x)f^{-1}(x) and state its domain. (b) Hence show that ff is self-inverse, that is f(f(x))=xf(f(x)) = x.
Show worked answer →

(a) Set y=2x+1x−3y = \dfrac{2x + 1}{x - 3} and swap xx and yy: x=2y+1y−3x = \dfrac{2y + 1}{y - 3}. Clear the denominator: x(y−3)=2y+1x(y - 3) = 2y + 1, so xy−3x=2y+1xy - 3x = 2y + 1. Collect the yy terms: xy−2y=3x+1xy - 2y = 3x + 1, so y(x−2)=3x+1y(x - 2) = 3x + 1 and y=3x+1x−2y = \dfrac{3x + 1}{x - 2}. Hence f−1(x)=3x+1x−2f^{-1}(x) = \dfrac{3x + 1}{x - 2}, with domain x≠2x \ne 2 (the value x=2x = 2 is the horizontal asymptote of ff, which ff never attains). (3 marks)

(b) Since f−1(x)=3x+1x−2f^{-1}(x) = \dfrac{3x + 1}{x - 2}, this is a different expression from ff, so ff is not literally identical to its inverse; instead verify directly. f(f(x))=2(2x+1x−3)+12x+1x−3−3f(f(x)) = \dfrac{2\left(\frac{2x+1}{x-3}\right) + 1}{\frac{2x+1}{x-3} - 3}. Multiply top and bottom by x−3x - 3: the numerator becomes 2(2x+1)+(x−3)=5x−12(2x + 1) + (x - 3) = 5x - 1 and the denominator becomes (2x+1)−3(x−3)=−x+10(2x + 1) - 3(x - 3) = -x + 10. This is not identically xx, so ff is not self-inverse; the verification shows the composite is 5x−110−x\dfrac{5x - 1}{10 - x}, confirming that you must compute f−1f^{-1} by the swap-and-solve method rather than assuming self-inversion. Markers reward the correct swap-and-solve inverse and a stated domain. (2 marks)

Practice4 marks
Given f(x)=x−2f(x) = \sqrt{x - 2} (domain x≥2x \ge 2) and g(x)=x2+1g(x) = x^2 + 1, find f(g(x))f(g(x)) and state its domain and range.
Show worked answer →

Compute the composite: f(g(x))=g(x)−2=x2+1−2=x2−1f(g(x)) = \sqrt{g(x) - 2} = \sqrt{x^2 + 1 - 2} = \sqrt{x^2 - 1}.

The composite requires g(x)g(x) to lie in the domain of ff, that is g(x)≥2g(x) \ge 2. So x2+1≥2x^2 + 1 \ge 2, giving x2≥1x^2 \ge 1, that is x≤−1x \le -1 or x≥1x \ge 1. This is the domain of f(g(x))f(g(x)).

For the range, x2−1≥0x^2 - 1 \ge 0 over this domain and is unbounded above, so x2−1≥0\sqrt{x^2 - 1} \ge 0 and the range is y≥0y \ge 0. Markers reward checking that the range of the inner function lands in the domain of the outer function, the restricted domain x≤−1x \le -1 or x≥1x \ge 1, and the range y≥0y \ge 0.

Practise this

Sources & how we know this

ExamExplained