Tutorials › Calculus I › Simplifying Rational Expressions Before Differentiation

Basic Differentiation Rules · Tutorial 435 of 1495

Simplifying Rational Expressions Before Differentiation

You will learn to factor, cancel, record excluded inputs, and differentiate the simplified expression only on the original domain.

Beginner 10 min read

What You'll Learn

  • Identify common factors in a rational expression before differentiating.
  • Find and record input values excluded by the original denominator.
  • Differentiate the simplified expression using polynomial rules.
  • Explain why the derivative agrees with that of the original function at allowed inputs.
  • Distinguish a removable hole in a simplified formula from a point in the original function's domain.

Why Simplify Before Differentiating?

A rational expression is a quotient of polynomials. Its numerator and denominator may share factors, and canceling those factors can make differentiation much simpler. The important detail is that canceling a factor does not change which inputs were forbidden by the original denominator.

For instance, factoring \(x^2-4\) reveals the common factor in \(\frac{x^2-4}{x-2}\). The quotient simplifies to a linear expression wherever the original quotient is defined. But at \(x=2\), the original denominator is zero, so the original function has no value there. The simplified formula does not restore that missing input.

Key principle: Factor and cancel common factors to obtain a simpler formula, but retain every restriction imposed by the original denominator. Differentiate the simplified formula only at inputs in the original domain.

Domain Restrictions Survive Cancellation

A rational function written as \(f(x)=\frac{P(x)}{Q(x)}\), where \(P\) and \(Q\) are polynomials, is defined only at inputs for which \(Q(x)\ne 0\). Its domain is therefore \(\{x\in\mathbb R:Q(x)\ne 0\}\). To simplify the quotient, factor the numerator and denominator, then cancel factors that occur in both.

Cancellation gives an equivalent formula at inputs where the original quotient is defined. It does not change the original function's domain. If a canceled factor was zero at some input, that input remains excluded, even if the simplified formula has a value there. A derivative at an input requires the function itself to be defined at that input, so the original function has no derivative at an excluded input.

The differentiation step uses polynomial derivative rules already established: differentiate each term of the simplified polynomial, using the power rule for its powers of \(x\). No quotient rule is needed when cancellation leaves a polynomial.

A Reliable Procedure

1
Record the original restrictions.
Set the original denominator unequal to zero and identify the inputs that must be excluded.
2
Factor completely enough to see common factors.
Factor the numerator and denominator, including any difference of squares or common numerical factors.
3
Cancel common factors.
Cancel factors, not individual terms in sums. Keep the original restrictions alongside the simplified formula.
4
Differentiate the simpler formula.
Apply polynomial differentiation rules and state that the resulting derivative applies on the original domain.
5
Check the result.
Confirm the factorization, verify the simplified formula at allowed inputs, and check the derivative with a difference quotient when useful.

Worked Examples

Worked Example: Canceling a Linear Factor

Let \(f(x)=\frac{x^2-4}{x-2}\). First find the restriction from the original denominator: \(x-2\ne 0\), so \(x\ne 2\). Factor the numerator using the difference-of-squares identity:

$$ x^2-4=(x-2)(x+2). $$

For \(x\ne 2\), cancel the common factor \(x-2\):

$$ f(x)=\frac{(x-2)(x+2)}{x-2}=x+2,\qquad x\ne 2. $$

