- Home
- Differential Calculus
- Differentiation

# Derivative of trigonometric functions

- Lesson: 110:44
- Lesson: 212:24
- Lesson: 38:57

## Derivative of trig functions

Before we start learning how to take derivative of trig functions, why don't we go back to the basics? Going back and reviewing the basics is always a good thing. This is because a lot of people tend to forget about the properties of trigonometric functions. In addition, forgetting certain trig properties, identities, and trig rules would make certain questions in Calculus even more difficult to solve. Let's first take a look at the six trigonometric functions.

__The 6 Trigonometric Functions__

The first trigonometric function we will be looking at is **$f(x) = \sin x$**. If we are to graph the function, we will get this:

Notice that the function is continuous from [-$\infty, \infty$], and it's a nice smooth curve with no sharp turns. This means that $\sin x$ is differentiable at every point, and so we will not have to worry about getting something undefined. In addition, we know that the slope at $x = \frac{\pi}{2} \pm \pi n, n \in I$ are $0$. Hence, the derivative of $\sin x$ will always be zero at those points.

Next is the function **$f(x) = \cos x$**. If we were graph the function, we will get:

Again note that the function is continuous from [-$\infty, \infty$], and it has a nice smooth curve. So $\cos x$ is also differentiable at every point. In addition, the slope is equal to 0 at $x$ = 0 $\pm \pi n, n \in I$. Hence, the derivative will of $\cos x$ will be 0 at those points.

Now the function $y = \tan x$ is a bit more interesting. It can be rewritten as $y= \frac{\sin x}{\cos x}$, the graph of this function looks like this:

Notice the $x$ values at $x = \frac{\pi}{2} \pm \pi n, n \in I$ are undefined, and have vertical asymptotes. This means the derivative of $\tan x$ will be not differentiable at those points. One interesting thing to note here is that the slope of $\tan x$ is never negative or 0. Hence, we should expect the derivative of $\tan x$ to always be positive.

Next are the reciprocal functions of sin cos tan. First, the reciprocal of $\sin x$ is $\csc x$. We see the graph of $f(x) = \csc x$ looks like this:

Again, there are vertical asymptotes at $x$ = 0 $\pm \pi n, n \in I$. So they are not differentiable at those points. In addition, the slope of the function at $x = \frac{\pi}{2} \pm \pi n, n \in I$ are 0. So the derivatives are always 0 at those points.

Now the next function is $f(x) = \sec x$, which is the reciprocal of $\cos x$. Graphing gives:

This is very similar to $\csc x$, but the difference is that the role's of the $x$ values has been switched. Now the $x$ values at $x = \frac{\pi}{2} \pm \pi n, n \in I$ are the vertical asymptotes and the $x$ value at $x = 0 \pm \pi n, n \in I$ are when the tangent slopes of the function are 0. Hence the derivative of the function is not differentiable at $x = \frac{\pi}{2} \pm \pi n, n \in I$ and the derivative is 0 at $x = 0 \pm \pi n, n \in I$.

The last function is $y = \cot x$.

Note that the vertical asymptotes are at $x = 0 \pm \pi n, n \in I$ and the slope of this never positive or 0. Hence, the derivative of this function is always positive, and not differentiable at $x = 0 \pm \pi n, n \in I$.

Now that we are finished looking at the 6 trig functions, let's now review some of the trigonometric identities that come in handy when taking derivatives.

__Trigonometric identities__

The first six identities are reciprocal identities, which come in handy when you want your derivatives in a certain form.

Now the most important identities are these three.

They are very useful when it comes to simplifying derivatives. Now that we've got the basics down, let's go ahead and actually take a look at the derivative of trig functions.

__Trig derivatives__

The six trig function derivatives are as follows:

1. The derivative of $\sin x$ is:

2. The derivative of $\cos x$ is:

3. The derivative of $\tan x$ is:

4. The derivative of $\csc x$ is:

5. The derivative of $\sec x$ is:

6. The derivative of $\cot x$ is:

If you really want to know how we get the derivatives, then look at this article below:

Derivative of inverse trig functions

The article shows that the derivative of sin and cosine can be found using the definition of derivative, and the rest can be found with the quotient rule. Make sure you memorize these derivatives well! We will be using these to derive even harder trigonometric functions. You may also want to review the chain rule since a lot of hard trig derivatives require it.

