infinite series header

Derivatives of the trigonometric functions

In this section we'll derive the important derivatives of the trigonometric functions f(x) = sin(x), cos(x) and tan(x).

In doing so, we will need to rely upon the trigonometric limits we derived in another section. To remind you, those are copied here.

To get through this section, you'll need to be familiar with analytic trigonometry, the derivative and the chain rule.


The derivative of f(x) = sin(x)

We start, as usual with the difference-quotient expression of the derivative:

Now we recall the trigonometric sum identities:

We use the first to make a substitution for sin(x+h),

Now factor a sin(x) out of two of the terms of the numerator, like this:

Now let's use the properties of limits to separate that expression into two different limits:

Because sin(x) and cos(x) are continuous over their whole domains, we can remove them from the limit expression, which leaves us with the familiar and easy-to-evaluate trigonometric limits:

The derivative of the sine function is thus the cosine function:

Take a minute to look at the graph below and see if you can rationalize why cos(x) should be the derivative of sin(x). Notice that wherever sin(x) has a maximum or minimum (at which point the slope of a tangent line would be zero), the value of the cosine function is zero. Notice that wherever sin(x) has maximum slope (where it passes through y=0), the cosine function reaches its minimum or maximum at ±1.

The derivative of f(x) = cos(x)

We find the derivative of f(x) = cos(x) in a similar manner, and I'll work through the whole thing again here. Start with the difference quotient expression,

then replace cos(x + h) with cos(x)cos(h) - sin(x)sin(h):

Now move the common factor cos(x) and rewrite the numerator:

Split the expression into two limits:

and remove the non h-dependent expressions to find our familiar trigonometric limits:

This time we get

Look again at the graphs of f(x) = cos(x) and f'(x) = -sin(x), and see if you can rationalize for yourself why -sin(x) is the derivative of cos(x).

The derivative of f(x) = tan(x)

For this derivative, we'll use the definition of the tangent and the quotient rule to find the result. You can use the difference quotient yourself in an exercise below.

We start by writing tan(x) as sin(x)/cos(x), then using the quotient rule:

After taking the derivatives of sin(x) and cos(x) (which we can do now!), we recognize the Pythagorean identity: cos2(x) + sin2(x) = 1:

Then recognize that 1/cos2(x) is sec2(x)

The result is:

Use the graph below to understand why sec2(x) gives the slope of tan(x) at any point between ±π/2 (remember that the tangent function is infinite at multiples of ±π/2). Notice that the slope of the tangent function is always positive, and the value of the derivative is always positive, too.

Derivatives of the trigonometric functions

Here are the derivatives of the six trigonometric functions. You should commit the derivatives of sin(x), cos(x) and tan(x) to memory.

Practice problems

Calculate the derivatives of these trigonometric and mixed functions. Don't forget the product rule, the quotient rule and the chain rule.

Creative Commons License   optimized for firefox by Dr. Jeff Cruzan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. © 2012, Jeff Cruzan. All text and images on this website not specifically attributed to another source were created by me and I reserve all rights as to their use. Any opinions expressed on this website are entirely mine, and do not necessarily reflect the views of any of my employers. Please feel free to send any questions or comments to