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.
The Quotient Rule in a Worked Calculation
If \(u\) and \(v\) are differentiable functions and \(v(x)\ne 0\), the quotient rule is
For a rational function \(f(x)=\frac{P(x)}{Q(x)}\), this gives
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
Step 3: Simplify the numerator.
Therefore, for \(x\ne -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.
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.
Set \(P=QS+R\), so \(P/Q=S+R/Q\) whenever \(Q\ne0\).
There, the sum and quotient rules give \((P/Q)'=S'+(R/Q)'\).
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
Step 3: Expand each product.
Subtracting the second expression from the first gives
Thus
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
Dividing by \(x-2\), for \(x\ne2\), gives
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
Check: Applying the quotient rule directly gives the numerator
Putting the simplified derivative over the common denominator \((x-2)^2\) gives
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
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.
- Differentiate \(\frac{x^2+5x+6}{x+2}\). State the original domain and explain whether cancellation changes it.
- Differentiate \(\frac{x^2+1}{x-1}\) using the quotient rule and state the excluded input.
- Divide \(x^3-x+1\) by \(x+1\), then use the result to differentiate \(\frac{x^3-x+1}{x+1}\). State the domain.
- Why does simplifying \(\frac{x^2-4}{x-2}\) not make the original function defined at \(x=2\)?
- For a quotient \(P/Q\), what expression belongs in the quotient-rule numerator, and what condition must hold for the rule to apply?