Skip to content
spmaddmath.com.my
Tuition

Study

SyllabusFormulasMethodsExam & PapersTools
LocationsPricingBlogOur TeachersContact
EN

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

f(x)=1x2f(x) = \frac{1}{x - 2}

the denominator is zero when x=2x = 2, so the domain is every real number except 22. For

g(x)=x3g(x) = \sqrt{x - 3}

the inside must satisfy x30x - 3 \ge 0, which gives a domain of x3x \ge 3. 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 f(x)=2x+3f(x) = 2x + 3 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

f(x)=x24x+7f(x) = x^{2} - 4x + 7

Completing the square gives f(x)=(x2)2+3f(x) = (x - 2)^{2} + 3. Because a squared term is never negative, the smallest (x2)2(x - 2)^{2} can be is 00 (when x=2x = 2), so the smallest output is 33.

The graph is a parabola opening upward with its lowest point at (2,3)(2, 3), and the outputs climb from there without limit. The range is therefore

f(x)3f(x) \ge 3

The same idea works for a downward parabola, except the vertex is the highest point and the range runs the other way, f(x)f(x) \le 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 x=2x = 2 in the domain of 1x2\frac{1}{x-2} 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 f(x)=x2f(x) = x^{2} is defined only for 0x30 \le x \le 3, the range is 0f(x)90 \le f(x) \le 9, 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 xx-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 Class

Frequently 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 f(x)=1x2f(x) = \frac{1}{x-2} the domain is every real number except 22; for g(x)=x3g(x) = \sqrt{x-3} it is x3x \ge 3.

How do I find the range of a quadratic?

Complete the square to find the vertex. For f(x)=x24x+7=(x2)2+3f(x) = x^{2} - 4x + 7 = (x-2)^{2} + 3, the lowest output is 33, so the range is f(x)3f(x) \ge 3.

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 f(x)=x2f(x) = x^{2} on 0x30 \le x \le 3, the range is 0f(x)90 \le f(x) \le 9, not all non-negative numbers. Always let the given domain decide which outputs are reachable.

Source:SRC-FORMAT

Written by the spmaddmath.com.my editorial team.· Last updated 5 September 2026

Ready to get started?

Book a Trial Classfrom RM50/hr · One-hour paid trial · Same-day reply
Book a Trial ClassOne-hour paid trial · Same-day reply