The numerator never decides the domain, and simplifying too early can quietly erase restrictions. The sections below show how to avoid both traps, handle fractions inside fractions, and confirm an answer in under a minute.
Why is the domain of a rational function restricted?
A rational function is a quotient of two polynomials, and the restriction comes from what division means. The statement is shorthand for . Now let . The equation becomes , which is possible only when , and then every value of works. So has no answer and has too many. Either way the input fails to produce exactly one output, which is the one thing a function must do.
One consequence is that only the denominator matters. In the numerator is zero at and , but those inputs are perfectly legal: they give an output of and become -intercepts. Only breaks the function. Zeros of the denominator are gaps, while zeros of the numerator are intercepts.
Quick check
Answer:
How to find the domain of a rational function step by step
The method is four moves, and the order matters.
- Start with the original denominator, before any simplifying.
- Factor it completely.
- Set each factor equal to and solve (the zero-product property).
- State the domain as every real number except those solutions.
Example 1. Find the domain of .
The denominator factors as Setting each factor to zero gives and , so A fast check on the factoring: the roots of must add to and multiply to , and and .
A denominator of degree excludes at most values, and fewer when a factor repeats: excludes only . Cubics often factor by pulling out a common factor first, as in . When a quadratic denominator refuses to factor, the quadratic formula finds its zeros, and the quadratic formula practice problems give you repetitions on exactly that step.
Writing the domain in interval notation
Excluded values cut the number line into pieces. Interval notation lists those pieces from left to right and joins them with the union symbol . Set-builder notation says the same thing in words.
| Excluded values | Set-builder | Interval |
|---|---|---|
| none |
Excluded values always get parentheses, because they are not in the domain, and infinity always gets a parenthesis because it is not a number. The classic slip is writing for the second row. That answer treats the two excluded values as if they chopped off the ends, and it loses the whole middle piece .
excluded values always create intervals. If two excluded values gave you only two intervals, a middle piece went missing.
Does cancelling a common factor change the domain?

