*i.e.*you are probably on a mobile phone). Due to the nature of the mathematics on this site it is best views in landscape mode. If your device is not in landscape mode many of the equations will run off the side of your device (should be able to scroll to see them) and some of the menu items will be cut off due to the narrow screen width.

### Section 3.5 : Derivatives of Trig Functions

With this section we’re going to start looking at the derivatives of functions other than polynomials or roots of polynomials. We’ll start this process off by taking a look at the derivatives of the six trig functions. Two of the derivatives will be derived. The remaining four are left to you and will follow similar proofs for the two given here.

Before we actually get into the derivatives of the trig functions we need to give a couple of limits that will show up in the derivation of two of the derivatives.

#### Fact

See the Proof of Trig Limits section of the Extras chapter to see the proof of these two limits.

Before proceeding a quick note. Students often ask why we always use radians in a Calculus class. This is the reason why! The proof of the formula involving sine above requires the angles to be in radians. If the angles are in degrees the limit involving sine is not 1 and so the formulas we will derive below would also change. The formulas below would pick up an extra constant that would just get in the way of our work and so we use radians to avoid that. So, remember to always use radians in a Calculus class!

Before we start differentiating trig functions let’s work a quick set of limit problems that this fact now allows us to do.

- \(\displaystyle \mathop {\lim }\limits_{\theta \to 0} \frac{{\sin \theta }}{{6\theta }}\)
- \(\displaystyle \mathop {\lim }\limits_{x \to 0} \frac{{\sin \left( {6x} \right)}}{x}\)
- \(\displaystyle \mathop {\lim }\limits_{x \to 0} \frac{x}{{\sin \left( {7x} \right)}}\)
- \(\displaystyle \mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{{\sin \left( {8t} \right)}}\)
- \(\displaystyle \mathop {\lim }\limits_{x \to 4} \frac{{\sin \left( {x - 4} \right)}}{{x - 4}}\)
- \(\displaystyle \mathop {\lim }\limits_{z \to 0} \frac{{\cos \left( {2z} \right) - 1}}{z}\)

There really isn’t a whole lot to this limit. In fact, it’s only here to contrast with the next example so you can see the difference in how these work. In this case since there is only a 6 in the denominator we’ll just factor this out and then use the fact.

\[\mathop {\lim }\limits_{\theta \to 0} \frac{{\sin \theta }}{{6\theta }} = \frac{1}{6}\mathop {\lim }\limits_{\theta \to 0} \frac{{\sin \theta }}{\theta } = \frac{1}{6}\left( 1 \right) = \frac{1}{6}\]b \(\displaystyle \mathop {\lim }\limits_{x \to 0} \frac{{\sin \left( {6x} \right)}}{x}\) Show Solution

Now, in this case we can’t factor the 6 out of the sine so we’re stuck with it there and we’ll need to figure out a way to deal with it. To do this problem we need to notice that in the fact the argument of the sine is the same as the denominator (*i.e.* both \(\theta \)’s). So we need to get both of the argument of the sine and the denominator to be the same. We can do this by multiplying the numerator and the denominator by 6 as follows.

Note that we factored the 6 in the numerator out of the limit. At this point, while it may not look like it, we can use the fact above to finish the limit.

To see that we can use the fact on this limit let’s do a **change of variables**. A change of variables is really just a renaming of portions of the problem to make something look more like something we know how to deal with. They can’t always be done, but sometimes, such as this case, they can simplify the problem. The change of variables here is to let \(\theta = 6x\) and then notice that as \(x \to 0\) we also have \(\theta \to 6\left( 0 \right) = 0\).
When doing a change of variables in a limit we need to change all the \(x\)’s into \(\theta \)’s and that includes the one in the limit.

Doing the change of variables on this limit gives,

