Skip to content

Unit 2: Differentiation: Definition and Fundamental Properties

The Quotient Rule

Differentiate a quotient of two functions with the quotient rule, know where the rule comes from, and recognize when rewriting is faster.

Topic 2.9 · 6 min read

A quotient such as 3x−1x2+2\dfrac{3x - 1}{x^2 + 2} can't be split into separate terms, and dividing the derivatives gives the wrong answer for the same reason that multiplying them fails for products (topic 2.8). The quotient rule gives the right derivative. It follows from the product rule in a few lines of algebra, and its one awkward feature, a subtraction whose order matters, comes straight out of that derivation.

Where the rule comes from

Let q(x)=f(x)g(x)q(x) = \dfrac{f(x)}{g(x)}, where g(x)≠0g(x) \neq 0. Multiplying both sides by g(x)g(x) turns the quotient into a product:

f(x)=q(x) g(x).f(x) = q(x)\,g(x).

Assuming qq is differentiable (a proof straight from the limit definition shows it is, wherever ff and gg are differentiable and g≠0g \neq 0), differentiate both sides with the product rule:

f′(x)=q′(x) g(x)+q(x) g′(x).f'(x) = q'(x)\,g(x) + q(x)\,g'(x).

Solve for q′(x)q'(x), then replace q(x)q(x) with f(x)g(x)\frac{f(x)}{g(x)}:

q′(x)=f′(x)−q(x) g′(x)g(x)=f′(x)−f(x)g(x)g′(x)g(x).q'(x) = \frac{f'(x) - q(x)\,g'(x)}{g(x)} = \frac{f'(x) - \dfrac{f(x)}{g(x)}g'(x)}{g(x)}.

Multiplying the top and bottom by g(x)g(x) clears the inner fraction and gives the rule.

Unlike the product rule, the order in the numerator matters, because subtraction isn't commutative: swapping the two terms changes the sign of the answer. The derivation shows which term comes first. The term with f′f', the derivative of the top, is the one that was already there before you solved for q′q', so it is the positive one. The sign also makes sense: if the top grows (positive f′f') while the bottom stays fixed, the quotient grows, so the f′f' term must be positive; if the bottom grows (positive g′g') while the top stays fixed, the quotient shrinks, so the g′g' term must be negative.

A quick test: for x2x=x\frac{x^2}{x} = x with x≠0x \neq 0, the rule gives 2x⋅x−x2⋅1x2=x2x2=1\frac{2x\cdot x - x^2\cdot 1}{x^2} = \frac{x^2}{x^2} = 1, as it should.

Two consequences: reciprocals and negative powers

When the top is the constant 1, its derivative is 0 and the rule shortens to the reciprocal rule:

ddx[1g(x)]=0⋅g(x)−1⋅g′(x)[g(x)]2=−g′(x)[g(x)]2.\frac{d}{dx}\left[\frac{1}{g(x)}\right] = \frac{0\cdot g(x) - 1\cdot g'(x)}{\big[g(x)\big]^2} = -\frac{g'(x)}{\big[g(x)\big]^2}.

With g(x)=xng(x) = x^n for a positive integer nn, this proves the power rule (topic 2.5) for negative integer exponents:

ddx x−n=ddx[1xn]=−nxn−1x2n=−n x−n−1.\frac{d}{dx}\,x^{-n} = \frac{d}{dx}\left[\frac{1}{x^n}\right] = -\frac{n x^{n-1}}{x^{2n}} = -n\,x^{-n-1}.

That is exactly nxn−1nx^{n-1} with nn replaced by −n-n, so the power rule's pattern holds for negative integer exponents too.

When not to use it

The quotient rule always works when its conditions hold, but it is often the long way around. Before using it, check whether the quotient can be rewritten:

FunctionFaster routeDerivative
5x3\dfrac{5}{x^3}constant over a power: 5x−35x^{-3}−15x−4-15x^{-4}
x2+sin⁡x4\dfrac{x^2 + \sin x}{4}constant denominator: 14(x2+sin⁡x)\frac{1}{4}\left(x^2 + \sin x\right)2x+cos⁡x4\dfrac{2x + \cos x}{4}
x3−2xx\dfrac{x^3 - 2\sqrt{x}}{x}single power below: x2−2x−1/2x^2 - 2x^{-1/2}2x+x−3/22x + x^{-3/2}
x2−9x−3\dfrac{x^2 - 9}{x - 3}cancel: x+3x + 3 for x≠3x \neq 311 for x≠3x \neq 3

In the last row, the original function is undefined at x=3x = 3, so its derivative is undefined there too, even though x+3x + 3 is defined everywhere. Cancelling changes the formula, not the domain.

