The quotient rule differentiates one function divided by another, like x x 2 + 1 \dfrac{x}{x^2 + 1} x 2 + 1 x or e x x 2 \dfrac{e^x}{x^2} x 2 e x . It also unlocks the derivatives of the other four trig functions, since tan x \tan x tan x , cot x \cot x cot x , sec x \sec x sec x , and csc x \csc x csc x can all be written as quotients of sin x \sin x sin x and cos x \cos x cos x . As always in calculus, angles are in radians .
If f f f and g g g are differentiable and g ( x ) ≠ 0 g(x) \ne 0 g ( x ) = 0 , then
d d x [ 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} d x d [ g ( x ) f ( x ) ] = [ g ( x ) ] 2 f ′ ( x ) g ( x ) − f ( x ) g ′ ( x )
A popular memory aid, with “hi” for the top and “lo” for the bottom: “lo d-hi minus hi d-lo, over lo squared.”
Unlike the product rule , order matters here, because of the minus sign. Always start with the derivative of the top.
If the denominator is a constant or a single power of x x x , it’s usually faster to rewrite and use the power rule :
x 3 + 1 4 = 1 4 x 3 + 1 4 \dfrac{x^3 + 1}{4} = \dfrac{1}{4}x^3 + \dfrac{1}{4} 4 x 3 + 1 = 4 1 x 3 + 4 1 , so the derivative is 3 4 x 2 \dfrac{3}{4}x^2 4 3 x 2 .
x 2 − 6 x = x − 6 x − 1 \dfrac{x^2 - 6}{x} = x - 6x^{-1} x x 2 − 6 = x − 6 x − 1 , so the derivative is 1 + 6 x 2 1 + \dfrac{6}{x^2} 1 + x 2 6 .
Write tan x = sin x cos x \tan x = \dfrac{\sin x}{\cos x} tan x = cos x sin x and use the quotient rule:
d d x [ tan x ] = ( cos x ) ( cos x ) − ( sin x ) ( − sin x ) cos 2 x = cos 2 x + sin 2 x cos 2 x = 1 cos 2 x = sec 2 x \begin{aligned}
\frac{d}{dx}[\tan x] &= \frac{(\cos x)(\cos x) - (\sin x)(-\sin x)}{\cos^2 x} \\
&= \frac{\cos^2 x + \sin^2 x}{\cos^2 x} \\
&= \frac{1}{\cos^2 x} = \sec^2 x
\end{aligned} d x d [ tan x ] = cos 2 x ( cos x ) ( cos x ) − ( sin x ) ( − sin x ) = cos 2 x cos 2 x + sin 2 x = cos 2 x 1 = sec 2 x
The key step is the Pythagorean identity sin 2 x + cos 2 x = 1 \sin^2 x + \cos^2 x = 1 sin 2 x + cos 2 x = 1 .
For sec x = 1 cos x \sec x = \dfrac{1}{\cos x} sec x = cos x 1 , the top is the constant 1 1 1 , whose derivative is 0 0 0 :
d d x [ sec x ] = ( 0 ) ( cos x ) − ( 1 ) ( − sin x ) cos 2 x = sin x cos 2 x = 1 cos x ⋅ sin x cos x = sec x tan x \frac{d}{dx}[\sec x] = \frac{(0)(\cos x) - (1)(-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x} = \frac{1}{\cos x}\cdot\frac{\sin x}{\cos x} = \sec x \tan x d x d [ sec x ] = cos 2 x ( 0 ) ( cos x ) − ( 1 ) ( − sin x ) = cos 2 x sin x = cos x 1 ⋅ cos x sin x = sec x tan x
Function Derivative sin x \sin x sin x cos x \cos x cos x cos x \cos x cos x − sin x -\sin x − sin x tan x \tan x tan x sec 2 x \sec^2 x sec 2 x cot x \cot x cot x − csc 2 x -\csc^2 x − csc 2 x sec x \sec x sec x sec x tan x \sec x \tan x sec x tan x csc x \csc x csc x − csc x cot x -\csc x \cot x − csc x cot x
A pattern to help you remember: the three “co” functions (cosine, cotangent, cosecant) have derivatives with a minus sign . Practice 4 and 5 ask you to derive cot x \cot x cot x and csc x \csc x csc x yourself.
Differentiate y = 2 x + 1 x − 3 y = \dfrac{2x + 1}{x - 3} y = x − 3 2 x + 1 .
Solution. Top: f = 2 x + 1 f = 2x + 1 f = 2 x + 1 , f ′ = 2 f' = 2 f ′ = 2 . Bottom: g = x − 3 g = x - 3 g = x − 3 , g ′ = 1 g' = 1 g ′ = 1 .
d y d x = ( 2 ) ( x − 3 ) − ( 2 x + 1 ) ( 1 ) ( x − 3 ) 2 = 2 x − 6 − 2 x − 1 ( x − 3 ) 2 = − 7 ( x − 3 ) 2 \begin{aligned}
\frac{dy}{dx} &= \frac{(2)(x - 3) - (2x + 1)(1)}{(x - 3)^2} \\
&= \frac{2x - 6 - 2x - 1}{(x - 3)^2} \\
&= \frac{-7}{(x - 3)^2}
\end{aligned} d x d y = ( x − 3 ) 2 ( 2 ) ( x − 3 ) − ( 2 x + 1 ) ( 1 ) = ( x − 3 ) 2 2 x − 6 − 2 x − 1 = ( x − 3 ) 2 − 7
Notice the brackets around ( 2 x + 1 ) (2x + 1) ( 2 x + 1 ) : the minus sign applies to the whole thing.
Find the points where f ( x ) = x x 2 + 1 f(x) = \dfrac{x}{x^2 + 1} f ( x ) = x 2 + 1 x has a horizontal tangent.
Solution.
f ′ ( x ) = ( 1 ) ( x 2 + 1 ) − ( x ) ( 2 x ) ( x 2 + 1 ) 2 = 1 − x 2 ( x 2 + 1 ) 2 f'(x) = \frac{(1)(x^2 + 1) - (x)(2x)}{(x^2 + 1)^2} = \frac{1 - x^2}{(x^2 + 1)^2} f ′ ( x ) = ( x 2 + 1 ) 2 ( 1 ) ( x 2 + 1 ) − ( x ) ( 2 x ) = ( x 2 + 1 ) 2 1 − x 2
A fraction is 0 0 0 when its numerator is 0 0 0 (and its denominator isn’t). Here the denominator is never 0 0 0 , so solve 1 − x 2 = 0 1 - x^2 = 0 1 − x 2 = 0 : x = ± 1 x = \pm 1 x = ± 1 .
f ( 1 ) = 1 2 f(1) = \dfrac{1}{2} f ( 1 ) = 2 1 and f ( − 1 ) = − 1 2 f(-1) = -\dfrac{1}{2} f ( − 1 ) = − 2 1 . The points are ( 1 , 1 2 ) \left(1, \dfrac{1}{2}\right) ( 1 , 2 1 ) and ( − 1 , − 1 2 ) \left(-1, -\dfrac{1}{2}\right) ( − 1 , − 2 1 ) .
The graph of y = x over (x squared plus 1). It has horizontal tangent lines at its highest point (1, 1/2) and its lowest point (-1, -1/2), and approaches the x-axis on both sides.
(1, 1/2)
(−1, −1/2)
−4
−3
−2
−1
1
2
3
4
f ( x ) = x x 2 + 1 f(x) = \dfrac{x}{x^2 + 1} f ( x ) = x 2 + 1 x has horizontal tangents at ( 1 , 1 2 ) \left(1, \tfrac{1}{2}\right) ( 1 , 2 1 ) and ( − 1 , − 1 2 ) \left(-1, -\tfrac{1}{2}\right) ( − 1 , − 2 1 ) , exactly where f ′ ( x ) = 0 f'(x) = 0 f ′ ( x ) = 0 .
Find the equation of the tangent line to y = tan x y = \tan x y = tan x at x = π 4 x = \dfrac{\pi}{4} x = 4 π .
Solution. Point: tan π 4 = 1 \tan \dfrac{\pi}{4} = 1 tan 4 π = 1 . Slope: sec 2 π 4 = 1 cos 2 ( π / 4 ) = 1 1 / 2 = 2 \sec^2 \dfrac{\pi}{4} = \dfrac{1}{\cos^2 (\pi/4)} = \dfrac{1}{1/2} = 2 sec 2 4 π = cos 2 ( π /4 ) 1 = 1/2 1 = 2 .
y − 1 = 2 ( x − π 4 ) y - 1 = 2\left(x - \frac{\pi}{4}\right) y − 1 = 2 ( x − 4 π )
Let q ( x ) = f ( x ) g ( x ) q(x) = \dfrac{f(x)}{g(x)} q ( x ) = g ( x ) f ( x ) , where f ( 2 ) = 3 f(2) = 3 f ( 2 ) = 3 , f ′ ( 2 ) = − 1 f'(2) = -1 f ′ ( 2 ) = − 1 , g ( 2 ) = 4 g(2) = 4 g ( 2 ) = 4 , and g ′ ( 2 ) = 2 g'(2) = 2 g ′ ( 2 ) = 2 . Find q ′ ( 2 ) q'(2) q ′ ( 2 ) .
Solution.
q ′ ( 2 ) = f ′ ( 2 ) g ( 2 ) − f ( 2 ) g ′ ( 2 ) [ g ( 2 ) ] 2 = ( − 1 ) ( 4 ) − ( 3 ) ( 2 ) 4 2 = − 10 16 = − 5 8 q'(2) = \frac{f'(2)g(2) - f(2)g'(2)}{\big[g(2)\big]^2} = \frac{(-1)(4) - (3)(2)}{4^2} = \frac{-10}{16} = -\frac{5}{8} q ′ ( 2 ) = [ g ( 2 ) ] 2 f ′ ( 2 ) g ( 2 ) − f ( 2 ) g ′ ( 2 ) = 4 2 ( − 1 ) ( 4 ) − ( 3 ) ( 2 ) = 16 − 10 = − 8 5
Swapping the order in the numerator. f g ′ − f ′ g g 2 \dfrac{fg' - f'g}{g^2} g 2 f g ′ − f ′ g gives the negative of the right answer. Start with the derivative of the top : “lo d-hi” comes first.
Forgetting to square the denominator , or forgetting the denominator entirely. Write the fraction bar and [ g ( x ) ] 2 \big[g(x)\big]^2 [ g ( x ) ] 2 before you fill in the numerator.
Dropping brackets in the numerator. In Example 1, − ( 2 x + 1 ) ( 1 ) -(2x + 1)(1) − ( 2 x + 1 ) ( 1 ) is − 2 x − 1 -2x - 1 − 2 x − 1 , not − 2 x + 1 -2x + 1 − 2 x + 1 .
Dividing the derivatives. ( f g ) ′ ≠ f ′ g ′ \left(\dfrac{f}{g}\right)' \ne \dfrac{f'}{g'} ( g f ) ′ = g ′ f ′ . Just like products, quotients need their own rule.
Mixing up the trig signs. The derivatives of cos x \cos x cos x , cot x \cot x cot x , and csc x \csc x csc x are negative. Also, d d x [ sec x ] \dfrac{d}{dx}[\sec x] d x d [ sec x ] is sec x tan x \sec x \tan x sec x tan x , not sec 2 x \sec^2 x sec 2 x (that’s tan x \tan x tan x ).
Expanding the denominator. Leave ( x 2 + 1 ) 2 (x^2 + 1)^2 ( x 2 + 1 ) 2 factored. Expanding it creates work and hides the fact that it’s never 0 0 0 .
1. (Warm-up) Differentiate y = x x + 1 y = \dfrac{x}{x + 1} y = x + 1 x .
Solution d y d x = ( 1 ) ( x + 1 ) − ( x ) ( 1 ) ( x + 1 ) 2 = 1 ( x + 1 ) 2 \frac{dy}{dx} = \frac{(1)(x + 1) - (x)(1)}{(x + 1)^2} = \frac{1}{(x + 1)^2} d x d y = ( x + 1 ) 2 ( 1 ) ( x + 1 ) − ( x ) ( 1 ) = ( x + 1 ) 2 1
2. (Warm-up) Find d d x [ sec x + tan x ] \dfrac{d}{dx}\big[\sec x + \tan x\big] d x d [ sec x + tan x ] .
Solution sec x tan x + sec 2 x \sec x \tan x + \sec^2 x sec x tan x + sec 2 x
3. (Warm-up) Let q ( x ) = f ( x ) g ( x ) q(x) = \dfrac{f(x)}{g(x)} q ( x ) = g ( x ) f ( x ) , where f ( 1 ) = 6 f(1) = 6 f ( 1 ) = 6 , f ′ ( 1 ) = 2 f'(1) = 2 f ′ ( 1 ) = 2 , g ( 1 ) = 3 g(1) = 3 g ( 1 ) = 3 , and g ′ ( 1 ) = − 1 g'(1) = -1 g ′ ( 1 ) = − 1 . Find q ′ ( 1 ) q'(1) q ′ ( 1 ) .
Solution q ′ ( 1 ) = ( 2 ) ( 3 ) − ( 6 ) ( − 1 ) 3 2 = 6 + 6 9 = 4 3 q'(1) = \frac{(2)(3) - (6)(-1)}{3^2} = \frac{6 + 6}{9} = \frac{4}{3} q ′ ( 1 ) = 3 2 ( 2 ) ( 3 ) − ( 6 ) ( − 1 ) = 9 6 + 6 = 3 4
4. (Core) Use the quotient rule to show that d d x [ cot x ] = − csc 2 x \dfrac{d}{dx}[\cot x] = -\csc^2 x d x d [ cot x ] = − csc 2 x .
Solution Write cot x = cos x sin x \cot x = \dfrac{\cos x}{\sin x} cot x = sin x cos x :
d d x [ cot x ] = ( − sin x ) ( sin x ) − ( cos x ) ( cos x ) sin 2 x = − ( sin 2 x + cos 2 x ) sin 2 x = − 1 sin 2 x = − csc 2 x \begin{aligned}
\frac{d}{dx}[\cot x] &= \frac{(-\sin x)(\sin x) - (\cos x)(\cos x)}{\sin^2 x} \\
&= \frac{-(\sin^2 x + \cos^2 x)}{\sin^2 x} \\
&= -\frac{1}{\sin^2 x} = -\csc^2 x
\end{aligned} d x d [ cot x ] = sin 2 x ( − sin x ) ( sin x ) − ( cos x ) ( cos x ) = sin 2 x − ( sin 2 x + cos 2 x ) = − sin 2 x 1 = − csc 2 x
5. (Core) Use the quotient rule to show that d d x [ csc x ] = − csc x cot x \dfrac{d}{dx}[\csc x] = -\csc x \cot x d x d [ csc x ] = − csc x cot x .
Solution Write csc x = 1 sin x \csc x = \dfrac{1}{\sin x} csc x = sin x 1 :
d d x [ csc x ] = ( 0 ) ( sin x ) − ( 1 ) ( cos x ) sin 2 x = − 1 sin x ⋅ cos x sin x = − csc x cot x \frac{d}{dx}[\csc x] = \frac{(0)(\sin x) - (1)(\cos x)}{\sin^2 x} = -\frac{1}{\sin x}\cdot\frac{\cos x}{\sin x} = -\csc x \cot x d x d [ csc x ] = sin 2 x ( 0 ) ( sin x ) − ( 1 ) ( cos x ) = − sin x 1 ⋅ sin x cos x = − csc x cot x
6. (Core) Find d y d x \dfrac{dy}{dx} d x d y for y = e x x 2 y = \dfrac{e^x}{x^2} y = x 2 e x , and simplify.
Solution d y d x = e x ⋅ x 2 − e x ⋅ 2 x x 4 = x e x ( x − 2 ) x 4 = e x ( x − 2 ) x 3 \frac{dy}{dx} = \frac{e^x \cdot x^2 - e^x \cdot 2x}{x^4} = \frac{xe^x(x - 2)}{x^4} = \frac{e^x(x - 2)}{x^3} d x d y = x 4 e x ⋅ x 2 − e x ⋅ 2 x = x 4 x e x ( x − 2 ) = x 3 e x ( x − 2 )
7. (Core) Find the equation of the tangent line to y = x 2 − 1 x 2 + 1 y = \dfrac{x^2 - 1}{x^2 + 1} y = x 2 + 1 x 2 − 1 at x = 1 x = 1 x = 1 .
Solution d y d x = ( 2 x ) ( x 2 + 1 ) − ( x 2 − 1 ) ( 2 x ) ( x 2 + 1 ) 2 = 2 x 3 + 2 x − 2 x 3 + 2 x ( x 2 + 1 ) 2 = 4 x ( x 2 + 1 ) 2 \frac{dy}{dx} = \frac{(2x)(x^2 + 1) - (x^2 - 1)(2x)}{(x^2 + 1)^2} = \frac{2x^3 + 2x - 2x^3 + 2x}{(x^2 + 1)^2} = \frac{4x}{(x^2 + 1)^2} d x d y = ( x 2 + 1 ) 2 ( 2 x ) ( x 2 + 1 ) − ( x 2 − 1 ) ( 2 x ) = ( x 2 + 1 ) 2 2 x 3 + 2 x − 2 x 3 + 2 x = ( x 2 + 1 ) 2 4 x At x = 1 x = 1 x = 1 : the point is ( 1 , 0 ) (1, 0) ( 1 , 0 ) and the slope is 4 4 = 1 \dfrac{4}{4} = 1 4 4 = 1 .
y = x − 1 y = x - 1 y = x − 1
8. (Challenge) Show that the derivative of y = sin x 1 + cos x y = \dfrac{\sin x}{1 + \cos x} y = 1 + cos x sin x simplifies to 1 1 + cos x \dfrac{1}{1 + \cos x} 1 + cos x 1 .
Solution d y d x = ( cos x ) ( 1 + cos x ) − ( sin x ) ( − sin x ) ( 1 + cos x ) 2 = cos x + cos 2 x + sin 2 x ( 1 + cos x ) 2 = cos x + 1 ( 1 + cos x ) 2 = 1 1 + cos x \begin{aligned}
\frac{dy}{dx} &= \frac{(\cos x)(1 + \cos x) - (\sin x)(-\sin x)}{(1 + \cos x)^2} \\
&= \frac{\cos x + \cos^2 x + \sin^2 x}{(1 + \cos x)^2} \\
&= \frac{\cos x + 1}{(1 + \cos x)^2} \\
&= \frac{1}{1 + \cos x}
\end{aligned} d x d y = ( 1 + cos x ) 2 ( cos x ) ( 1 + cos x ) − ( sin x ) ( − sin x ) = ( 1 + cos x ) 2 cos x + cos 2 x + sin 2 x = ( 1 + cos x ) 2 cos x + 1 = 1 + cos x 1
9. (Challenge) Find the point where the graph of y = ln x x y = \dfrac{\ln x}{x} y = x ln x has a horizontal tangent.
Solution d y d x = 1 x ⋅ x − ( ln x ) ( 1 ) x 2 = 1 − ln x x 2 \frac{dy}{dx} = \frac{\frac{1}{x}\cdot x - (\ln x)(1)}{x^2} = \frac{1 - \ln x}{x^2} d x d y = x 2 x 1 ⋅ x − ( ln x ) ( 1 ) = x 2 1 − ln x For x > 0 x \gt 0 x > 0 the denominator is positive, so set the numerator to 0 0 0 : ln x = 1 \ln x = 1 ln x = 1 , so x = e x = e x = e . Then y = ln e e = 1 e y = \dfrac{\ln e}{e} = \dfrac{1}{e} y = e ln e = e 1 .
The point is ( e , 1 e ) \left(e, \dfrac{1}{e}\right) ( e , e 1 ) .