Tutorials › AP Calculus › Worked Derivatives of Rational Expressions

Power, Polynomial, and Rational Rules · Tutorial 140 of 999

Worked Derivatives of Rational Expressions

Practice differentiating rational expressions in several forms, simplifying the results, and tracking where the original functions are defined.

Intermediate 9 min read

What You'll Learn

  • Apply the quotient rule to rational expressions with polynomial numerators and denominators.
  • Simplify derivative formulas without changing the function’s original domain.
  • Use polynomial division to separate a rational expression into a polynomial part and a remainder term.
  • Check every denominator zero against the original expression.
  • Verify simplified derivatives by comparing equivalent calculations.

Why Rational Derivatives Need Care

A rational expression is a quotient of polynomials. Its derivative can often be found using the quotient rule, but the algebra may produce a formula that looks different from the original one. Factoring, cancellation, and polynomial division can make the derivative easier to read; none of them should cause us to forget where the original function was defined.

The main routine is straightforward: identify the numerator and denominator, differentiate each, apply the quotient rule, simplify carefully, and check the original denominator’s zeros. That last check matters even if a factor cancels during simplification.

Definition: A rational function is a function that can be written as \(f(x)=\frac{P(x)}{Q(x)}\), where \(P\) and \(Q\) are polynomials and \(Q(x)\ne 0\). Its domain excludes every real input at which the denominator in the original expression is zero.

The Quotient Rule in a Worked Calculation

If \(u\) and \(v\) are differentiable functions and \(v(x)\ne 0\), the quotient rule is

$$ \left(\frac{u}{v}\right)'(x) = \frac{u'(x)v(x)-u(x)v'(x)}{[v(x)]^2}. $$

For a rational function \(f(x)=\frac{P(x)}{Q(x)}\), this gives

$$ f'(x)=\frac{P'(x)Q(x)-P(x)Q'(x)}{[Q(x)]^2}, \qquad Q(x)\ne 0. $$

The condition \(Q(x)\ne 0\) is essential: the original function, and therefore its derivative, is not defined at a zero of its denominator. The quotient rule is useful as written, but it is not always the shortest way to reach a simplified derivative. The examples show both direct application and algebraic simplification.

Worked Example: A Factor Cancels but an Input Remains Excluded

Differentiate \(f(x)=\frac{x^2+3x+2}{x+1}\), keeping track of the original domain.

Step 1: Find the original restriction. The denominator is zero when \(x+1=0\), so \(x=-1\) is excluded. Thus the original function has domain \(x\ne -1\).

Step 2: Apply the quotient rule. Let \(u=x^2+3x+2\) and \(v=x+1\). Then \(u'=2x+3\) and \(v'=1\), so

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

Step 3: Simplify the numerator.

$$ \begin{aligned} (2x+3)(x+1)-(x^2+3x+2) &=(2x^2+5x+3)-(x^2+3x+2)\\ &=x^2+2x+1\\ &=(x+1)^2. \end{aligned} $$

Therefore, for \(x\ne -1\),

$$ f'(x)=\frac{(x+1)^2}{(x+1)^2}=1. $$

