Cambridge International AS & A Level Mathematics 9709 · Pure Mathematics 1

Functions

Domain, range, one-one functions, composite and inverse functions, the graph of an inverse as a reflection in y = x, and the translations, reflections and stretches of the graph of y = f(x).

1.2Paper 1: Pure Mathematics 1Free lesson
What the syllabus says

1.2 (Paper 1)

  • understand the terms function, domain, range, one-one function, inverse function and composition of functions
  • identify the range of a given function in simple cases, and find the composition of two given functions
  • determine whether or not a given function is one-one, and find the inverse of a one-one function in simple cases
  • illustrate in graphical terms the relation between a one-one function and its inverse
  • understand and use the transformations of the graph of y=f(x) given by y=f(x)+a, y=f(x+a), y=af(x), y=f(ax) and simple combinations of these.

Notes and examples

  • e.g. range of f:x↦1x for x⩾1 and range of g:x↦x2+1 for x∈ℝ. Including the condition that a composite function gf can only be formed when the range of f is within the domain of g.
  • e.g. finding the inverse of h:x↦(2x+3)2−4 for x<−32
  • Sketches should include an indication of the mirror line y=x.
  • Including use of the terms ‘translation’, ‘reflection’ and ‘stretch’ in describing transformations. Questions may involve algebraic or trigonometric functions, or other graphs with given features.

Quoted from the Cambridge International AS and A Level Mathematics 9709 syllabus (2026-2027 and 2028-2030 editions, which share this content).

Functions, domain and range Paper 1

A function is a rule that gives exactly one output for each input. In Cambridge notation

f:x↦2x+3 for x∈ℝ

means "f maps x to 2x+3, for every real number x". The same function can be written f(x)=2x+3 for x∈ℝ.

  • The domain is the set of inputs allowed. It is part of the definition: change the domain and you have a different function.
  • The range is the set of outputs the function actually produces from that domain. It is written in terms of f(x), for example f(x)⩾2, never in terms of x.

A rule such as x↦±x is not a function, because one input gives two outputs. A rule can fail to be a function on a domain for another reason too: x↦1x−1 has no output at x=1, so 1 must be left out of its domain.

A function is one-one if different inputs always give different outputs. On a graph, a one-one function meets every horizontal line at most once. f(x)=x2 for x∈ℝ is many-one, because f(3)=f(−3)=9; but f(x)=x2 for x⩾0 is one-one.

Finding the range Paper 1

To find a range, think about the graph of the function over its domain only, and ask which y values it covers.

  • Linear functions are increasing or decreasing, so the range runs between the values at the ends of the domain. Watch whether each end is included.
  • Quadratics: complete the square to find the vertex. If the vertex is inside the domain, the least (or greatest) value is at the vertex. If it is not, the least value is at the end of the domain nearest the vertex.
  • Reciprocals such as 1x get close to 0 but never reach it.

Two of the syllabus's own illustrations:

  • f:x↦1x for x⩾1: f(1)=1, and as x increases 1x decreases towards 0 without reaching it. So the range is 0<f(x)⩽1.
  • g:x↦x2+1 for x∈ℝ: x2⩾0, so the range is g(x)⩾1.

A quick sketch is the safest method, because it shows whether the function turns round inside the domain.

Worked example 1 Paper 1

The function f is defined by f(x)=x2−6x+11. Find the range of f when the domain is (a) x∈ℝ, (b) x⩾4, (c) 0⩽x⩽4.

  1. Complete the square: x2−6x+11=(x−3)2+2. The vertex is the minimum point (3,2).

  2. (a) The vertex is in the domain, so the least value is 2 and every larger value is reached: f(x)⩾2.

  3. (b) The vertex at x=3 is outside the domain x⩾4. For x⩾4 the function is increasing, so the least value is f(4)=1+2=3: the range is f(x)⩾3.

  4. (c) The vertex is inside, so the least value is 2. The greatest is at the end further from the vertex: f(0)=11 and f(4)=3, so the greatest is 11.

  5. So the range is 2⩽f(x)⩽11.

Answer: (a) f(x)⩾2 (b) f(x)⩾3 (c) 2⩽f(x)⩽11

Check yourself Paper 1

The function f is defined by f(x)=5−2x for −1⩽x<3. Find the range of f.

Answer it in the portal, where your answer is checked as you type →

Composite functions Paper 1

The composite function gf means "do f first, then g": gf(x)=g(f(x)). The function written nearer to x acts first, just as in g(f(x)).

To find gf(x), replace every x in the rule for g by the whole expression f(x), in brackets. In general gf and fg are different functions. ff is often written f2, which means f applied twice, not f squared.

When can gf be formed? g must be able to accept every output of f. So gf exists only when the range of f lies within the domain of g. For example, if f(x)=x−4 for x∈ℝ and g(x)=x for x⩾0, then gf cannot be formed: f(1)=−3, and g cannot take −3. Restricting the domain of f to x⩾4 makes the range f(x)⩾0, and then gf(x)=x−4 exists.

The domain of gf is the domain of f.

