Chapter · Functions
Understanding domain and range without the jargon
Domain is simply the set of inputs you are allowed to put into a function; range is the set of outputs it actually produces. Once you read them that way, finding the domain becomes a hunt for what would break the rule, and finding the range becomes a question of how high and low the outputs can go.
What domain and range really mean
A function is a rule that takes an input and gives back exactly one output. The domain is the full set of inputs you are allowed to feed in.
The range is the set of outputs the rule actually produces. That is the whole idea, everything else is just working out those two sets for a particular rule.
A vending machine is a handy picture. The buttons you are allowed to press are the domain; the snacks that can actually drop out are the range.
If a button is broken and pressing it does nothing, that button is not in the domain. If the machine never stocks a certain snack, that snack is not in the range, no matter how many buttons exist.
Domain is about the inputs; range is about the outputs. Keeping those two straight solves most of the confusion in this topic.
One-line memory aid
Domain = what you're allowed to put IN. Range = what actually comes OUT.
If you can say which is which for any function, you already understand the topic.
Finding the domain: what are you allowed to put in?
Unless a question restricts it, the domain is "all real numbers", except for inputs that would break a rule of arithmetic. In Add Math there are three breakages to watch for, and the domain is simply everything except the values that cause them.
- Dividing by zero, the denominator of a fraction can never be zero.
- Square-rooting a negative, inside a square root, the expression must be zero or positive.
- Taking the log of a non-positive number, the input of a logarithm must be strictly greater than zero.
So for
the denominator is zero when , so the domain is every real number except . For
the inside must satisfy , which gives a domain of . Notice the method is the same each time: write down what would break, then exclude exactly those inputs.
Everything else is allowed.
Finding the range: what actually comes out?
The range asks how high and how low the outputs can go once you feed in every allowed input. For a straight line like with no domain restriction, the outputs can be anything, so the range is all real numbers.
The interesting cases are the curved ones.
Quadratics are the classic example, and completing the square is the tool. Take
Completing the square gives . Because a squared term is never negative, the smallest can be is (when ), so the smallest output is .
The graph is a parabola opening upward with its lowest point at , and the outputs climb from there without limit. The range is therefore
The same idea works for a downward parabola, except the vertex is the highest point and the range runs the other way, the maximum value. Sketching the curve, even roughly, makes the range obvious, which is one reason graph skills and this topic reinforce each other.
Where students most often trip up
A few mistakes come up again and again, and knowing them in advance is half the battle.
- Swapping domain and range, writing the outputs when the question asked for inputs, or the reverse. Re-reading "in" versus "out" before answering fixes this.
- Forgetting to exclude a value, leaving in the domain of because the danger is easy to miss when you are moving fast.
- Sign slips when completing the square, which move the vertex and quietly wreck the range. Checking the vertex against a quick sketch catches these.
- Ignoring a stated domain, if a question restricts the domain, the range depends on that restriction, not on the whole curve.
A restricted domain changes the range
If is defined only for , the range is , not all non-negative numbers. Always let the stated domain limit which outputs are actually reachable.
Why this idea keeps returning across the syllabus
Domain and range are not a one-chapter curiosity; they run through the whole of Add Math. Inverse functions depend on them directly, the domain of a function becomes the range of its inverse, and vice versa, which is why a function must be one-to-one before it can be inverted.
Graph work is built on knowing which -values are allowed and how far up and down the curve reaches. And in the calculus chapters, questions about where a function exists and what values it takes are domain-and-range questions wearing different clothes.
It shows up in both papers
Function questions appear across the exam, Paper 1 (2 hours, 80 marks, Sections A and B) and Paper 2 (2 hours 30 minutes, 100 marks, Sections A, B and C), with no Paper 3. Because marking is analytic, showing the step that excludes a value or finds the vertex earns method marks even if the final set is written slightly wrong.
How one-to-one teaching can help
Domain and range are usually easy once the idea clicks, but the click can be slow to arrive when a class is moving fast. Working one-to-one, a teacher can put a few functions in front of you, watch which step you hesitate on, the exclusion, the completing-the-square, the sketch, and spend the time exactly there rather than re-explaining the parts you already have.
Our teachers are experienced; lessons are online and taught in English, while the SPM papers are set bilingually in Bahasa Melayu and English.
If this topic still feels slippery, you are welcome to begin with a one-hour paid trial class at the teacher's own rate (from RM50 per hour, depending on experience). We won't promise a grade, but we can help you get to the point where reading "in" and "out" off a function feels automatic.
Get 1-to-1 help.
Book a Trial ClassFrequently asked questions
What is the difference between domain and range in one sentence?
The domain is the set of inputs you are allowed to put into a function; the range is the set of outputs it actually produces. Domain is about what goes in, range about what comes out.
How do I find the domain of a function?
Assume all real numbers, then exclude anything that breaks a rule: no dividing by zero, nothing negative inside a square root, and only positive numbers inside a logarithm. For the domain is every real number except ; for it is .
How do I find the range of a quadratic?
Complete the square to find the vertex. For , the lowest output is , so the range is .
A quick sketch confirms whether the vertex is a minimum or a maximum.
Does a stated domain affect the range?
Yes. If the domain is restricted, only the outputs from those inputs count.
For on , the range is , not all non-negative numbers. Always let the given domain decide which outputs are reachable.
Source:SRC-FORMAT