Check: Factoring the original numerator gives \(x^2+3x+2=(x+1)(x+2)\). Hence \(f(x)=x+2\) whenever \(x\ne-1\), whose derivative is \(1\). This agrees with the quotient-rule result. At \(x=-1\), the original denominator is zero, so \(f\) and \(f'\) are not defined there; cancellation does not restore that input to the original domain.

Simplifying Without Losing the Domain

For a complicated quotient, factoring or expanding may simplify the derivative. A helpful alternative is polynomial division: write the rational function as a polynomial plus a simpler quotient. The following identity explains why this can work and how it relates to the quotient-rule form.

Algebraic identity: If polynomials \(P\) and \(Q\) satisfy \(P(x)=Q(x)S(x)+R(x)\), then, wherever \(Q(x)\ne0\), \( \frac{P(x)}{Q(x)}=S(x)+\frac{R(x)}{Q(x)} \). Here \(S\) is the quotient and \(R\) is the remainder from polynomial division.

When the division is exact, \(R=0\), the rational expression equals the polynomial \(S\) at every point in its original domain. If the division leaves a remainder, the remaining quotient may be simpler than the one we started with. In either case, the identity applies only where the original denominator is nonzero.

1
Write the division identity.
Set \(P=QS+R\), so \(P/Q=S+R/Q\) whenever \(Q\ne0\).
2
Differentiate on the original domain.
There, the sum and quotient rules give \((P/Q)'=S'+(R/Q)'\).
3
Relate the result to the quotient-rule numerator.
Using \(P'=Q'S+QS'+R'\), expand \(P'Q-PQ'\) to obtain \(Q^2S'+R'Q-RQ'\). Dividing by \(Q^2\) gives \(S'+(R'Q-RQ')/Q^2\), exactly the differentiated division form.

This verifies algebraically that polynomial division does not produce a different derivative formula: it reorganizes the same derivative on the domain where the original quotient exists. It can also expose a removable-looking hole. Such a hole remains excluded unless a new function is explicitly defined there.

Worked Example: A Quotient with No Real Denominator Zeros

Differentiate \(g(x)=\frac{2x^3-x+4}{x^2+1}\) and simplify.

Step 1: Check the domain. For real \(x\), \(x^2\ge0\), so \(x^2+1\ge1>0\). The denominator never vanishes, and the domain is all real numbers.

Step 2: Differentiate the numerator and denominator. Set \(u=2x^3-x+4\) and \(v=x^2+1\). Then \(u'=6x^2-1\) and \(v'=2x\). The quotient rule gives

$$ g'(x)= \frac{(6x^2-1)(x^2+1)-(2x^3-x+4)(2x)} {(x^2+1)^2}. $$

Step 3: Expand each product.

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

Subtracting the second expression from the first gives

$$ (6x^4+5x^2-1)-(4x^4-2x^2+8x) =2x^4+7x^2-8x-1. $$

Thus

$$ g'(x)=\frac{2x^4+7x^2-8x-1}{(x^2+1)^2}. $$

Check: Substitution into the unsimplified quotient-rule numerator gives \((6x^2-1)(x^2+1)=6x^4+5x^2-1\) and \((2x^3-x+4)(2x)=4x^4-2x^2+8x\). Their difference is precisely \(2x^4+7x^2-8x-1\). The denominator is positive for every real \(x\), so the derivative formula is valid on the entire domain.

Worked Example: Polynomial Division Reveals a Simpler Derivative

Differentiate \(h(x)=\frac{x^3+2x^2-x+5}{x-2}\), using polynomial division to simplify the expression.

Step 1: Record the excluded input. The original denominator \(x-2\) is zero at \(x=2\). The function’s domain is \(x\ne2\).

Step 2: Divide the numerator by the denominator. The leading term \(x^3\) divided by \(x\) gives \(x^2\). Multiplying \(x^2(x-2)=x^3-2x^2\) and subtracting leaves \(4x^2-x+5\). Next, \(4x^2\) divided by \(x\) gives \(4x\). Subtracting \(4x(x-2)=4x^2-8x\) leaves \(7x+5\). Finally, \(7x\) divided by \(x\) gives \(7\); subtracting \(7(x-2)=7x-14\) leaves remainder \(19\). Therefore

$$ x^3+2x^2-x+5=(x-2)(x^2+4x+7)+19. $$

Dividing by \(x-2\), for \(x\ne2\), gives

$$ h(x)=x^2+4x+7+\frac{19}{x-2}. $$

Step 3: Differentiate each term. The polynomial power rule gives the derivative of the first three terms. Since \(19/(x-2)=19(x-2)^{-1}\), its derivative is \(-19(x-2)^{-2}\). Hence

$$ h'(x)=2x+4-\frac{19}{(x-2)^2}, \qquad x\ne2. $$

Check: Applying the quotient rule directly gives the numerator

$$ \begin{aligned} &(3x^2+4x-1)(x-2)-(x^3+2x^2-x+5)\\ &=(3x^3-2x^2-9x+2)-(x^3+2x^2-x+5)\\ &=2x^3-4x^2-8x-3. \end{aligned} $$

Putting the simplified derivative over the common denominator \((x-2)^2\) gives

$$ \begin{aligned} (2x+4)(x-2)^2-19 &=(2x+4)(x^2-4x+4)-19\\ &=(2x^3-4x^2-8x+16)-19\\ &=2x^3-4x^2-8x-3. \end{aligned} $$

The two numerator calculations agree, so the derivative forms match. The point \(x=2\) remains excluded because it makes the original denominator zero.

A Common Mistake: Forgetting the Original Denominator

A simplified formula can conceal an excluded input. For example, consider \(r(x)=\frac{x^2-1}{x-1}\). The original denominator is zero at \(x=1\), so the original domain excludes \(1\). Factoring yields

$$ r(x)=\frac{(x-1)(x+1)}{x-1}=x+1 \qquad\text{only for }x\ne1. $$

A common incorrect conclusion is: “The expression simplifies to \(x+1\), so \(r(1)=2\), and its derivative at \(1\) is \(1\).” This silently changes the function’s domain. The original \(r(1)\) is undefined, so its derivative at \(1\) is also undefined. The corrected conclusion is that \(r'(x)=1\) for \(x\ne1\); the formula does not establish a derivative at the excluded input.

Another frequent error is reversing the order in the quotient-rule numerator. The rule uses \(u'v-uv'\), not \(uv'-u'v\). Keeping the numerator and denominator derivatives labelled before substituting helps prevent that sign reversal.

A Reliable Final Check

Before accepting a rational derivative, compare its simplified form with the quotient-rule calculation, and test whether its denominator or canceled factors point to any excluded inputs. The derivative’s formula may simplify, but the original function’s domain does not change through algebra alone.

  • Identify every zero of the original denominator.
  • Apply the quotient rule with the subtraction in the correct order.
  • Simplify by factoring, expanding, or polynomial division when useful.
  • State the derivative only on the original domain.
  • Check the simplification by returning to the quotient-rule numerator or an equivalent form.

Check Your Understanding

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

  1. Differentiate \(\frac{x^2+5x+6}{x+2}\). State the original domain and explain whether cancellation changes it.
  2. Differentiate \(\frac{x^2+1}{x-1}\) using the quotient rule and state the excluded input.
  3. Divide \(x^3-x+1\) by \(x+1\), then use the result to differentiate \(\frac{x^3-x+1}{x+1}\). State the domain.
  4. Why does simplifying \(\frac{x^2-4}{x-2}\) not make the original function defined at \(x=2\)?
  5. For a quotient \(P/Q\), what expression belongs in the quotient-rule numerator, and what condition must hold for the rule to apply?

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
Clinical Biostats