top of page

2.2 Functions and Mappings

A-level Maths Year 2 · Edexcel 9MA0 · Chapter 2: Functions and Graphs

A free A-level Maths Year 2 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: mappings, functions, domain and range, and piecewise functions. Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.

What you will learn

  • Classify a mapping as one-to-one, many-to-one or one-to-many, and decide whether it is a function
  • Use function notation, including the domain of a function
  • Find the range of a function, including on a restricted domain
  • Work with functions that are defined piecewise

Key words

  • Mapping: A rule that links each input to one or more outputs.
  • Function: A mapping in which every input in the domain gives exactly one output.
  • Domain: The set of allowed inputs. For example x ∈ ℝ, or x ≥ 0.
  • Range: The set of all outputs. Write it in terms of f(x), for example f(x) ≥ 2.
  • Piecewise: A function given by different rules on different parts of its domain.

Mappings and functions

A mapping takes each input from one set to output(s) in another. A mapping is a function only if every input gives exactly one output. On a graph, every vertical line through the domain meets the curve exactly once.

Worked example: classifying

(a) x ↦ 3x − 1, x ∈ ℝ: each input has its own output.
(b) x ↦ x², x ∈ ℝ: 2 and −2 both map to 4.
(c) x ↦ ±√x, x ≥ 0: the input 9 maps to both 3 and −3.

Answer: (a) one-to-one function (b) many-to-one function (c) one-to-many, not a function

Domain and range

A function is written f(x) = 2x + 1, x ∈ ℝ or f: x ↦ 2x + 1, x ∈ ℝ. The part after the comma is the domain. The range is every value f(x) can take. For a quadratic, complete the square to find the minimum or maximum.

Worked example: range of a quadratic

Find the range of f(x) = x² − 6x + 11, x ∈ ℝ
f(x) = (x − 3)² − 9 + 11 = (x − 3)² + 2
(x − 3)² ≥ 0, so the least value of f(x) is 2, when x = 3.

Answer: f(x) ≥ 2

Worked example: range of a reciprocal function

Find the range of h(x) = 1/(x − 2) + 3, x > 2
For x > 2, 1/(x − 2) takes every positive value (large near x = 2, close to 0 for large x).

Answer: h(x) > 3

Restricted domains

When the domain is an interval, the range is not always found from the end points. Sketch the graph: a turning point inside the interval gives the greatest or least value.

Worked example: turning point inside the domain

Find the range of f(x) = x² − 4x + 1, −1 ≤ x ≤ 5
f(x) = (x − 2)² − 3, so the minimum is −3 at x = 2, which is in the domain.
End points: f(−1) = 1 + 4 + 1 = 6 and f(5) = 25 − 20 + 1 = 6

Answer: −3 ≤ f(x) ≤ 6

Piecewise functions

A piecewise function uses a different rule on each part of the domain. Use the rule that matches the input. When solving, keep only solutions that lie in the part of the domain where that rule applies.

f(x) = 5 − x for x < 2

f(x) = x² − 1 for x ≥ 2

Worked example: solving with a piecewise function

For the function above, find f(−1) and f(3), then solve f(x) = 8.
f(−1) = 5 − (−1) = 6 and f(3) = 3² − 1 = 8
5 − x = 8 gives x = −3, which is less than 2, so it is valid.
x² − 1 = 8 gives x = ± 3. Only x = 3 satisfies x ≥ 2.

Answer: f(−1) = 6, f(3) = 8; f(x) = 8 when x = −3 or x = 3

Common mistakes

  • Writing the range in terms of x. The range describes outputs: write f(x) ≥ 2, not x ≥ 2.
  • Finding the range on a restricted domain from the end points only, and missing a turning point inside the interval.
  • Mixing up < and ≤. If an end point is included in the domain, its output is included in the range.
  • In piecewise functions, keeping a solution that lies outside the part of the domain where its rule applies.

Revision questions

Try these, then check your answers below each one.

Question 1. Which of these mappings is <b>not</b> a function? (Choose from: x ↦ 2x + 1, x ∈ ℝ; x ↦ x², x ∈ ℝ; x ↦ ±√x, x ≥ 0; x ↦ 1/x, x ≠ 0.)

Answer: x ↦ ±√x, x ≥ 0

Working: x ↦ ±√x sends 4 to both 2 and −2. It is one-to-many, so it is not a function.

Question 2. f(x) = 2x² − 3. Find f(−4).

Answer: 29

Working: f(−4) = 2 × 16 − 3 = 29.

Question 3. g(x) = 3x − 2, −1 ≤ x ≤ 5. What is the greatest value in the range of g?

Answer: 13

Working: g(5) = 15 − 2 = 13.

Related lessons

Continue in the full course

This lesson is section 2.2 of our free A-level Maths Year 2 course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved. Go to the full A-level Maths Year 2 course.

 

 

 

 

 

 

 

bottom of page