Differentiate \(x+2\). The derivative of \(x\) is \(1\), and the derivative of the constant \(2\) is \(0\), so \(f'(x)=1\) for \(x\ne 2\).

Check the derivative at an arbitrary allowed input \(a\ne 2\). For nonzero \(h\) sufficiently close to zero, \(a+h\ne 2\), and the simplified formula gives

$$ \frac{f(a+h)-f(a)}{h} = \frac{[(a+h)+2]-(a+2)}{h} = \frac{h}{h} = 1. $$

The limit as \(h\to 0\) is \(1\), confirming the derivative at every allowed input. At \(x=2\), the original denominator is zero, so \(f(2)\) and \(f'(2)\) are not defined.

Worked Example: Canceling a Quadratic Factor

Consider \(g(x)=\frac{x^4-3x^2-4}{x^2-4}\). The original denominator factors as \(x^2-4=(x-2)(x+2)\), so \(x\ne 2\) and \(x\ne -2\). To factor the numerator, set \(u=x^2\). Then \(u^2-3u-4=(u-4)(u+1)\), because \(-4\cdot 1=-4\) and \(-4+1=-3\). Substituting \(u=x^2\) gives

$$ x^4-3x^2-4=(x^2-4)(x^2+1). $$

Thus, for the original allowed inputs,

$$ g(x)=\frac{(x^2-4)(x^2+1)}{x^2-4}=x^2+1, \qquad x\ne -2,\ 2. $$

The derivative of \(x^2+1\) is \(2x+0=2x\). Therefore \(g'(x)=2x\) for \(x\ne -2,2\).

Check at an arbitrary allowed input \(a\). Choose \(h\) sufficiently small that \(a+h\) remains different from \(-2\) and \(2\). Then

$$ \frac{g(a+h)-g(a)}{h} = \frac{[(a+h)^2+1]-(a^2+1)}{h} = \frac{2ah+h^2}{h} = 2a+h. $$

Taking \(h\to 0\) gives \(2a\), which agrees with the derivative formula \(g'(a)=2a\). The original function still has no value or derivative at \(x=-2\) or \(x=2\).

Worked Example: Factoring by Grouping

Let \(p(x)=\frac{x^3+2x^2-x-2}{x^2-1}\). The original denominator is \((x-1)(x+1)\), so \(x\ne 1\) and \(x\ne -1\). Group the numerator's terms in pairs:

$$ x^3+2x^2-x-2 = (x^3+2x^2)+(-x-2) = x^2(x+2)-1(x+2) = (x+2)(x^2-1). $$

Since \(x^2-1=(x-1)(x+1)\), the numerator and denominator have the common factor \(x^2-1\). Cancel it while keeping the original restrictions:

$$ p(x)=\frac{(x+2)(x^2-1)}{x^2-1}=x+2, \qquad x\ne -1,\ 1. $$

Differentiate the linear expression to obtain \(p'(x)=1\) for \(x\ne -1,1\). To check, take any allowed input \(a\), and take \(h\) sufficiently small that \(a+h\) also avoids \(-1\) and \(1\). Then

$$ \frac{p(a+h)-p(a)}{h} = \frac{[(a+h)+2]-(a+2)}{h} = 1. $$

The limit is \(1\), as the derivative formula states. The original function remains undefined, and has no derivative, at the two excluded inputs.

Why the Derivatives Agree

Canceling a common factor establishes equality of the original and simplified formulas at every input in the original domain. The derivative depends on values at inputs close to the point as well as the value at the point itself. Therefore it is useful to justify why the simplified formula gives the correct derivative at an allowed input.

Theorem: Suppose a rational function \(f(x)=\frac{P(x)}{Q(x)}\) has a factor that can be canceled, leaving a formula \(r(x)\). At every input \(a\) in the original domain, \(f\) and \(r\) agree in a neighborhood of \(a\), and consequently \(f'(a)=r'(a)\) whenever that derivative exists.

Here is the justification. Since \(a\) is in the original domain, \(Q(a)\ne 0\). Polynomials are continuous, so there is an interval around \(a\) on which \(Q(x)\ne 0\). In that interval the original quotient is defined, and the factorization and cancellation show that \(f(x)=r(x)\). In particular, for sufficiently small \(h\), both \(a\) and \(a+h\) are in that interval, giving

$$ \frac{f(a+h)-f(a)}{h} = \frac{r(a+h)-r(a)}{h}. $$

If the limit on the right exists as \(h\to 0\), it equals \(r'(a)\). The equal difference quotients then show that the limit defining \(f'(a)\) exists and has the same value. This proves the claim at every allowed input. It does not establish anything at an excluded input: there \(f(a)\) is not defined, so the derivative of the original function cannot be defined either.

Common Mistakes

Canceling terms instead of factors. For example, the following calculation is wrong:

$$ \frac{x^2+1}{x+1} \ \not=\ \frac{x+1}{1} = x+1. $$

The \(x\) in \(x^2\) and the \(x\) in \(x\) are terms inside sums; they are not common factors of the entire numerator and denominator. A quick check at \(x=1\) exposes the error: the original expression is \(\frac{1+1}{1+1}=1\), whereas the proposed expression \(x+1\) gives \(2\). Cancellation is valid only after factoring the numerator and denominator and identifying an actual common factor.

Forgetting an excluded input after cancellation. In the first example, \(\frac{x^2-4}{x-2}=x+2\) for \(x\ne 2\). It would be wrong to conclude that the original function is defined at \(x=2\) because \(x+2\) can be evaluated there. The original expression has denominator \(2-2=0\), so it is undefined at \(2\). Its derivative at \(2\) is also undefined.

Takeaway: A simplified formula can have a larger domain than the original expression. Always state the original restrictions alongside the simplified formula and its derivative.

Check Your Understanding

For each question, keep track of the original denominator restrictions before differentiating.

  1. Simplify \(\frac{x^2-9}{x-3}\), state its original domain restriction, and give its derivative on that domain.
  2. For \(q(x)=\frac{x^4-16}{x^2-4}\), factor and cancel common factors, then state the domain and derivative of the original function.
  3. Why does canceling a factor \(x-a\) not make the original function defined at \(x=a\)?
  4. What is wrong with canceling an \(x\) from the numerator and denominator of \(\frac{x^2+1}{x+1}\)?
  5. Explain briefly why a derivative calculated from the simplified formula agrees with the original derivative at an input in the original domain.

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): 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