It does not, and this is where most points are lost. The domain belongs to the function as originally written, so read the excluded values off the original denominator before cancelling anything. A cancelled factor still leaves its zero behind as a hole.
Example 2. Find the domain of and locate every hole and vertical asymptote.
Factor both parts: The original denominator is zero at and , so the domain is all real numbers except and . Cancelling leaves for . The factor survives, so is a vertical asymptote. The factor cancelled, so is a hole, and its height comes from the simplified form: The hole sits at .
The rule to keep: a zero of the denominator that survives cancelling is an asymptote, and one that cancels is a hole, and both are outside the domain. The cancelling technique itself is covered in simplifying rational expressions. A neat extreme case is , which simplifies to . Its graph is the line (see slope-intercept form) with a single point missing at .
Quick check
Answer: x ≠ 1, 2; hole at (1, -2)
Finding the domain with fractions inside fractions
When one fraction sits inside another, every denominator at every level creates a restriction, and the outer fraction adds one more: its own denominator cannot equal zero.
Example 3. Find the domain of .
Collect the restrictions. The inner denominator gives . The inner denominator gives . The denominator of the whole expression, , cannot be zero, so . The domain is all real numbers except , and .
Now simplify by dividing rational expressions, which means multiplying by the reciprocal: The simplified denominator shows only and . The restriction at has vanished, and that is the trap. At the simplified formula gives , but the original is undefined there, so the graph has a hole at .
Sums work the same way. When you start adding rational expressions, the domain is every value allowed in every term, even if terms cancel later: equals , yet the function is undefined at . The reverse operation, partial fraction decomposition, splits a fraction into pieces, such as and each piece carries one restriction, with reappearing when they are combined.
Write down the zeros of every denominator as you meet them, at every level. Simplifying shortens the formula, but the list you made stays with the problem.
When is the domain of a rational function all real numbers?
Some rational functions have no restrictions at all. A denominator with no real zeros never reaches zero, so the domain is . For a quadratic , the discriminant gives the test: if , there are no real roots.
For the denominator satisfies , so it is never zero. For the discriminant is , and completing the square confirms it: Both domains are all real numbers. A polynomial is the same case in disguise, since it is a rational function with denominator .
Compare . Its discriminant is , so These roots are ugly (about and ), but ugly values are still excluded: the domain is . The word “real” matters here. Over the complex numbers, is zero at , but high school and most college algebra courses work with real inputs unless told otherwise.
Domain of a rational function with roots or logarithms
The denominator rule covers ratios of polynomials only. Once a square root or logarithm joins the fraction, collect every restriction at once: denominators not zero, even-root radicands at least zero, and logarithm arguments strictly positive. The domain is where all restrictions hold together.
For , the root requires , so , and the denominator requires . The domain is . The bracket at is correct because a root of zero is allowed.
For the fraction must be positive. The numerator and denominator are zero at and . The quotient is positive when both have the same sign: both positive for , both negative for . Between and the signs differ. So the domain is . The logarithm rules say , but is defined only for . Expanding changed the domain, so always read it from the form as given.
Try this: Find the domain of . Then test , , and on a calculator. Two should return errors and two should return numbers. Do the results match your domain?
Domain versus range of a rational function
The domain lists allowed inputs. The range lists the outputs the function actually produces, and it is harder to find because it is not visible in the denominator. The two get confused constantly, and a vertical asymptote or hole is a gap in the domain, while a horizontal gap belongs to the range.
To find the range of , divide to rewrite it: The fraction is never zero, so never equals . The domain is and the range is . The second number matches the horizontal asymptote , which you can read off with the rules in vertical and horizontal asymptotes.
Do not assume a horizontal asymptote is always excluded from the range, because a graph may cross it. The function has asymptote , yet . The reliable method is to solve for in terms of . From you get , which needs . This also shows the link to inverses: the domain of the inverse function equals the range of the original.
Quick check
Answer:
Domain of a rational function in real problems and how to check it
In applications, context can shrink the domain further than algebra does. Take the average cost per item, , with a fixed cost of and per unit. Algebra says , but you cannot make a negative or fractional number of items, so the working domain is . For example, . Rewriting as shows the cost per item approaches but never reaches it.
Rational functions also appear in linear algebra. The inverse of is because its 2×2 determinant is . Every entry is a rational function with domain , and those are exactly the values where the matrix has no inverse.
Before you commit to an answer, run these quick checks:
- Substitute each excluded value into the original function. A zero denominator must appear.
- Substitute one test number from each interval. You should get a real output every time.
- Compare counts: no more excluded values than the degree of the denominator, and one more interval than excluded values.
- Use a graphing tool for a visual sanity check, but trust the alg
Practice problems
0 of 5 solved
- Find the domain of .
Answer:
Set the denominator equal to zero: . Then . The domain is all real numbers except , or . - Find the domain of .
Answer:
Set . Then , so . The numerator is ignored. The domain is all real numbers except . - Find the domain of .
Answer:
Factor the denominator: . The zeros are and . Cancelling does not restore to the domain. The domain is all real numbers except and . - Find the domain of .
Answer:
Factor: . The zeros are , and . The numerator is , but the domain is read from the original denominator. The domain is all real numbers except , and . - Find the domain of in interval notation.
Answer:
The root needs , so . The denominator needs , so . Remove and from . The domain is .
Common questions
How do you find the domain of a rational function?
Factor the denominator of the original function, set each factor equal to zero, and solve. The domain is every real number except those solutions. The numerator plays no part.
Does the numerator affect the domain of a rational function?
No. A numerator equal to zero just gives an output of zero, which is an x-intercept. Only values that make the denominator zero are excluded.
Is a hole part of the domain?
No. A hole comes from a factor that cancels, but the original function is still undefined at that x-value, so it stays out of the domain. It is a removable discontinuity, not a vertical asymptote.
What is the domain if the denominator has no real zeros?
The domain is all real numbers, written . An example is , because is never zero for real .
How do you write the domain of a rational function in interval notation?
List the intervals between the excluded values from left to right and join them with the union symbol. Use parentheses at every excluded value and at infinity. For the domain is .
What is the difference between the domain and the range of a rational function?
The domain is the set of allowed inputs, found from the zeros of the denominator. The range is the set of outputs the function actually produces, and it usually needs a rewrite or an inverse to find.