- Home
- Courses
- OCR A-Level Maths
- Functions
- Domain and Range
Domain and Range
A function is not just a formula: it comes with a set of permitted inputs, the . Change the domain and you change the function — and the set of outputs it produces, the , changes with it. Most exam errors here come from writing down a range without ever sketching the graph.
The big picture
Domain and range turn a formula into a precisely defined object. The domain is a choice, sometimes forced by the algebra (no square roots of negatives, no division by zero) and sometimes made deliberately to give a function a property you need, like being one-to-one. The range is a consequence: once the domain is fixed, the range is whatever the graph actually reaches. That relationship drives the rest of the chapter. A composite only exists where the range of fits inside the domain of , and the inverse of a function swaps domain and range. Getting fluent at sketching to find a range is the single most useful skill here.
What you'll be able to do
- State the domain and range of a function using set and inequality notation
- Identify the largest possible real domain of a function from its formula
- Find the range of a function by sketching it over its domain
- Work with the modulus function and its range
Notation for sets of numbers
The domain and range are sets, usually of real numbers, written with . You may write a domain as "" or just "". Ranges are written in terms of , for example "".
Be careful to use or for the range, not . Writing "range: " is a notation slip that examiners penalise.
Other sets you will meet: for integers and for natural numbers. A function defined only on integers has a graph made of isolated points.
Tip — Check whether each end point is included: versus . A range endpoint that the function reaches uses or ; one it only approaches uses or .
Finding the largest possible domain
If no domain is given, take the largest set of real numbers for which the formula makes sense. Three restrictions cover almost every case at this level.
: the denominator cannot be zero. needs .
(and other even roots): the expression inside must be non-negative. needs .
: the argument must be strictly positive. needs .
Example 1Find the largest possible domain of .
Finding the range from a sketch
The reliable method is: sketch over the given domain only, then read off the lowest and highest -values the graph reaches, noting any it approaches but never attains.
For quadratics, complete the square to locate the vertex. has minimum value at , so on all real its range is .
Restricting the domain can cut the range. On the domain , the same function starts at , falls to at , and rises to . The range is .
Example 1Find the range of for the domain .
Evaluating only the end points of the domain is not enough: a turning point inside the domain can produce a value lower or higher than either end. That is why and alone would have missed the minimum of above.
The modulus function
The is the non-negative size of : if and if . So .
To sketch , sketch and reflect any part below the -axis upwards in that axis. The range of is always .
The graph of is a V shape with its vertex on the -axis at . Solving gives two cases: or .
Example 1Solve .
Tip — When solving with non-constant, check every solution in the original equation: squaring or splitting into cases can produce answers where is negative, which are invalid.
Think like an examiner
- Write ranges in terms of , never .
- Include a sketch when finding a range — it is the working that justifies your answer.
- Distinguish strict and non-strict inequalities at each end point.
- Check for turning points inside a restricted domain.
Common misconceptions
Domain and range
Stretch yourself
The function is defined by for the domain . Find the range of .
Hint — Sketch on the domain, reflect the negative part to get , find its greatest and least values, then apply "5 minus".
Reveal solution
Questions students ask
Is the domain always given?
Can two functions have the same formula but be different?
How do I find the range of a quadratic?
Why sketch when I could just calculate?
Key takeaways
- The domain is the set of permitted inputs; the range is the set of resulting outputs.
- Largest real domain: avoid division by zero, even roots of negatives, logs of non-positives.
- Find ranges from a sketch over the domain, checking turning points and asymptotes.
- Write ranges in terms of with correct strict or non-strict inequalities.
- reflects negative parts upwards; splits into two cases.
How this fits the course
Test yourself
Answer a few questions, then review anything you missed.
Keep practising
Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.
Related lessons
All 6 lessons- Same chapterFunction NotationUnderstanding function notation and terminology.
- Same chapterComposite FunctionsWorking with composite functions.
- Same chapterInverse FunctionsUnderstanding and finding inverse functions.
Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.