Quotient Rule

A2 · P3 · 11 min

The quotient rule differentiates one function divided by another, such as 2x−43x+2\dfrac{2x - 4}{3x + 2}, ln⁡xx\dfrac{\ln x}{x} or sin⁡x2−cos⁡x\dfrac{\sin x}{2 - \cos x}. It is the product rule in disguise, but it comes with a minus sign and an order that matters, so it is where many marks are lost. It also proves the derivatives of tan⁡x\tan x, sec⁡x\sec x, cosec⁡x\operatorname{cosec} x and cot⁡x\cot x, and appears in almost every P3 stationary-point question involving a fraction.

Where the rule comes from

Write the quotient as a product with a negative power: uv=u⋅v−1\dfrac{u}{v} = u \cdot v^{-1}. Apply the product rule, using the chain rule on v−1v^{-1}:

ddx(uv−1)=u⋅(−v−2dvdx)+v−1dudx=1vdudx−uv2dvdx\frac{d}{dx}\left(uv^{-1}\right) = u \cdot \left(-v^{-2}\frac{dv}{dx}\right) + v^{-1}\frac{du}{dx} = \frac{1}{v}\frac{du}{dx} - \frac{u}{v^2}\frac{dv}{dx}

Put both terms over v2v^2:

ddx(uv)=vdudx−udvdxv2\frac{d}{dx}\left(\frac{u}{v}\right) = \frac{v\dfrac{du}{dx} - u\dfrac{dv}{dx}}{v^2}

So you never strictly need the quotient rule. But for fractions with a function of xx on the bottom, it is the cleanest way to get a single fraction, which is the form you need for solving dydx=0\dfrac{dy}{dx} = 0.

Quotient rule

If y=uvy = \dfrac{u}{v}, where uu and vv are functions of xx, then

dydx=vdudx−udvdxv2\frac{dy}{dx} = \frac{v\dfrac{du}{dx} - u\dfrac{dv}{dx}}{v^2}

The order matters: it starts with vdudxv\dfrac{du}{dx}, the bottom times the derivative of the top. A common memory aid is "low d-high minus high d-low, over low squared".

A check with a case you already know: x3x=x2\dfrac{x^3}{x} = x^2, derivative 2x2x. The rule gives x⋅3x2−x3⋅1x2=2x3x2=2x\dfrac{x \cdot 3x^2 - x^3 \cdot 1}{x^2} = \dfrac{2x^3}{x^2} = 2x. If you swap the order in the numerator you get −2x-2x, which shows why the order matters.

Setting out

Using the quotient rule
  1. Write u=u = (numerator), v=v = (denominator).
  2. Find dudx\dfrac{du}{dx} and dvdx\dfrac{dv}{dx}, with the chain rule where needed.
  3. Write dydx=vu′−uv′v2\dfrac{dy}{dx} = \dfrac{v u' - u v'}{v^2}, putting brackets round every piece before you expand.
  4. Simplify the numerator only: expand, collect, factorise. Leave the denominator as v2v^2 in factorised form.
  5. For stationary points, set the numerator equal to zero. The denominator never makes a fraction zero.

The numerator does all the work

Because v2v^2 is a square, it is positive wherever the function is defined. So the sign of dydx\dfrac{dy}{dx} is the sign of the numerator, and dydx=0\dfrac{dy}{dx} = 0 exactly when the numerator is zero. This is why step 4 says simplify the numerator only: expanding (3x+2)2(3x + 2)^2 in the denominator achieves nothing.

A neat consequence: for ax+bcx+d\dfrac{ax + b}{cx + d} the numerator always simplifies to a constant, ad−bcad - bc. So the curve is either increasing everywhere or decreasing everywhere on each branch, and has no stationary points.

When not to use the quotient rule

The quotient rule is reliable but long. Three situations have a faster route.

SituationExampleFaster route
Constant numerator5(2x+1)3\dfrac{5}{(2x+1)^3}Write as 5(2x+1)−35(2x + 1)^{-3}, chain rule: −30(2x+1)4-\dfrac{30}{(2x+1)^4}
Single-term denominator that divides inx2+3x−1x\dfrac{x^2 + 3x - 1}{x}Split: x+3−x−1x + 3 - x^{-1}, derivative 1+x−21 + x^{-2}
Exponential denominatorx2ex\dfrac{x^2}{e^x}Write as x2e−xx^2e^{-x}, product rule
Log of a quotientln⁡x+1x−1\ln\dfrac{x+1}{x-1}Log laws: ln⁡(x+1)−ln⁡(x−1)\ln(x+1) - \ln(x - 1)