\[\begin{align*}\mathop {\lim }\limits_{x \to 0} \frac{{\sin \left( {6x} \right)}}{x} & = 6\mathop {\lim }\limits_{x \to 0} \frac{{\sin \left( {6x} \right)}}{{6x}}\hspace{0.5in}{\rm{let }}\theta = 6x\\ & = 6\mathop {\lim }\limits_{\theta \to 0} \frac{{\sin \left( \theta \right)}}{\theta }\\ & = 6\left( 1 \right)\\ & = 6\hspace{0.25in}\end{align*}\]And there we are. Note that we didn’t really need to do a change of variables here. All we really need to notice is that the argument of the sine is the same as the denominator and then we can use the fact. A change of variables, in this case, is really only needed to make it clear that the fact does work.

c \(\displaystyle \mathop {\lim }\limits_{x \to 0} \frac{x}{{\sin \left( {7x} \right)}}\) Show Solution

In this case we appear to have a small problem in that the function we’re taking the limit of here is upside down compared to that in the fact. This is not the problem it appears to be once we notice that,

\[\frac{x}{{\sin \left( {7x} \right)}} = \frac{1}{{\,\,\,\frac{{\sin \left( {7x} \right)}}{x}\,\,\,}}\]and then all we need to do is recall a nice property of limits that allows us to do ,

\[\begin{align*}\mathop {\lim }\limits_{x \to 0} \frac{x}{{\sin \left( {7x} \right)}} & = \mathop {\lim }\limits_{x \to 0} \frac{1}{{\,\,\,\frac{{\sin \left( {7x} \right)}}{x}\,\,\,}}\\ & = \frac{{\mathop {\lim }\limits_{x \to 0} 1}}{{\,\,\,\mathop {\lim }\limits_{x \to 0} \frac{{\sin \left( {7x} \right)}}{x}\,\,\,}}\\ & = \frac{1}{{\,\,\,\mathop {\lim }\limits_{x \to 0} \frac{{\sin \left( {7x} \right)}}{x}\,\,\,}}\end{align*}\]With a little rewriting we can see that we do in fact end up needing to do a limit like the one we did in the previous part. So, let’s do the limit here and this time we won’t bother with a change of variable to help us out. All we need to do is multiply the numerator and denominator of the fraction in the denominator by 7 to get things set up to use the fact. Here is the work for this limit.

\[\begin{align*}\mathop {\lim }\limits_{x \to 0} \frac{x}{{\sin \left( {7x} \right)}} & = \frac{1}{{\,\,\,\mathop {\lim }\limits_{x \to 0} \frac{{7\sin \left( {7x} \right)}}{{7x}}\,\,\,}}\\ & = \frac{1}{{\,\,\,7\mathop {\lim }\limits_{x \to 0} \frac{{\sin \left( {7x} \right)}}{{7x}}\,\,\,}}\\ & = \frac{1}{{\left( 7 \right)\left( 1 \right)}}\\ & = \frac{1}{7}\end{align*}\]d \(\displaystyle \mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{{\sin \left( {8t} \right)}}\) Show Solution

This limit looks nothing like the limit in the fact, however it can be thought of as a combination of the previous two parts by doing a little rewriting. First, we’ll split the fraction up as follows,

\[\mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{{\sin \left( {8t} \right)}} = \mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{1}\frac{1}{{\sin \left( {8t} \right)}}\]Now, the fact wants a \(t\) in the denominator of the first and in the numerator of the second. This is easy enough to do if we multiply the whole thing by \({\textstyle{t \over t}}\) (which is just one after all and so won’t change the problem) and then do a little rearranging as follows,

\[\begin{align*}\mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{{\sin \left( {8t} \right)}} & = \mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{1}\frac{1}{{\sin \left( {8t} \right)}}\frac{t}{t}\\ & = \mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{t}\frac{t}{{\sin \left( {8t} \right)}}\\ & = \left( {\mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{t}} \right)\left( {\mathop {\lim }\limits_{t \to 0} \frac{t}{{\sin \left( {8t} \right)}}} \right)\end{align*}\]At this point we can see that this really is two limits that we’ve seen before. Here is the work for each of these and notice on the second limit that we’re going to work it a little differently than we did in the previous part. This time we’re going to notice that it doesn’t really matter whether the sine is in the numerator or the denominator as long as the argument of the sine is the same as what’s in the numerator the limit is still one.