__Derivative of sin^2x__

We may know that the derivative of sin is $\cos x$, but what about the derivative of $\sin^{2} x$? Let's start with defining the function

Let's move the square term so that the function becomes:

We are going to use the chain rule here. Recall that the chain rule states if you have a function within a function, call it

Then the derivative of this function will be

Then, the derivative of these functions will be:

And so the derivative of the function f(x) will be:

Which is the derivative of $\sin^{2} x$. It wasn't as hard as we thought! Let's look at around hard one.

__Derivative of cos^2x__

Again, we know the derivative of cosine is $- \sin x$, but what about the derivative of $\cos^{2} x$? We set the function to be

Again, if we rearrange the square in the function, then we will see that

Using the chain rule again, we set:

Taking the derivative of these functions gives:

So the derivative of the function will be:

This is very similar to the derivative of $\sin^{2} x$, except we have an extra negative sign! Nevertheless, this is the derivative of $\cos^{2} x$. Let's try to find the derivative of another squared trigonometric function.

__Derivative of sec^2x__

Again, the key idea of taking the derivative of $\sec^{2} x$ is using the chain rule. We define the function to be

Rearranging the square in the function gives us:

We set:

Taking the derivative of secant and $x^{2}$ gives:

Again in case you forgot, the derivative of sec is $\sec x \tan x$. Hence, the derivative of $\sec^{2} x$ is

You should know by now that the procedure in taking the derivative of $\csc^{2} , \tan^{2}$, and $\cot^{2}$ are the same. So let's take a look at other trigonometric derivatives.

__Derivative of sinx^2__

Now before you get confused, this is a function that looks similar to $\sin^{2} x$. However, $\sin^{2} x$ is different from $\sin x^{2}$. So of course, there derivatives will also be different. We define the function to be:

Note that we will use the chain rule here. We set

We know the derivative of g(x) is 2x and the derivative of $\sin x$ is $\cos x$. So

Hence the derivative of the function will be:

Now let's try the same thing for finding the derivative of $\cos x^{2}$!

__Derivative of cosx^2__

We define the function to be:

Using the chain rule we set:

Taking the derivative of g(x) gives 2x and taking the derivative of cosine gives $- \sin x$. So

Hence the derivative of the function is:

Let's do two more before we start doing even harder trigonometric functions.

__Derivative of tanx^2__

Again, the function we have is:

Using the chain rule, we set g(x) and h(x) to be:

The derivative of $x^{2}$ is 2x, and the derivative of $\tan$ is $\sec^{2}$, so

Using the chain rule formula, we get the derivative of tanx^2 is:

This one is a bit harder because the derivative seems to have two squares; one from secant and one from x. Lastly, let's look at the derivative of $\csc x^{2}$.

__Derivative of cscx^2__

The function we have is:

In order to do chain rule, we let two functions, g(x) and h(x), to be:

The derivative of $x^{2}$ is 2x, and the derivative of csc is -$\csc x \cot x$, so

Using the chain rule formula, we get that the derivative of $\csc x^{2}$ is:

http://tutorial.math.lamar.edu/Classes/CalcI/DiffTrigFcns.aspx

Now it's time move on and take a look at some questions which have applications to the slope of a function.

__Slope of a trigonometric function__

Suppose we want to find the slope of the function:

At the point x=0. How would we do it? Well, realize take find the slope of a function is just the same as taking the derivative. This will require using the quotient rule since the function is a quotient.

Recall that the quotient rule says the following:

If you have a function

Then the derivative of this function will be:

So if we were to set

Then their derivatives will be:

Hence, using the quotient rule gives the derivative:

Simplifying this equation gives:

To simplify this equation, we would want to use the trigonometric identity:

So our equation becomes:

Now that we have the derivative, all we have to do is plug in the point x=0 to get the slope. Hence,

Thus, the slope of the function at the point x = 0 is exactly $\frac{1}{2}$. However, what if we were given the tangent slope of a function at a specific point, and we need to find that point?

__Finding the points given the slope__

Suppose you are given that the function is:

And you want to find the set of points which the slope of the tangent line is equal to 0. This means we need to take the derivative and set it equal to 0 to find the x values. Note that the derivative of $\tan$ is $\sec^{2}$ and the derivative of $\cot$ is –$\csc^{2}$, so

