Function Domain and Range- Complete Guide
What Are Domain and Range?
Domain and range are the two most fundamental concepts you'll encounter when studying functions. If you're struggling with these ideas, you're not alone—but understanding them is non-negotiable if you want to pass algebra, calculus, or anything that follows.
The domain is simply the set of all possible input values (x-values) that a function will accept. The range is the set of all possible output values (y-values) that the function can produce.
Think of it like a machine. You feed something in (that's your domain), the machine does its thing, and something comes out (that's your range). Some machines reject certain inputs. Those rejected inputs aren't in the domain.
Why Domain and Range Matter
You can't graph a function properly without knowing its domain. You can't solve real-world problems involving functions without understanding what inputs make sense. This isn't abstract theory—it's practical toolkit.
In calculus, domain restrictions determine where you can take derivatives and integrals. In statistics, domain and range help you understand the behavior of data models. You're going to need this, whether you like it or not.
How to Find Domain: The Rules
Finding domain comes down to one question: what x-values would break this function? Here are the hard rules:
- Division by zero — If your function has a denominator, any x-value that makes that denominator zero is NOT in the domain
- Square roots of negative numbers — If you have an even root (square root, fourth root, etc.), the radicand must be ≥ 0
- Logarithms — The argument of any logarithm must be strictly positive, never zero or negative
Everything else is fair game. That's the brutal truth of it.
Domain Examples by Function Type
Linear functions (like f(x) = 3x + 7): Domain is all real numbers. There's nothing you can plug in that will break this. Ever.
Quadratic functions (like f(x) = x²): Domain is all real numbers. Same logic—no denominators, no roots, no logs.
Rational functions (like f(x) = 1/(x-3)): Domain is all real numbers EXCEPT x = 3. That denominator would be zero there, and division by zero is undefined.
Square root functions (like f(x) = √(x-5)): The radicand (x-5) must be ≥ 0. So x ≥ 5. That's your domain.
How to Find Range: The Rules
Range is trickier. You have to think about what outputs the function is capable of producing. The approach depends on the function type:
- Linear functions — Range is all real numbers. A line goes up forever and down forever.
- Quadratic functions — Range depends on the vertex. If the parabola opens upward, range is [k, ∞). If it opens downward, range is (-∞, k].
- Square root functions — Range is [0, ∞) for √x, or [k, ∞) if there's a vertical shift
- Rational functions — Analyze end behavior and any horizontal asymptotes
Finding Range: A Practical Approach
Here's the method that actually works: solve for x in terms of y, then apply domain rules to that equation. Whatever y-values are allowed become your range.
For f(x) = √(x-2):
Set y = √(x-2)
Square both sides: y² = x - 2
Solve for x: x = y² + 2
Now ask: what y-values work here? Since y² is always ≥ 0, there's no restriction on y. But wait—we squared an equation. We need to check the original. Since √(x-2) always produces non-negative results, y ≥ 0.
Range = [0, ∞)
Domain and Range of Common Function Types
| Function Type | Domain | Range |
|---|---|---|
| Linear f(x) = mx + b | All real numbers | All real numbers |
| Quadratic f(x) = ax² + bx + c | All real numbers | Varies by vertex position |
| Cubic f(x) = x³ | All real numbers | All real numbers |
| Square root f(x) = √x | [0, ∞) | [0, ∞) |
| Cube root f(x) = ∛x | All real numbers | All real numbers |
| Rational f(x) = 1/x | x ≠ 0 | y ≠ 0 |
| Absolute value f(x) = |x| | All real numbers | [0, ∞) |
| Logarithmic f(x) = log(x) | (0, ∞) | All real numbers |
Domain and Range from Graphs
Reading domain and range from a graph is often easier than from an equation. Here's how:
For domain, scan left to right along the x-axis. Find the leftmost point where the graph exists and the rightmost point. If the graph extends infinitely in either direction, the domain extends infinitely.
For range, scan bottom to top along the y-axis. Find the lowest point and highest point. Same deal—if it goes on forever, your range goes on forever.
Watch out for holes and gaps. If the graph has a discontinuity, that x-value isn't in the domain, and the corresponding y-value isn't in the range.
Getting Started: Practice Problems
Work through these to build your skills:
Problem 1: Find the domain of f(x) = 1/(x² - 4)
Set denominator = 0: x² - 4 = 0 → x² = 4 → x = ±2
Domain: All real numbers except x = -2 and x = 2
Problem 2: Find the domain of f(x) = √(7 - 2x)
Set radicand ≥ 0: 7 - 2x ≥ 0 → -2x ≥ -7 → x ≤ 3.5
Domain: (-∞, 3.5] or x ≤ 3.5
Problem 3: Find the range of f(x) = (x - 3)² + 2
This is a parabola opening upward with vertex at (3, 2).
The minimum y-value is 2. The graph goes up forever.
Range: [2, ∞)
Common Mistakes to Avoid
- Forgetting that denominators can't be zero
- Confusing domain with range (it happens constantly)
- Forgetting that square roots require non-negative radicands
- Not checking for extraneous solutions when solving for range
- Assuming all functions have all real numbers as domain
Piecewise Functions: Special Case
Piecewise functions have different rules for different parts of their domain. To find the domain, you combine all the intervals where each piece is defined. To find the range, you consider the outputs from all pieces.
Example: f(x) = { x² if x < 0, x + 1 if x ≥ 0 }
Domain: All real numbers (both pieces are defined everywhere)
Range: For x < 0, outputs are positive (since x² > 0). For x ≥ 0, outputs start at 1 and go up. Combined range: (0, ∞)
Inverse Functions and Domain/Range
Here's a fact that trips people up: the domain and range of a function swap when you find its inverse.
If f(x) has domain D and range R, then f⁻¹(x) has domain R and range D.
This makes sense if you think about it. An inverse function reverses the input-output relationship. What was an input becomes an output, and vice versa.
For f(x) = √(x + 2): Domain is [-2, ∞), range is [0, ∞).
For f⁻¹(x) = x² - 2: Domain is [0, ∞), range is [-2, ∞).
Functions with Multiple Restrictions
Real functions often combine multiple restrictions. You have to check all of them.
Example: f(x) = √(x - 1) / (x² - 9)
Restriction 1 (radicand): x - 1 ≥ 0 → x ≥ 1
Restriction 2 (denominator): x² - 9 ≠ 0 → x ≠ ±3
Combined: x ≥ 1, x ≠ 3. This gives domain: [1, 3) ∪ (3, ∞)
When you see multiple potential problems in a function, check each one separately, then find where all conditions overlap.
Interval Notation: How to Write Domain and Range
You need to know how to express your answers properly:
- Parentheses ( ) mean the endpoint is NOT included
- Brackets [ ] mean the endpoint IS included
- ∞ and -∞ always get parentheses—they're not actual numbers
- Use U (union) to combine disjoint intervals
Domain of f(x) = 1/(x-3): (-∞, 3) ∪ (3, ∞)
Range of f(x) = x² with vertex at origin: [0, ∞)
Final Word
Domain and range aren't complicated concepts. They're foundational. Master these now, and everything that follows—limits, derivatives, integrals—gets easier. Struggle with these, and you'll be fighting an uphill battle.
The method is straightforward: identify what breaks the function, exclude those values, and state what's left. That's domain. For range, either read it from a graph or solve for x in terms of y and check what y-values work.
Practice with different function types until it's automatic. There's no shortcut here—just work through enough problems that you stop having to think about it.