Here is the work for this limit.

\[\begin{align*}\mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{{\sin \left( {8t} \right)}} & = \left( {\mathop {\lim }\limits_{t \to 0} \frac{{3\sin \left( {3t} \right)}}{{3t}}} \right)\left( {\mathop {\lim }\limits_{t \to 0} \frac{{8t}}{{8\sin \left( {8t} \right)}}} \right)\\ & = \left( {3\mathop {\lim }\limits_{t \to 0} \frac{{\sin \left( {3t} \right)}}{{3t}}} \right)\left( {\frac{1}{8}\mathop {\lim }\limits_{t \to 0} \frac{{8t}}{{\sin \left( {8t} \right)}}} \right)\\ & = \left( 3 \right)\left( {\frac{1}{8}} \right)\\ & = \frac{3}{8}\end{align*}\]e \(\displaystyle \mathop {\lim }\limits_{x \to 4} \frac{{\sin \left( {x - 4} \right)}}{{x - 4}}\) Show Solution

This limit almost looks the same as that in the fact in the sense that the argument of the sine is the same as what is in the denominator. However, notice that, in the limit, \(x\) is going to 4 and not 0 as the fact requires. However, with a change of variables we can see that this limit is in fact set to use the fact above regardless.

So, let \(\theta = x - 4\) and then notice that as \(x \to 4\) we have \(\theta \to 0\). Therefore, after doing the change of variable the limit becomes,

\[\mathop {\lim }\limits_{x \to 4} \frac{{\sin \left( {x - 4} \right)}}{{x - 4}} = \mathop {\lim }\limits_{\theta \to 0} \frac{{\sin \theta }}{\theta } = 1\]f \(\displaystyle \mathop {\lim }\limits_{z \to 0} \frac{{\cos \left( {2z} \right) - 1}}{z}\) Show Solution

The previous parts of this example all used the sine portion of the fact. However, we could just have easily used the cosine portion so here is a quick example using the cosine portion to illustrate this. We’ll not put in much explanation here as this really does work in the same manner as the sine portion.

\[\begin{align*}\mathop {\lim }\limits_{z \to 0} \frac{{\cos \left( {2z} \right) - 1}}{z} & = \mathop {\lim }\limits_{z \to 0} \frac{{2\left( {\cos \left( {2z} \right) - 1} \right)}}{{2z}}\\ & = 2\mathop {\lim }\limits_{z \to 0} \frac{{\cos \left( {2z} \right) - 1}}{{2z}}\\ & = 2\left( 0 \right)\\ & 0\end{align*}\]All that is required to use the fact is that the argument of the cosine is the same as the denominator.

Okay, now that we’ve gotten this set of limit examples out of the way let’s get back to the main point of this section, differentiating trig functions.

We’ll start with finding the derivative of the sine function. To do this we will need to use the definition of the derivative. It’s been a while since we’ve had to use this, but sometimes there just isn’t anything we can do about it. Here is the definition of the derivative for the sine function.

\[\frac{d}{{dx}}\left( {\sin \left( x \right)} \right) = \mathop {\lim }\limits_{h \to 0} \frac{{\sin \left( {x + h} \right) - \sin \left( x \right)}}{h}\]Since we can’t just plug in \(h = 0\) to evaluate the limit we will need to use the following trig formula on the first sine in the numerator.

\[\sin \left( {x + h} \right) = \sin \left( x \right)\cos \left( h \right) + \cos \left( x \right)\sin \left( h \right)\]Doing this gives us,

