Tutorials › Calculus I › Rational Simplification And Differentiation Workshop

Basic Differentiation Rules · Tutorial 448 of 1495

Rational Simplification And Differentiation Workshop

Learn a reliable workflow for simplifying rational functions, keeping their original domain restrictions, and differentiating the resulting expressions term by term.

Beginner 10 min read

What You'll Learn

  • Factor numerators and denominators to reveal common factors.
  • Record denominator zeros before cancelling any factors.
  • Rewrite terms with monomial denominators as powers.
  • Differentiate the simplified expression using basic power and sum rules.
  • Distinguish a removable hole from a point in the function’s domain.
  • Check derivative calculations with difference quotients at selected inputs.

Introduction

Rational expressions can look more complicated to differentiate than they really are. Factoring may expose common factors, and dividing a polynomial by a monomial denominator may turn a fraction into a short sum of powers. Those simplifications make basic differentiation rules easier to apply.

There is one important detail to track throughout: the domain of the original function. Cancelling a factor can simplify the formula, but it does not put the input that made the original denominator zero back into the function’s domain.

Central rule: First identify where the original denominator is zero. Then simplify and differentiate on the original domain, retaining every excluded input.

A Reliable Workflow

For a rational function built from polynomials, use the following sequence:

1
Find the original domain.
Set the original denominator equal to zero and record its real roots as excluded inputs.
2
Factor before cancelling.
Factor the numerator and denominator, then cancel only common factors. Cancellation is valid where the cancelled factor is nonzero.
3
Rewrite monomial denominators.
Divide each term by the monomial, or express the denominator as a negative power. Keep track of any zero denominator.
4
Differentiate term by term.
Use the power rule and the sum and constant-multiple rules on the simplified expression.
5
State the derivative’s domain.
The derivative is defined only at inputs where the original function is defined and differentiable.

The power rule states that for an integer \(n\), \(\frac{d}{dx}x^n=nx^{n-1}\) wherever the expression is defined and differentiable. In particular, for a negative integer exponent, this rule applies away from zero. The sum rule allows us to differentiate a finite sum one term at a time, and the constant-multiple rule allows a constant factor to remain outside the derivative.

Worked Example: Cancelling a Common Linear Factor

Worked Example: Cancelling a Common Linear Factor

Differentiate \(f(x)=\frac{x^2-9}{x-3}\), stating the domain.

Step 1: Find the original domain. The denominator is zero when \(x-3=0\), so \(x=3\) is excluded. Thus the domain is all real numbers except \(3\).

Step 2: Factor and simplify.

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

The condition \(x\ne3\) remains part of the description of \(f\), even though the simplified formula is defined at \(3\).

Step 3: Differentiate on the original domain.

$$ f'(x)=\frac{d}{dx}(x+3)=1 \quad (x\ne3). $$

Check at \(x=1\) using the difference quotient. Near \(1\), the simplified formula gives \(f(1+h)=4+h\) and \(f(1)=4\). Therefore, for nonzero \(h\) sufficiently close to zero,

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

The limit is \(1\), agreeing with the derivative formula. The check concerns an input in the original domain; \(x=3\) remains excluded.

Why Cancellation Does Not Restore an Excluded Input

When a common factor is cancelled, the simplified expression and the original expression have equal values wherever the original expression is defined. That equality supports differentiating the simplified expression at allowed inputs. It does not change the function’s original domain.

Domain fact: If a denominator of the original rational expression is zero at \(a\), then the original function is not defined at \(a\). Cancelling a factor that is zero at \(a\) may produce a simpler formula defined there, but that formula describes an extension of the original function, not the original function at \(a\).

Here is why the derivative calculation is valid at an allowed input. Suppose \(f(x)\) simplifies to \(g(x)\), and let \(a\) be in the original domain. The factors in the original denominator are nonzero at \(a\), so they remain nonzero for all \(x\) sufficiently close to \(a\). In that neighborhood, excluding no new point at \(a\), the expressions agree: \(f(x)=g(x)\). Consequently, their difference quotients at \(a\) agree for sufficiently small nonzero \(h\):

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

If the limit on the right exists, the limit on the left exists and has the same value. Thus the derivative of the simplified expression gives the derivative of the original function at every input in its domain. An excluded input is not covered by this reasoning because \(f(a)\) does not exist there.

Worked Example: Factoring Both Polynomials

Worked Example: Factoring Both Polynomials

Differentiate \(g(x)=\frac{x^2-1}{x^2+3x+2}\), and state every excluded input.

Step 1: Find the original domain. Factor the denominator and identify its zeros:

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

The denominator is zero at \(x=-1\) and \(x=-2\). Both inputs must be excluded.

Step 2: Factor the numerator and cancel.

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

To use the basic rules, rewrite the simplified fraction as a constant plus a reciprocal linear term:

$$ \frac{x-1}{x+2} = \frac{(x+2)-3}{x+2} = 1-\frac{3}{x+2}. $$

Step 3: Differentiate. The derivative formula for a reciprocal linear function gives \(\frac{d}{dx}(x+2)^{-1}=-(x+2)^{-2}\), for \(x\ne-2\). Therefore,