Use the quotient rule when no rewrite gets rid of the division. That happens when the denominator is a sum that doesn't divide out or a non-power function (xx2+1\frac{x}{x^2 + 1}, sin⁡x1+cos⁡x\frac{\sin x}{1 + \cos x}, x2sin⁡x\frac{x^2}{\sin x}). It also happens when the denominator is a single power but the numerator is not a sum of powers (exx\frac{e^x}{x}, ln⁡xx\frac{\ln x}{x}): rewriting exx\frac{e^x}{x} as ex⋅x−1e^x \cdot x^{-1} leaves a product of two functions of xx, which the power rule can't handle.

Worked examples

Worked exampleExample 1: a rational function

Find dydx\dfrac{dy}{dx} for y=3x−1x2+2y = \dfrac{3x - 1}{x^2 + 2}.

Show solution

Name the pieces first: top f=3x−1f = 3x - 1 with f′=3f' = 3; bottom g=x2+2g = x^2 + 2 with g′=2xg' = 2x. Then

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

Expand the numerator, distributing the minus sign over the whole second product:

3x2+6−(6x2−2x)=−3x2+2x+6,3x^2 + 6 - \left(6x^2 - 2x\right) = -3x^2 + 2x + 6,

so

dydx=−3x2+2x+6(x2+2)2.\frac{dy}{dx} = \frac{-3x^2 + 2x + 6}{\left(x^2 + 2\right)^2}.

Leave the denominator squared and unexpanded. It is always positive here, so the sign of the derivative is the sign of the numerator −3x2+2x+6-3x^2 + 2x + 6.

Worked exampleExample 2: a logarithm over a power

Let f(x)=ln⁡xxf(x) = \dfrac{\ln x}{x} for x>0x > 0.

(a) Find f′(x)f'(x).

(b) Find the point where the graph of ff has a horizontal tangent line.

(c) Write an equation for the line tangent to the graph of ff at x=1x = 1.

Show solution

(a) Top ln⁡x\ln x with derivative 1x\frac{1}{x}; bottom xx with derivative 1:

f′(x)=1x⋅x−ln⁡x⋅1x2=1−ln⁡xx2.f'(x) = \frac{\frac{1}{x}\cdot x - \ln x\cdot 1}{x^2} = \frac{1 - \ln x}{x^2}.

(b) f′(x)=0f'(x) = 0 when the numerator is 0, since x2>0x^2 > 0: 1−ln⁡x=01 - \ln x = 0, so x=ex = e. The point is (e,f(e))=(e,1e)\left(e, f(e)\right) = \left(e, \frac{1}{e}\right).

(c) f(1)=ln⁡11=0f(1) = \frac{\ln 1}{1} = 0 and f′(1)=1−01=1f'(1) = \frac{1 - 0}{1} = 1, so the tangent line is y=x−1y = x - 1.

Rewriting as x−1ln⁡xx^{-1}\ln x and using the product rule would also work; the quotient rule is just as short here.

Worked exampleExample 3: quotients from values (no calculator)

The functions ff and gg are differentiable, with f(2)=4f(2) = 4, f′(2)=−1f'(2) = -1, g(2)=−2g(2) = -2 and g′(2)=3g'(2) = 3.

(a) Let h(x)=f(x)g(x)h(x) = \dfrac{f(x)}{g(x)}. Find h′(2)h'(2).

(b) Let k(x)=f(x)−1x g(x)k(x) = \dfrac{f(x) - 1}{x\,g(x)}. Find k′(2)k'(2).

Show solution

(a) Write the rule, then substitute:

h′(2)=f′(2) g(2)−f(2) g′(2)[g(2)]2=(−1)(−2)−(4)(3)(−2)2=2−124=−52.h'(2) = \frac{f'(2)\,g(2) - f(2)\,g'(2)}{\big[g(2)\big]^2} = \frac{(-1)(-2) - (4)(3)}{(-2)^2} = \frac{2 - 12}{4} = -\frac{5}{2}.

(b) The bottom is itself a product, so first find its value and derivative at 2. Let d(x)=x g(x)d(x) = x\,g(x). Then d(2)=2(−2)=−4d(2) = 2(-2) = -4, and by the product rule d′(x)=g(x)+x g′(x)d'(x) = g(x) + x\,g'(x), so d′(2)=−2+2(3)=4d'(2) = -2 + 2(3) = 4. The top n(x)=f(x)−1n(x) = f(x) - 1 has n(2)=3n(2) = 3 and n′(2)=−1n'(2) = -1. Now apply the quotient rule:

k′(2)=n′(2) d(2)−n(2) d′(2)[d(2)]2=(−1)(−4)−(3)(4)16=4−1216=−12.k'(2) = \frac{n'(2)\,d(2) - n(2)\,d'(2)}{\big[d(2)\big]^2} = \frac{(-1)(-4) - (3)(4)}{16} = \frac{4 - 12}{16} = -\frac{1}{2}.

Computing the four numbers n(2)n(2), n′(2)n'(2), d(2)d(2), d′(2)d'(2) separately keeps the product rule and quotient rule from tangling.

