Skip to content
MathsMaths
Start learning

Maths · Lesson 2.4

Functions, Composition & Inverses

One-one, onto and bijective functions, composite functions and inverse functions.

Core syllabus1 linked experiment
01

Learning objectives

By the end of this lesson, you should be able to:

  • Classify functions as one-one, onto or bijective.
  • Form composite functions and state their domains.
  • Find the inverse of a bijective function.
  • Verify f(f−1(x)) = x.
02

Lesson

Functions can be classified by how they pair inputs with outputs. A one-one function never repeats an output. An onto function uses every element of its codomain. A function that is both is called bijective, and only bijective functions have inverses.

Composition builds a new function by feeding the output of one function into another. Inverses undo a function. These two operations are the grammar of function algebra.

A function machine illustrating how an input is transformed into an output.
Composition chains two function machines

One-one, onto and bijective

A function f : A → B is one-one (injective) if f(x1) = f(x2) implies x1 = x2. It is onto (surjective) if every element of B is the image of at least one element of A. It is bijective if it is both one-one and onto.

For finite sets, a one-one function from A to B requires |A| ≤ |B|, and an onto function requires |A| ≥ |B|. A bijection therefore requires |A| = |B|. On a graph, a one-one function passes the horizontal line test.

Composition and inverses

The composite (f ∘ g)(x) = f(g(x)) is defined when the range of g lies inside the domain of f. Composition is not commutative in general: f(g(x)) and g(f(x)) are usually different.

If f is bijective, its inverse f-1 reverses the pairing: f-1(y) = x exactly when f(x) = y. To find an inverse, write y = f(x), solve for x in terms of y, and then swap the names. Always check that f(f-1(x)) = x and f-1(f(x)) = x.

03

Worked example

Let f(x) = 2x + 3 and g(x) = x2. Find f(g(2)), g(f(2)) and f-1(x).

g(2) = 22 = 4, so f(g(2)) = f(4) = 2(4) + 3 = 11.

f(2) = 2(2) + 3 = 7, so g(f(2)) = g(7) = 49.

To invert f, write y = 2x + 3, so 2x = y - 3 and x = (y - 3)/2.

Therefore f-1(x) = (x - 3)/2. Check: f(f-1(x)) = 2((x - 3)/2) + 3 = x.

04

Equations

Composition(f ∘ g)(x) = f(g(x))
Inversef−1(y) = x ⇔ f(x) = y
Inverse checkf(f−1(x)) = f−1(f(x)) = x
05

Key points

  • One-one means no two inputs share an output.
  • Onto means every element of the codomain is reached.
  • Bijective functions are exactly the functions that have inverses.
  • Composition is read right to left: f(g(x)) applies g first.
06

Common misconceptions

Common mistake

f-1(x) means 1/f(x).

Correct understanding

The superscript -1 denotes the inverse function, not a reciprocal. For f(x) = 2x, f-1(x) = x/2, while 1/f(x) = 1/(2x).

07

Check your understanding

1. If f(x) = 3x - 1, what is f-1(x)?

2. If f(x) = x2 on the set of real numbers, why does f not have an inverse?

08

Frequently asked questions

When is a composite function defined?

f(g(x)) is defined when x is in the domain of g and g(x) is in the domain of f.

How do you restrict the domain to make a function invertible?

Choose a domain on which the function is one-one, such as x ≥ 0 for f(x) = x2.

NERDLYY · FEEDBACK

Help shape Nerdlyy

Your feedback goes directly to the team. We read every submission.

No reply needed — you can send feedback without sharing contact details.