Find the derivatives of the sine and cosine function.
Find the derivatives of the standard trigonometric functions.
Calculate the higher-order derivatives of the sine and cosine.
Derivatives of the Sine and Cosine Functions
We begin our exploration of the derivative for the sine function by using the formula to make a reasonable guess at its derivative. Recall that for a function f(x),
f′(x)=limh→0f(x+h)−f(x)h
Consequently, for values of h very close to 0, f′(x)≈f(x+h)−f(x)h. We see that by using h=0.01,
ddx(sinx)≈sin(x+0.01)−sinx0.01
By setting D(x)=sin(x+0.01)−sinx0.01 and using a graphing utility, we can get a graph of an approximation to the derivative of sinx (Figure 1).
Figure 1. The graph of the function D(x) looks a lot like a cosine curve.
Upon inspection, the graph of D(x) appears to be very close to the graph of the cosine function. Indeed, we will show that
ddx(sinx)=cosx
If we were to follow the same steps to approximate the derivative of the cosine function, we would find that
ddx(cosx)=−sinx
The Derivatives of sinx and cosx
The derivative of the sine function is the cosine and the derivative of the cosine function is the negative sine.
ddx(sinx)=cosx
ddx(cosx)=−sinx
Proof
Because the proofs for ddx(sinx)=cosx and ddx(cosx)=−sinx use similar techniques, we provide only the proof for ddx(sinx)=cosx. Before beginning, recall two important trigonometric limits we learned in Module 2: Limits.
limh→0sinhh=1 and limh→0cosh−1h=0
The graphs of y=(sinh)h and y=(cosh−1)h are shown in Figure 2.
Figure 2. These graphs show two important limits needed to establish the derivative formulas for the sine and cosine functions.
We also recall the following trigonometric identity for the sine of the sum of two angles:
sin(x+h)=sinxcosh+cosxsinh
Now that we have gathered all the necessary equations and identities, we proceed with the proof.
ddxsinx=limh→0sin(x+h)−sinxhApply the definition of the derivative.=limh→0sinxcosh+cosxsinh−sinxhUse trig identity for the sine of the sum of two angles.=limh→0(sinxcosh−sinxh+cosxsinhh)Regroup.=limh→0(sinx(cosh−1h)+cosx(sinhh))Factor outsinxandcosx.=sinx⋅0+cosx⋅1Apply trig limit formulas.=cosxSimplify.
■
Figure 3 shows the relationship between the graph of f(x)=sinx and its derivative f′(x)=cosx. Notice that at the points where f(x)=sinx has a horizontal tangent, its derivative f′(x)=cosx takes on the value zero. We also see that where f(x)=sinx is increasing, f′(x)=cosx>0 and where f(x)=sinx is decreasing, f′(x)=cosx<0.
Figure 3. Where f(x) has a maximum or a minimum, f′(x)=0. That is, f′(x)=0 where f(x) has a horizontal tangent. These points are noted with dots on the graphs.
Example: Differentiating a Function Containing sinx
Watch the following video to see the worked solution to the above Try It.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
Example: Finding the Derivative of a Function Containing cosx
Find the derivative of g(x)=cosx4x2.
Show Solution
By applying the quotient rule, we have
g′(x)=(−sinx)4x2−8x(cosx)(4x2)2.
Simplifying, we obtain
g′(x)=−4x2sinx−8xcosx16x4=−xsinx−2cosx4x3
Try It
Find the derivative of f(x)=xcosx.
Hint
Use the quotient rule.
Show Solution
cosx+xsinxcos2x
Watch the following video to see the worked solution to the above Try It.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.
A particle moves along a coordinate axis in such a way that its position at time t is given by s(t)=2sint−t for 0≤t≤2π. At what times is the particle at rest?
Show Solution
To determine when the particle is at rest, set s′(t)=v(t)=0. Begin by finding s′(t). We obtain
s′(t)=2cost−1,
so we must solve
2cost−1=0 for 0≤t≤2π.
The solutions to this equation are t=π3 and t=5π3. Thus the particle is at rest at times t=π3 and t=5π3.
Try It
A particle moves along a coordinate axis. Its position at time t is given by s(t)=√3t+2cost for 0≤t≤2π. At what times is the particle at rest?
Show Solution
t=π3,t=2π3
Hint
Use the previous example as a guide.
Derivatives of Other Trigonometric Functions
Since the remaining four trigonometric functions may be expressed as quotients involving sine, cosine, or both, we can use the quotient rule to find formulas for their derivatives.
Example: The Derivative of the Tangent Function
Find the derivative of f(x)=tanx.
Show Solution
Start by expressing tanx as the quotient of sinx and cosx:
f(x)=tanx=sinxcosx
Now apply the quotient rule to obtain
f′(x)=cosxcosx−(−sinx)sinx(cosx)2
Simplifying, we obtain
f′(x)=cos2x+sin2xcos2x
Recognizing that cos2x+sin2x=1, by the Pythagorean Identity, we now have
f′(x)=1cos2x
Finally, use the identity secx=1cosx to obtain
f′(x)=sec2x
Try It
Find the derivative of f(x)=cotx.
Hint
Rewrite cotx as cosxsinx and use the quotient rule.
Show Solution
f′(x)=−csc2x
The derivatives of the remaining trigonometric functions may be obtained by using similar techniques. We provide these formulas in the following theorem.
Derivatives of tanx,cotx,secx, and cscx
The derivatives of the remaining trigonometric functions are as follows:
ddx(tanx)=sec2x
ddx(cotx)=−csc2x
ddx(secx)=secxtanx
ddx(cscx)=−cscxcotx
As you navigate problems involving derivatives of trigonometric functions, don’t forget our handy table of trigonometric function values of common angles:
Recall: Trigonometric function values of common angles
Angle
0
π6, or 30∘
π4, or 45∘
π3, or 60∘
π2, or 90∘
Cosine
1
√32
√22
12
0
Sine
0
12
√22
√32
1
Tangent
0
√33
1
√3
Undefined
Secant
1
2√33
√2
2
Undefined
Cosecant
Undefined
2
√2
2√33
1
Cotangent
Undefined
√3
1
√33
0
Example: Finding the Equation of a Tangent Line
Find the equation of a line tangent to the graph of f(x)=cotx at x=π4.
Show Solution
To find the equation of the tangent line, we need a point and a slope at that point. To find the point, compute
f(π4)=cotπ4=1.
Thus the tangent line passes through the point (π4,1). Next, find the slope by finding the derivative of f(x)=cotx and evaluating it at π4:
f′(x)=−csc2x and f′(π4)=−csc2(π4)=−2.
Using the point-slope equation of the line, we obtain
y−1=−2(x−π4)
or equivalently,
y=−2x+1+π2.
Example: Finding the Derivative of Trigonometric Functions
Find the derivative of f(x)=cscx+xtanx.
Show Solution
To find this derivative, we must use both the sum rule and the product rule. Using the sum rule, we find
f′(x)=ddx(cscx)+ddx(xtanx).
In the first term, ddx(cscx)=−cscxcotx, and by applying the product rule to the second term we obtain
ddx(xtanx)=(1)(tanx)+(sec2x)(x).
Therefore, we have
f′(x)=−cscxcotx+tanx+xsec2x.
Watch the following video to see the worked solution to Example: Finding the Derivative of Trigonometric Functions.
Closed Captioning and Transcript Information for Video
For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.