\[\begin{align*}\frac{d}{{dx}}\left( {\sin \left( x \right)} \right) & = \mathop {\lim }\limits_{h \to 0} \frac{{\sin \left( x \right)\cos \left( h \right) + \cos \left( x \right)\sin \left( h \right) - \sin \left( x \right)}}{h}\\ & = \mathop {\lim }\limits_{h \to 0} \frac{{\sin \left( x \right)\left( {\cos \left( h \right) - 1} \right) + \cos \left( x \right)\sin \left( h \right)}}{h}\\ & = \mathop {\lim }\limits_{h \to 0} \sin \left( x \right)\frac{{\cos \left( h \right) - 1}}{h} + \mathop {\lim }\limits_{h \to 0} \cos \left( x \right)\frac{{\sin \left( h \right)}}{h}\end{align*}\]As you can see upon using the trig formula we can combine the first and third term and then factor a sine out of that. We can then break up the fraction into two pieces, both of which can be dealt with separately.

Now, both of the limits here are limits as \(h\) approaches zero. In the first limit we have a \(\sin \left( x \right)\) and in the second limit we have a \(\cos \left( x \right)\). Both of these are only functions of \(x\) only and as \(h\) moves in towards zero this has no effect on the value of \(x\). Therefore, as far as the limits are concerned, these two functions are constants and can be factored out of their respective limits. Doing this gives,

\[\frac{d}{{dx}}\left( {\sin \left( x \right)} \right) = \sin \left( x \right)\mathop {\lim }\limits_{h \to 0} \frac{{\cos \left( h \right) - 1}}{h} + \cos \left( x \right)\mathop {\lim }\limits_{h \to 0} \frac{{\sin \left( h \right)}}{h}\]At this point all we need to do is use the limits in the fact above to finish out this problem.

\[\frac{d}{{dx}}\left( {\sin \left( x \right)} \right) = \sin \left( x \right)\left( 0 \right) + \cos \left( x \right)\left( 1 \right) = \cos \left( x \right)\]Differentiating cosine is done in a similar fashion. It will require a different trig formula, but other than that is an almost identical proof. The details will be left to you. When done with the proof you should get,

\[\frac{d}{{dx}}\left( {\cos \left( x \right)} \right) = - \sin \left( x \right)\]With these two out of the way the remaining four are fairly simple to get. All the remaining four trig functions can be defined in terms of sine and cosine and these definitions, along with appropriate derivative rules, can be used to get their derivatives.

Let’s take a look at tangent. Tangent is defined as,

\[\tan \left( x \right) = \frac{{\sin \left( x \right)}}{{\cos \left( x \right)}}\]Now that we have the derivatives of sine and cosine all that we need to do is use the quotient rule on this. Let’s do that.

\[\begin{align*}\frac{d}{{dx}}\left( {\tan \left( x \right)} \right) & = \frac{d}{{dx}}\left( {\frac{{\sin \left( x \right)}}{{\cos \left( x \right)}}} \right)\\ & = \frac{{\cos \left( x \right)\cos \left( x \right) - \sin \left( x \right)\left( { - \sin \left( x \right)} \right)}}{{{{\left( {\cos \left( x \right)} \right)}^2}}}\\ & = \frac{{{{\cos }^2}\left( x \right) + {{\sin }^2}\left( x \right)}}{{{{\cos }^2}\left( x \right)}}\end{align*}\]Now, recall that \({\cos ^2}\left( x \right) + {\sin ^2}\left( x \right) = 1\) and if we also recall the definition of secant in terms of cosine we arrive at,

\[\begin{align*}\frac{d}{{dx}}\left( {\tan \left( x \right)} \right) & = \frac{{{{\cos }^2}\left( x \right) + {{\sin }^2}\left( x \right)}}{{{{\cos }^2}\left( x \right)}}\\ & = \frac{1}{{{{\cos }^2}\left( x \right)}}\\ & = {\sec ^2}\left( x \right)\end{align*}\]The remaining three trig functions are also quotients involving sine and/or cosine and so can be differentiated in a similar manner. We’ll leave the details to you. Here are the derivatives of all six of the trig functions.

