Finding the Derivatives of Trig Functions

Learning Outcomes

  • 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 [latex]f(x),[/latex]

[latex]f^{\prime}(x)=\underset{h\to 0}{\lim}\dfrac{f(x+h)-f(x)}{h}[/latex]

 

Consequently, for values of [latex]h[/latex] very close to 0, [latex]f^{\prime}(x)\approx \frac{f(x+h)-f(x)}{h}[/latex]. We see that by using [latex]h=0.01[/latex],

[latex]\frac{d}{dx}(\sin x)\approx \dfrac{\sin(x+0.01)-\sin x}{0.01}[/latex]

 

By setting [latex]D(x)=\frac{\sin(x+0.01)-\sin x}{0.01}[/latex] and using a graphing utility, we can get a graph of an approximation to the derivative of [latex]\sin x[/latex] (Figure 1).

The function D(x) = (sin(x + 0.01) − sin x)/0.01 is graphed. It looks a lot like a cosine curve.

Figure 1. The graph of the function [latex]D(x)[/latex] looks a lot like a cosine curve.

Upon inspection, the graph of [latex]D(x)[/latex] appears to be very close to the graph of the cosine function. Indeed, we will show that

[latex]\frac{d}{dx}(\sin x)= \cos x[/latex]

 

If we were to follow the same steps to approximate the derivative of the cosine function, we would find that

[latex]\frac{d}{dx}(\cos x)=−\sin x[/latex]

 

The Derivatives of [latex]\sin x[/latex] and [latex]\cos x[/latex]


The derivative of the sine function is the cosine and the derivative of the cosine function is the negative sine.

[latex]\frac{d}{dx}(\sin x)= \cos x[/latex]

 

[latex]\frac{d}{dx}(\cos x)=−\sin x[/latex]

 

Proof

Because the proofs for [latex]\frac{d}{dx}(\sin x)= \cos x[/latex] and [latex]\frac{d}{dx}(\cos x)=−\sin x[/latex] use similar techniques, we provide only the proof for [latex]\frac{d}{dx}(\sin x)= \cos x[/latex]. Before beginning, recall two important trigonometric limits we learned in Module 2: Limits.

[latex]\underset{h\to 0}{\lim}\frac{\sin h}{h}=1[/latex]  and  [latex]\underset{h\to 0}{\lim}\frac{\cos h-1}{h}=0[/latex]

 

The graphs of [latex]y=\frac{(\sin h)}{h}[/latex] and [latex]y=\frac{(\cos h-1)}{h}[/latex] are shown in Figure 2.

The function y = (sin h)/h and y = (cos h – 1)/h are graphed. They both have discontinuities on the y-axis.

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:

[latex]\sin(x+h)= \sin x \cos h+ \cos x \sin h[/latex]

 

Now that we have gathered all the necessary equations and identities, we proceed with the proof.

[latex]\begin{array}{lllll}\frac{d}{dx} \sin x & =\underset{h\to 0}{\lim}\frac{\sin(x+h)-\sin x}{h} & & & \text{Apply the definition of the derivative.} \\ & =\underset{h\to 0}{\lim}\frac{\sin x \cos h+ \cos x \sin h- \sin x}{h} & & & \text{Use trig identity for the sine of the sum of two angles.} \\ & =\underset{h\to 0}{\lim}\left(\frac{\sin x \cos h-\sin x}{h}+\frac{\cos x \sin h}{h}\right) & & & \text{Regroup.} \\ & =\underset{h\to 0}{\lim}\left(\sin x\left(\frac{\cos h-1}{h}\right)+ \cos x\left(\frac{\sin h}{h}\right)\right) & & & \text{Factor out} \, \sin x \, \text{and} \, \cos x. \\ & = \sin x\cdot{0}+ \cos x\cdot{1} & & & \text{Apply trig limit formulas.} \\ & = \cos x & & & \text{Simplify.} \end{array}[/latex]

[latex]_\blacksquare[/latex]

Figure 3 shows the relationship between the graph of [latex]f(x)= \sin x[/latex] and its derivative [latex]f^{\prime}(x)= \cos x[/latex]. Notice that at the points where [latex]f(x)= \sin x[/latex] has a horizontal tangent, its derivative [latex]f^{\prime}(x)= \cos x[/latex] takes on the value zero. We also see that where [latex]f(x)= \sin x[/latex] is increasing, [latex]f^{\prime}(x)= \cos x>0[/latex] and where [latex]f(x)= \sin x[/latex] is decreasing, [latex]f^{\prime}(x)= \cos x<0[/latex].