Worked example 2 Paper 1

The functions f and g are defined for x∈ℝ by f(x)=2x−3 and g(x)=x2+1. Find fg(x) and gf(x), and solve the equation gf(x)=10.

  1. fg(x)=f(x2+1)=2(x2+1)−3=2x2−1.

  2. gf(x)=g(2x−3)=(2x−3)2+1=4x2−12x+10.

  3. These are different, as expected: the order matters.

  4. gf(x)=10: (2x−3)2+1=10, so (2x−3)2=9.

  5. 2x−3=3 or 2x−3=−3, so x=3 or x=0.

Answer: fg(x)=2x2−1, gf(x)=4x2−12x+10; x=0 or x=3

Check yourself Paper 1

The functions f and g are defined by f(x)=3x+1 for x>0 and g(x)=2x−1 for x>1. Find gf(x), simplifying your answer.

Answer it in the portal, where your answer is checked as you type →

One-one functions and inverse functions Paper 1

The inverse function f−1 undoes f: if f(a)=b then f−1(b)=a, so f−1f(x)=x.

Only a one-one function has an inverse. If f were many-one, say f(3)=f(−3)=9, then f−1(9) would need to be both 3 and −3, which is not a function. This is why questions often restrict a domain, for example to x⩾k, "so that f has an inverse": for a quadratic, the domain must lie entirely on one side of the vertex, so the least possible k is the x-coordinate of the vertex.

Finding an inverse:

  1. Write y=f(x).
  2. Rearrange to make x the subject.
  3. Swap the letters: write the result in terms of x as f−1(x).

When the rearranging involves a square root, the ± sign must be decided by the domain of f. The domain and range swap over:

  • the domain of f−1 is the range of f;
  • the range of f−1 is the domain of f.

The syllabus example, the inverse of h:x↦(2x+3)2−4 for x<−32, needs exactly this care: for x<−32, 2x+3 is negative, so the negative square root is the right one.

Worked example 3 Paper 1

The function f is defined by f(x)=(x−2)2+3 for x⩾2. Find f−1(x) and state its domain. What would f−1(x) be if the domain of f were x⩽2 instead?

  1. f is one-one for x⩾2, because the vertex is at x=2 and the function is increasing to the right of it.

  2. Write y=(x−2)2+3, so (x−2)2=y−3.

  3. Square root: x−2=±y−3. Since x⩾2, x−2⩾0, so take the positive root: x=2+y−3.

  4. Swap letters: f−1(x)=2+x−3.

  5. The range of f is f(x)⩾3, so the domain of f−1 is x⩾3.

  6. With domain x⩽2, x−2⩽0, so the negative root is needed: f−1(x)=2−x−3, again for x⩾3.

Answer: f−1(x)=2+x−3 for x⩾3 (or 2−x−3 if the domain is x⩽2)

Check yourself Paper 1

The function f is defined by f(x)=4x−13 for x∈ℝ. Find f−1(x).

Answer it in the portal, where your answer is checked as you type →

The graphs of a function and its inverse Paper 1

Swapping x and y in an equation reflects its graph in the line y=x. Finding an inverse swaps x and y, so:

the graph of y=f−1(x) is the reflection of the graph of y=f(x) in the line y=x.

Every point (a,b) on y=f(x) becomes (b,a) on y=f−1(x). A sketch should show the mirror line y=x (the syllabus asks for it), use the same scale on both axes, and show the two graphs as mirror images, including their end points.

Where the graph of f meets the line y=x, it also meets its own reflection. So the points where y=f(x) crosses y=f−1(x) on the line y=x are found by solving f(x)=x, which is usually easier than solving f(x)=f−1(x).

xy24681012246810120y = f(x)y = f^-1(x)y = x(2, 3)(3, 2)

f(x)=(x−2)2+3 for x⩾2, drawn for 2⩽x⩽5, and f−1(x)=2+x−3. The end point (2,3) of f reflects to the end point (3,2) of f−1.

Transformations of graphs Paper 1

Each change to the equation y=f(x) moves its graph in a fixed way. Changes outside the function act on y and do what they look like; changes inside, to x, do the opposite of what they look like.

  • y=f(x)+a: a translation by (0a) (up by a).
  • y=f(x+a): a translation by (−a0) (left by a). For example y=f(x−2) moves the graph 2 to the right, because the new graph reaches the old height at x values 2 larger.
  • y=af(x): a stretch parallel to the y-axis with scale factor a (every y multiplied by a).
  • y=f(ax): a stretch parallel to the x-axis with scale factor 1a (every x divided by a).
  • y=−f(x): a reflection in the x-axis.
  • y=f(−x): a reflection in the y-axis.

Describe fully means give the type and all its details: "a translation by (30)", "a stretch parallel to the x-axis with scale factor 12", "a reflection in the y-axis". The words translation, reflection and stretch must be used; "move" or "shift" do not earn the mark.

