A common scenario present at a beach, pixabay.com
What do all these things have in common? The answer is that their movement is periodic. Periodic functions describe things like sea waves. Periodic functions are functions that repeat their outputs at regular intervals. Trigonometric functions are prime examples of periodic functions. For this reason, it is essential to know how to differentiate trigonometric functions.
The Meaning of the Derivative of Trigonometric Functions
You might be wondering what does it mean to find the derivative of a trigonometric function.
Finding the derivative of a function means that you are finding another function that describes its rate of change.
That is, the derivative of a function is another function which describes how the original function changes. This is done independently of which kind of functions you are dealing with, and trigonometric functions are no exception!
Formulas are usually given for the derivatives of all kinds of functions. Here you will find how to find the derivatives of trigonometric functions.
Formulas for the Derivatives of Trigonometric Functions
There are six main trigonometric functions:
The Sine Function: \( \sin{x}.\)
The Cosine Function: \( \cos{x}.\)
The Tangent Function: \( \tan{x}.\)
The Cotangent Function: \( \cot{x}.\)
The Secant Function: \( \sec{x}.\)
The Cosecant Function: \( \csc{x}.\)
Trigonometric functions are the bridge between trigonometry and calculus. All six trigonometric functions are periodic functions.
For a reminder about the graphs of these functions and their periods, see Trigonometric Functions.
Let's now take a look at each one of their derivatives.
The derivatives of the main trigonometric functions are:
$$\frac{\mathrm{d}}{\mathrm{d}x}\sin{x}=\cos{x},$$
$$\frac{\mathrm{d}}{\mathrm{d}x}\cos{x}=-\sin{x},$$
$$\frac{\mathrm{d}}{\mathrm{d}x}\tan{x}=\sec^2{x},$$
$$\frac{\mathrm{d}}{\mathrm{d}x}\cot{x}=-\csc^2{x},$$
$$\frac{\mathrm{d}}{\mathrm{d}x}\sec{x}=\left( \sec{x} \right)\left(\tan{x}\right),$$
and
$$\frac{\mathrm{d}}{\mathrm{d}x}\csc{x}=-\left( \csc{x} \right)\left(\cot{x}\right).$$
Note how all the derivatives of the trigonometric functions involve more trigonometric functions. This connection is a signature of the periodicity of trigonometric functions!
Let's see how to find the derivative of some trigonometric functions using the above derivatives along with basic Differentiation Rules.
Derivatives of Trigonometric Functions and the Chain Rule
Let's take a look at how to differentiate trigonometric functions using the Chain Rule.
Find the derivative of \( f(x)=\sin{2x}.\)
Answer:
To find this derivative you will need to use the Chain Rule. Let \( u=2x.\) Then by the Power Rule,
$$u'(x)=2.$$
So now using the Chain Rule,
$$\begin{align}f'(x) &= \left( \frac{\mathrm{d}}{\mathrm{d}u}\sin{u} \right) \left( \frac{\mathrm{d}u}{\mathrm{d}x} \right) \\[0.5em] &= \left( \cos{u} \right) (2) \\ &= 2\cos{u}. \end{align}$$
Finally, substitute back \( u=2x, \) so
$$f'(x)=2\cos{2x}.$$
Do not forget to square the secant function when differentiating the tangent function!
Find the derivative of \( g(x)=\tan{x^3}.\)
Answer:
Start by letting \( u=x^3.\) By the Power Rule,
$$u'(x)=3x^2.$$
Next, use the Chain Rule,
$$\begin{align}g'(x) &= \left( \frac{\mathrm{d}}{\mathrm{d}u}\tan{u} \right) \left( \frac{\mathrm{d}u}{\mathrm{d}x} \right) \\[0.5em] &= \left(\sec^2{u} \right) (3x^2) \\ &= 3x^2\sec^2{u}, \end{align}$$
and substitute back \( u=x^3,\) obtaining
$$g'(x)=3x^2\sec^2{x^3}.$$
Remember that you have two functions for the derivatives of the secant and cosecant functions. Do not forget about either when substituting back \( u.\)
Find the derivative of \( h(x)=\csc{2x^2}.\)
Answer:
Start by letting \( u=2x^2.\) By the Power Rule,
$$u'(x)=4x.$$
Next, use the Chain Rule to get
$$\begin{align}h'(x) &= \left( \frac{\mathrm{d}}{\mathrm{d}u}\csc{u} \right) \left( \frac{\mathrm{d}u}{\mathrm{d}x} \right) \\[0.5em] &= \left(-\csc{u} \right) \left( \cot{u} \right) (4x) \\ &= -4x\left(\csc{u}\right) \left(\cot{u} \right) , \end{align}$$
and substitute back \( u=2x^2\) to get
$$h'(x)=-4x\left(\csc{2x^2}\right) \left(\cot{2x^2} \right).$$
Examples of Derivatives of Trigonometric Functions
Calculus is all about practice! You also need to be able to use more differentiation rules, like the Product Rule and the Quotient Rule.
Find the derivative of \( f(x)=x \left(\sin{x}\right).\)
Answer:
Since you have a product of functions start by using the Product Rule, that is
$$f'(x)=\left( \frac{\mathrm{d}}{\mathrm{d}x} x \right) \sin{x} + x \left(\frac{\mathrm{d}}{\mathrm{d}x} \sin{x} \right).$$
You can find the derivative of \( x \) by using the Power Rule,
$$\frac{\mathrm{d}}{\mathrm{d}x} x= 1,$$
and the derivative of the sine function is the cosine function
$$\frac{\mathrm{d}}{\mathrm{d}x}\sin{x}=\cos{x}.$$
Knowing this, the derivative of \( f(x) \) is
$$\begin{align}f'(x) &= \left( \frac{\mathrm{d}}{\mathrm{d}x} x \right) \sin{x} + x \left(\frac{\mathrm{d}}{\mathrm{d}x} \sin{x} \right) \\[0.5em] &= (1)\sin{x}+x\left( \cos{x} \right) \\ &= \sin{x}+x \cos{x}.\end{align}$$
How about The Quotient Rule? No problem!
Find the derivative of $$ g(x) = \frac{\tan{x}}{x^2}.$$
Answer:
Now you have a quotient of functions, so start by using the Quotient Rule, that is
$$g'(x)=\frac{ \left( \frac{\mathrm{d}}{\mathrm{d}x} \tan{x} \right)x^2-\tan{x}\left( \frac{\mathrm{d}}{\mathrm{d}x} x^2 \right) }{\left( x^2 \right)^2}.$$
You can find the derivative of \( x^2 \) with the Power Rule,
$$\frac{\mathrm{d}}{\mathrm{d}x} x^2=2x,$$
and the derivative of the tangent function is the secant function squared
$$\frac{\mathrm{d}}{\mathrm{d}x} \tan{x}=\sec^2{x}.$$
Finally, substitute the above derivatives in the Quotient Rule and simplify, obtaining
$$\begin{align}g'(x) &= \frac{ \left( \sec^2{x} \right) x^2- \left( \tan{x} \right) (2x) }{ \left( x^2 \right) ^2} \\[0.5em] &= \frac{x^2 \left( \sec^2{x} \right) -2x \left( \tan{x} \right) }{x^4} \\[0.5em] &= \frac{x \left( \sec^2{x} \right) - 2\tan{x}}{x^3} .\end{align}$$
It's time for one more example using the Chain Rule.
Find the derivative of \( h(x)=\sin^2{x}.\)
Answer:
Since the sine function is squared, you are dealing with a composition of functions, hence you need to use the Chain Rule. Start by letting \( u=\sin{x}.\) Its, derivative is the cosine function
$$u'(x)=\cos{x}.$$
Next, use the Chain Rule,
$$\begin{align}h'(x) &= \left( \frac{\mathrm{d}}{\mathrm{d}u}u^2 \right) \left( \frac{\mathrm{d}u}{\mathrm{d}x} \right) \\[0.5em] &= \left(2u \right) \left( \cos{x} \right) \\ &= 2u \left(\cos{u} \right), \end{align}$$
where you have used the Power Rule to find the derivative of \( u^2.\) Finally, substitute back \( u=\sin{x},\) obtaining
$$h'(x)=2 \left( \sin{x} \right) \left( \cos{x} \right) .$$
Remember, practice makes perfect!
Common Mistakes
Everyone makes mistakes from time to time. Here you will see some common mistakes when differentiating trigonometric functions.
One common mistake is getting the signs mistaken when differentiating the cosine function, the cotangent function, or the cosecant function, that is
$$\frac{\mathrm{d}}{\mathrm{d}x} \cos{x} \neq \sin{x}. $$
Be sure to put the negative sign!
$$\frac{\mathrm{d}}{\mathrm{d}x} \cos{x} = -\sin{x}. $$
One easy way to remember the signs of the derivatives of the trigonometric functions is to pay attention to the name of the function. If it starts with “co”, like cosine, cotangent, and cosecant, then the derivative has a negative sign.
Another common mistake happens when differentiating the secant function or the cosecant function. Remember that when differentiating these functions you have to write the correct inputs in all instances of trigonometric functions.
$$\frac{\mathrm{d}}{\mathrm{d}x} \sec{x^2} \neq 2x \left(\sec{x^2} \right) \left( \tan{x} \right). $$
Here, the square of the input of the tangent function is missing. Find the derivative using the derivative of the secant function formula. Do not forget to use any relevant differentiation techniques, like the Chain Rule in this case.
$$\frac{\mathrm{d}}{\mathrm{d}x} \sec{x^2} = 2x \left(\sec{x^2} \right) \left( \tan{x^2} \right). $$
Be careful if you are differentiating trigonometric functions with different inputs. Doing things step-by-step will help you not get the inputs mixed up!
Derivatives of Inverse Trigonometric Functions
You might also need to find the derivatives of the inverse trigonometric functions, like the inverse sine, the inverse tangent, and so on. Check out our article on Derivatives of Inverse Trigonometric Functions for a deep discussion!
Derivatives of Trigonometric Functions - Key takeaways
- Trigonometric functions are periodic functions. Trigonometric functions are used to describe periodic phenomena.
- The derivatives of the six main trigonometric functions are the following:$$\frac{\mathrm{d}}{\mathrm{d}x}\sin{x}=\cos{x},$$
$$\frac{\mathrm{d}}{\mathrm{d}x}\cos{x}=-\sin{x},$$
$$\frac{\mathrm{d}}{\mathrm{d}x}\tan{x}=\sec^2{x},$$
$$\frac{\mathrm{d}}{\mathrm{d}x}\cot{x}=-\csc^2{x},$$
$$\frac{\mathrm{d}}{\mathrm{d}x}\sec{x}=\left( \sec{x} \right)\left(\tan{x}\right),$$
and
$$\frac{\mathrm{d}}{\mathrm{d}x}\csc{x}=-\left( \csc{x} \right)\left(\cot{x}\right).$$
- Common mistakes when differentiating trigonometric functions include the following:
- Getting the signs mistaken. Remember that functions that start with “co” have a negative sign in their derivative.
- Mixing the inputs of the derivatives of the secant function and the cosecant function. Remember to place the correct input in each trigonometric function after differentiating.
How we ensure our content is accurate and trustworthy?
At StudySmarter, we have created a learning platform that serves millions of students. Meet
the people who work hard to deliver fact based content as well as making sure it is verified.
Content Creation Process:
Lily Hulatt is a Digital Content Specialist with over three years of experience in content strategy and curriculum design. She gained her PhD in English Literature from Durham University in 2022, taught in Durham University’s English Studies Department, and has contributed to a number of publications. Lily specialises in English Literature, English Language, History, and Philosophy.
Get to know Lily
Content Quality Monitored by:
Gabriel Freitas is an AI Engineer with a solid experience in software development, machine learning algorithms, and generative AI, including large language models’ (LLMs) applications. Graduated in Electrical Engineering at the University of São Paulo, he is currently pursuing an MSc in Computer Engineering at the University of Campinas, specializing in machine learning topics. Gabriel has a strong background in software engineering and has worked on projects involving computer vision, embedded AI, and LLM applications.
Get to know Gabriel