2.3 Functions
A-level Maths Year 1 (AS) · Edexcel 9MA0 · Chapter 2: Quadratics
A free A-level Maths Year 1 lesson for Pearson Edexcel A level Mathematics (9MA0) from OBA School: function notation, roots, domain and range, including the range of a quadratic function. 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
- Use function notation such as f(x), f(−2) and f(a + 1)
- Find the roots of a function and solve equations such as f(x) = 12
- Understand the domain and range of a function and write them as inequalities
- Find the range of a quadratic function by completing the square, including on a restricted domain
Key words
- Function: A rule that gives exactly one output for each input. f(x) = x² + 1 is read "f of x".
- Domain: The set of inputs the function is allowed to take, e.g. x ∈ ℝ (all real numbers) or 0 ≤ x ≤ 5.
- Range: The set of outputs the function produces from its domain, e.g. f(x) ≥ 2.
- Roots: The values of x for which f(x) = 0. They are the x-intercepts of y = f(x).
- Set notation: A way to write a set, e.g. {x: x ≥ 2} means "all x such that x ≥ 2".
Function notation
f(x) = 3x² − 5x + 2 defines a function called f. To find f(−2), replace every x with −2. You can also substitute an expression, such as a + 1; put it in brackets so every x is replaced correctly.
Worked example: evaluating
f(x) = 3x² − 5x + 2. Find f(−2).
f(−2) = 3(−2)² − 5(−2) + 2 = 12 + 10 + 2
Answer: f(−2) = 24
Worked example: substituting an expression
For the same f, find and simplify f(a + 1).
f(a + 1) = 3(a + 1)² − 5(a + 1) + 2
= 3a² + 6a + 3 − 5a − 5 + 2
Answer: f(a + 1) = 3a² + a
Roots and solving f(x) = k
The roots of a function are the solutions of f(x) = 0. To solve f(x) = k for some number k, write the equation out in full and rearrange so that one side is zero.
Worked example: roots of a function
Find the roots of g(x) = 2x² + x − 6
2x² + x − 6 = 0, so (2x − 3)(x + 2) = 0
Answer: x = 3/2 and x = −2
Worked example: solving f(x) = k
f(x) = x² − 4x. Solve f(x) = 12.
x² − 4x = 12, so x² − 4x − 12 = 0
(x − 6)(x + 2) = 0
Answer: x = 6 or x = −2
Domain and range
The domain is the set of x values you put in. If no domain is given, take it to be all real numbers, x ∈ ℝ, except any values that cannot be used, such as x = 3 in 1/(x − 3). The range is the set of values that come out. For a straight line on an interval, the range runs between the outputs at the two ends.
Worked example: range of a linear function
f(x) = 2x + 1 with domain 0 ≤ x ≤ 5. Find the range of f.
f(0) = 1 and f(5) = 11. The line is increasing, so every value between them is reached.
Answer: 1 ≤ f(x) ≤ 11
Notation: Write the range using f(x) (or y), not x. The range 1 ≤ f(x) ≤ 11 can also be written {y: 1 ≤ y ≤ 11}.
The range of a quadratic function
Complete the square to find the turning point. If the domain is all real numbers, the range starts at the minimum (or ends at the maximum). On a restricted domain, also work out the values at both ends, and check whether the turning point is inside the domain.
Worked example: all real x
Find the range of f(x) = x² − 6x + 11, x ∈ ℝ
f(x) = (x − 3)² + 2 and (x − 3)² ≥ 0
Answer: f(x) ≥ 2
Worked example: restricted domain
Find the range of f(x) = x² − 6x + 11, 0 ≤ x ≤ 4
Vertex (3, 2) is inside the domain, so the least value is 2.
Ends: f(0) = 11 and f(4) = 16 − 24 + 11 = 3. The greater is 11.
Answer: 2 ≤ f(x) ≤ 11
Common mistakes
- Forgetting brackets when substituting: f(−2) for f(x) = 3x² is 3(−2)² = 12, not −12.
- Writing the range in terms of x. The range is about outputs: write f(x) ≥ 2, not x ≥ 2.
- Using only the end points of a quadratic on a restricted domain. If the vertex is inside the domain, it gives the minimum (or maximum).
- Using > instead of ≥. f(x) = (x − 3)² + 2 does reach 2, at x = 3.
Revision questions
Try these, then check your answers below each one.
Question 1. f(x) = 4x² − 7. Find f(−3).
Answer: 29
Working: f(−3) = 4(−3)² − 7 = 36 − 7 = 29.
Question 2. Find the roots of f(x) = x² − x − 20. (Choose from: 5 and −4; −5 and 4; 20 and −1; 10 and −2.)
Answer: 5 and −4
Working: x² − x − 20 = (x − 5)(x + 4) = 0, so the roots are 5 and −4.
Question 3. Ben says that the range of f(x) = x² + 2, x ∈ ℝ, is f(x) > 2. Is Ben correct?
Answer: No
Working: f(0) = 2, so 2 is in the range. The range is f(x) ≥ 2, not f(x) > 2.
Related lessons
- Previous lesson: 2.2 Completing the Square
- Next lesson: 2.4 Quadratic Graphs
- In this chapter: 2.1 Solving Quadratic Equations
- In this chapter: 2.5 The Discriminant
- In this chapter: 2.6 Modelling with Quadratics
Continue in the full course
This lesson is section 2.3 of our free A-level Maths Year 1 (AS) 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 1 (AS) course.