Tutorials › AP Calculus › Rational Expressions with Composite Parts

Chain Rule and Nested Functions · Tutorial 168 of 999

Rational Expressions with Composite Parts

Use the chain rule with reciprocal, power, and quotient rules to differentiate rational expressions and verify that each derivative is valid.

Intermediate 8 min read

What You'll Learn

  • Differentiate the reciprocal of a composite function using the chain rule
  • Apply the quotient rule when both numerator and denominator depend on x
  • Differentiate a denominator that is itself a power of a composite function
  • Simplify rational derivatives without losing factors or signs
  • Check where a rational expression and its derivative are defined
  • Recognize and correct common chain-rule and quotient-rule errors

Why Rational Expressions Need Care

A rational expression can contain several layers of function rules. In a fraction, the numerator and denominator may each depend on \(x\), and either one may itself be a composite function. A denominator raised to a power adds another layer. Differentiating correctly means tracking both the fraction structure and the inner derivatives.

For example, differentiating \(1/(x^2-3x+5)\) requires the derivative of the expression inside the denominator. Differentiating a quotient such as \((x^3-2x+1)/(x^2+4)\) requires accounting for the changes in both its numerator and denominator.

The essential habit is to identify the structure before calculating: is the expression a reciprocal, a quotient of two changing functions, or a quotient whose denominator is a power? Then apply the relevant rules and preserve the inner derivative factors.