#### Derivatives of the six trig functions

At this point we should work some examples.

- \(g\left( x \right) = 3\sec \left( x \right) - 10\cot \left( x \right)\)
- \(h\left( w \right) = 3{w^{ - 4}} - {w^2}\tan \left( w \right)\)
- \(y = 5\sin \left( x \right)\cos \left( x \right) + 4\csc \left( x \right)\)
- \(\displaystyle P\left( t \right) = \frac{{\sin \left( t \right)}}{{3 - 2\cos \left( t \right)}}\)

There really isn’t a whole lot to this problem. We’ll just differentiate each term using the formulas from above.

\[\begin{align*}g'\left( x \right) & = 3\sec \left( x \right)\tan \left( x \right) - 10\left( { - {{\csc }^2}\left( x \right)} \right)\\ & = 3\sec \left( x \right)\tan \left( x \right) + 10{\csc ^2}\left( x \right)\end{align*}\]b \(h\left( w \right) = 3{w^{ - 4}} - {w^2}\tan \left( w \right)\) Show Solution

In this part we will need to use the product rule on the second term and note that we really will need the product rule here. There is no other way to do this derivative unlike what we saw when we first looked at the product rule. When we first looked at the product rule the only functions we knew how to differentiate were polynomials and in those cases all we really needed to do was multiply them out and we could take the derivative without the product rule. We are now getting into the point where we will be forced to do the product rule at times regardless of whether or not we want to.

We will also need to be careful with the minus sign in front of the second term and make sure that it gets dealt with properly. There are two ways to deal with this. One way it to make sure that you use a set of parentheses as follows,

\[\begin{align*}h'\left( w \right) & = - 12{w^{ - 5}} - \left( {2w\tan \left( w \right) + {w^2}{{\sec }^2}\left( w \right)} \right)\\ & = - 12{w^{ - 5}} - 2w\tan \left( w \right) - {w^2}{\sec ^2}\left( w \right)\end{align*}\]Because the second term is being subtracted off of the first term then the whole derivative of the second term must also be subtracted off of the derivative of the first term. The parenthesis make this idea clear.

A potentially easier way to do this is to think of the minus sign as part of the first function in the product. Or, in other words the two functions in the product, using this idea, are \( - {w^2}\) and \(\tan \left( w \right)\). Doing this gives,

\[h'\left( w \right) = - 12{w^{ - 5}} - 2w\tan \left( w \right) - {w^2}{\sec ^2}\left( w \right)\]So, regardless of how you approach this problem you will get the same derivative.

c \(y = 5\sin \left( x \right)\cos \left( x \right) + 4\csc \left( x \right)\) Show Solution

As with the previous part we’ll need to use the product rule on the first term. We will also think of the 5 as part of the first function in the product to make sure we deal with it correctly. Alternatively, you could make use of a set of parentheses to make sure the 5 gets dealt with properly. Either way will work, but we’ll stick with thinking of the 5 as part of the first term in the product. Here’s the derivative of this function.

\[\begin{align*}y' &= 5\cos \left( x \right)\cos \left( x \right) + 5\sin \left( x \right)\left( { - \sin \left( x \right)} \right) - 4\csc \left( x \right)\cot \left( x \right)\\ & = 5{\cos ^2}\left( x \right) - 5{\sin ^2}\left( x \right) - 4\csc \left( x \right)\cot \left( x \right)\end{align*}\]d \(\displaystyle P\left( t \right) = \frac{{\sin \left( t \right)}}{{3 - 2\cos \left( t \right)}}\) Show Solution

In this part we’ll need to use the quotient rule to take the derivative.

\[\begin{align*}P'\left( t \right) & = \frac{{\cos \left( t \right)\left( {3 - 2\cos \left( t \right)} \right) - \sin \left( t \right)\left( {2\sin \left( t \right)} \right)}}{{{{\left( {3 - 2\cos \left( t \right)} \right)}^2}}}\\ & = \frac{{3\cos \left( t \right) - 2{{\cos }^2}\left( t \right) - 2{{\sin }^2}\left( t \right)}}{{{{\left( {3 - 2\cos \left( t \right)} \right)}^2}}}\end{align*}\]Be careful with the signs when differentiating the denominator. The negative sign we get from differentiating the cosine will cancel against the negative sign that is already there.

This appears to be done, but there is actually a fair amount of simplification that can yet be done. To do this we need to factor out a “-2” from the last two terms in the numerator and the make use of the fact that \({\cos ^2}\left( \theta \right) + {\sin ^2}\left( \theta \right) = 1\).

\[\begin{align*}P'\left( t \right) & = \frac{{3\cos \left( t \right) - 2\left( {{{\cos }^2}\left( t \right) + {{\sin }^2}\left( t \right)} \right)}}{{{{\left( {3 - 2\cos \left( t \right)} \right)}^2}}}\\ & = \frac{{3\cos \left( t \right) - 2}}{{{{\left( {3 - 2\cos \left( t \right)} \right)}^2}}}\end{align*}\]As a final problem here let’s not forget that we still have our standard interpretations to derivatives.

where \(t\) is in years. During the first 10 years in which the account is open when is the amount of money in the account increasing?

To determine when the amount of money is increasing we need to determine when the rate of change is positive. Since we know that the rate of change is given by the derivative that is the first thing that we need to find.

\[P'\left( t \right) = - 100\sin \left( t \right) - 150\cos \left( t \right)\]Now, we need to determine where in the first 10 years this will be positive. This is equivalent to asking where in the interval \(\left[ {0,10} \right]\) is the derivative positive. Recall that both sine and cosine are continuous functions and so the derivative is also a continuous function. The Intermediate Value Theorem then tells us that the derivative can only change sign if it first goes through zero.

So, we need to solve the following equation.

\[\begin{align*} - 100\sin \left( t \right) - 150\cos \left( t \right) & = 0\\ 100\sin \left( t \right) & = - 150\cos \left( t \right)\\ \frac{{\sin \left( t \right)}}{{\cos \left( t \right)}} & = - 1.5\\ \tan \left( t \right) & = - 1.5\end{align*}\]The solution to this equation is,

\[\begin{array}{ll}t = 2.1588 + 2\pi n,&\hspace{0.25in}n = 0, \pm 1, \pm 2, \ldots \\ t = 5.3004 + 2\pi n, & \hspace{0.25in}n = 0, \pm 1, \pm 2, \ldots \end{array}\]If you don’t recall how to solve trig equations go back and take a look at the sections on solving trig equations in the Review chapter.

We are only interested in those solutions that fall in the range \(\left[ {0,10} \right]\). Plugging in values of \(n\) into the solutions above we see that the values we need are,

\[\begin{align*} & t = 2.1588\hspace{0.5in}t = 2.1588 + 2\pi = 8.4420\\ & t = 5.3004\end{align*}\]So, much like solving polynomial inequalities all that we need to do is sketch in a number line and add in these points. These points will divide the number line into regions in which the derivative must always be the same sign. All that we need to do then is choose a test point from each region to determine the sign of the derivative in that region.

Here is the number line with all the information on it.

So, it looks like the amount of money in the bank account will be increasing during the following intervals.

\[2.1588 < t < 5.3004\hspace{0.5in}8.4420 < t < 10\]Note that we can’t say anything about what is happening after \(t = 10\) since we haven’t done any work for \(t\)’s after that point.

In this section we saw how to differentiate trig functions. We also saw in the last example that our interpretations of the derivative are still valid so we can’t forget those.

Also, it is important that we be able to solve trig equations as this is something that will arise off and on in this course. It is also important that we can do the kinds of number lines that we used in the last example to determine where a function is positive and where a function is negative. This is something that we will be doing on occasion in both this chapter and the next.