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 f(x),f(x),
Consequently, for values of hh very close to 0, f′(x)≈f(x+h)−f(x)hf′(x)≈f(x+h)−f(x)h. We see that by using h=0.01h=0.01,
By setting D(x)=sin(x+0.01)−sinx0.01D(x)=sin(x+0.01)−sinx0.01 and using a graphing utility, we can get a graph of an approximation to the derivative of sinxsinx (Figure 1).

Figure 1. The graph of the function D(x)D(x) looks a lot like a cosine curve.
Upon inspection, the graph of D(x)D(x) appears to be very close to the graph of the cosine function. Indeed, we will show that
If we were to follow the same steps to approximate the derivative of the cosine function, we would find that
The Derivatives of sinxsinx and cosxcosx
The derivative of the sine function is the cosine and the derivative of the cosine function is the negative sine.
Proof
Because the proofs for ddx(sinx)=cosxddx(sinx)=cosx and ddx(cosx)=−sinxddx(cosx)=−sinx use similar techniques, we provide only the proof for ddx(sinx)=cosxddx(sinx)=cosx. Before beginning, recall two important trigonometric limits we learned in Module 2: Limits.
The graphs of y=(sinh)hy=(sinh)h and y=(cosh−1)hy=(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:
Now that we have gathered all the necessary equations and identities, we proceed with the proof.
■
Figure 3 shows the relationship between the graph of f(x)=sinxf(x)=sinx and its derivative f′(x)=cosxf′(x)=cosx. Notice that at the points where f(x)=sinxf(x)=sinx has a horizontal tangent, its derivative f′(x)=cosxf′(x)=cosx takes on the value zero. We also see that where f(x)=sinxf(x)=sinx is increasing, f′(x)=cosx>0f′(x)=cosx>0 and where f(x)=sinxf(x)=sinx is decreasing, f′(x)=cosx<0f′(x)=cosx<0.

Figure 3. Where f(x)f(x) has a maximum or a minimum, f′(x)=0f′(x)=0. That is, f′(x)=0f′(x)=0 where f(x)f(x) has a horizontal tangent. These points are noted with dots on the graphs.
Example: Differentiating a Function Containing sinxsinx
Find the derivative of f(x)=5x3sinxf(x)=5x3sinx.
Try It
Find the derivative of f(x)=sinxcosx.f(x)=sinxcosx.
Watch the following video to see the worked solution to the above Try It.
Try It
Example: Finding the Derivative of a Function Containing cosxcosx
Find the derivative of g(x)=cosx4x2g(x)=cosx4x2.
Try It
Find the derivative of f(x)=xcosxf(x)=xcosx.
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 tt is given by s(t)=2sint−ts(t)=2sint−t for 0≤t≤2π0≤t≤2π. At what times is the particle at rest?
Try It
A particle moves along a coordinate axis. Its position at time tt is given by s(t)=√3t+2costs(t)=√3t+2cost for 0≤t≤2π0≤t≤2π. 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 f(x)=tanxf(x)=tanx.
Try It
Find the derivative of f(x)=cotxf(x)=cotx.
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,secxtanx,cotx,secx, and cscxcscx
The derivatives of the remaining trigonometric functions are as follows:
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 | 00 | π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.
Example: Finding the Derivative of Trigonometric Functions
Find the derivative of f(x)=cscx+xtanx.
Watch the following video to see the worked solution to Example: Finding the Derivative of Trigonometric Functions.
Try It
Find the derivative of f(x)=2tanx−3cotx.
Try It
Find the slope of the line tangent to the graph of f(x)=tanx at x=π6.
Try It
Candela Citations
- 3.5 Derivatives of Trigonometric Functions (edited). Authored by: Ryan Melton. License: CC BY: Attribution
- Calculus Volume 1. Authored by: Gilbert Strang, Edwin (Jed) Herman. Provided by: OpenStax. Located at: https://openstax.org/details/books/calculus-volume-1. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Access for free at https://openstax.org/books/calculus-volume-1/pages/1-introduction