2.2 Domain and Range
OCR A-level Maths Year 2 · H240 · Chapter 2: Functions
What is in the full lesson (12 activities)
Every item below opens free in the course.
- Video: Introduction of Mappings
- Video: Functions and Mapping: example 1
- Video: Functions and Mapping: example 2
- Video: Functions and Mapping: example 3
- Video: Functions and Mapping: example 4
- Video: Functions and Mapping: example 5
- Notes: Lesson notes: Domain and Range
- Interactive lesson: Interactive lesson: Domain and Range Lab
- Interactive lesson: Interactive practice: Domain and Range Practice
- Practice questions: Practice questions (9 questions, 13 marks)
- Worksheet: Worksheet: Domain and Range
- Answers: Answers and mark scheme of the Worksheet: Domain and Range
A free OCR A-level Maths Year 2 lesson for OCR A Level Mathematics A (H240) from OBA School: largest possible domains, and finding the range from a sketch or by completing the square (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
- Find the largest possible domain of a function involving roots, fractions or logarithms
- Write domains and ranges in inequality and set notation
- Find the range of a function by sketching it over its domain
- Use completing the square and known graphs (exponentials, logarithms, reciprocals) to find ranges
- Choose a sensible domain and find the range for a function used as a model
Key words
- Domain: The set of inputs of a function. If none is given, take the largest set of real numbers for which the rule works.
- Range: The set of all outputs. Write it using f(x) or y, for example f(x) ≥ −4.
- Set notation: {x: x ≥ 2} means "all x such that x ≥ 2". ℝ is the set of real numbers.
- Asymptote: A line that a graph approaches but never reaches. It often marks a value missing from the range.
- Restricted domain: A domain smaller than the largest possible one, such as x ≥ 0 or −4 ≤ x ≤ 2.
The largest possible domain
A function is only defined where its rule makes sense. Look for three things.
- a square root √A; Condition A ≥ 0; Example √(5 − 2x): x ≤ 5/2
- a fraction B/A; Condition A ≠ 0; Example 1/(x² − 9): x ≠ ± 3
- a logarithm ln A; Condition A > 0; Example ln (x² − 4x): x < 0 or x > 4
- 1/√A; Condition A > 0; Example 1/(√(x + 1)): x > −1
Worked example: a logarithm of a quadratic
Find the largest possible domain of f(x) = ln (x² − 4x).
Need x² − 4x > 0, so x(x − 4) > 0. The critical values are 0 and 4.
The quadratic is positive outside its roots: x < 0 or x > 4.
Answer: Domain {x: x < 0} ∪ {x: x > 4}.
Notation: Inequality: x ≥ 2. Set notation: {x: x ≥ 2}. Two pieces are joined with ∪ ("or"); an interval such as −1 < x ≤ 3 can be written {x: x > −1} ∩ {x: x ≤ 3}.
Finding the range from a sketch
The range depends on the domain. Sketch the graph over the domain only, then read off the lowest and highest y-values. Check the end points and any turning point inside the domain.
Worked example: a quadratic on a restricted domain
Find the range of f(x) = x² + 2x − 3, −4 ≤ x ≤ 2.
Complete the square: f(x) = (x + 1)² − 4. Minimum −4 at x = −1, which is inside the domain.
End points: f(−4) = 16 − 8 − 3 = 5 and f(2) = 4 + 4 − 3 = 5.
Answer: −4 ≤ f(x) ≤ 5
Ranges of exponential, logarithmic and reciprocal functions
- eˣ, x ∈ ℝ; Range eˣ > 0; Reason asymptote y = 0
- ln x, x > 0; Range ln x ∈ ℝ; Reason takes every real value
- √x, x ≥ 0; Range √x ≥ 0; Reason positive root only
- 1/x, x ≠ 0; Range y ≠ 0; Reason asymptote y = 0
Worked example: a transformed exponential
Find the range of g(x) = 3 − 2eˣ, x ∈ ℝ.
eˣ > 0, so 2eˣ > 0, so 3 − 2eˣ < 3.
As x → -∞, g(x) → 3; as x → ∞, g(x) → -∞.
Answer: g(x) < 3. The value 3 is never reached.
Worked example: a reciprocal on half a line
Find the range of h(x) = 5 − 2/(x − 1), x > 1.
For x > 1, x − 1 takes every positive value, so 2/(x − 1) takes every positive value.
Answer: h(x) < 5
Domain and range in a model
When a function models a real situation, the domain is usually restricted by the context: time cannot be negative, an object stops when it lands, and so on.
Worked example: height of a ball
A ball is thrown upwards. Its height in metres after t seconds is h(t) = 20t − 5t². State a suitable domain and find the range.
The ball lands when h = 0: 5t(4 − t) = 0, so t = 0 or t = 4. Domain: 0 ≤ t ≤ 4.
h(t) = 20 − 5(t − 2)², so the greatest height is 20 m, at t = 2.
Answer: Domain 0 ≤ t ≤ 4; range 0 ≤ h ≤ 20.
Common mistakes
- Finding the range from the end points only and missing a turning point inside the domain.
- Using ≥ for an asymptote: the range of eˣ is eˣ > 0, not ≥ 0.
- Writing the range in terms of x. It describes outputs, so use f(x) or y.
- Forgetting that a logarithm needs a strictly positive input: ln 0 is undefined.
Revision questions
Try these, then check your answers below each one.
Question 1. The largest possible domain of f(x) = √(3x − 12) is x ≥ k. Find k.
Answer: 4
Working: 3x − 12 ≥ 0, so x ≥ 4.
Question 2. Find the range of f(x) = eˣ − 4, x ∈ ℝ. (Choose from: f(x) > −4; f(x) ≥ −4; f(x) > 0; f(x) ∈ ℝ.)
Answer: f(x) > −4
Working: eˣ > 0, so eˣ − 4 > −4. The graph has asymptote y = −4, which is never reached, so the inequality is strict.
Question 3. Which value of x must be excluded from the domain of f(x) = 3/(2x − 7)?
Answer: 7/2
Working: 2x − 7 = 0 when x = 7/2. The largest domain is x ∈ ℝ, x ≠ 7/2.
Related lessons
- Previous lesson: 2.1 Mappings and Functions
- Next lesson: 2.3 Composite Functions
- In this chapter: 2.4 Inverse Functions
Continue in the full course
This lesson is section 2.2 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.2 in the free course →