Use the quotient rule to show that the derivative of tanx is sec2x, and say where the formula holds.
f(x)=tanx
1
Write the tangent as a quotient
The tangent is the sine divided by the cosine. Written that way it has a top and a bottom, and the quotient rule applies wherever cosx=0.
f(x)=cosxsinx
2
Name the four pieces
The top is sinx, with derivative cosx. The bottom is cosx, with derivative −sinx. Both work as written only with x in radians.
top=sinx, top′=cosx,bottom=cosx, bottom′=−sinx
top=sinx, top′=cosxbottom=cosxbottom′=−sinx
3
Apply the quotient rule
Bottom times the top’s derivative, minus top times the bottom’s derivative, over the bottom squared. Keep −sinx in brackets for now.
f′(x)=cos2xcosxcosx−sinx(−sinx)
f′(x)=cos2xcosxcosx−sinx(−sinx)
4
Simplify the numerator
Subtracting −sin2x adds sin2x. The numerator becomes cos2x+sin2x.
f′(x)=cos2xcos2x+sin2x
5
Use the Pythagorean identity
For every angle, sin2x+cos2x=1, which makes the numerator 1.
f′(x)=cos2x1
6
Name the result
Since 1/cosx is secx,1/cos2x is sec2x. The formula holds wherever cosx=0. That excludes x=π/2+kπ for every integer k, the same places where tanx is undefined.
f′(x)=sec2x
7
Read the answer
A square is never negative, and cos2x is at most 1, so sec2x is at least 1. The tangent rises on every interval between its asymptotes. At x=0 its slope is exactly 1, and at x=π/4 it is 1/(1/2)=2.
Result
The derivative of tanx is sec2x, for every x with cosx=0.
dxdtanx=sec2x
Your turn
1. One like the example
Differentiate y=cotx by writing it as cosx/sinx.
Show the answer and explanation
dy/dx=−csc2x, wherever sinx=0.
The top cosx has derivative −sinx and the bottom sinx has derivative cosx. The rule gives (−sinx⋅sinx−cosx⋅cosx)/sin2x=−(sin2x+cos2x)/sin2x=−1/sin2x, which is −csc2x.
Find the equation of the tangent line to y=tanx at x=π/4.
Show the answer and explanation
y=1+2(x−π/4), a line of slope 2 through (π/4,1).
The point is (π/4,1), because tan(π/4)=1. The slope is sec2(π/4)=1/cos2(π/4)=1/(1/2)=2. Point-slope form gives y=1+2(x−π/4).
f(x)=tanxf′(x)=sec2xf′(4π)=2
Keep exploring
Open the steps in Math: the Checker marks every row ✓. Swap the two terms of the numerator and that row reads ✗, because the order in the quotient rule matters.