Note that the reciprocal identities state that:

Hence, our equation becomes:

Let's try to solve for x in this equation. See that:

Moving the $\sin^{2} x$ to the other side gives:

Recall the trigonometric identity

We can actually isolate $\sin^{2}$ by itself in the equation so that:

Substituting this into our equation gives:

Now we need to look at the positive case and then the negative case. For the positive case we have:

See that since x is not bounded, then were are infinitely many solutions. In fact, we know the solutions are:

Now if we were to look at the negative case, then we have:

Again, there are infinitely many solutions for this. The solutions for this equation will be:

Now let's take a look at the four solutions as a whole. Notice that the two pairs are the same

So we can just exclude the two solutions and say that the solutions are

So we can conclude that these are the set of points in which the slope of the function is equal to 0.

__Derivative of Inverse Trigonometric Functions__

Now the Derivative of inverse trig functions are a little bit uglier to memorize. Note that we tend to use the prefix "arc" instead of the power of -1 so that they do not get confused with reciprocal trig functions. Regardless, they mean the same thing. For example, derivative of arctan is the same as the derivative of $\tan^{-1}$.

Here are the inverse trig derivatives that you will need to know.

Note that the arctan derivative is similar to the derivative of arccot, except there is an extra negative sign. Coincidently, we see that the derivative of arcsin is similar to the derivative of arccos. The difference again is the negative sign. We will not be doing any examples of Derivative of inverse trig functions here. However if you are interested, then please look at this article here:

Derivative of inverse trig functions

The article here gives a detailed step-by-step solution in deriving these derivatives.

##### Do better in math today

##### Don't just watch, practice makes perfect.

### Derivative of trigonometric functions

#### Lessons

$\frac{{d}}{{{d}x}}\;\sin x = \cos x$

$\frac{{d}}{{{d}x}}\;\cos x = - \sin x$

$\frac{{d}}{{{d}x}}\;\tan x = {\sec ^2}x$

$\frac{{d}}{{{d}x}}{\;cot}x = - {\csc ^2}x$

$\frac{{d}}{{{d}x}}\;\sec x = \sec x{\;tan}x$

$\frac{{d}}{{{d}x}}\;\csc x = - \csc x\;\cot x$

- 1.$\frac{{d}}{{{d}x}}\;\sin \left( {\;\;\;\;} \right) = \cos \left( {\;\;\;\;} \right) \cdot \frac{{d}}{{{d}x}}\left( {\;\;\;\;} \right)$

$\frac{{d}}{{{d}x}}\;\cos \left( {\;\;\;\;} \right) = - \sin \left( {\;\;\;\;} \right) \cdot \frac{{d}}{{{d}x}}\left( {\;\;\;\;} \right)$

$\frac{{d}}{{{d}x}}\;\tan \left( {\;\;\;\;} \right) = {\sec ^2}\left( {\;\;\;\;} \right) \cdot \frac{{d}}{{{d}x}}\left( {\;\;\;\;} \right)$

$\frac{{d}}{{{d}x}}{\;cot}\left( {\;\;\;\;} \right) = - {\csc ^2}\left( {\;\;\;\;} \right) \cdot \frac{{d}}{{{d}x}}\left( {\;\;\;\;} \right)$

$\frac{{d}}{{{d}x}}\;\sec \left( {\;\;\;\;} \right) = \sec \left( {\;\;\;\;} \right)\tan \left( {\;\;\;\;} \right) \cdot \frac{{d}}{{{d}x}}\left( {\;\;\;\;} \right)$

$\frac{{d}}{{{d}x}}\;\csc \left( {\;\;\;\;} \right) = - \csc \left( {\;\;\;\;} \right)\cot \left( {\;\;\;\;} \right) \cdot \frac{{d}}{{{d}x}}\left( {\;\;\;\;} \right)$ - 2.Differentiate:

a) $y = {\sin ^4}x$

b) $y = sin\left( {{x^4}} \right)$ - 3.$\frac{{d}}{{{d}x}}\;\sin (\cos (\tan x))$

##### Do better in math today

##### Don't just watch, practice makes perfect.

### Derivative of trigonometric functions

#### Don't just watch, practice makes perfect.

We have over 170 practice questions in Differential Calculus for you to master.

Get Started Now