top of page

2.1 Mappings and Functions

OCR A-level Maths Year 2 · H240 · Chapter 2: Functions

What is in the full lesson (13 activities)

Every item below opens free in the course.

A free OCR A-level Maths Year 2 lesson for OCR A Level Mathematics A (H240) from OBA School: mappings, function notation, and one-one and many-one functions (OCR H240: 1.02u). 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

  • Decide whether a mapping is a function, using arrow diagrams or the vertical line test
  • Use function notation to evaluate functions and to solve equations such as f(x) = k
  • Classify a function as one-one or many-one, using the horizontal line test
  • Show algebraically that a function is one-one, or give two inputs that prove it is many-one
  • Explain how the domain affects whether a function is one-one

Key words

  • Mapping: A rule that links each input (from a set of inputs) to one or more outputs.
  • Function: A mapping in which every input in the domain gives exactly one output.
  • Domain: The set of inputs a function is defined on, such as x ∈ ℝ or x ≥ 2.
  • One-one: A function where every output comes from exactly one input.
  • Many-one: A function where at least one output comes from two or more inputs.
  • Image: The output for a given input: the image of 3 under f is f(3).

Mappings and functions

A mapping takes each input to one or more outputs. A mapping is a function only when each input in its domain gives exactly one output. Arrow diagrams make this easy to see.

Worked example: classifying mappings

(a) x ↦ 4x + 1, x ∈ ℝ (b) x ↦ x² − 3, x ∈ ℝ (c) x ↦ ±√x, x > 0
(a) Every input gives one output, and different inputs give different outputs.
(b) 2 ↦ 1 and −2 ↦ 1: two inputs share an output.
(c) 16 ↦ 4 and 16 ↦ −4: one input, two outputs.

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

Function notation

Functions are named by letters. Both f(x) = 3x − 5, x ∈ ℝ and f: x ↦ 3x − 5, x ∈ ℝ describe the same function. The part after the comma is the domain. f(a) is the output (image) when the input is a.

Worked example: evaluating and solving

f(x) = 2x² − 3x, x ∈ ℝ. Find f(−2) and solve f(x) = 9.
f(−2) = 2(−2)² − 3(−2) = 8 + 6 = 14
2x² − 3x = 9 ⇔ 2x² − 3x − 9 = 0 ⇔ (2x + 3)(x − 3) = 0

Answer: f(−2) = 14; x = 3 or x = −3/2. Two inputs give the output 9, so f is many-one.

Take care: Always put a negative input in brackets: f(−2) contains (−2)² = 4, not −2² = −4

The vertical and horizontal line tests

For a graph y = f(x):

  • Vertical line test: the graph shows a function if every vertical line through the domain meets it exactly once.
  • Horizontal line test: a function is one-one if every horizontal line meets the graph at most once. If some horizontal line meets it twice or more, it is many-one.

Worked example: using the tests

(a) y = x³ − 3x, x ∈ ℝ: the line y = 0.8 meets the curve three times, so it is a many-one function.
(b) y = eˣ, x ∈ ℝ: always increasing, so every horizontal line meets it at most once: one-one.
(c) x² + y² = 4: the line x = 1 meets it at y = ±√3, so it is not a function.

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

Proving one-one, and the effect of the domain

To show f is many-one, give two different inputs with the same output. To show f is one-one, either show f is always increasing (or always decreasing), or show that f(a) = f(b) forces a = b.

Worked example: the same rule on two domains

f(x) = x² − 4x + 1. Is f one-one on (a) x ∈ ℝ (b) x ≥ 2?
(a) f(0) = 1 and f(4) = 1, so f is many-one on ℝ.
(b) Suppose f(a) = f(b) with a, b ≥ 2. Then a² − b² − 4(a − b) = 0, so (a − b)(a + b − 4) = 0.
a + b − 4 = 0 only if a = b = 2 (since both are at least 2). Either way a = b.

Answer: Many-one on ℝ, but one-one on x ≥ 2: the domain starts at the vertex (2, −3).

Worked example: an increasing cubic

Show that g(x) = x³ + 5x − 2, x ∈ ℝ, is one-one.
g′(x) = 3x² + 5 ≥ 5 > 0, so g is increasing for all x.

Answer: An increasing function never takes the same value twice, so g is one-one.

Common mistakes

  • Thinking ±√x is a function. The symbol √x means the positive root only; ±√x gives two outputs.
  • Mixing up the two line tests: vertical lines test "is it a function?", horizontal lines test "is it one-one?".
  • Forgetting the domain. The same rule can be many-one on one domain and one-one on another.
  • Writing −2² instead of (−2)² when substituting a negative input.

Revision questions

Try these, then check your answers below each one.

Question 1. Which of these mappings is NOT a function? (Choose from: y² = x, for x ≥ 0; y = x² − 3, for x ∈ ℝ; y = √x, for x ≥ 0; y = 1/(x + 2), for x ≠ −2.)

Answer: y² = x, for x ≥ 0

Working: For y² = x, the input x = 4 gives y = 2 and y = −2: one input, two outputs, so it is one-many and not a function. The square root symbol means the positive root only.

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

Answer: 33

Working: f(−3) = 2(9) − 5(−3) = 18 + 15 = 33.

Question 3. True or false: f(x) = x² − 6x, x ≥ 3, is a one-one function.

Answer: True

Working: x² − 6x = (x − 3)² − 9. The vertex is at x = 3, and the function is increasing for x ≥ 3, so every horizontal line meets the graph at most once.

Related lessons

Continue in the full course

This lesson is section 2.1 of our free OCR 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.

Continue lesson 2.1 in the free course →

 

 

 

 

 

 

 

bottom of page