P1.2.8 - Composite and inverse functions
Functions let us describe a process that takes an input and produces exactly one output. This lesson builds the language Edexcel uses for functions, then shows how to combine functions, reverse them, and understand the graph of an inverse. The main thread is simple: keep track of the direction of the mapping.
Functions as mappings
A function is a mapping from a domain to a range. In this specification, the inputs usually come from \mathbb{R} or from a stated subset of \mathbb{R}, and the outputs are real numbers.
Function, domain, and range
A function assigns each input in its domain to exactly one output. The domain is the set of allowed inputs, and the range is the set of outputs actually produced by the function.
Edexcel uses both function notation and mapping notation. For example,
means that the function f takes an input x and maps it to 2x+3. The same rule can be written as
There are two important types of function in this lesson:
| Type | Meaning | Example idea |
|---|---|---|
| one-one | each output comes from one input only | f(x)=2x+3 |
| many-one | two or more inputs can give the same output | f(x)=x^2, with domain \mathbb{R} |
[DIAGRAM: asset_name: Lesson p1.2.8: Composite functions, inverse functions, and their graphs - diagram 01; asset_slug: p1_2_8_understand_and_use_composite_functions_inverse_functions_and_their_graphs__diagram_01; recommended_method: drawn_math; description: Draw two side-by-side mapping diagrams. Left diagram labelled one-one: inputs 1, 2, 3 each map to distinct outputs 4, 5, 6. Right diagram labelled many-one: inputs -2 and 2 both map to output 4, while input 3 maps to output 9. Use clean arrows with arrowheads and labels domain and range.]

The many-one case is still a valid function because each input has only one output. It is not one-one because an output can be reached in more than one way. That distinction becomes essential when we try to reverse a function.
Worked example: classify this function.
Every real input is allowed, so the domain is \mathbb{R}. Since x^2 \ge 0, the smallest possible value of x^2+1 is 1, so the range is
This function is many-one because, for example,
Two different inputs give the same output.
Composite functions
A composite function is made by doing one function and then another. The order matters.
Composite function
For Edexcel, fg means "do g first, then f". Therefore (fg)(x)=f(g(x)).
This notation is easy to misread. The letters are written as fg, but the action starts with the function nearest to x:
[DIAGRAM: asset_name: Lesson p1.2.8: Composite functions, inverse functions, and their graphs - diagram 02; asset_slug: p1_2_8_understand_and_use_composite_functions_inverse_functions_and_their_graphs__diagram_02; recommended_method: drawn_math; description: Draw a horizontal composition pipeline: input x enters a box labelled g, output g(x) enters a box labelled f, final output f(g(x)) = fg(x). Include a small caption fg means do g first, then f. Use thin arrows with arrowheads and no decorative colour. Also show a small domain check note under the middle arrow: g(x) must be allowed as an input to f.]

Worked example: let
Find fg(x) and gf(x).
For fg(x), do g first:
Now put x^2-1 into the rule for f:
For gf(x), do f first:
Now put 2x+3 into the rule for g:
So fg(x) and gf(x) are different functions. Function composition is not usually commutative.
Composite functions Continued
When domains are restricted, the inner function must produce an output that the outer function can accept. For example, if
then
This composite is defined only when x-4 \ge 0, so its domain is x \ge 4. The domain is not an afterthought; it is part of the function.
Inverse functions
An inverse function reverses a one-one function. If f sends a to b, then f^{-1} sends b back to a.
Inverse function
If f^{-1} exists, then f^{-1}f(x)=x and ff^{-1}(x)=x, with each expression used on the appropriate domain.
The notation f^{-1}(x) means the inverse function of f. It does not mean 1/f(x).
Worked example: find the inverse of
Start by writing y=f(x):
Now rearrange to make x the subject:
Collect the terms involving x on one side:
Factorise:
So
Now swap the letter y back to the usual input letter x for the inverse:
The restriction x\ne 2 for the inverse comes from the denominator of the inverse expression, and also matches the fact that 2 is not in the range of the original function.
Domains, ranges, and graphs of inverses
For inverse functions, domain and range swap roles:
Original function f | Inverse function f^{-1} |
|---|---|
domain of f | range of f^{-1} |
range of f | domain of f^{-1} |
The graph rule is just the coordinate version of the same idea. If (a,b) lies on y=f(x), then (b,a) lies on y=f^{-1}(x). Swapping coordinates reflects the graph in the line y=x.
[DIAGRAM: asset_name: Lesson p1.2.8: Composite functions, inverse functions, and their graphs - diagram 03; asset_slug: p1_2_8_understand_and_use_composite_functions_inverse_functions_and_their_graphs__diagram_03; recommended_method: drawn_math; description: Draw coordinate axes showing y=f(x)=x^2, restricted to x >= 0, and y=f^{-1}(x)=sqrt(x). Include the dashed reflection line y=x. Mark and label the swapped points (2,4) on f and (4,2) on f^{-1}. Show a subtle dashed omitted left branch of y=x^2 labelled not in domain to emphasise the restriction. Use direct labels where possible. No decorative colour.]

Worked example: define
The domain of f is x\ge 0. Since the smallest value of x^2+1 is 1, the range is
To find the inverse, write
Then
Because the original domain is x\ge 0, we must take the positive square root:
Therefore
The domain of f^{-1} is x\ge 1, which is the range of f. The range of f^{-1} is f^{-1}(x)\ge 0, which is the domain of f.
This also explains why the domain restriction mattered. If the original function had been x^2+1 for all real x, the inverse would need to send a value such as 5 back to both 2 and -2, which is not allowed for a function.
Using composites and inverses together
In exam-style questions, composite and inverse notation often appear together. The safest method is to translate the notation into words before doing any algebra.
Worked example: let
Find fg^{-1}(10).
The notation means
So we first need g^{-1}(10). Since
we have
Then
Now apply f:
Therefore
Notice the structure: the inverse is applied first because it is nearest to the input 10, then f is applied.
Explain It Back
Use this as a self-explanation check after the section above. It is for diagnosing what you can already explain, not for learning new material from scratch.
The final habit is to check whether an expression makes sense on its domain. For example, f^{-1}f(x)=x is true for inputs in the domain of f, while ff^{-1}(x)=x is true for inputs in the domain of f^{-1}. The algebraic identity and the domain statement work together.