Tutorials › AP Calculus › Continuity of Rational Functions on Their Domains

Infinite Limits and Continuity · Tutorial 73 of 999

Continuity of Rational Functions on Their Domains

Use denominator zeros and continuity rules to determine a rational function’s domain and continuity set, then decide which excluded inputs need further analysis.

Intermediate 9 min read

What You'll Learn

  • Identify the natural domain of a rational function from its denominator.
  • State and apply the quotient continuity rule with its required condition.
  • Determine where a rational function is guaranteed to be continuous.
  • Distinguish an excluded input from a point where the function is defined.
  • Use factoring to locate excluded inputs that may need separate limit analysis.
  • Avoid restoring excluded inputs to the original domain after cancellation.

Why the Denominator Matters

A rational function is a quotient of polynomials. Its numerator and denominator are each continuous for every real input, but the quotient is defined only where its denominator is nonzero. That restriction gives a direct way to identify where continuity is guaranteed—and which inputs require separate attention.

The key distinction is between a function’s domain and a formula that might simplify algebraically. Cancelling a common factor can make a formula easier to evaluate at some inputs, but it does not change the domain of the original function. If the original denominator was zero at an input, the original function remains undefined there.

Key idea: A rational function is continuous at every point in its domain. To find that domain, solve the equation that sets its original denominator equal to zero and exclude those inputs.

Domain and Continuity for a Rational Function

A polynomial \(P(x)\) is continuous for every real number \(x\). For polynomials \(P\) and \(Q\), the rational function \(R\) is defined by

$$ R(x)=\frac{P(x)}{Q(x)} $$

at inputs where \(Q(x)\ne 0\). Thus its natural domain is the set of real inputs for which the denominator is not zero.

Definition: The natural domain of \(R(x)=\frac{P(x)}{Q(x)}\) is \(\{x\in\mathbb{R}:Q(x)\ne 0\}\). The function is continuous on that domain: it is continuous at each point in the domain.

This result follows from the quotient rule for continuity: if \(P\) and \(Q\) are continuous at \(a\) and \(Q(a)\ne 0\), then \(\frac{P}{Q}\) is continuous at \(a\). Both polynomial conditions hold for every real \(a\); the nonzero-denominator condition is the restriction that remains.

Why the Quotient Rule Guarantees Continuity

To be continuous at \(a\), a function must be defined at \(a\), have a limit as \(x\) approaches \(a\), and have that limit equal its value at \(a\). Suppose \(P\) and \(Q\) are polynomials and \(Q(a)\ne 0\). Polynomial continuity gives the limits of the numerator and denominator directly. The quotient limit law applies because the denominator’s limit is nonzero.

$$ \lim_{x\to a}\frac{P(x)}{Q(x)} = \frac{\lim_{x\to a}P(x)}{\lim_{x\to a}Q(x)} = \frac{P(a)}{Q(a)} = R(a). $$

The last equality also confirms that \(R(a)\) is defined: \(Q(a)\ne 0\). Therefore the limit exists, the function value exists, and they are equal. By the three-condition definition of continuity, \(R\) is continuous at \(a\). Since this argument works for every \(a\) in the natural domain, the rational function is continuous throughout that domain.

Theorem: If \(P\) and \(Q\) are polynomials, then \(P(x)/Q(x)\) is continuous at every real number \(a\) for which \(Q(a)\ne 0\). The theorem makes no claim about points where \(Q(a)=0\), because the original quotient is not defined there.

Worked Examples

Worked Example: Finding the Continuity Set from the Denominator

Find the natural domain and the set of points where \(f(x)=\frac{x^2+2x+5}{x^2-1}\) is continuous.

The denominator must be nonzero. Factor it and find its zeros:

$$ x^2-1=(x-1)(x+1) $$
$$ (x-1)(x+1)=0 \quad\Longrightarrow\quad x=1\text{ or }x=-1. $$

At \(x=1\), the denominator is \(1^2-1=0\). At \(x=-1\), it is \((-1)^2-1=0\). These two inputs are excluded. At every other real input, the denominator is nonzero, so the quotient continuity theorem applies.

$$ \operatorname{Dom}(f)=\mathbb{R}\setminus\{-1,1\}, \qquad f\text{ is continuous on }\mathbb{R}\setminus\{-1,1\}. $$

Check: At \(x=0\), the denominator is \(0^2-1=-1\ne 0\), so the theorem guarantees continuity there. At \(x=1\) and \(x=-1\), the denominator is zero, so neither input belongs to the domain. The result excludes exactly the two denominator zeros.

Worked Example: Cancellation Does Not Change the Original Domain

For \(g(x)=\frac{x^2-9}{x-3}\), find the natural domain and state where the original function is continuous. Then examine the excluded input.

The original denominator is zero when \(x-3=0\), so \(x=3\) is excluded. For every \(x\ne 3\), factor the numerator and simplify:

$$ g(x)=\frac{(x-3)(x+3)}{x-3}=x+3 \qquad (x\ne 3). $$

Therefore the original function has domain \(\mathbb{R}\setminus\{3\}\) and, by the quotient continuity theorem, is continuous at every input in that domain. The simplified formula agrees with the original only where the original quotient is defined.

At the excluded input, the original expression would require division by zero:

$$ g(3)=\frac{3^2-9}{3-3}=\frac{0}{0}, $$