Key idea: If \(u\) is differentiable and \(u(x)\ne 0\), then the reciprocal \(1/u(x)\) has derivative \(-u'(x)/[u(x)]^2\). If both \(u\) and \(v\) are differentiable and \(v(x)\ne 0\), then \(u(x)/v(x)\) has derivative \([u'v-uv']/v^2\). The derivatives \(u'\) and \(v'\) must include any chain-rule factors.

The Reciprocal Rule for a Composite Function

The reciprocal rule is a direct consequence of the chain rule and the power rule. Rewrite the reciprocal of \(u(x)\) as \([u(x)]^{-1}\). Differentiating the outer power gives a factor of \(-[u(x)]^{-2}\), and differentiating the inner function contributes \(u'(x)\).

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

This rule applies at points where \(u\) is differentiable and \(u(x)\ne 0\). If the denominator is zero, the reciprocal is undefined there, so its derivative is not defined there either.

Worked Example: Differentiate a Reciprocal with a Composite Denominator

Differentiate \(f(x)=1/(x^2-3x+5)\).

Let \(u(x)=x^2-3x+5\). Then \(u'(x)=2x-3\), so applying the reciprocal rule gives

$$ f'(x) = -\frac{u'(x)}{[u(x)]^2} = -\frac{2x-3}{(x^2-3x+5)^2}. $$

The denominator is nonzero for every real \(x\): completing the square gives \(x^2-3x+5=(x-\frac{3}{2})^2+\frac{11}{4}>0\). Thus the function and the derivative formula are defined for all real \(x\).

Check the result at \(x=2\). The original denominator is \(2^2-3(2)+5=3\), and its derivative is \(2(2)-3=1\). The reciprocal rule therefore gives \(f'(2)=-1/3^2=-1/9\). Substituting \(x=2\) into the final formula also gives \(-1/9\).

The Quotient Rule and Its Justification

For a quotient \(u(x)/v(x)\), both functions may change as \(x\) changes. The quotient rule accounts for both changes: differentiate the numerator and multiply by the denominator, then subtract the numerator times the derivative of the denominator, and divide by the square of the denominator.

Quotient Rule: If \(u\) and \(v\) are differentiable at \(x\), and \(v(x)\ne 0\), then
$$ \frac{d}{dx}\left(\frac{u(x)}{v(x)}\right) = \frac{u'(x)v(x)-u(x)v'(x)}{[v(x)]^2}. $$

Here is why the rule works. Write \(u/v\) as the product \(u\cdot v^{-1}\). The product rule differentiates that product, while the chain rule differentiates the reciprocal \(v^{-1}\). Combining those results produces the quotient rule.

$$ \begin{aligned} \frac{d}{dx}\left(\frac{u}{v}\right) &=u'v^{-1}+u\frac{d}{dx}(v^{-1})\\ &=\frac{u'}{v}-\frac{uv'}{v^2}\\ &=\frac{u'v}{v^2}-\frac{uv'}{v^2}\\ &=\frac{u'v-uv'}{v^2}. \end{aligned} $$

These steps require \(v\ne 0\), so that the reciprocal exists. The quotient rule is not the same as differentiating the numerator and denominator separately and then dividing. The subtraction and the squared denominator are both essential.

Worked Example: Differentiate a Quotient of Composite Expressions

Differentiate \(f(x)=(x^3-2x+1)/(x^2+4)\).

Choose \(u(x)=x^3-2x+1\) and \(v(x)=x^2+4\). Their derivatives are \(u'(x)=3x^2-2\) and \(v'(x)=2x\). The denominator \(v(x)\) is positive for all real \(x\), since \(x^2+4\ge 4\), so the quotient rule applies everywhere.

$$ \begin{aligned} f'(x) &=\frac{(3x^2-2)(x^2+4)-(x^3-2x+1)(2x)}{(x^2+4)^2}\\ &=\frac{(3x^4+12x^2-2x^2-8)-(2x^4-4x^2+2x)}{(x^2+4)^2}\\ &=\frac{3x^4+10x^2-8-2x^4+4x^2-2x}{(x^2+4)^2}\\ &=\frac{x^4+14x^2-2x-8}{(x^2+4)^2}. \end{aligned} $$

Check at \(x=0\). The quotient-rule numerator before simplification is \((-2)(4)-(1)(0)=-8\), and the denominator is \(4^2=16\), giving \(-1/2\). The simplified expression gives \((0+0-0-8)/16=-1/2\) as well.

When the Denominator Is a Power

A denominator such as \([g(x)]^2\) is itself a composite expression: the inner function \(g(x)\) is raised to an outer power. The chain rule gives its derivative. For example, if \(v(x)=[g(x)]^2\), then \(v'(x)=2g(x)g'(x)\), not merely \(2g(x)\). The factor \(g'(x)\) is required because the base depends on \(x\).

After finding the derivative of the denominator, use the quotient rule as usual. It can also be useful to rewrite \(u/[g(x)]^2\) as \(u[g(x)]^{-2}\) and use the product and chain rules. These approaches agree; choose the one that makes the structure easiest to follow.

Worked Example: A Composite Power in the Denominator

Differentiate \(f(x)=(2x+1)/(x^2+3)^2\).

Set \(u(x)=2x+1\), so \(u'(x)=2\). Set \(v(x)=(x^2+3)^2\). By the chain rule, \(v'(x)=2(x^2+3)(2x)=4x(x^2+3)\). Since \(x^2+3>0\), the denominator never vanishes.

$$ \begin{aligned} f'(x) &=\frac{2(x^2+3)^2-(2x+1)\,4x(x^2+3)}{(x^2+3)^4}\\ &=\frac{(x^2+3)\left[2(x^2+3)-4x(2x+1)\right]}{(x^2+3)^4}\\ &=\frac{2(x^2+3)-4x(2x+1)}{(x^2+3)^3}\\ &=\frac{2x^2+6-8x^2-4x}{(x^2+3)^3}\\ &=\frac{-6x^2-4x+6}{(x^2+3)^3}. \end{aligned} $$

Check at \(x=1\). The original numerator is \(3\), its derivative is \(2\), the denominator is \((1+3)^2=16\), and its derivative is \(4(1)(4)=16\). The quotient rule gives \((2(16)-3(16))/16^2=-16/256=-1/16\). The simplified formula gives \((-6-4+6)/4^3=-4/64=-1/16\).

A Reliable Differentiation Process

Before simplifying, keep the functions and their derivatives visible. This reduces sign errors and helps reveal missing chain-rule factors.

1
Identify the structure.
Decide whether the expression is a reciprocal, a quotient, or a quotient with a powered composite denominator.
2
Name the numerator and denominator.
For a quotient, write \(u(x)\), \(v(x)\), \(u'(x)\), and \(v'(x)\) separately before substituting into the rule.
3
Differentiate each composite part fully.
Apply the chain rule wherever an expression inside a power or other outer function depends on \(x\).
4
Apply the rule before simplifying.
For a quotient, preserve the order \(u'v-uv'\) and the denominator \(v^2\).
5
Check the domain and the algebra.
Identify where the original denominator is zero, simplify carefully, and compare the unsimplified and simplified results at a convenient value.

Common Mistakes and How to Correct Them

A frequent error is forgetting the derivative of the inner function. For example, a student might write

$$ \frac{d}{dx}\left(\frac{1}{x^2+1}\right) = -\frac{1}{(x^2+1)^2}. $$

This omits the derivative of \(x^2+1\), which is \(2x\). Applying the reciprocal rule correctly gives

$$ \frac{d}{dx}\left(\frac{1}{x^2+1}\right) = -\frac{2x}{(x^2+1)^2}. $$

Another error is using the wrong order in the quotient-rule numerator. The correct order is \(u'v-uv'\). Reversing it changes the sign of the whole derivative. A third error is to use \(v\), rather than \(v^2\), in the quotient-rule denominator.

There is also a domain issue: a formula for a derivative cannot make the original quotient defined at points where its denominator is zero. Even if algebraic simplification cancels a factor, check the original expression before claiming a domain. The derivative is considered only at points where the original function is defined and the stated rules apply.

Why These Rules Matter

Rational expressions occur whenever one changing quantity is compared with another, or when a function is built by combining simpler functions into a fraction. Understanding their derivatives lets you track how the entire ratio changes, not just how its pieces change individually.

For AP Calculus problems, a correct result depends on more than recalling a formula. You must identify the inner functions, differentiate them accurately, preserve signs and factors, and respect where the denominator is nonzero. A brief check—substituting a convenient value into both the unsimplified and simplified derivatives—can catch many algebra mistakes.

Check Your Understanding

For each question, identify the relevant rule and show enough work to make the chain-rule factors clear.

  1. Differentiate \(1/(3x^2+2)\). State the domain of the original function.
  2. Differentiate \((x^2-1)/(x+2)\), and identify any real value excluded from the original domain.
  3. Differentiate \((x+4)/(2x^2+1)^2\). What chain-rule factor appears when you differentiate the denominator?
  4. A student claims that the derivative of \(u(x)/v(x)\) is \(u'(x)/v'(x)\). Explain why this is not the quotient rule.
  5. For \(f(x)=1/(x^2+1)\), compare the reciprocal-rule result at \(x=1\) with the result obtained by substituting \(x=1\) into your final derivative formula.

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