Skip to main content
EnglandMathsSyllabus dot point

How do you work with functions as mappings, compose and invert them, and handle the modulus function in graphs and equations?

The language of functions (domain, range, composite and inverse functions), the modulus function and its graph, and solving modulus equations and inequalities.

A focused answer to the OCR A-Level Mathematics A functions content, covering domain and range, composite and inverse functions, the conditions for an inverse to exist, the modulus function and its graph, and solving modulus equations and inequalities both algebraically and graphically.

Generated by Claude Opus 4.811 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

OCR wants you to use the language of functions (domain, range, one-to-one and many-to-one mappings), form composite functions in the correct order, find inverse functions and state their domain and range, understand that an inverse exists only for a one-to-one function (so a restricted domain may be needed), sketch the modulus function y=f(x)y = |f(x)|, and solve modulus equations and inequalities both algebraically and graphically.

The answer

Domain, range and mappings

A function maps each input in its domain to exactly one output; the set of outputs is the range. A function is one-to-one if no two inputs share an output, and many-to-one if some output comes from several inputs (like x2x^2). Only one-to-one functions have an inverse over their whole domain.

Composite functions

The composite fg(x)fg(x) means "do gg first, then ff": fg(x)=f(g(x))fg(x) = f(g(x)). Order matters, so in general fggffg \ne gf. The domain of fgfg is the set of inputs for which g(x)g(x) is itself a valid input to ff.

Inverse functions

The inverse f1f^{-1} undoes ff: if f(a)=bf(a) = b then f1(b)=af^{-1}(b) = a. To find it, write y=f(x)y = f(x), swap the roles and solve for the new output. The graph of f1f^{-1} is the reflection of the graph of ff in the line y=xy = x, and the domain and range swap.

The modulus function

The modulus x|x| is the distance of xx from zero, so it is never negative: x=x|x| = x for x0x \ge 0 and x=x|x| = -x for x<0x < 0. The graph y=f(x)y = |f(x)| takes the graph of ff and reflects any part below the xx-axis up above it.

Examples in context

Restricting a domain for an inverse

A many-to-one function such as f(x)=x2f(x) = x^2 has no inverse over all reals, because two inputs give the same output. Restricting the domain to x0x \ge 0 makes it one-to-one, and then f1(x)=xf^{-1}(x) = \sqrt{x}.

Solving modulus problems

To solve f(x)=g(x)|f(x)| = g(x) algebraically, square both sides (valid because both sides are then squares) or split into the two cases f(x)=g(x)f(x) = g(x) and f(x)=g(x)f(x) = -g(x), checking each solution. A sketch confirms how many solutions there are and which region satisfies an inequality.

Try this

Q1. Given f(x)=2x+5f(x) = 2x + 5, find f1(x)f^{-1}(x). [2 marks]

  • Cue. y=2x+5y = 2x + 5 gives x=y52x = \dfrac{y - 5}{2}, so f1(x)=x52f^{-1}(x) = \dfrac{x - 5}{2}.

Q2. Solve 3x2=7|3x - 2| = 7. [2 marks]

  • Cue. 3x2=73x - 2 = 7 gives x=3x = 3; 3x2=73x - 2 = -7 gives x=53x = -\tfrac{5}{3}.

Exam-style practice questions

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

OCR 20186 marksThe function ff is defined by f(x)=3x2f(x) = 3x - 2 for xRx \in \mathbb{R}, and g(x)=x2+1g(x) = x^2 + 1 for xRx \in \mathbb{R}. Find fg(x)fg(x), gf(x)gf(x), and the inverse function f1(x)f^{-1}(x), stating its domain.
Show worked answer →

Composite fg(x)=f(g(x))=3(x2+1)2=3x2+1fg(x) = f(g(x)) = 3(x^2 + 1) - 2 = 3x^2 + 1 (M1, A1).

Composite gf(x)=g(f(x))=(3x2)2+1=9x212x+5gf(x) = g(f(x)) = (3x - 2)^2 + 1 = 9x^2 - 12x + 5 (M1).

For the inverse, set y=3x2y = 3x - 2 and solve for xx: x=y+23x = \dfrac{y + 2}{3}, so f1(x)=x+23f^{-1}(x) = \dfrac{x + 2}{3} (M1, A1).

Since ff has domain all reals and range all reals, the inverse has domain xRx \in \mathbb{R} (B1).

Markers reward both composites in the correct order, rearranging to find the inverse, and stating its domain.

OCR 20215 marksSolve the equation 2x1=x+4|2x - 1| = |x + 4|, and then solve the inequality 2x1<x+4|2x - 1| < |x + 4|.
Show worked answer →

Square both sides of the equation to remove the moduli (M1): (2x1)2=(x+4)2(2x - 1)^2 = (x + 4)^2.

Expand: 4x24x+1=x2+8x+164x^2 - 4x + 1 = x^2 + 8x + 16, so 3x212x15=03x^2 - 12x - 15 = 0, i.e. x24x5=0x^2 - 4x - 5 = 0 (A1).

Factorise: (x5)(x+1)=0(x - 5)(x + 1) = 0, so x=5x = 5 or x=1x = -1 (A1).

For the inequality 2x1<x+4|2x - 1| < |x + 4|, the expression is smaller between the critical values, so 1<x<5-1 < x < 5 (M1, A1).

Markers reward squaring both sides, solving the quadratic for the boundary points, and selecting the correct region for the inequality.

Related dot points

Sources & how we know this