Worked exampleExample 4: an exam-style free-response question (no calculator)

A particle moves along the xx-axis. Its position at time t≥0t \ge 0 is x(t)=4tt2+4x(t) = \dfrac{4t}{t^2 + 4}. Velocity is the derivative of position (topic 4.2 develops motion in detail).

(a) Find the velocity v(t)v(t) of the particle.

(b) For t>0t > 0, at what time is the particle at rest?

(c) Is the particle moving to the left or to the right at t=3t = 3? Give a reason for your answer.

Show solution

(a) By the quotient rule, with top 4t4t and bottom t2+4t^2 + 4:

v(t)=x′(t)=4(t2+4)−4t(2t)(t2+4)2=16−4t2(t2+4)2.v(t) = x'(t) = \frac{4\left(t^2 + 4\right) - 4t(2t)}{\left(t^2 + 4\right)^2} = \frac{16 - 4t^2}{\left(t^2 + 4\right)^2}.

(b) The particle is at rest when v(t)=0v(t) = 0. The denominator is never 0, so set the numerator to 0: 16−4t2=016 - 4t^2 = 0 gives t=2t = 2 (since t>0t > 0).

(c) v(3)=16−36132=−20169v(3) = \dfrac{16 - 36}{13^2} = -\dfrac{20}{169}. Since v(3)<0v(3) < 0, the particle is moving to the left at t=3t = 3.

The reason in (c) has to cite the sign of the velocity. The position x(3)=1213x(3) = \frac{12}{13} is positive, but that says where the particle is, not which way it is going.

Where students lose points

On the exam

The quotient rule appears with formulas and with tables of values. On free-response parts, an unsimplified derivative is acceptable unless the question asks for something that depends on simplifying, such as where the derivative is 0. Topic 2.10 uses the quotient rule to find the derivatives of tan⁡x\tan x, cot⁡x\cot x, sec⁡x\sec x and csc⁡x\csc x.

Check yourself

  1. Question 1

    If y=xx+1y = \dfrac{x}{x + 1}, then dydx=\dfrac{dy}{dx} =

    1. A

      1(x+1)2\dfrac{1}{(x+1)^2}

    2. B

      −1(x+1)2-\dfrac{1}{(x+1)^2}

    3. C

      11

    4. D

      2x+1(x+1)2\dfrac{2x + 1}{(x+1)^2}

    Show answer

    A

    1⋅(x+1)−x⋅1(x+1)2=1(x+1)2\dfrac{1\cdot(x+1) - x\cdot 1}{(x+1)^2} = \dfrac{1}{(x+1)^2}. Choice B reverses the subtraction, choice C divides the derivatives 11\frac{1}{1}, and choice D adds the two products instead of subtracting.

  2. Question 2

    Find the slope of the graph of y=sin⁡xexy = \dfrac{\sin x}{e^x} at x=0x = 0.

    Show answer

    11

    dydx=cos⁡x⋅ex−sin⁡x⋅exe2x=cos⁡x−sin⁡xex\dfrac{dy}{dx} = \dfrac{\cos x\cdot e^x - \sin x\cdot e^x}{e^{2x}} = \dfrac{\cos x - \sin x}{e^x}, which is 1−01=1\dfrac{1 - 0}{1} = 1 at x=0x = 0.

  3. Question 3

    A differentiable function gg has g(a)=4g(a) = 4 and g′(a)=2g'(a) = 2. What is the derivative of 1g(x)\dfrac{1}{g(x)} at x=ax = a?

    Show answer

    −18-\dfrac{1}{8}

    The quotient rule with top 1 gives −g′(x)[g(x)]2-\dfrac{g'(x)}{[g(x)]^2}, so the value is −216=−18-\dfrac{2}{16} = -\dfrac{1}{8}. It is negative because a growing denominator makes the reciprocal shrink.

  4. Question 4

    Which function's derivative can't be found by rewriting it and using only the power, constant multiple, sum and basic-function rules (topics 2.5 to 2.7), so that it needs the quotient rule?

    1. A

      x3+2xx\dfrac{x^3 + 2x}{x}

    2. B

      7x4\dfrac{7}{x^4}

    3. C

      sin⁡x3\dfrac{\sin x}{3}

    4. D

      xx2+1\dfrac{x}{x^2 + 1}

    Show answer

    D

    A simplifies to x2+2x^2 + 2 (for x≠0x \neq 0) and B is 7x−47x^{-4}, both handled by the power rule. C is the constant multiple 13sin⁡x\frac{1}{3}\sin x, so its derivative 13cos⁡x\frac{1}{3}\cos x needs only the constant multiple rule and the derivative of sin⁡x\sin x, even though sin⁡x\sin x is not a power of xx. In D the denominator x2+1x^2 + 1 is a sum, so it doesn't divide into the numerator term by term, and the quotient rule is required.

Go deeper