Derivatives of Trigonometric Functions: Learn It 1

  • Calculate the derivatives of sine and cosine functions, including second derivatives and beyond
  • Determine the derivatives for basic trig functions like tangent, cotangent, secant, and cosecant

Derivatives of the Sine and Cosine Functions

Simple harmonic motion, a type of periodic motion where the restoring force is directly proportional to the displacement, is best described using trigonometric functions like sine and cosine. The behavior of these functions, particularly how they change over time, is crucial in understanding motion dynamics. The derivatives of sine and cosine functions help us compute velocity and acceleration at any point in the motion, linking theoretical physics closely with calculus.

We begin our exploration of the derivative for the sine function by using the limit definition to estimate its derivative.

For a function [latex]f(x),[/latex] the derivative [latex]f^{\prime}(x)[/latex] is defined as:

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

This allows us to approximate [latex]f^{\prime}(x)[/latex] for small values of [latex]h[/latex] as:

[latex]f^{\prime}(x)\approx \frac{f(x+h)-f(x)}{h}[/latex].

Using [latex]h=0.01[/latex], we estimate the derivative of the sine function as follows: 

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

By defining [latex]D(x)=\frac{\sin(x+0.01)-\sin x}{0.01}[/latex] and plotting this using a graphing tool, we observe an approximation to the derivative of [latex]\sin x[/latex]. 

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 resulting graph of [latex]D(x)[/latex] closely resembles the cosine curve, which supports the derivative relationship.

Upon examination, [latex]D(x)[/latex] appears to be a close match to the graph of the cosine function. This graphical analysis provides a practical demonstration of the derivative, confirming that the derivative of [latex]\sin x[/latex] is indeed [latex]\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]

derivatives of [latex]\sin x[/latex] and [latex]\cos x[/latex]

The derivative of the sine function [latex]\sin x[/latex] is the cosine function [latex]\cos x[/latex].

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

The derivative of the cosine function [latex]\cos x[/latex] is the negative sine function [latex]−\sin 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, it is important to recall two important trigonometric 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]

The figure below 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.

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

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


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?