H2 Mathematics · JC 1 and 2
H2 Math Functions: Inverse and Composite Functions
By The Singapore Syllabus · Updated · How this guide is checked
Quick answer
A function maps each element of its domain to exactly one value, and its range is the set of outputs. Only a one-one function has an inverse f⁻¹, whose domain is the range of f and whose graph is the reflection of f in the line y = x. The composite fg means g first, then f, and it exists only when the range of g lies inside the domain of f.
- f⁻¹ exists only if f is one-one: every horizontal line meets the graph at most once
- Domain of f⁻¹ = range of f, and range of f⁻¹ = domain of f
- fg exists only if R_g ⊆ D_f, and the domain of fg is the domain of g
- ff⁻¹(x) = x, and the graphs of f and f⁻¹ are reflections in y = x
Functions in H2 Mathematics are rules with a stated domain, and much of the topic is about what that domain allows. You decide whether a function is one-one, find an inverse such as f⁻¹(x) = 3 + √(x + 4) and state its domain, and test whether a composite like fg exists by checking R_g ⊆ D_f. A frequent confusion is between f⁻¹(x), the inverse function, and 1/f(x), the reciprocal.
What does the syllabus expect for Functions?
Where it sits: 9758, Section A: Pure Mathematics, 1 Functions and graphs, 1.1 Functions.
- Understand the concepts of function, domain and range
- Find inverse functions and composite functions
- State the conditions for an inverse function and a composite function to exist
- Restrict the domain of a function to obtain an inverse function
- Relate the graph of a one-one function to the graph of its inverse
Not in this syllabus
Older papers and other books may include these. You will not be examined on them.
- The relation (fg)⁻¹ = g⁻¹f⁻¹. The 9758 syllabus states 'Exclude the use of the relation (fg)⁻¹ = g⁻¹f⁻¹'.
- Restricting a domain so that a composite function exists. 9758 also excludes 'restriction of domain to obtain a composite function'.
How do you find the range of a function?
To find the range of a function, sketch its graph over the given domain and read off every y-value the graph covers. A function f has a domain, the set of allowed inputs, and a rule that gives exactly one output for each input. The range is the set of all outputs. The domain is part of the definition, so f(x) = x², x ∈ ℝ and g(x) = x², x ≥ 0 are different functions. Take care with endpoints and asymptotes when reading the range from the sketch.
For example, f(x) = x² - 4x + 1 for x ∈ ℝ can be written as (x - 2)² - 3, so its range is [-3, ∞). If the domain is restricted to 0 ≤ x ≤ 5, the range becomes [-3, 6], because f(5) = 6 is larger than f(0) = 1. Use interval notation or inequalities, and choose round or square brackets according to whether each endpoint is included.
Three graphs on equal scales. The curve f starts at (0, 1) and rises steeply to (3, 10). The curve f⁻¹ starts at (1, 0) and rises slowly to (10, 3). The dashed line y = x lies between them, and every point (a, b) on f matches a point (b, a) on f⁻¹.
When does a function have an inverse?
A function has an inverse only if it is one-one, meaning each output comes from only one input. Graphically, every horizontal line y = k meets the graph at most once. To show a function is not one-one, give a counterexample, such as f(1) = f(3) = -2 for f(x) = (x - 2)² - 3. To find f⁻¹, let y = f(x), make x the subject, then write the result as f⁻¹(x).
The domain of f⁻¹ is the range of f, and the range of f⁻¹ is the domain of f. For example, if f(x) = (x - 2)² - 3 for x ≥ 2, then y + 3 = (x - 2)², so x = 2 + √(y + 3), taking the positive root because x ≥ 2. Hence f⁻¹(x) = 2 + √(x + 3), with domain x ≥ -3. The graphs of f and f⁻¹ are reflections of each other in the line y = x.
| Function | Domain | Range |
|---|---|---|
| f(x) = x² - 6x + 5, x ≥ 3 | [3, ∞) | [-4, ∞) |
| f⁻¹(x) = 3 + √(x + 4) | [-4, ∞) | [3, ∞) |
| g(x) = e^(x) + 1 | ℝ | (1, ∞) |
| gf(x) = e^(x² - 6x + 5) + 1 | [3, ∞) | [1 + e^(-4), ∞) |
When does a composite function exist?
A composite function fg exists only when the range of g is contained in the domain of f, written R_g ⊆ D_f. The composite fg means apply g first, then f, so fg(x) = f(g(x)). The domain of fg is the domain of g. To find the range of fg, take the range of g as the set of inputs for f and see what f produces, rather than simplifying the formula and guessing.
For example, let f(x) = ln x for x > 0 and g(x) = x² + 1 for x ∈ ℝ. R_g = [1, ∞), which lies inside (0, ∞), so fg exists and fg(x) = ln(x² + 1). Feeding [1, ∞) into ln gives R_fg = [0, ∞). The composite gf(x) = (ln x)² + 1 also exists, because R_f = ℝ = D_g. In general fg and gf are different functions. Also, ff⁻¹(x) = x for every x in the domain of f⁻¹.
| Function | One-one? | Reason |
|---|---|---|
| x², x ∈ ℝ | No | f(1) = f(-1) = 1 |
| x², x ≥ 0 | Yes | Increasing on its whole domain |
| x² + 2, x ∈ ℝ | No | f(1) = f(-1) = 3 |
| (x - 2)² - 3, x ≥ 2 | Yes | The turning point x = 2 is the left end of the domain |
| 2 + 1/(x - 1), x ≠ 1 | Yes | Every horizontal line except y = 2 meets the graph once |
| e^(x) + 1, x ∈ ℝ | Yes | Increasing for all x |
Restricting a domain
Restricting the domain of a function that is not one-one makes it one-one, so an inverse exists, and questions often ask for the largest domain of a given form that does this. For a quadratic, the turning point splits the graph into two one-one halves.
For f(x) = (x - 2)² - 3, the largest domain of the form x ≥ k is x ≥ 2, so k = 2. For f(x) = 2 + 1/(x - 1), x ≠ 1, the graph has a vertical asymptote x = 1 and a horizontal asymptote y = 2.
Every horizontal line except y = 2 meets it exactly once, so it is already one-one, with range y ≠ 2. A good habit is to sketch y = f(x), y = f⁻¹(x) and y = x on the same axes with equal scales so the reflection is clear. For an increasing function, the graphs of f and f⁻¹ meet on the line y = x, so f(x) = f⁻¹(x) can be solved as f(x) = x, but confirm this from your sketch.
The function f is defined by f(x) = x² - 6x + 5 for x ≥ k, and g is defined by g(x) = e^(x) + 1 for x ∈ ℝ. (a) Find the smallest value of k for which f⁻¹ exists. (b) Using this value of k, find f⁻¹(x) and state its domain. (c) Determine whether fg and gf exist, and find the range of any composite that does.
- Complete the square: f(x) = (x - 3)² - 4. The turning point is at x = 3, so f is one-one for x ≥ 3, and the smallest k is 3.
- Let y = (x - 3)² - 4. Then (x - 3)² = y + 4 and x - 3 = √(y + 4), taking the positive root since x ≥ 3.
- So f⁻¹(x) = 3 + √(x + 4). The range of f is [-4, ∞), so the domain of f⁻¹ is x ≥ -4.
- For fg: R_g = (1, ∞) and D_f = [3, ∞). Since (1, ∞) is not a subset of [3, ∞), for example g(0) = 2 is not in D_f, fg does not exist.
- For gf: R_f = [-4, ∞), which lies inside ℝ = D_g, so gf exists and gf(x) = e^(x² - 6x + 5) + 1.
- Range of gf: the inputs to g are [-4, ∞), and g is increasing, so the outputs start at e^(-4) + 1 and increase without bound. So R_gf = [1 + e^(-4), ∞).
Answer: (a) k = 3. (b) f⁻¹(x) = 3 + √(x + 4), for x ≥ -4. (c) fg does not exist, gf exists with range [1 + e^(-4), ∞).
Self-check
Can you do Functions? Four quick questions
Tap an answer to see if it is right and why.
1. f(x) = x² + 4x for x ≥ k. What is the smallest value of k for which f⁻¹ exists?
2. g has range [1, ∞) and f has domain (0, ∞). Does fg exist?
3. If f(x) = 2x - 3, what is f⁻¹(5)?
4. f(x) = e^x for x ∈ ℝ. What are the domain and range of f⁻¹?
Challenge question
Can you solve a harder Functions question?
The function f is defined by f(x) = x² - 2 for x ≥ 0. Find f⁻¹(x) and state its domain. Hence find the exact solution of f(x) = f⁻¹(x), explaining why it is enough to solve f(x) = x.
Hint 1
Let y = x² - 2 and make x the subject. The domain x ≥ 0 decides which square root to take.
Hint 2
The graphs of f and f⁻¹ are reflections in y = x. Since f is increasing, where must they meet?
Hint 3
Solve x² - 2 = x and check each root against the domain x ≥ 0.
Show the full solution
- Let y = x² - 2. Then x² = y + 2 and x = √(y + 2), taking the positive root since x ≥ 0.
- So f⁻¹(x) = √(x + 2). The range of f is [-2, ∞), so the domain of f⁻¹ is x ≥ -2.
- f is increasing for x ≥ 0, so the graphs of f and f⁻¹, which are reflections in y = x, can only meet on the line y = x.
- So solve f(x) = x: x² - 2 = x, which gives x² - x - 2 = 0 and (x - 2)(x + 1) = 0.
- x = -1 is outside the domain x ≥ 0, so x = 2.
- Check: f(2) = 4 - 2 = 2 and f⁻¹(2) = √4 = 2.
Answer: f⁻¹(x) = √(x + 2) for x ≥ -2, and f(x) = f⁻¹(x) has the single solution x = 2.
Which mistakes lose marks in Functions?
Giving the range of fg(x) = ln(x² + 1) as all real numbers.
Why it happens: Looking at the simplified formula instead of the actual inputs, which come only from R_g.
Fix: Find R_g first, here [1, ∞), then feed it into f to get R_fg = [0, ∞).
Writing f⁻¹(x) = 3 ± √(x + 4) for f(x) = (x - 3)² - 4, x ≥ 3.
Why it happens: Forgetting that the restricted domain fixes the sign of the root.
Fix: Match the sign to the domain: x ≥ 3 means x - 3 ≥ 0, so take the positive root.
Stating the domain of f⁻¹(x) = 3 + √(x + 4) from the formula alone.
Why it happens: Assuming the domain is wherever the formula can be evaluated.
Fix: Take the domain of f⁻¹ to be the range of f, found from a sketch of f.
Working out fg(x) as g(f(x)).
Why it happens: Reading fg from left to right as 'f first'.
Fix: Remember fg(x) = f(g(x)): the function written next to x acts first.
Answering 'not one-one' with a sketch and no reason.
Why it happens: Assuming the picture alone is a full explanation.
Fix: Name two inputs with the same output, such as f(1) = f(-1) = 3 for f(x) = x² + 2.
Writing f⁻¹(x) = 1/f(x).
Why it happens: Reading the -1 in f⁻¹ as a power.
Fix: Remember f⁻¹ undoes f: for f(x) = 2x, f⁻¹(x) = x/2, not 1/(2x).
How do you score well on Functions questions?
- Always state domains when giving an inverse or a composite function. A correct formula with a missing domain is an incomplete answer.
- For range questions, sketch the graph over the given domain and mark the endpoint values. Include or exclude each endpoint deliberately.
- In 'does fg exist' questions, write R_g and D_f as actual sets, compare them, then conclude in a sentence.
Practice questions
1. Explain why the function f(x) = x² + 2, x ∈ ℝ, does not have an inverse.
Show answer
f is not one-one. For example, f(1) = f(-1) = 3, so the horizontal line y = 3 meets the graph twice, and only one-one functions have inverses.
2. Given f(x) = (2x + 1)/(x - 3) for x ∈ ℝ, x ≠ 3, find f⁻¹(x) and state its domain.
Show answer
f⁻¹(x) = (3x + 1)/(x - 2), for x ∈ ℝ, x ≠ 2. Let y = (2x + 1)/(x - 3), so xy - 3y = 2x + 1, x(y - 2) = 3y + 1 and x = (3y + 1)/(y - 2). Since f(x) = 2 + 7/(x - 3), the range of f is all real numbers except 2, which is the domain of f⁻¹.
3. The functions f and g are defined by f(x) = ln(x - 1) for x > 1 and g(x) = x² + 2 for x ∈ ℝ. Show that fg exists, find fg(x), and state its range.
Show answer
R_g = [2, ∞), which is a subset of D_f = (1, ∞), so fg exists. fg(x) = ln(x² + 2 - 1) = ln(x² + 1). Feeding [2, ∞) into f gives ln(t - 1) for t ≥ 2, which starts at ln 1 = 0 and increases, so R_fg = [0, ∞).
Questions students and parents ask
What is the difference between f⁻¹(x) and 1/f(x)?
f⁻¹ is the inverse function, which undoes f, so f⁻¹(f(x)) = x. The reciprocal 1/f(x) is one divided by the output. For f(x) = 2x, f⁻¹(x) = x/2 while 1/f(x) = 1/(2x), which are different functions.
Why does the domain matter when defining a function?
The same rule on different domains gives different functions, with different ranges and different answers to whether an inverse exists. The rule x² on all real numbers is not one-one, but on x ≥ 0 it is one-one and has the inverse √x.
How do you find the range of a composite function?
Find the range of the inner function first, then treat it as the set of inputs for the outer function. Sketch the outer function over that set and read off its outputs. For fg(x) = ln(x² + 1), the inner range is [1, ∞), so the range of fg is [0, ∞).
Is fg the same as gf?
Usually not. In fg the function g acts first, while in gf the function f acts first, so the formulas, domains and ranges generally differ. One may exist when the other does not, as in the worked example, where gf exists but fg does not.
How can parents check Functions at home?
- Ask: what is the difference between f⁻¹(x) and 1/f(x)? A secure answer says one undoes f and the other is a reciprocal, with an example.
- Ask them to explain with a graph why x² on all real numbers has no inverse. They should mention a horizontal line meeting the graph twice.
- Ask which function acts first in fg. If they say f, the composite function work needs revisiting.
Free download: MF27 List of Formulae (H2 Math), with what the exam paper gives you.
Builds on E-Math Functions and Graphs.
Related topics
- Sequences and Series. u_(n+1) = ½u_n + 3 applies the function f(x) = ½x + 3 repeatedly.
- Integration Techniques. Standard results such as (1/a) tan⁻¹(x/a) use the inverse tangent function.
- Complex Numbers. The principal argument, -π < θ ≤ π, is a restricted range like a restricted domain.
- Vectors: Lines and Planes. Next: a line r = a + λd turns each value of λ into one point.
- All H2 Mathematics topics
- H2 Math revision notes on one page
Official syllabus
This guide follows the syllabus documents published by the Singapore Examinations and Assessment Board.
First published 16 October 2026. Updated 18 October 2026 with a self-check quiz, a challenge question and notes for parents. Every worked example and practice answer on this page was checked a second time, separately from the writing, before publishing. Spotted an error? Tell us and we will correct it.
Want help with Functions?
Tell us the level and we send a shortlist of H2 Math tutors on WhatsApp within 16 hours. You choose the tutor. About H2 Math tuition
Rated 4.9 on Google · No contract · You choose the tutor from real profiles
“TSS has been the best tuition agency I’ve tried. Alicia matched me with a tutor that really suits my learning style, and the lessons have helped me improve a lot.” Cheryl Ngu, on Google
Request a JC H2 Math tutor