Combinations. For y=af(x)+b, stretch first, then translate: the stretch multiplies f(x) by a, and then b is added. Doing them the other way round would give a(f(x)+b). An inside change and an outside change act on different axes, so their order does not matter: y=f(x−3)+2 is a translation by (32) either way.

Points and features. If (p,q) is on y=f(x), then:

  • (p−a,q) is on y=f(x+a);
  • (p,aq) is on y=af(x);
  • (pa,q) is on y=f(ax).

This works for any graph, including trigonometric ones: y=3sin2x is y=sinx stretched parallel to the x-axis with factor 12 and parallel to the y-axis with factor 3.

xy−3−2−112345−11234567890y = x^2y = (x - 2)^2 + 1(0, 0)(2, 1)

y=(x−2)2+1 is y=x2 translated by (21). The vertex moves from (0,0) to (2,1): the −2 inside the bracket moves the graph to the right.

Worked example 4 Paper 1

(a) Describe fully a sequence of transformations that maps the curve y=x2 onto the curve y=2(x+3)2−5.

(b) The curve y=x2−4x is reflected in the x-axis and then translated by (03). Find the equation of the new curve.

  1. (a) Write f(x)=x2. Then y=2(x+3)2−5 is y=2f(x+3)−5.

  2. A translation by (−30) gives y=(x+3)2.

  3. A stretch parallel to the y-axis with scale factor 2 gives y=2(x+3)2.

  4. A translation by (0−5) gives y=2(x+3)2−5. (The stretch must come before the downward translation.)

  5. (b) Reflecting in the x-axis replaces y=f(x) by y=−f(x): y=−(x2−4x)=−x2+4x.

  6. Translating by (03) adds 3: y=−x2+4x+3.

Answer: (a) translation (−30), stretch parallel to the y-axis factor 2, translation (0−5) (b) y=−x2+4x+3

Check yourself Paper 1

The curve y=x2+2x is translated by (30). Find the equation of the new curve, in the form y=ax2+bx+c.

Answer it in the portal, where your answer is checked as you type →

Worked example 5 (exam style) Paper 1

The function f is defined by f(x)=x2−4x+7 for x⩾k, where k is a constant.

(a) Express x2−4x+7 in the form (x−a)2+b. [2]

(b) State the smallest value of k for which f has an inverse. [1]

(c) For this value of k, find f−1(x) and state the domain of f−1. [3]

(d) The function g is defined by g(x)=2x−1 for x⩾32. Explain why fg can be formed, and find fg(x). [3]

  1. (a) x2−4x+7=(x−2)2−4+7=(x−2)2+3.

  2. (b) The vertex is at x=2. f is one-one only if the domain lies on one side of it, so the smallest k is 2.

  3. (c) y=(x−2)2+3 gives x−2=y−3 (positive root, since x⩾2), so f−1(x)=2+x−3.

  4. The range of f is f(x)⩾3, so the domain of f−1 is x⩾3.

  5. (d) For x⩾32, g(x)=2x−1⩾2. So the range of g, g(x)⩾2, lies within the domain of f, x⩾2, and fg can be formed.

  6. fg(x)=(2x−1)2−4(2x−1)+7=4x2−4x+1−8x+4+7=4x2−12x+12.

Answer: (a) (x−2)2+3 (b) k=2 (c) f−1(x)=2+x−3, x⩾3 (d) fg(x)=4x2−12x+12

Key points Paper 1

  • The range is the set of outputs from the given domain. Write it in terms of f(x), and sketch to see where the least and greatest values are.

  • gf(x)=g(f(x)): f first. It can be formed only if the range of f lies within the domain of g.

  • Only a one-one function has an inverse. A quadratic is one-one on a domain lying on one side of its vertex.

  • To find f−1: write y=f(x), make x the subject, swap letters. Choose the sign of a square root using the domain of f.

  • The domain of f−1 is the range of f, and its range is the domain of f. The graphs are reflections in y=x.

  • f(x)+a and af(x) act on y as they look; f(x+a) and f(ax) act on x the opposite way: translation (−a0) and stretch factor 1a.

Where marks are lost Paper 1

  • Giving a range in terms of x (x⩾2) instead of f(x) (f(x)⩾2), or using the value at the end of the domain when the vertex is inside it.

  • Doing a composite in the wrong order: fg(x) means g first.

  • Writing f−1(x) as the reciprocal 1f(x).

  • Keeping ± in an inverse, or choosing the wrong sign of the square root for the domain.

  • Forgetting to state the domain of f−1 when asked, or giving the domain of f instead.

  • Describing y=f(x−2) as a translation to the left, or y=f(2x) as a stretch with factor 2.

  • Using "move" or "shift" instead of naming the transformation, or leaving out the vector or the scale factor.

  • Sketching a function and its inverse without the line y=x, or without matching end points.

Related AS & A Level Mathematics 9709 lessons

All AS & A Level Mathematics 9709 lessons →

An original lesson written to the Cambridge International AS & A Level Mathematics 9709 syllabus (2026 to 2027 and 2028 to 2030). The worked examples and questions are our own, not Cambridge questions. Back to every AS & A Level Mathematics 9709 lesson.