- Foundation
- About 14 min
- 5 practice questions
Domain and range of standard functions
Know the domain and range of the identity, constant, polynomial, modulus, signum, greatest integer, rational and square-root functions, and find them for simple formulas.
If something looks wrong, please tell us.
Most questions about functions start by asking where a formula makes sense and what values it can produce. A handful of standard functions appear again and again, and two rules decide the domain of almost any simple formula: you cannot divide by zero, and you cannot take the square root of a negative number. This lesson lists the standard functions and then applies the two rules.
The standard real functions
| Function | Rule | Domain | Range |
|---|---|---|---|
| Identity | f(x) = x | R | R |
| Constant | f(x) = c | R | {c} |
| Polynomial (degree 1) | f(x) = ax + b, a ≠ 0 | R | R |
| Square | f(x) = x² | R | [0, ∞) |
| Modulus | f(x) = |x| | R | [0, ∞) |
| Signum | 1 if x > 0, 0 if x = 0, −1 if x < 0 | R | {−1, 0, 1} |
| Greatest integer | f(x) = [x], the greatest integer ≤ x | R | Z |
| Reciprocal | f(x) = 1/x | R − {0} | R − {0} |
| Square root | f(x) = √x | [0, ∞) | [0, ∞) |
The modulus function gives the size of a number without its sign: |3| = 3 and |−3| = 3. The signum function reports only the sign. The greatest integer function [x] rounds down to the nearest integer: [2.7] = 2, [5] = 5 and, carefully, [−2.7] = −3, because −3 is the greatest integer that is not more than −2.7. Rounding a negative number down moves it away from zero.
Rule 1: the denominator cannot be zero
For a rational function, find the values that make the denominator zero and remove them from R. For f(x) = 1/(x − 3), the denominator is zero at x = 3, so the domain is R − {3}. A fraction with a non-zero numerator is never zero, so 1/(x − 3) never equals 0; every other real value is reached, and the range is R − {0}.
Rule 2: the expression under a square root must be at least zero
For f(x) = √(g(x)), solve g(x) ≥ 0. Zero is allowed, because √0 = 0. The output of a square root is never negative, so the range always lies inside [0, ∞).
Worked example 1: a rational function
Find the domain of f(x) = (x + 1)/(x² − 5x + 6). Factorise the denominator: x² − 5x + 6 = (x − 2)(x − 3), which is zero at x = 2 and x = 3. The numerator plays no part in the domain. So the domain is R − {2, 3}.
Worked example 2: a square root
Find the domain and range of f(x) = √(x − 2). We need x − 2 ≥ 0, so x ≥ 2 and the domain is [2, ∞). At x = 2 the value is 0, and as x grows the value grows without limit, so the range is [0, ∞). For √(4 − x), the condition 4 − x ≥ 0 gives x ≤ 4, so the domain is (−∞, 4]: the sign of x inside changes which way the interval points.
Worked example 3: range by building up
Find the range of f(x) = x² + 3. Start from what you know: x² takes every value in [0, ∞). Adding 3 shifts every value up by 3, so x² + 3 takes every value in [3, ∞). The smallest value 3 occurs at x = 0. Building a formula step by step from a standard function is the simplest way to find a range at this level.
Domain: remove the zeros of every denominator, and keep only x that make each expression under a square root ≥ 0. Range: start from a standard function and follow each step.
Key takeaways
Learn the table of standard functions; their domains and ranges are used constantly. For a domain, the two dangers are division by zero and square roots of negatives. For a range, begin with a known range such as [0, ∞) for x² and |x| and apply the shifts and scalings in the formula. Take care with [x] for negative x.
Check your understanding
-
1. What is the domain of f(x) = 1/(x + 5)?
- R − {5}
- R
- (−5, ∞)
- R − {−5}
Show answer
Answer: D. The denominator x + 5 is zero at x = −5. Every other real x is allowed.
-
2. What is the domain of f(x) = √(4 − x)?
- [4, ∞)
- (−∞, 4)
- (−∞, 4]
- [−4, 4]
Show answer
Answer: C. We need 4 − x ≥ 0, so x ≤ 4. x = 4 is allowed because √0 = 0.
-
3. What is the range of f(x) = |x| on R?
- [0, ∞)
- R
- (0, ∞)
- (−∞, 0]
Show answer
Answer: A. |x| is never negative, it equals 0 at x = 0, and it takes every positive value. So the range is [0, ∞).
-
4. What is [−1.5], where [x] is the greatest integer function?
- −1
- −2
- −1.5
- 1
Show answer
Answer: B. [x] is the greatest integer not more than x. The integers ≤ −1.5 are −2, −3, ..., and the greatest is −2.
-
5. What is the range of the signum function?
- {−1, 1}
- [−1, 1]
- R
- {−1, 0, 1}
Show answer
Answer: D. Signum gives 1 for positive x, 0 at x = 0 and −1 for negative x, so its range is {−1, 0, 1}.
Sign in to keep track of the lessons you finish.