so \(g(3)\) is undefined. However, for \(x\ne 3\), the simplified expression is \(x+3\), giving

$$ \lim_{x\to 3}g(x) = \lim_{x\to 3}(x+3) = 3+3 = 6. $$

Check: Substituting \(x=3\) into the simplified formula gives \(3+3=6\), which matches the limit. It does not give the value of the original function: that function remains undefined at \(3\). The continuity theorem establishes continuity for \(x\ne 3\), not at the excluded input.

Worked Example: Distinguishing Two Excluded Inputs

For \(h(x)=\frac{(x-2)(x+1)}{(x-2)(x-4)}\), find its natural domain and continuity set, then examine the behavior at each excluded input.

The original denominator is zero at \(x=2\) and \(x=4\). Thus the domain is \(\mathbb{R}\setminus\{2,4\}\), and the quotient continuity theorem guarantees continuity at every point in this domain.

For \(x\ne 2\) and \(x\ne 4\), the common factor can be cancelled:

$$ h(x)=\frac{x+1}{x-4}. $$

At the first excluded input, the simplified expression has a finite limit:

$$ \lim_{x\to 2}h(x) = \frac{2+1}{2-4} = \frac{3}{-2} = -\frac{3}{2}. $$

But \(h(2)\) is undefined, since the original denominator is \((2-2)(2-4)=0\cdot(-2)=0\). At the other excluded input, the simplified expression has a denominator approaching zero while its numerator approaches \(5\). The one-sided behavior is

$$ \lim_{x\to 4^-}h(x)=-\infty, \qquad \lim_{x\to 4^+}h(x)=+\infty. $$

Indeed, near \(4\), \(x+1\) is positive; \(x-4\) is negative on the left and positive on the right. The quotient therefore has opposite signs on the two sides, with unbounded magnitude.

Check: The original denominator equals zero at both \(2\) and \(4\), so both are excluded, and the continuity set is exactly \(\mathbb{R}\setminus\{2,4\}\). The finite limit at \(2\) and the unbounded one-sided behavior at \(4\) are different kinds of behavior, but neither makes the original function continuous at an input where it is undefined.

What Denominator Zeros Do—and Do Not—Tell You

Solving \(Q(x)=0\) gives every input where the original quotient is undefined. It does not, by itself, determine what happens near those inputs. At an excluded input, the numerator might also be zero, allowing a factor to cancel and leaving a finite limit. Or the numerator might remain nonzero while the denominator approaches zero, producing unbounded behavior. These possibilities require separate analysis, such as factoring and evaluating a limit or examining one-sided signs.

The crucial point for this topic is that every denominator zero is excluded from the original domain, even if later algebra reveals a finite limit there. The quotient continuity theorem applies only where the original denominator is nonzero. Analysis at an excluded input can describe the limit, but it cannot retroactively make the original function defined at that input.

1
Start with the original denominator.
Write down \(Q(x)\) as it appears in the original function, before cancelling factors.
2
Find its zeros.
Solve \(Q(x)=0\). Every real solution is excluded from the natural domain.
3
State continuity on the remaining inputs.
Because the numerator and denominator are polynomials, the quotient is continuous wherever \(Q(x)\ne 0\).
4
Analyze excluded inputs only if needed.
If a limit or local behavior is requested, examine each excluded input separately. Do not include it in the original domain merely because a factor cancels.

A Common Mistake

A frequent error is to cancel a factor and then treat the simplified expression as if it were the original function everywhere. For example, this calculation is wrong:

$$ \frac{x^2-9}{x-3} = \frac{(x-3)(x+3)}{x-3} = x+3 \quad\text{for every real }x. $$

The cancellation divides by \(x-3\), so it is valid only when \(x\ne 3\). The incorrect last claim includes \(x=3\), even though the original denominator is zero there. The correction is

$$ \frac{x^2-9}{x-3}=x+3 \quad\text{for }x\ne 3, \qquad \operatorname{Dom}(g)=\mathbb{R}\setminus\{3\}. $$

At \(x=3\), the original function is undefined; the simplified expression can help find a limit but cannot change that fact. Always determine the domain from the original denominator before simplifying.

Why This Rule Is Useful

For rational functions, continuity can often be established without calculating a limit separately at every ordinary input. Once the real zeros of the denominator are known, the quotient theorem guarantees continuity at every other real input. This makes the domain the organizing feature of the analysis: it identifies both where the continuity rule applies and where it does not.

When an exercise asks where a rational function is continuous, give the set of inputs explicitly. Saying only “where the denominator is nonzero” describes a rule; listing the excluded inputs shows that you have applied it. If a denominator factors, use those factors to make the exclusions clear, and keep the original formula in view when considering cancellation.

Check Your Understanding

For each question, use the original denominator to identify the domain before considering any cancellation.

  1. Find the natural domain and continuity set of \(r(x)=\frac{x+4}{x^2-16}\).
  2. For \(s(x)=\frac{x^2-4}{x-2}\), what is the domain of the original function, and what is its limit as \(x\to 2\)?
  3. State the condition on \(Q(a)\) needed to conclude that \(P(x)/Q(x)\) is continuous at \(a\).
  4. For \(t(x)=\frac{x+1}{x^2+1}\), explain why the quotient continuity theorem applies at every real input.
  5. If a common factor cancels and the simplified expression has a value at an excluded input, does that value belong to the original function? Explain.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon