The natural domain of a function is the largest set of real numbers for which the function is defined. Finding the domain requires identifying restrictions such as division by zero or square roots of negative numbers. The range is the set of all values the function actually outputs.
Quick Reference
| Restriction | Rule | Example |
|---|---|---|
| Division by zero | Exclude values where denominator | : exclude |
| Even root of negative | Exclude values where radicand | : require |
| Odd root | No restriction | : domain is |
| Polynomial | No restriction | : domain is |
| Exponential , | No restriction | : domain is |
What Is the Natural Domain?
We say a function is defined for when is a real number. When the domain is not specified, it is assumed to be the natural domain: the largest set of real numbers for which is real.
The set of all real numbers for which is real is called the natural domain (or simply the domain) of the function, denoted .
Key rules that determine when a function is defined:
- for positive integer : defined for every real .
- : defined for every (division by zero is undefined).
- : defined for (square roots of negative numbers are not real).
- for even integer : defined for .
- for odd integer : defined for every real .
- for constant : defined for every real .
If you want to restrict the domain beyond the natural domain, you must say so explicitly. For example, writing "" restricts to positive inputs. Without that restriction, the domain is all of .
Finding Natural Domains
Determine the natural domains of the following functions:
Solution
(a) is a polynomial, so it is real for all :
(b) is real when , i.e., :
(c) is real when , i.e., :
(d) We need . Factoring: . From a sign diagram, this product is nonnegative when or :

(e) We need . From a sign diagram, this holds when :
![A sign chart for the domain of G(x) = √(4 - x²) showing the interval [-2, 2] is nonnegative.](https://adaptivebooks.org/book-images/precalculus/Ch2-signdiag-2.png)
(f) requires and requires . Both must hold simultaneously:
(g) is undefined where or :
The Range of a Function
The range of a function is the set of all values actually taken by the function:
The range is always a subset of the codomain: .
Let and . Find the range of .
Solution
The range consists of all possible outputs. Any is a possible output because we can set to get . No is in the range because for all real . Therefore:
Finding the range is generally harder than finding the domain. In elementary calculus, powerful methods (derivatives, monotonicity) make it easier to determine ranges precisely. For now, sketching the graph is the most reliable approach.
Exercises
Find the natural domain of each function.
(a) (b) (c) (d)
Answer
(a) (b) (c) (d)
Solution
(a) This is a polynomial. Every term is a whole-number power of multiplied by a number, and such expressions can be evaluated for any real : there is no division and no root. Hence
(b) The only danger is division by zero. Set the denominator equal to zero:
Every other real number is allowed, so
(c) A square root is real only when what is under it is not negative. Require
Subtract from both sides:
Hence . The endpoint is included, because is a perfectly good real number.
(d) Require the radicand to be nonnegative:
Subtract from both sides:
Divide both sides by . Dividing an inequality by a negative number reverses the direction of the inequality sign:
Hence .
Forgetting to flip the inequality in (d) is the single most common error in this kind of problem.
Check. For (d), test : , real, and indeed . Test : , not real, and indeed .
Find the natural domain of each function.
(a) (b) (c)
Answer
(a) (b) (c)
Solution
For a quotient, the rule is always the same: find where the denominator is zero and exclude exactly those numbers. The numerator causes no trouble at all; a zero numerator simply produces the output .
(a) Set the denominator to zero:
Factor as a difference of two squares:
By the Zero-Product Property, or , giving or . Therefore
(b) Set the denominator to zero:
No real number has a negative square, so the denominator is never zero. Hence
(c) Set the denominator to zero:
We need two numbers whose product is and whose sum is ; these are and . So
giving or . Therefore
Do not be tempted to cancel anything in (c): the numerator shares no factor with the denominator, and even if it did, the excluded values would stay excluded.
Check. In (a), , undefined — correctly excluded; and , perfectly fine.
Find the natural domain of .
Answer
Solution
Step 1: write down the requirement. The square root is real only when the radicand is not negative:
Step 2: factor. This is a difference of two squares:
Step 3: find where each factor changes sign. The factor is zero at ; the factor is zero at . These two numbers cut the number line into three pieces.
Step 4: test one number from each piece.
- Take (left piece): . ✔
- Take (middle piece): . ✘
- Take (right piece): . ✔
Step 5: collect the answer. The product is positive on the two outer pieces and equals at and , both of which are allowed since . Hence
Check. and , both real. But is not a real number, and lies in the excluded middle piece, as it should.
A common error is to "take the square root of both sides" of and write , losing the whole left-hand piece. The sign diagram avoids that.
Find the natural domain of .
Answer
Solution
Step 1: the requirement.
Step 2: factor. Both terms contain , so by the distributive property
Step 3: locate the sign changes. The factor is zero at ; the factor is zero at .
Step 4: test a point in each piece.
- : . ✘
- : . ✔
- : . ✘
Step 5: the answer. The expression is positive between and and equals at the two endpoints, which are allowed. Hence
Notice the contrast with the previous exercise: there the allowed set was the two outer pieces, here it is the middle piece. Which happens depends on the signs, so the test-point step must actually be carried out rather than guessed.
Check. , , both real; , not real.
Find the natural domain of each function, and explain why the two answers differ.
(a) (b)
Answer
(a) (b)
Solution
(a) The only requirement is that the radicand be nonnegative:
So , with included because is a real number.
(b) Now there are two requirements, and both must hold.
From the square root: , that is .
From the fraction: the denominator must not be zero, so . Since a square root is zero only when its radicand is zero, this says , that is .
Putting the two together, and , which leaves
Why they differ. At the number equals . That is a fine output for , but a fatal denominator for , since would be . So the single point belongs to the domain of but not to that of .
Check. , defined; , undefined. And , defined, as expected since .
Find the natural domain of .
Answer
Solution
Two separate restrictions must be satisfied at the same time.
Restriction from the square root. The radicand must be nonnegative:
Restriction from the denominator. The denominator must not be zero:
Combining them. We need and . Starting from the ray and removing the single point leaves two pieces:
The filled dot at marks a point that belongs to the domain; the hollow dot at marks a point that has been removed.
Check. , defined. , undefined. , not real. All three agree with the answer.
A frequent mistake is to stop after handling one of the two restrictions. Deal with every square root and every denominator in the formula, then take the values that satisfy all conditions at once.
Find the natural domain of .
Answer
Solution
For the sum to be a real number, both square roots must be real. Each one contributes a condition.
From :
From :
Add to both sides:
Both at once. We need and , which is the set of between and inclusive:
Check. , real. , real. is not real, and is not real either — so both endpoints of the interval are genuinely where the domain stops.
The key word is and. When several restrictions appear, the domain is the set of numbers meeting all of them, never the set meeting at least one of them.
Find the natural domain of each function and explain the difference.
(a) (b)
Answer
(a) (b)
Solution
(a) The index is even. An even root of a negative number is not real, for the same reason a square root is not: any real number raised to an even power is nonnegative, so nothing raised to the fourth power can give a negative result. Therefore we require
giving .
(b) The index is odd. An odd power of a negative number is negative, so negative numbers do have real cube roots. For example , because . There is no restriction at all:
The difference in one sentence. Even roots need a nonnegative radicand; odd roots accept anything.
Check. : is there a real number with ? No, since always. So is correctly excluded from . Meanwhile , since , so is correctly included in .
Find the natural domain of .
Answer
Solution
Again there are two conditions.
Condition 1: the square root must be real. We need
Condition 2: the denominator must not be zero. We need
To see which this excludes, solve the corresponding equation:
Square both sides:
Squaring can introduce false solutions, so verify: . Yes, really does make the denominator zero, so it must be excluded.
Combining. We need and :
Check. , defined. , undefined. , defined. involves , not real. All as predicted.
A tempting shortcut is to say "exclude " by looking at the in the formula. That is wrong: the denominator vanishes when , not when . Always solve the equation rather than reading off a number.
Find the range of each function, taking the natural domain in each case.
(a) (b) (c)
Answer
(a) (b) (c)
Solution
In each part we argue twice: first that no output can be smaller than a certain number, then that every number from there upward really is an output.
(a) .
Lower bound. For every real we have . Subtracting from both sides of that inequality,
so no output is below .
Every such value is attained. Let . Solve : adding gives , and , so we may take . Then
Hence .
(b) . The domain is .
Lower bound. For the value is nonnegative, so and therefore
Every such value is attained. Let . Solve : subtracting gives , which is , so squaring gives , a legitimate input since it is . Then .
Hence .
(c) .
Lower bound. An absolute value is never negative: for every real . Subtracting ,
Every such value is attained. Let . Take , which is , so and
Hence .
Check. , the smallest value of (a); , the smallest value of (b); , the smallest value of (c). And, for instance, , , , all in the stated ranges.
Find the range of .
Answer
Solution
Upper bound. For every real we have . Multiplying both sides of this inequality by reverses the inequality sign:
Adding to both sides,
So no output exceeds .
Every value is attained. Let . Solve
Subtract : . Multiply by : . Since , the number is nonnegative, so it has a square root. Take . Then
Conclusion.
Check. , the largest value. , which is . To get the output , take , and indeed .
The dangerous step is multiplying the inequality by . Writing would give the wrong range ; the sign must be flipped.
Find the natural domain and the range of .
Answer
and .
Solution
Domain. Require , that is . Factoring,
Testing points: at the product is ; at it is ; at it is . So the expression is nonnegative exactly between the zeros and , endpoints included:
Range — the possible sizes of the radicand. As runs through , the square runs through the values from (at ) up to (at ), so
Multiplying by reverses both inequalities: . Adding throughout:
Range — taking the square root. The square root of a number between and lies between and . So every output satisfies
Every such value is attained. Let satisfy . Solve . Squaring, , so . Since , we have , so and we may take . This lies in because . Then
the last step being valid because .
Conclusion. .
Check. , , . All lie between and , and the two extreme values are actually reached.
Note that the outputs are never negative: always denotes the nonnegative square root.
Find the range of , whose natural domain is .
Answer
Solution
The systematic way to find a range is to ask: for which numbers can the equation be solved for an in the domain?
Set up the equation.
Solve for . Multiply both sides by (allowed, since in the domain):
To divide by we need . So consider the two cases separately.
Case . The equation becomes , which is false. So there is no with : the output never occurs. This makes sense — a fraction with numerator can never equal zero, because for a fraction to be zero its numerator must be zero.
Case . Divide both sides by :
and this is a legitimate input, since . Then
so really is an output.
Conclusion. Every nonzero is attained and is not, so
Check. To produce the output , take : indeed . And no input gives , however large becomes, since is never exactly zero.
Find the natural domain and the range of .
Answer
and .
Solution
Domain. The denominator vanishes when , that is . So
Range. Ask which can be written as for some allowed . Set
Multiply both sides by , which is nonzero for allowed :
Expand the right-hand side:
Gather the -terms on one side and everything else on the other. Subtract and add to both sides:
Factor out of the right-hand side by the distributive property:
Case . The equation becomes , that is , which is false. So the value is never an output.
Case . Divide both sides by :
This is a real number, and it is an allowed input provided . Could it equal ? That would need , hence , hence , which is impossible. So automatically, and is genuinely attained.
Conclusion.
Check. Try to obtain the output : the formula gives , and
And is indeed unreachable: would give , that is , impossible.
A rectangle has perimeter cm and width cm, so its area is
(a) What is the natural domain of the formula , considered purely as an algebraic expression?
(b) What set of values of actually makes sense for the rectangle?
Answer
(a) (b)
Solution
(a) Expanding, , a polynomial. There is no denominator and no root, so the expression can be evaluated at every real number:
For instance, the formula happily returns and .
(b) Those outputs are nonsense for a rectangle: an area cannot be negative, and a width cannot be negative either. The situation imposes its own restrictions.
The width must be positive: .
The length must be positive: the length is , so we need
Both conditions together give
The endpoints are hollow because and both collapse the rectangle to a segment of zero area.
The moral. The natural domain is the largest set on which the formula makes sense; a problem drawn from the real world may require a smaller domain, and when it does, that restriction must be stated explicitly, exactly as the section says.
Check. cm², a sensible area for a rectangle whose perimeter is cm. ✔
A student writes: "Since , the natural domain of is all of ."
Find the mistake and give the correct domain and range.
Answer
The cancellation is only valid for . The domain is and the range is .
Solution
What is correct. Factoring the numerator as a difference of two squares,
and cancelling the common factor gives . So for most values of the function does behave like .
What is wrong. Cancelling a factor means dividing the numerator and denominator by it, and division by zero is forbidden. The cancellation is therefore valid only when , that is, when . The correct statement is
At the original formula reads
which is not a number at all. The natural domain is the set of inputs for which the given formula produces a real number, so
The range. For every allowed the output equals . As runs over all reals except , the value runs over all reals except . In detail: given any , put ; then (because ), so is allowed, and . And is impossible, since would force , which is not in the domain. Hence
Check. , and . ✔ , and . ✔ is undefined. ✔
The general warning. Simplify a formula as much as you like, but read the domain off the original expression. Cancelling can hide a forbidden input.
Decide whether each statement is always, sometimes, or never true, and justify your answer.
(a) The natural domain of a function defined by a square root is a bounded interval.
(b) If belongs to the natural domain of and also to the natural domain of , then belongs to the natural domain of the quotient .
Answer
(a) Sometimes true. (b) Sometimes true.
Solution
(a) Sometimes true.
A case where it is true. For the requirement gives the domain , which is a bounded interval.
A case where it is false. For the requirement gives the domain , which stretches out forever and is certainly not bounded.
A third case, false in a different way. For the domain is , which is not even a single interval.
Since it holds in some cases and fails in others, the statement is sometimes true.
(b) Sometimes true.
A case where it is true. Let and , and take . Both functions are defined at , and the quotient is defined at as well, since .
A case where it is false. Keep the same and but take . Both and are perfectly good real numbers, so lies in both domains. But the quotient at would be , which is undefined. So is not in the domain of the quotient.
Since both outcomes occur, the statement is sometimes true.
The exact rule. A number belongs to the natural domain of exactly when it belongs to the domains of both and and does not vanish there. The last condition is precisely the one the statement forgot.
Frequently Asked Questions
What happens if I plug in a number outside the domain?
The function is undefined there. For example, is undefined at because is not a real number. Plugging in such values produces an imaginary result, which is outside the scope of real-valued functions.
How do I find the domain of a fraction?
Find all values of for which the denominator equals zero, then exclude those values from . For , the denominator is zero at and , so .
Is the range always an interval?
No. The range can be a single point (for a constant function), a union of intervals, or a discrete set. For example, the signum function has range , which is a finite set.
What is the difference between range and codomain?
The codomain is the set you declare outputs should come from (often ). The range is the set of outputs the function actually produces. For with codomain , the range is only , a proper subset of .
Can the domain be empty?
Technically yes (a function with an empty domain is called the empty function), but in practice the functions you encounter in precalculus and calculus always have nonempty domains. If your calculation gives an empty domain, double-check your work.