The domain and range of a function are the two sets that describe, respectively, all the input values a function can accept and all the output values it can actually produce. Understanding how to find the domain and range of linear, quadratic, rational, radical, exponential, logarithmic, and trigonometric functions is one of the most reusable skills in all of algebra and precalculus — it shows up in graphing, in solving equations, in optimization problems, and later in calculus when you study limits and continuity. This guide walks through every major family of functions, the rules that govern their inputs and outputs, and a reliable step-by-step method you can apply to any expression you meet Small thing, real impact..
What Domain and Range Actually Mean
Think of a function as a machine. You feed it a number, it does something to that number, and it hands you back a result.
- The domain is the complete list of numbers you are allowed to feed in.
- The range is the complete list of numbers that can possibly come out.
If you graph the function, the domain is the shadow the graph casts on the x-axis, and the range is the shadow it casts on the y-axis. That visual trick alone solves a surprising number of problems It's one of those things that adds up..
The Three Rules That Create Restrictions
Most functions accept every real number. Only three situations break that generosity, and almost every domain problem reduces to one of them:
- Division by zero is undefined. Any value that makes a denominator equal zero must be thrown out.
- Even roots of negative numbers are not real. For a square root, fourth root, sixth root, and so on, the expression inside must be greater than or equal to zero.
- Logarithms require positive inputs. You cannot take the logarithm of zero or of a negative number.
Odd roots (cube roots, fifth roots) carry no restriction, and polynomials carry no restriction at all. Keep those three rules in mind and the rest is arithmetic That's the part that actually makes a difference..
Domain and Range by Function Family
Linear Functions
For f(x) = mx + b:
- Domain: all real numbers, written as (−∞, ∞)
- Range: all real numbers, (−∞, ∞)
The only exception is a constant function such as f(x) = 7, where m = 0. Its domain is still all real numbers, but its range collapses to the single value {7} Most people skip this — try not to..
Quadratic Functions
For f(x) = ax² + bx + c:
- Domain: (−∞, ∞)
- Range: depends entirely on the direction the parabola opens
If a > 0 the parabola opens upward and the vertex is the minimum, so the range is [k, ∞), where k is the y-coordinate of the vertex. If a < 0 the parabola opens downward and the range is (−∞, k].
Example: f(x) = x² − 6x + 5 has its vertex at (3, −4), so the range is [−4, ∞).
Cubic and Higher-Degree Polynomials
Any polynomial of odd degree has domain (−∞, ∞) and range (−∞, ∞), because the ends shoot off in opposite directions and the graph is continuous. Even-degree polynomials with degree four or higher have domain (−∞, ∞), but their range must be found from the graph's turning points And that's really what it comes down to..
Rational Functions
For f(x) = p(x) / q(x):
- Domain: all real numbers except the zeros of q(x)
- Range: frequently excludes the horizontal asymptote, but not always
Take f(x) = 1/x. Now take f(x) = (x² − 1)/(x − 1). Which means it simplifies to x + 1 with a hole at x = 1, so the domain is x ≠ 1 while the range is y ≠ 2. The domain is x ≠ 0 and the range is y ≠ 0. Notice how the excluded input and the excluded output are different numbers here — a detail students often miss.
Square Root and Radical Functions
For f(x) = √x: domain [0, ∞) and range [0, ∞).
With transformations, solve the inside inequality and read the output from the outside. For f(x) = √(x − 3) + 2:
- Set x − 3 ≥ 0, giving the domain [3, ∞)
- The smallest possible output is 0 + 2, giving the range [