Finding Domain and Range of a Function- Methods and Examples
What Are Domain and Range?
Domain is the set of all possible x-values a function can accept. Range is the set of all possible y-values the function outputs. That's it. No fancy definitions needed.
These two concepts are the foundation of understanding functions. If you can't identify domain and range, you're going to struggle with everything that comes after.
How to Find Domain
Finding domain comes down to one question: what x-values break this function? You need to spot the troublemakers.
Polynomial Functions
Polynomials accept every real number. No restrictions. No square roots in denominators, no division by variables.
f(x) = x² + 3x - 7 has domain: (-∞, ∞)
Rational Functions (Fractions)
When you have a variable in the denominator, set the denominator equal to zero and solve. Those x-values are excluded.
For f(x) = 1/(x-4):
- Set x - 4 = 0
- Solve: x = 4
- Domain: all real numbers except x = 4
Square Root Functions
Expressions under even roots (square roots, fourth roots) must be non-negative. Set the radicand ≥ 0 and solve.
For f(x) = √(x-3):
- Set x - 3 ≥ 0
- Solve: x ≥ 3
- Domain: [3, ∞)
Logarithmic Functions
The argument of any logarithm must be strictly positive. Set it greater than zero and solve.
For f(x) = log(x + 5):
- Set x + 5 > 0
- Solve: x > -5
- Domain: (-5, ∞)
How to Find Range
Range is trickier. You need to figure out what y-values the function can actually produce. There are two approaches that work.
Method 1: Solve for x
Rewrite the function solving for x in terms of y. Then apply domain restrictions to that equation. Whatever y-values satisfy those restrictions become your range.
For f(x) = √(x-1):
- y = √(x-1)
- Square both sides: y² = x - 1
- Solve for x: x = y² + 1
- Since y = √(something), y ≥ 0
- Range: [0, ∞)
Method 2: Visual Reasoning
If you know the basic function's shape, you can determine range from its graph. Graph the parent function, then track what y-values are hit.
Function Types and Their Domain/Range
| Function Type | Domain | Range |
|---|---|---|
| Linear (mx + b) | (-∞, ∞) | (-∞, ∞) |
| Quadratic (x²) | (-∞, ∞) | [0, ∞) if opens up |
| Square Root (√x) | [0, ∞) | [0, ∞) |
| Cube Root (∛x) | (-∞, ∞) | (-∞, ∞) |
| 1/x (reciprocal) | x ≠ 0 | y ≠ 0 |
| Exponential (aˣ) | (-∞, ∞) | (0, ∞) |
| Logarithm (log x) | (0, ∞) | (-∞, ∞) |
| Absolute value (|x|) | (-∞, ∞) | [0, ∞) |
Worked Examples
Example 1: Rational Function
f(x) = (x + 2)/(x - 5)
Domain:
- Denominator x - 5 ≠ 0
- x ≠ 5
- Domain: (-∞, 5) ∪ (5, ∞)
Range:
- y = (x + 2)/(x - 5)
- Solve for x: y(x - 5) = x + 2
- yx - 5y = x + 2
- yx - x = 5y + 2
- x(y - 1) = 5y + 2
- x = (5y + 2)/(y - 1)
- Denominator y - 1 ≠ 0, so y ≠ 1
- Range: (-∞, 1) ∪ (1, ∞)
Example 2: Quadratic with Shift
f(x) = (x - 3)² + 2
Domain:
- Square is defined for all real numbers
- No division by zero issues
- Domain: (-∞, ∞)
Range:
- (x - 3)² is always ≥ 0
- Minimum value is 0 (at x = 3)
- (x - 3)² + 2 minimum is 2
- Range: [2, ∞)
Example 3: Combined Function
f(x) = √(x + 4) / (x - 2)
Domain:
- Square root requires x + 4 ≥ 0, so x ≥ -4
- Denominator requires x - 2 ≠ 0, so x ≠ 2
- Combined: [-4, 2) ∪ (2, ∞)
Finding range for combined functions often requires graphing or testing boundary values. The algebra gets messy quickly.
Common Mistakes to Avoid
- Forgetting to exclude values from rational function denominators — this is the most common error
- Writing ≥ when you need > — square roots need ≥, logarithms need >
- Assuming range mirrors domain — they are different sets with different restrictions
- Ignoring vertical shifts — adding or subtracting outside the function changes the range, not the domain
Getting Started: Quick Checklist
When you face a new function, run through this:
- Identify function type — polynomial, rational, root, log, etc.
- Spot restrictions — denominators ≠ 0, even roots ≥ 0, logs > 0
- Write domain — exclude restricted values
- Solve for x — if finding range algebraically
- Apply restrictions — to the solved equation for range
- Verify with a graph — when in doubt, check visually
That's the entire process. Practice with five different function types and you'll have this down cold.