Math Core

Lesson 2.8 · Differentiation: Definition and Basic Rules

The quotient rule

Rational functions, sin⁡xx\dfrac{\sin x}{x}, exx+1\dfrac{e^x}{x + 1}: many important functions are quotients. The quotient rule differentiates them directly. Like the product rule, it has two terms, but the order of those terms now matters, because subtraction is involved.

The rule

The quotient rule

If ff and gg are differentiable and g(x)≠0g(x) \ne 0, then

ddx[f(x)g(x)]=f′(x) g(x)−f(x) g′(x)[g(x)]2\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)\,g(x) - f(x)\,g'(x)}{\big[g(x)\big]^2}

A popular way to remember it, with "high" for the numerator and "low" for the denominator:

low d-high, minus high d-low, over the square of what's below.

"Low d-high" means g⋅f′g \cdot f', and it comes first. Because of the subtraction, swapping the two terms flips the sign of your answer.

Where it comes from

Write Q(x)=f(x)g(x)Q(x) = \dfrac{f(x)}{g(x)}, so f=Q⋅gf = Q \cdot g. Differentiate both sides with the product rule:

f′=Q′g+Qg′f' = Q' g + Q g'

Solve for Q′Q' and substitute Q=fgQ = \dfrac{f}{g}:

Q′=f′−Qg′g=f′−fgg′g=f′g−fg′g2Q' = \frac{f' - Q g'}{g} = \frac{f' - \frac{f}{g} g'}{g} = \frac{f' g - f g'}{g^2}

(This argument assumes QQ is differentiable; a proof from the definition confirms it.)

Using the rule

As with products, name the pieces first: the numerator ff, the denominator gg, and their derivatives. Then assemble and simplify the numerator.

Worked example: A rational function

Differentiate y=x2x+1y = \dfrac{x^2}{x + 1}.

f=x2f = x^2, f′=2xf' = 2x, g=x+1g = x + 1, g′=1g' = 1.

dydx=2x(x+1)−x2(1)(x+1)2=2x2+2x−x2(x+1)2=x2+2x(x+1)2\frac{dy}{dx} = \frac{2x(x + 1) - x^2(1)}{(x + 1)^2} = \frac{2x^2 + 2x - x^2}{(x + 1)^2} = \frac{x^2 + 2x}{(x + 1)^2}

Leave the denominator in factored form. Expanding it rarely helps.

Worked example: Exponential over a power

Differentiate y=exxy = \dfrac{e^x}{x} and find where the tangent line is horizontal.

f=exf = e^x, f′=exf' = e^x, g=xg = x, g′=1g' = 1.

dydx=ex⋅x−ex⋅1x2=ex(x−1)x2\frac{dy}{dx} = \frac{e^x \cdot x - e^x \cdot 1}{x^2} = \frac{e^x(x - 1)}{x^2}

A fraction is zero when its numerator is zero (and its denominator isn't). Since ex>0e^x > 0, the derivative is zero only at x=1x = 1. The horizontal tangent is at (1,e)(1, e).

y = eˣ/x has a horizontal tangent at x = 1, where y = e ≈ 2.718.Open in grapher →

Quotients from a table

Worked example: Using a table of values

xxf(x)f(x)f′(x)f'(x)g(x)g(x)g′(x)g'(x)
423−1-15

If h(x)=f(x)g(x)h(x) = \dfrac{f(x)}{g(x)}, find h′(4)h'(4).

h′(4)=f′(4) g(4)−f(4) g′(4)[g(4)]2=(3)(−1)−(2)(5)(−1)2=−3−101=−13h'(4) = \frac{f'(4)\,g(4) - f(4)\,g'(4)}{\big[g(4)\big]^2} = \frac{(3)(-1) - (2)(5)}{(-1)^2} = \frac{-3 - 10}{1} = -13

Table questions like this are common on the AP exam because they test whether you know the rule's structure, not just the algebra. Write the formula with the function names first, then substitute. Keeping ff, f′f', gg and g′g' in their correct slots is the whole problem, and a single swap changes the sign of the answer. Notice too that [g(4)]2=(−1)2=1\big[g(4)\big]^2 = (-1)^2 = 1 is positive: the denominator of a quotient-rule derivative is a square, so it can never be negative.

When not to use the quotient rule

The quotient rule always works, but it isn't always the easiest route.

  • Constant numerator: 5x3=5x−3\dfrac{5}{x^3} = 5x^{-3}, so its derivative is −15x−4-15x^{-4} by the power rule.
  • Single-term denominator: x3+2xx=x2+2\dfrac{x^3 + 2x}{x} = x^2 + 2, so its derivative is 2x2x.
  • Constant denominator: x2+17=17(x2+1)\dfrac{x^2 + 1}{7} = \dfrac{1}{7}(x^2 + 1), a constant multiple.

Common mistake

The two most common errors: reversing the numerator (writing fg′−f′gfg' - f'g), which gives the negative of the right answer, and forgetting to square the denominator. Also, don't cancel terms across the minus sign: in 2x(x+1)−x2(x+1)2\dfrac{2x(x + 1) - x^2}{(x + 1)^2}, the factor (x+1)(x + 1) in the first term does not cancel with the denominator, because the numerator has two terms.

Tip

Simplify the numerator only. After the numerator is simplified, check whether it shares a factor with the denominator; that's the only safe cancellation.

Practice

Practice 1

Find f′(x)f'(x) for f(x)=3x+1x−2f(x) = \dfrac{3x + 1}{x - 2}.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 2

Find dydx\dfrac{dy}{dx} for y=xx2+1y = \dfrac{x}{x^2 + 1}.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 3

Find f′(x)f'(x) for f(x)=sin⁡xxf(x) = \dfrac{\sin x}{x}.

Enter an expression, e.g. 3x^2 - 2x + 1

Practice 4

The functions ff and gg are differentiable, with f(2)=6f(2) = 6, f′(2)=1f'(2) = 1, g(2)=3g(2) = 3 and g′(2)=−2g'(2) = -2. If h(x)=f(x)g(x)h(x) = \dfrac{f(x)}{g(x)}, find h′(2)h'(2).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Let f(x)=x2−1x2+1f(x) = \dfrac{x^2 - 1}{x^2 + 1}. Find f′(1)f'(1).

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

Find the value of xx where f(x)=ln⁡xxf(x) = \dfrac{\ln x}{x} has a horizontal tangent line.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

What is ddx[5x3]\dfrac{d}{dx}\left[\dfrac{5}{x^3}\right]?

Practice 8

Find an equation of the tangent line to y=exx+1y = \dfrac{e^x}{x + 1} at x=0x = 0.

Enter an expression, e.g. 3x^2 - 2x + 1