The functions f(x) = sin x and f’(x) = cos x are graphed. It is apparent that when f(x) has a maximum or a minimum that f’(x) = 0.

Figure 3. Where [latex]f(x)[/latex] has a maximum or a minimum, [latex]f^{\prime}(x)=0[/latex]. That is, [latex]f^{\prime}(x)=0[/latex] where [latex]f(x)[/latex] has a horizontal tangent. These points are noted with dots on the graphs.

Example: Differentiating a Function Containing [latex]\sin x[/latex]

Find the derivative of [latex]f(x)=5x^3 \sin x[/latex].

Try It

Find the derivative of [latex]f(x)= \sin x \cos x.[/latex]

Watch the following video to see the worked solution to the above Try It.

Try It

Example: Finding the Derivative of a Function Containing [latex]\cos x[/latex]

Find the derivative of [latex]g(x)=\dfrac{\cos x}{4x^2}[/latex].

Try It

Find the derivative of [latex]f(x)=\dfrac{x}{\cos x}[/latex].

Watch the following video to see the worked solution to the above Try It.

Example: An Application to Velocity

A particle moves along a coordinate axis in such a way that its position at time [latex]t[/latex] is given by [latex]s(t)=2 \sin t-t[/latex] for [latex]0\le t\le 2\pi[/latex]. At what times is the particle at rest?

Try It

A particle moves along a coordinate axis. Its position at time [latex]t[/latex] is given by [latex]s(t)=\sqrt{3}t+2 \cos t[/latex] for [latex]0\le t\le 2\pi[/latex]. At what times is the particle at rest?

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 [latex]f(x)= \tan x[/latex].

Try It

Find the derivative of [latex]f(x)= \cot x[/latex].

The derivatives of the remaining trigonometric functions may be obtained by using similar techniques. We provide these formulas in the following theorem.

Derivatives of  [latex]\tan x, \, \cot x, \, \sec x[/latex],  and  [latex]\csc x[/latex]


The derivatives of the remaining trigonometric functions are as follows:

[latex]\frac{d}{dx}(\tan x)=\sec^2 x[/latex]

 

[latex]\frac{d}{dx}(\cot x)=−\csc^2 x[/latex]

 

[latex]\frac{d}{dx}(\sec x)= \sec x \tan x[/latex]

 

[latex]\frac{d}{dx}(\csc x)=−\csc x \cot x[/latex]

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 [latex]0[/latex] [latex]\frac{\pi }{6},\text{ or }{30}^{\circ}[/latex] [latex]\frac{\pi }{4},\text{ or } {45}^{\circ }[/latex] [latex]\frac{\pi }{3},\text{ or }{60}^{\circ }[/latex] [latex]\frac{\pi }{2},\text{ or }{90}^{\circ }[/latex]
Cosine 1 [latex]\frac{\sqrt{3}}{2}[/latex] [latex]\frac{\sqrt{2}}{2}[/latex] [latex]\frac{1}{2}[/latex] 0
Sine 0 [latex]\frac{1}{2}[/latex] [latex]\frac{\sqrt{2}}{2}[/latex] [latex]\frac{\sqrt{3}}{2}[/latex] 1
Tangent 0 [latex]\frac{\sqrt{3}}{3}[/latex] 1 [latex]\sqrt{3}[/latex] Undefined
Secant 1 [latex]\frac{2\sqrt{3}}{3}[/latex] [latex]\sqrt{2}[/latex] 2 Undefined
Cosecant Undefined 2 [latex]\sqrt{2}[/latex] [latex]\frac{2\sqrt{3}}{3}[/latex] 1
Cotangent Undefined [latex]\sqrt{3}[/latex] 1 [latex]\frac{\sqrt{3}}{3}[/latex] 0

Example: Finding the Equation of a Tangent Line

Find the equation of a line tangent to the graph of [latex]f(x)= \cot x[/latex] at [latex]x=\dfrac{\pi}{4}[/latex].

Example: Finding the Derivative of Trigonometric Functions

Find the derivative of [latex]f(x)= \csc x+x \tan x.[/latex]

Watch the following video to see the worked solution to Example: Finding the Derivative of Trigonometric Functions.

Try It

Find the derivative of [latex]f(x)=2 \tan x-3 \cot x[/latex].

Try It

Find the slope of the line tangent to the graph of [latex]f(x)= \tan x[/latex] at [latex]x=\frac{\pi}{6}[/latex].

Try It