$$ g'(x) = 0-3\bigl(-(x+2)^{-2}\bigr) = \frac{3}{(x+2)^2}, \qquad x\ne-1,-2. $$

The input \(-1\) is still excluded, even though it no longer makes the simplified denominator zero.

Check at \(x=0\) with the difference quotient. The simplified function has \(g(0)=-\frac12\). For small nonzero \(h\),

$$ \frac{g(h)-g(0)}{h} = \frac{\left(1-\frac{3}{2+h}\right)-\left(1-\frac{3}{2}\right)}{h} = \frac{-\frac{3}{2+h}+\frac32}{h} = \frac{3}{2(2+h)}. $$

Taking the limit as \(h\) approaches zero gives \(\frac34\). The derivative formula also gives \(g'(0)=\frac{3}{(0+2)^2}=\frac34\), as required.

Rewriting Monomial Denominators as Powers

A monomial denominator is a single constant multiple of a power of \(x\), such as \(3x^2\). If \(x\ne0\), dividing each term in a polynomial by this denominator rewrites the rational expression as a sum of powers. A denominator containing a positive power of \(x\) makes \(x=0\) an excluded input unless the original expression has already been defined in some other way; for a rational expression as written, record that restriction before simplifying.

For example, the division \(x^m/x^n=x^{m-n}\) is valid when \(x\ne0\). If \(m-n\) is negative, the result is a reciprocal power. This is exactly the kind of term to which the power rule applies away from zero.

Worked Example: A Polynomial Over a Monomial

Worked Example: A Polynomial Over a Monomial

Differentiate \(p(x)=\frac{6x^3-3x+12}{3x^2}\), and state its domain.

Step 1: Record the restriction. The original denominator \(3x^2\) is zero at \(x=0\). The domain is therefore \(x\ne0\).

Step 2: Divide each term by the denominator.

$$ p(x) = \frac{6x^3}{3x^2} - \frac{3x}{3x^2} + \frac{12}{3x^2} = 2x-x^{-1}+4x^{-2}, \qquad x\ne0. $$

In particular, \(-\frac{3x}{3x^2}=-x^{-1}\), and \(\frac{12}{3x^2}=4x^{-2}\).

Step 3: Apply the power rule term by term.

$$ p'(x) = 2(1)x^{0} - (-1)x^{-2} + 4(-2)x^{-3} = 2+x^{-2}-8x^{-3}, \qquad x\ne0. $$

Check at \(x=2\) using the difference quotient. The proposed derivative gives

$$ p'(2) = 2+\frac{1}{2^2}-\frac{8}{2^3} = 2+\frac14-1 = \frac54. $$

To check directly from the simplified expression, \(p(2)=2(2)-\frac12+\frac{4}{4}=\frac92\). For \(h\ne0\) sufficiently small,

$$ \begin{aligned} \frac{p(2+h)-p(2)}{h} &= 2+\frac{1}{2(2+h)}-\frac{4+h}{(2+h)^2}. \end{aligned} $$

Indeed, the term \(-x^{-1}\) contributes \(\frac{1}{2(2+h)}\) to the quotient, and the term \(4x^{-2}\) contributes \(-\frac{4+h}{(2+h)^2}\). Taking the limit gives \(2+\frac14-\frac44=\frac54\), confirming the calculation.

A Common Pitfall: Losing a Hole

A frequent error is to simplify correctly and then silently replace the original function’s domain with the domain of the simplified formula. For example, after cancelling in the first worked example, someone might write:

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

This is wrong. The cancellation equality applies only when \(x\ne3\), because the original fraction is undefined at \(3\). The corrected conclusion is

$$ f(x)=x+3\quad\text{for }x\ne3, \qquad f'(x)=1\quad\text{for }x\ne3. $$

The simplified formula does have a value at \(3\), and it defines a continuous extension of the original function there. But that extension is a different function, because it has a larger domain. Keeping the original restrictions avoids confusing a derivative of the extension with a derivative of the given function.

Putting the Checks Together

Before accepting a rational differentiation result, check three separate features:

  • Algebra: Were all factors correctly factored and cancelled? Did division by a monomial produce the correct powers and coefficients?
  • Calculus: Was the power rule applied to each term, including negative powers, with the exponent reduced by one?
  • Domain: Are the zeros of the original denominator still excluded from the derivative’s domain?

These checks complement one another. A correct derivative formula with an incorrect domain is incomplete, and a correct domain does not compensate for an algebra or differentiation error. The purpose of simplifying first is to make the differentiation manageable while preserving the original function’s meaning.

Check Your Understanding

For each question, keep the original denominator in view as you simplify.

  1. For \(r(x)=\frac{x^2-16}{x-4}\), what is the original domain, and what is \(r'(x)\) on that domain?
  2. Factor and simplify \(\frac{x^2-4}{x^2+x-2}\). Which inputs are excluded from the original function?
  3. Rewrite \(\frac{5x^3+10x}{5x^2}\) as a sum of powers, and differentiate it on its domain.
  4. Why does cancelling a factor not make an input where the original denominator was zero part of the original function’s domain?
  5. For \(q(x)=\frac{x^2-25}{x-5}\), explain why the derivative is not defined at \(x=5\), even though the simplified formula has a derivative there.

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