TOPIC

Derivative of trigonometric functions

MY PROGRESS

Pug Score

0%

Best Streak

0 in a row

Study Points

+0

Overview

Practice

Watch

Read

Quiz

Next Steps


Get Started

Get unlimited access to all videos, practice problems, and study tools.

Unlimited practice
Full videos

Back to Menu

Topic Progress

Pug Score

0%

Videos Watched

0/0

Best Practice

No score

Read

Not viewed

Best Quiz

No attempts


Best Streak

0 in a row

Study Points

+0

Read

Derivative of Trigonometric Functions

Learn how to find the derivative of trigonometric functions like sine, cosine, and tangent. This lesson covers the six core rules, where they come from, and worked examples.

What is the derivative of a trigonometric function?

The derivative of a trigonometric function tells you the instantaneous rate of change of that function at any point, exactly the same idea as the derivative of a polynomial or exponential function. Because sine, cosine, tangent, and their reciprocal functions all repeat in a periodic wave pattern, their derivatives follow a small, memorable set of rules rather than a single general formula. Once you know these rules, differentiating trig functions becomes a matter of pattern recognition combined with the chain rule and product rule.

The six basic derivative rules

Every other trig derivative can be built from just two facts: the derivative of \(\sin(x)\) is \(\cos(x)\), and the derivative of \(\cos(x)\) is \(-\sin(x)\). The remaining four rules follow by writing tangent, cotangent, secant, and cosecant in terms of sine and cosine and applying the quotient rule.

Function Derivative
\(\sin(x)\)\(\cos(x)\)
\(\cos(x)\)\(-\sin(x)\)
\(\tan(x)\)\(\sec^2(x)\)
\(\cot(x)\)\(-\csc^2(x)\)
\(\sec(x)\)\(\sec(x)\tan(x)\)
\(\csc(x)\)\(-\csc(x)\cot(x)\)

Notice the pattern: every "co" function (cosine, cotangent, cosecant) has a negative sign in its derivative, while the plain versions (sine, tangent, secant) do not.

Where do these rules come from?

The rule for \(\sin(x)\) can be justified from the limit definition of a derivative,

\( f'(x) = \lim_{h \to 0} \frac{\sin(x+h) - \sin(x)}{h} \)

Expanding \(\sin(x+h)\) with the angle-sum identity and using the two standard limits \(\lim_{h \to 0} \frac{\sin(h)}{h} = 1\) and \(\lim_{h \to 0} \frac{\cos(h)-1}{h} = 0\) reduces this expression to exactly \(\cos(x)\). This is the same limit-based approach used when you estimate a derivative from a table of values, so if that idea feels unfamiliar it can help to review estimating derivatives from a table first. The graph below shows \(\sin(x)\): notice that the curve is steepest (largest slope) where \(\cos(x)\) is at its peak, and flat where \(\cos(x)\) crosses zero, which is exactly what "the derivative of sine is cosine" means visually.

Graph of y = sin(x) over one full period showing where its slope is steepest and flattest Plot of y = sin(x) for x in [-6.28, 6.28] -6 -4 -2 0 2 4 6 -1 -0.5 0 0.5 1 x y steepest slope flat (max) steepest slope
Graph of \(y = \sin(x)\); its slope at every point matches the value of \(\cos(x)\) there.

Once \(\cos'(x) = -\sin(x)\) and \(\sin'(x) = \cos(x)\) are established, the other four rules follow from the quotient rule applied to definitions like \(\tan(x) = \frac{\sin(x)}{\cos(x)}\).

Tangent's derivative and its asymptotes

Because \(\tan(x) = \frac{\sin(x)}{\cos(x)}\), the function is undefined wherever \(\cos(x) = 0\), and this shows up as vertical asymptotes on its graph. The derivative \(\sec^2(x)\) is always positive, which matches the fact that \(\tan(x)\) is always increasing between its asymptotes.

Graph of y = tan(x) showing repeating vertical asymptotes Plot of y = tan(x) for x in [-6.28, 6.28] -6 -4 -2 0 2 4 6 -60 -40 -20 0 20 40 60 x y x = pi/4
Graph of \(y = \tan(x)\), showing its repeating vertical asymptotes.

Using the chain rule with trig functions

Most real problems do not ask for the derivative of plain \(\sin(x)\); they ask for something like \(\sin(3x^2 - 1)\). Whenever the input to a trig function is anything other than \(x\) itself, you need the chain rule: differentiate the outer trig function, keep the inside unchanged, then multiply by the derivative of the inside.

For example, if \(f(x) = \sin(3x^2 - 1)\), then

\( f'(x) = \cos(3x^2 - 1) \cdot 6x \)

The \(6x\) comes from differentiating the inner function \(3x^2 - 1\). Skipping this step is one of the most common errors students make with trig derivatives.

Combining trig derivatives with the product rule

When two functions are multiplied together, such as \(g(x) = x^2 \sin(x)\), you need the product rule along with the sine derivative rule:

\( g'(x) = 2x\sin(x) + x^2\cos(x) \)

The first term differentiates \(x^2\) and keeps \(\sin(x)\); the second term keeps \(x^2\) and differentiates \(\sin(x)\) to \(\cos(x)\).

Higher order derivatives of sine and cosine

Differentiating sine and cosine repeatedly produces a four-step cycle:

\( \sin(x) \to \cos(x) \to -\sin(x) \to -\cos(x) \to \sin(x) \)

After four derivatives you return to the original function. This pattern is useful for finding a specific higher order derivative without differentiating one step at a time; see higher order derivatives for more on this idea applied to other functions.

Worked example

Find the derivative of \(h(x) = \cos(2x) + \tan(x)\).

Differentiate each term separately. For \(\cos(2x)\), apply the chain rule: the derivative of \(\cos(u)\) is \(-\sin(u)\), multiplied by the derivative of the inner function \(2x\), which is \(2\). For \(\tan(x)\), use the rule directly.

\( h'(x) = -2\sin(2x) + \sec^2(x) \)

Common mistakes to avoid

The most frequent errors when differentiating trig functions are forgetting the negative sign on the derivative of cosine, forgetting to multiply by the inner derivative when the chain rule applies, and mixing up \(\sec^2(x)\) with \(\sec(x)\tan(x)\), which is actually the derivative of secant, not tangent. Slowing down to identify whether you are differentiating a plain trig function, a composite one, or a product of functions will help you pick the right rule every time. If you are still building comfort with what a derivative represents geometrically, reviewing the slope and equation of a tangent line can reinforce the connection between a derivative and the slope of a curve at a point.

Related lessons