If the question says "use the quotient rule", use it. Otherwise choose whichever is quickest and safest for you.

Proving the trigonometric derivatives

The quotient rule gives the derivative of tan⁡x\tan x from those of sin⁡x\sin x and cos⁡x\cos x:

ddxtan⁡x=ddxsin⁡xcos⁡x=cos⁡x⋅cos⁡x−sin⁡x⋅(−sin⁡x)cos⁡2x=cos⁡2x+sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x\frac{d}{dx}\tan x = \frac{d}{dx}\frac{\sin x}{\cos x} = \frac{\cos x \cdot \cos x - \sin x \cdot (-\sin x)}{\cos^2 x} = \frac{\cos^2 x + \sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x

The same idea gives sec⁡x\sec x, cosec⁡x\operatorname{cosec} x and cot⁡x\cot x; see differentiating trigonometric functions. "Prove that ddx(cot⁡x)=−cosec⁡2x\dfrac{d}{dx}(\cot x) = -\operatorname{cosec}^2 x" is a standard short question.

Worked examples

A linear over a linear

Find dydx\dfrac{dy}{dx} when y=2x−43x+2y = \dfrac{2x - 4}{3x + 2}, and explain why the curve has no stationary points.

Solution

u=2x−4u = 2x - 4, u′=2u' = 2;  v=3x+2\ v = 3x + 2, v′=3v' = 3.

dydx=(3x+2)(2)−(2x−4)(3)(3x+2)2=6x+4−6x+12(3x+2)2=16(3x+2)2\frac{dy}{dx} = \frac{(3x + 2)(2) - (2x - 4)(3)}{(3x+2)^2} = \frac{6x + 4 - 6x + 12}{(3x + 2)^2} = \frac{16}{(3x+2)^2}

The numerator is the constant 1616, which is never zero, so there are no stationary points. In fact dydx>0\dfrac{dy}{dx} > 0 wherever it is defined.

Exponential over a power

Find the exact coordinates of the stationary point of y=e2xxy = \dfrac{e^{2x}}{x}, x≠0x \ne 0.

Solution

u=e2xu = e^{2x}, u′=2e2xu' = 2e^{2x};  v=x\ v = x, v′=1v' = 1.

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

Since e2x>0e^{2x} > 0, the numerator is zero only when x=12x = \tfrac{1}{2}. Then y=e11/2=2ey = \dfrac{e^1}{1/2} = 2e.

The stationary point is (12,2e)\left(\tfrac{1}{2}, 2e\right).

Where a function is increasing

Given y=xx2+4y = \dfrac{x}{x^2 + 4}, find the coordinates of the stationary points and the set of values of xx for which yy is increasing.

Solution

u=xu = x, u′=1u' = 1;  v=x2+4\ v = x^2 + 4, v′=2xv' = 2x.

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

Stationary where 4−x2=04 - x^2 = 0: x=±2x = \pm 2, giving (2,14)\left(2, \tfrac{1}{4}\right) and (−2,−14)\left(-2, -\tfrac{1}{4}\right).

The denominator is positive, so yy is increasing where 4−x2>04 - x^2 > 0, that is −2<x<2-2 < x < 2.

y = x / (x^2 + 4)

The curve y=xx2+4y = \dfrac{x}{x^2 + 4} rises between its minimum at x=−2x = -2 and its maximum at x=2x = 2.

A trigonometric quotient

Find the xx-coordinates of the stationary points of y=sin⁡x2−cos⁡xy = \dfrac{\sin x}{2 - \cos x} for 0≤x<2π0 \le x < 2\pi, and the exact yy-coordinate of each.

Solution

u=sin⁡xu = \sin x, u′=cos⁡xu' = \cos x;  v=2−cos⁡x\ v = 2 - \cos x, v′=sin⁡xv' = \sin x.

dydx=(2−cos⁡x)cos⁡x−sin⁡x⋅sin⁡x(2−cos⁡x)2=2cos⁡x−(cos⁡2x+sin⁡2x)(2−cos⁡x)2=2cos⁡x−1(2−cos⁡x)2\frac{dy}{dx} = \frac{(2 - \cos x)\cos x - \sin x \cdot \sin x}{(2 - \cos x)^2} = \frac{2\cos x - (\cos^2 x + \sin^2 x)}{(2 - \cos x)^2} = \frac{2\cos x - 1}{(2 - \cos x)^2}

Zero when cos⁡x=12\cos x = \tfrac{1}{2}: x=π3x = \tfrac{\pi}{3} or x=5π3x = \tfrac{5\pi}{3}.

At x=π3x = \tfrac{\pi}{3}: y=3/23/2=33y = \dfrac{\sqrt{3}/2}{3/2} = \dfrac{\sqrt{3}}{3}. At x=5π3x = \tfrac{5\pi}{3}: y=−33y = -\dfrac{\sqrt{3}}{3}.

A maximum, then a normal

The curve y=ln⁡xxy = \dfrac{\ln x}{x}, for x>0x > 0, has one stationary point.

(a) Find its exact coordinates and show that it is a maximum.

(b) Find the equation of the normal to the curve at the point where it crosses the xx-axis.

Solution

(a) u=ln⁡xu = \ln x, u′=1xu' = \dfrac{1}{x};  v=x\ v = x, v′=1v' = 1.

dydx=x⋅1x−ln⁡xx2=1−ln⁡xx2\frac{dy}{dx} = \frac{x \cdot \frac{1}{x} - \ln x}{x^2} = \frac{1 - \ln x}{x^2}

Zero when ln⁡x=1\ln x = 1, so x=ex = e and y=1ey = \dfrac{1}{e}.

Differentiate again, with u=1−ln⁡xu = 1 - \ln x, u′=−1xu' = -\dfrac{1}{x}, v=x2v = x^2, v′=2xv' = 2x:

d2ydx2=x2(−1x)−(1−ln⁡x)(2x)x4=−x−2x+2xln⁡xx4=2ln⁡x−3x3\frac{d^2y}{dx^2} = \frac{x^2\left(-\frac{1}{x}\right) - (1 - \ln x)(2x)}{x^4} = \frac{-x - 2x + 2x\ln x}{x^4} = \frac{2\ln x - 3}{x^3}

At x=ex = e: 2−3e3=−1e3<0\dfrac{2 - 3}{e^3} = -\dfrac{1}{e^3} < 0. So (e,1e)\left(e, \tfrac{1}{e}\right) is a maximum.

(b) y=0y = 0 when ln⁡x=0\ln x = 0, so at (1,0)(1, 0). Gradient there: 1−01=1\dfrac{1 - 0}{1} = 1, so the normal has gradient −1-1. Normal: y=−(x−1)y = -(x - 1), i.e. x+y=1x + y = 1.

Exam-hard: finding an unknown constant

The curve y=x+ax2+3y = \dfrac{x + a}{x^2 + 3}, where aa is a constant, has a stationary point at x=1x = 1.

(a) Find aa.

(b) Find the coordinates of the other stationary point, and determine the nature of each.

Solution

(a) u=x+au = x + a, u′=1u' = 1;  v=x2+3\ v = x^2 + 3, v′=2xv' = 2x.

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

At x=1x = 1 the numerator is zero: 3−2a−1=03 - 2a - 1 = 0, so a=1a = 1.

(b) With a=1a = 1 the numerator is 3−2x−x2=−(x+3)(x−1)3 - 2x - x^2 = -(x + 3)(x - 1). The other stationary point is at x=−3x = -3, where y=−212=−16y = \dfrac{-2}{12} = -\dfrac{1}{6}. At x=1x = 1, y=24=12y = \dfrac{2}{4} = \dfrac{1}{2}.

Nature by the sign of the numerator −(x+3)(x−1)-(x + 3)(x - 1), a downward parabola with roots −3-3 and 11: negative for x<−3x < -3, positive for −3<x<1-3 < x < 1, negative for x>1x > 1.

So (−3,−16)\left(-3, -\tfrac{1}{6}\right) is a minimum (gradient −- to ++) and (1,12)\left(1, \tfrac{1}{2}\right) is a maximum (gradient ++ to −-).

Common mistakes
  • Wrong order in the numerator. uv′−vu′v2\dfrac{u v' - v u'}{v^2} gives the right answer with the wrong sign. Start with the denominator: vu′v u'.
  • Missing brackets. (3x+2)(2)−(2x−4)(3)(3x + 2)(2) - (2x - 4)(3): without the second bracket, −2x−4×3-2x - 4 \times 3 becomes −6x−12-6x - 12 instead of −6x+12-6x + 12. Bracket every piece, then expand.
  • Forgetting to square the denominator.
  • Expanding the denominator. It wastes time and hides factors that might cancel with the numerator.
  • Setting the denominator to zero when looking for stationary points. A fraction is zero only when its numerator is zero.
  • Cancelling incorrectly. In x⋅2e2x−e2xx2\dfrac{x \cdot 2e^{2x} - e^{2x}}{x^2} you cannot cancel an xx from one term of the numerator only.
Exam tip
  • Many mark schemes award the first mark for the correct structure vu′−uv′v2\dfrac{v u' - u v'}{v^2} with your u′u' and v′v'; the second for correct derivatives; the third for a correctly simplified result. Show the unsimplified quotient before you tidy it.
  • "Show that dydx=……\dfrac{dy}{dx} = \dfrac{\ldots}{\ldots}": your final line must match exactly. If the printed answer has cos⁡2x+sin⁡2x\cos^2 x + \sin^2 x replaced by 11, show that step.
  • For "find the set of values for which yy is increasing", state that the denominator is positive and solve "numerator >0> 0".
  • Leave the denominator factorised in every answer unless told otherwise.
Summary
  • ddx(uv)=vu′−uv′v2\dfrac{d}{dx}\left(\dfrac{u}{v}\right) = \dfrac{v u' - u v'}{v^2}, with the denominator term first.
  • It is the product rule applied to u⋅v−1u \cdot v^{-1}.
  • Bracket each part before expanding; simplify the numerator, leave v2v^2 alone.
  • dydx=0  ⟺  \dfrac{dy}{dx} = 0 \iff numerator =0= 0, and the sign of dydx\dfrac{dy}{dx} is the sign of the numerator.
  • Avoid the rule for constant numerators, single-term denominators, exponential denominators and logs of quotients.
  • The quotient rule proves ddxtan⁡x=sec⁡2x\dfrac{d}{dx}\tan x = \sec^2 x and the other reciprocal trig derivatives.

Practice

Question
  1. Differentiate 3x+1x−2\dfrac{3x + 1}{x - 2}.
  2. Differentiate x22x+1\dfrac{x^2}{2x + 1}, simplifying the numerator fully.
  3. Show that ddx(ex1+ex)=ex(1+ex)2\dfrac{d}{dx}\left(\dfrac{e^x}{1 + e^x}\right) = \dfrac{e^x}{(1 + e^x)^2}.
  4. Differentiate 1+ln⁡xx\dfrac{1 + \ln x}{x}.
  5. Show that ddx(cos⁡x1+sin⁡x)=−11+sin⁡x\dfrac{d}{dx}\left(\dfrac{\cos x}{1 + \sin x}\right) = -\dfrac{1}{1 + \sin x}.
  6. Prove that ddx(cot⁡x)=−cosec⁡2x\dfrac{d}{dx}(\cot x) = -\operatorname{cosec}^2 x.
  7. Find the coordinates of the stationary points of y=x2x−1y = \dfrac{x^2}{x - 1} and determine their nature.
  8. The curve y=2x−1x2+2y = \dfrac{2x - 1}{x^2 + 2} has two stationary points. Find their coordinates and the set of values of xx for which yy is increasing.
  9. The curve y=e2xx2+ky = \dfrac{e^{2x}}{x^2 + k}, where kk is a positive constant, is defined for all xx. Find the set of values of kk for which the curve has two stationary points.
Answers
  1. (x−2)(3)−(3x+1)(1)(x−2)2=−7(x−2)2\dfrac{(x - 2)(3) - (3x + 1)(1)}{(x - 2)^2} = \dfrac{-7}{(x - 2)^2}.

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

  3. u=exu = e^x, v=1+exv = 1 + e^x, u′=v′=exu' = v' = e^x: (1+ex)ex−ex⋅ex(1+ex)2=ex+e2x−e2x(1+ex)2=ex(1+ex)2\dfrac{(1 + e^x)e^x - e^x \cdot e^x}{(1 + e^x)^2} = \dfrac{e^x + e^{2x} - e^{2x}}{(1 + e^x)^2} = \dfrac{e^x}{(1+e^x)^2}.

  4. x⋅1x−(1+ln⁡x)⋅1x2=1−1−ln⁡xx2=−ln⁡xx2\dfrac{x\cdot\frac{1}{x} - (1 + \ln x)\cdot 1}{x^2} = \dfrac{1 - 1 - \ln x}{x^2} = -\dfrac{\ln x}{x^2}.

  5. (1+sin⁡x)(−sin⁡x)−cos⁡xcos⁡x(1+sin⁡x)2=−sin⁡x−(sin⁡2x+cos⁡2x)(1+sin⁡x)2=−(1+sin⁡x)(1+sin⁡x)2=−11+sin⁡x\dfrac{(1 + \sin x)(-\sin x) - \cos x\cos x}{(1 + \sin x)^2} = \dfrac{-\sin x - (\sin^2 x + \cos^2 x)}{(1 + \sin x)^2} = \dfrac{-(1 + \sin x)}{(1 + \sin x)^2} = -\dfrac{1}{1 + \sin x}.

  6. cot⁡x=cos⁡xsin⁡x\cot x = \dfrac{\cos x}{\sin x}, so ddxcot⁡x=sin⁡x(−sin⁡x)−cos⁡xcos⁡xsin⁡2x=−(sin⁡2x+cos⁡2x)sin⁡2x=−1sin⁡2x=−cosec⁡2x\dfrac{d}{dx}\cot x = \dfrac{\sin x(-\sin x) - \cos x\cos x}{\sin^2 x} = \dfrac{-(\sin^2 x + \cos^2 x)}{\sin^2 x} = -\dfrac{1}{\sin^2 x} = -\operatorname{cosec}^2 x.

  7. dydx=(x−1)(2x)−x2(x−1)2=x(x−2)(x−1)2\dfrac{dy}{dx} = \dfrac{(x - 1)(2x) - x^2}{(x-1)^2} = \dfrac{x(x - 2)}{(x - 1)^2}. Stationary points (0,0)(0, 0) and (2,4)(2, 4). The numerator x(x−2)x(x-2) is positive for x<0x < 0, negative for 0<x<20 < x < 2 (excluding x=1x = 1), positive for x>2x > 2. So (0,0)(0, 0) is a maximum and (2,4)(2, 4) is a minimum.

  8. dydx=2(x2+2)−(2x−1)(2x)(x2+2)2=−2x2+2x+4(x2+2)2=−2(x−2)(x+1)(x2+2)2\dfrac{dy}{dx} = \dfrac{2(x^2 + 2) - (2x - 1)(2x)}{(x^2 + 2)^2} = \dfrac{-2x^2 + 2x + 4}{(x^2+2)^2} = \dfrac{-2(x - 2)(x + 1)}{(x^2 + 2)^2}. Stationary points (2,12)\left(2, \tfrac{1}{2}\right) and (−1,−1)(-1, -1). Increasing where −2(x−2)(x+1)>0-2(x-2)(x+1) > 0, i.e. (x−2)(x+1)<0(x - 2)(x + 1) < 0: −1<x<2-1 < x < 2.

  9. dydx=(x2+k)2e2x−e2x(2x)(x2+k)2=2e2x(x2−x+k)(x2+k)2\dfrac{dy}{dx} = \dfrac{(x^2 + k)2e^{2x} - e^{2x}(2x)}{(x^2 + k)^2} = \dfrac{2e^{2x}(x^2 - x + k)}{(x^2 + k)^2}. Since e2x>0e^{2x} > 0, stationary points satisfy x2−x+k=0x^2 - x + k = 0. Two distinct roots need discriminant 1−4k>01 - 4k > 0, so k<14k < \tfrac{1}{4}. With k>0k > 0 given: 0<k<140 < k < \tfrac{1}{4}.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action