IBMathematics

Derivatives of Trigonometric Functions | Rules and Examples

Learn trig derivatives with formulas for sin, cos, tan, sec, csc and cot, plus radians, derivations, chain rule examples and practice questions.
Derivatives of trigonometric functions revision guide with formulas for sin, cos, tan on chalkboard—RevisionTown math tutorial.
Calculus study notes

Derivatives of Trigonometric Functions

The derivatives of trigonometric functions describe how sine, cosine, tangent, cotangent, secant, and cosecant change as an angle changes. This guide gives the core derivative formulas, explains why radians matter, shows how the rules are derived, and demonstrates how to use them with the chain rule, product rule, quotient rule, graph interpretation, and exam-style practice.

Six trig derivative rules Radians required Chain rule examples Quotient rule derivations Exam practice

What this guide teaches

This page is a focused study guide for differentiating trigonometric functions. It is designed for students who already know basic differentiation and are now learning how periodic functions behave under derivatives. If you need a foundation first, review definition of derivatives and the power rule. If your trigonometry foundations need strengthening, start with basic trigonometry and circular functions before working through the calculus examples here.

Core derivative rules for trigonometric functions

The six basic trigonometric derivative rules are among the most important formulas in differential calculus. They appear in motion problems, wave models, optimization, related rates, polar and parametric curves, differential equations, and integration by recognition. The rules are concise, but using them well requires understanding notation, radians, signs, identities, and composite functions.

FunctionDerivativeMemory note
\(\sin x\)\(\frac{d}{dx}(\sin x)=\cos x\)Sine differentiates to cosine.
\(\cos x\)\(\frac{d}{dx}(\cos x)=-\sin x\)Cosine differentiates to negative sine.
\(\tan x\)\(\frac{d}{dx}(\tan x)=\sec^2 x\)Tangent produces a squared secant.
\(\cot x\)\(\frac{d}{dx}(\cot x)=-\csc^2 x\)Cotangent has the negative squared cosecant.
\(\sec x\)\(\frac{d}{dx}(\sec x)=\sec x\tan x\)Secant keeps secant and gains tangent.
\(\csc x\)\(\frac{d}{dx}(\csc x)=-\csc x\cot x\)Cosecant has the negative reciprocal pair.

These formulas assume that \(x\) is measured in radians. If \(x\) is measured in degrees, the derivative formulas require a conversion factor. Most calculus courses, including IB Mathematics, AP Calculus, A Level Mathematics, and university calculus, use radians because radians make the limit definitions clean and natural.

The two formulas to master first are \(\frac{d}{dx}(\sin x)=\cos x\) and \(\frac{d}{dx}(\cos x)=-\sin x\). The other four standard trig derivative rules can be derived from these using identities, the quotient rule, and the chain rule.

For a compact formula reference, the RevisionTown formula pages for calculus formulae AA SL and AA HL and calculus formulae AI SL and AI HL are useful companions. This page goes beyond a formula list by showing how and when each rule is used.

Why radians matter in trig derivatives

The derivative of \(\sin x\) is exactly \(\cos x\) only when \(x\) is in radians. This is not just a convention. It comes from the unit-circle definition of trigonometric functions and from the special limit:

\[ \lim_{h\to0}\frac{\sin h}{h}=1 \]

This limit is true when \(h\) is measured in radians. If degrees were used, the corresponding limit would include a factor of \(\pi/180\). Radians are therefore the natural angle measure for calculus because the arc length on the unit circle equals the angle measure in radians. That direct relationship is what allows the derivative formulas to be clean.

If you are converting between angle measures, remember:

\[ 180^\circ=\pi\text{ radians},\qquad 1^\circ=\frac{\pi}{180}\text{ radians} \]

For example, \(\sin(30^\circ)\) is often evaluated as \(\sin(\pi/6)\) in calculus. When differentiating \(y=\sin(30x)\), the expression \(30x\) must represent radians unless the problem explicitly states otherwise. If you need quick conversion support, use the degrees to radians converter, but keep the calculus rule itself in radians.

The practical exam habit is simple: assume radians in calculus unless told otherwise. If the problem uses degrees, convert the angle expression into radians before differentiating. This avoids missing a constant factor and helps you interpret period, amplitude, phase shift, and slope correctly.

Deriving the derivatives of sine and cosine

The derivative rules for sine and cosine can be shown from first principles using the difference quotient. This derivation helps explain why the formulas are not arbitrary. It also shows why the two key limits involving \(\sin h\) and \(\cos h\) matter.

Start with \(f(x)=\sin x\). The derivative is defined by:

\[ f'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h} \]

Substitute \(f(x)=\sin x\):

\[ \frac{\sin(x+h)-\sin x}{h} \]

Use the angle addition identity \(\sin(x+h)=\sin x\cos h+\cos x\sin h\):

\[ \frac{\sin x\cos h+\cos x\sin h-\sin x}{h} \] \[ =\frac{\sin x(\cos h-1)+\cos x\sin h}{h} \] \[ =\sin x\left(\frac{\cos h-1}{h}\right)+\cos x\left(\frac{\sin h}{h}\right) \]

Now use the standard limits:

\[ \lim_{h\to0}\frac{\sin h}{h}=1,\qquad \lim_{h\to0}\frac{\cos h-1}{h}=0 \]

Therefore:

\[ \frac{d}{dx}(\sin x)=0\cdot\sin x+1\cdot\cos x=\cos x \]

The cosine derivative is similar. Begin with \(f(x)=\cos x\):

\[ \frac{\cos(x+h)-\cos x}{h} \]

Use \(\cos(x+h)=\cos x\cos h-\sin x\sin h\):

\[ \frac{\cos x\cos h-\sin x\sin h-\cos x}{h} \] \[ =\cos x\left(\frac{\cos h-1}{h}\right)-\sin x\left(\frac{\sin h}{h}\right) \]

Taking limits gives:

\[ \frac{d}{dx}(\cos x)=0\cdot\cos x-1\cdot\sin x=-\sin x \]

This derivation is useful because it links trigonometry, limits, and derivatives. If your course is still developing limit intuition, the page on approximating a derivative can help connect secant slopes, tangent slopes, and the limiting process.

Derivatives of tangent, cotangent, secant, and cosecant

The remaining four standard trig derivatives can be derived from sine and cosine using identities. This is why it is better to understand \(\sin x\) and \(\cos x\) deeply than to memorize six disconnected facts.

Derivative of tangent

Use the identity \(\tan x=\frac{\sin x}{\cos x}\) and the quotient rule:

\[ \frac{d}{dx}\left(\frac{\sin x}{\cos x}\right)=\frac{\cos x\cdot\cos x-\sin x(-\sin x)}{\cos^2 x} \] \[ =\frac{\cos^2 x+\sin^2 x}{\cos^2 x}=\frac{1}{\cos^2 x}=\sec^2 x \]

So:

\[ \frac{d}{dx}(\tan x)=\sec^2 x \]

Derivative of cotangent

Use \(\cot x=\frac{\cos x}{\sin x}\):

\[ \frac{d}{dx}\left(\frac{\cos x}{\sin x}\right)=\frac{\sin x(-\sin x)-\cos x(\cos x)}{\sin^2 x} \] \[ =-\frac{\sin^2 x+\cos^2 x}{\sin^2 x}=-\csc^2 x \]

Derivative of secant

Use \(\sec x=(\cos x)^{-1}\). Applying the chain rule gives:

\[ \frac{d}{dx}(\sec x)=\frac{d}{dx}\left((\cos x)^{-1}\right) \] \[ =-(\cos x)^{-2}(-\sin x)=\frac{\sin x}{\cos^2 x}=\frac{1}{\cos x}\cdot\frac{\sin x}{\cos x}=\sec x\tan x \]

Derivative of cosecant

Use \(\csc x=(\sin x)^{-1}\):

\[ \frac{d}{dx}(\csc x)=-(\sin x)^{-2}(\cos x)=-\frac{\cos x}{\sin^2 x}=-\csc x\cot x \]

These derivations also reinforce the quotient rule and chain rule. If you need a broader derivative formula sheet, review derivatives and integration formulas. This page keeps the focus on the trigonometric family and the reasoning behind each derivative.

Chain rule with trigonometric functions

Most real exam questions are not as simple as differentiating \(\sin x\) or \(\tan x\). They often contain composite functions such as \(\sin(3x)\), \(\cos(x^2)\), \(\tan(5x-1)\), or \(\sec(\sqrt{x})\). In each case, the derivative of the outside trig function must be multiplied by the derivative of the inside function.

\[ \frac{d}{dx}[\sin(u)]=\cos(u)\cdot u' \] \[ \frac{d}{dx}[\cos(u)]=-\sin(u)\cdot u' \] \[ \frac{d}{dx}[\tan(u)]=\sec^2(u)\cdot u' \]

The variable \(u\) represents the inside function. It may be a polynomial, a radical, an exponential expression, or another trigonometric expression. The chain rule prevents a common error: differentiating the outer function but forgetting to multiply by the derivative of the inside.

Example: \(y=\sin(4x)\)

\[ y'=\cos(4x)\cdot4=4\cos(4x) \]

The coefficient 4 appears because \(4x\) changes four times as fast as \(x\). Graphically, \(\sin(4x)\) oscillates faster than \(\sin x\), so its slopes are scaled.

Example: \(y=\cos(x^2)\)

\[ y'=-\sin(x^2)\cdot2x=-2x\sin(x^2) \]

Here the inside function is \(x^2\), so its derivative is \(2x\). The answer is not simply \(-\sin(x^2)\).

Example: \(y=\tan(5x-3)\)

\[ y'=\sec^2(5x-3)\cdot5=5\sec^2(5x-3) \]

When the inside expression is linear, the derivative is a constant. When the inside expression is nonlinear, the multiplier may contain \(x\). In both cases, the structure is "outside derivative evaluated at the inside" times "inside derivative."

Students often meet the chain rule in a wider unit on differential calculus. Trigonometric functions are one of the best places to practice it because the outside derivative changes the trig function while the inside derivative controls the multiplier.

Derivative rule practice tool

Use this quick practice panel to reinforce the most common trig derivative patterns. It is a study tool, not a replacement for showing algebraic working in exams.

Choose a pattern and reveal the derivative.

Using trig derivatives with product and quotient rules

Trigonometric derivatives frequently appear inside product and quotient rule problems. The main challenge is not the trig rule itself, but choosing the correct structure before differentiating. If a function is a product of two expressions, use the product rule. If it is a quotient, use the quotient rule. If a trig expression is nested inside another function, use the chain rule. Many harder problems combine all three.

\[ \frac{d}{dx}[u(x)v(x)]=u'(x)v(x)+u(x)v'(x) \] \[ \frac{d}{dx}\left[\frac{u(x)}{v(x)}\right]=\frac{u'(x)v(x)-u(x)v'(x)}{[v(x)]^2} \]

Example: \(y=x\sin x\)

This is a product, with \(u=x\) and \(v=\sin x\). Then \(u'=1\) and \(v'=\cos x\).

\[ y'=1\cdot\sin x+x\cdot\cos x=\sin x+x\cos x \]

Example: \(y=x^2\cos(3x)\)

This combines the product rule and chain rule. Let \(u=x^2\) and \(v=\cos(3x)\). Then \(u'=2x\) and \(v'=-3\sin(3x)\).

\[ y'=2x\cos(3x)+x^2[-3\sin(3x)] \] \[ y'=2x\cos(3x)-3x^2\sin(3x) \]

Example: \(y=\frac{\sin x}{x}\)

This is a quotient, with \(u=\sin x\) and \(v=x\). Then \(u'=\cos x\) and \(v'=1\).

\[ y'=\frac{x\cos x-\sin x}{x^2} \]

Notice the numerator order: derivative of top times bottom minus top times derivative of bottom. Reversing this order changes the sign and is a common mistake.

Example: \(y=\frac{\tan x}{1+x^2}\)

\[ y'=\frac{(1+x^2)\sec^2 x-\tan x(2x)}{(1+x^2)^2} \]

This answer can often remain in quotient-rule form unless the question asks for simplification. In exams, a clear unsimplified derivative is usually better than an algebraically altered expression with a mistake.

Higher derivatives and repeating trig patterns

Trigonometric functions create repeating derivative cycles. For \(y=\sin x\), the derivatives repeat every four steps:

\[ y=\sin x,\quad y'=\cos x,\quad y''=-\sin x,\quad y'''=-\cos x,\quad y^{(4)}=\sin x \]

For \(y=\cos x\), the cycle is:

\[ y=\cos x,\quad y'=-\sin x,\quad y''=-\cos x,\quad y'''=\sin x,\quad y^{(4)}=\cos x \]

This pattern is important in simple harmonic motion, Taylor series, differential equations, and advanced calculus. It shows that sine and cosine are deeply connected: differentiating rotates through the same pair of functions with sign changes.

For composite functions like \(y=\sin(3x)\), the chain rule changes the scale of higher derivatives. The first derivative is \(3\cos(3x)\), the second derivative is \(-9\sin(3x)\), and the third derivative is \(-27\cos(3x)\). Each differentiation introduces another factor of 3 from the inside function. This pattern is often useful when solving differential equations or checking repeated derivatives.

For students moving beyond differentiation into reverse processes, the connection between trig derivatives and integrals is also important. Since the derivative of \(\sin x\) is \(\cos x\), an antiderivative of \(\cos x\) is \(\sin x\). The page on antiderivatives and indefinite integrals continues that inverse relationship.

Graph interpretation of trig derivatives

Derivative rules become more meaningful when connected to graph behavior. The derivative tells you the slope of the tangent line. For \(y=\sin x\), the derivative \(y'=\cos x\) tells you the slope of the sine curve at every point. When \(\cos x\) is positive, \(\sin x\) is increasing. When \(\cos x\) is negative, \(\sin x\) is decreasing. When \(\cos x=0\), the sine graph has a horizontal tangent.

For example, at \(x=0\), \(\sin x=0\) and \(\cos x=1\), so the sine graph is crossing the origin with slope 1. At \(x=\pi/2\), \(\sin x=1\) and \(\cos x=0\), so the sine graph has a maximum and a horizontal tangent. At \(x=\pi\), \(\sin x=0\) and \(\cos x=-1\), so the sine graph crosses the axis with slope \(-1\).

For \(y=\cos x\), the derivative is \(-\sin x\). At \(x=0\), \(-\sin0=0\), so the cosine graph has a horizontal tangent at its maximum. At \(x=\pi/2\), \(-\sin(\pi/2)=-1\), so the cosine graph is decreasing most steeply. At \(x=\pi\), the derivative is 0 again because cosine has a minimum.

The tangent function behaves differently because it has vertical asymptotes. Since \(\frac{d}{dx}(\tan x)=\sec^2 x\), and \(\sec^2 x\) is always positive where defined, \(\tan x\) is increasing on every interval of its domain. The slope becomes very large near vertical asymptotes because \(\sec^2 x=\frac{1}{\cos^2 x}\) grows without bound as \(\cos x\) approaches 0.

Graph interpretation is especially useful in multiple-choice questions. If a graph is increasing, its derivative must be positive. If it is decreasing, the derivative must be negative. If it has a local maximum or minimum, the derivative is zero there. If you want to compare graph shapes numerically, a general trigonometry calculator can help check values, but derivative reasoning comes from slopes and formulas.

Applications of trigonometric derivatives

Trigonometric derivatives appear whenever a quantity is periodic, rotating, oscillating, or wave-like. They are used in physics, engineering, signal processing, navigation, economics, biology, architecture, and advanced mathematics. The central idea is that sine and cosine model smooth repeating motion, while derivatives measure how fast that motion changes.

Simple harmonic motion

A common model for oscillation is:

\[ s(t)=A\sin(\omega t+\phi) \]

Here \(A\) is amplitude, \(\omega\) is angular frequency, and \(\phi\) is phase shift. The velocity is the derivative of position:

\[ v(t)=s'(t)=A\omega\cos(\omega t+\phi) \]

The acceleration is the derivative of velocity:

\[ a(t)=v'(t)=-A\omega^2\sin(\omega t+\phi) \]

This explains why displacement and acceleration point in opposite directions in ideal simple harmonic motion. The second derivative is a negative constant multiple of the original position function.

Wave slopes

If a wave is modeled by \(y=A\sin(kx)\), its slope with respect to position is:

\[ \frac{dy}{dx}=Ak\cos(kx) \]

The factor \(k\) changes how rapidly the wave oscillates along the \(x\)-axis. A larger \(k\) means a shorter period and steeper possible slopes.

Optimization and tangent lines

In optimization problems, derivative values identify where a trig model may have maxima, minima, or stationary points. For example, if \(f(x)=\sin x+\cos x\), then:

\[ f'(x)=\cos x-\sin x \]

Stationary points occur when \(\cos x-\sin x=0\), so \(\cos x=\sin x\). On \(0\le x\le2\pi\), this happens at \(x=\pi/4\) and \(x=5\pi/4\). A second derivative or sign chart then determines whether each point is a maximum or minimum.

These applications are part of a larger calculus toolkit. If you are building a broad review path, use calculus concepts, Calculus Part 1, Calculus Part 2, and Calculus Part 3 to connect derivative rules with broader methods and problem types.

Trig identities that make differentiation easier

Many trigonometric derivative problems become easier when you recognize identities before differentiating. This does not mean every expression should be transformed. It means you should pause and ask whether the original form hides a simpler structure. A good simplification can turn a product or quotient rule problem into a direct derivative; a poor simplification can make the expression longer and increase the chance of error.

The most useful identities for differentiation are the reciprocal identities, quotient identities, and Pythagorean identities:

\[ \tan x=\frac{\sin x}{\cos x},\qquad \cot x=\frac{\cos x}{\sin x} \] \[ \sec x=\frac{1}{\cos x},\qquad \csc x=\frac{1}{\sin x} \] \[ \sin^2 x+\cos^2 x=1,\qquad 1+\tan^2 x=\sec^2 x,\qquad 1+\cot^2 x=\csc^2 x \]

For example, suppose you need to differentiate \(y=\sin x\sec x\). You could use the product rule. But \(\sec x=\frac{1}{\cos x}\), so \(\sin x\sec x=\frac{\sin x}{\cos x}=\tan x\). Then the derivative is simply \(\sec^2 x\). In this case, simplifying first saves work.

Now compare \(y=x\sec x\). This expression cannot be reduced to a single basic trig function because of the extra \(x\). The product rule is appropriate:

\[ y'=1\cdot\sec x+x(\sec x\tan x)=\sec x+x\sec x\tan x \]

Another useful example is \(y=\frac{\sin^2 x+\cos^2 x}{x}\). The numerator equals 1 by the Pythagorean identity, so the function becomes \(y=\frac{1}{x}=x^{-1}\). Differentiating after simplification gives \(y'=-x^{-2}\). Without simplifying, the quotient rule would be much longer, and the numerator derivative would cancel anyway.

Identity-based simplification is especially helpful in exam settings because it shows mathematical insight. However, you must be careful with domains. Rewriting \(\tan x\) as \(\frac{\sin x}{\cos x}\) is valid only where \(\cos x\ne0\). Most calculus problems assume work is done on intervals where expressions are defined, but domain restrictions still matter when solving equations or explaining behavior near asymptotes.

If your course combines trigonometric identities with calculus, the formula pages for geometry and trigonometry formulae AA SL and AA HL and geometry and trigonometry formulae AI SL and AI HL are useful references. The best approach is to know the identities well enough that you can decide whether to simplify before applying derivative rules.

Tangent lines and normal lines with trig derivatives

One of the most common uses of a derivative is finding the equation of a tangent line. A tangent line touches a graph at a point and has slope equal to the derivative at that point. For trigonometric functions, this often requires exact unit-circle values such as \(\sin(\pi/6)=1/2\), \(\cos(\pi/3)=1/2\), or \(\tan(\pi/4)=1\).

The process has three steps. First, differentiate the function. Second, substitute the given \(x\)-value into the derivative to find the tangent slope. Third, substitute the same \(x\)-value into the original function to find the point on the curve. Then use point-slope form:

\[ y-y_1=m(x-x_1) \]

For example, find the tangent line to \(y=\sin x\) at \(x=\frac{\pi}{6}\). The derivative is \(y'=\cos x\), so the tangent slope is:

\[ m=\cos\left(\frac{\pi}{6}\right)=\frac{\sqrt3}{2} \]

The point on the curve is:

\[ y=\sin\left(\frac{\pi}{6}\right)=\frac12 \]

Therefore, the tangent line is:

\[ y-\frac12=\frac{\sqrt3}{2}\left(x-\frac{\pi}{6}\right) \]

A normal line is perpendicular to the tangent line. If the tangent slope is \(m\), the normal slope is \(-\frac{1}{m}\), provided \(m\ne0\). In the example above, the normal slope is \(-\frac{2}{\sqrt3}\), which can also be rationalized as \(-\frac{2\sqrt3}{3}\).

Normal lines require careful handling when the tangent slope is zero. If the tangent line is horizontal, the normal line is vertical and cannot be written in slope-intercept form. For example, \(y=\sin x\) at \(x=\frac{\pi}{2}\) has derivative \(\cos(\pi/2)=0\), so the tangent line is horizontal and the normal line is \(x=\frac{\pi}{2}\).

In applied contexts, tangent lines approximate a curve near a point. This is called local linear approximation. If \(f(x)=\sin x\), then near \(x=0\), the tangent line is \(y=x\), which explains the well-known small-angle approximation \(\sin x\approx x\) for \(x\) close to 0 in radians. This approximation is widely used in physics and engineering because it turns curved motion into a simpler linear model over a small interval.

Stationary points and optimization with trig functions

A stationary point occurs where the derivative is zero or where the derivative is undefined and the function is still defined. For smooth sine and cosine combinations, stationary points usually come from setting the derivative equal to zero. These questions test both differentiation and trigonometric equation solving.

Consider \(f(x)=2\sin x+\cos x\) on \(0\le x\le2\pi\). Differentiate first:

\[ f'(x)=2\cos x-\sin x \]

Stationary points satisfy:

\[ 2\cos x-\sin x=0 \] \[ 2\cos x=\sin x \]

If \(\cos x\ne0\), divide by \(\cos x\):

\[ 2=\tan x \]

So \(x=\arctan(2)\) and \(x=\arctan(2)+\pi\) within the interval \(0\le x\le2\pi\). The second derivative is:

\[ f''(x)=-2\sin x-\cos x \]

Substituting each stationary point into the second derivative tells whether the point is a local maximum or local minimum. Alternatively, you can use a derivative sign chart. The sign chart method is often more intuitive for trig functions because it shows where the function is increasing and decreasing around the stationary points.

Optimization questions may also involve amplitude. Any expression of the form \(a\sin x+b\cos x\) can be rewritten as \(R\sin(x+\alpha)\) or \(R\cos(x-\beta)\), where \(R=\sqrt{a^2+b^2}\). This transformation can reveal maximum and minimum values without calculus, but the derivative method confirms where those extrema occur. For \(2\sin x+\cos x\), the maximum possible value is \(\sqrt{5}\), and the minimum possible value is \(-\sqrt{5}\).

In exam solutions, state the domain clearly. Trig equations have infinitely many solutions if no interval is specified. A correct general solution may still be incomplete if the question asks for solutions on a particular interval. Always reduce your answers to the interval given in the problem.

Parameters, amplitude, period, and derivative size

Trigonometric models often include parameters that change amplitude, period, phase shift, and vertical position. A typical sine model is:

\[ y=A\sin(Bx+C)+D \]

The derivative is:

\[ y'=AB\cos(Bx+C) \]

This formula shows the effect of parameters clearly. The vertical shift \(D\) disappears because a constant has derivative zero. The amplitude \(A\) scales the output and also scales the derivative. The frequency parameter \(B\) appears because of the chain rule and also affects how fast the graph oscillates. The phase shift \(C\) changes where the slopes occur but not the maximum possible slope size by itself.

The maximum magnitude of the derivative of \(A\sin(Bx+C)+D\) is \(|AB|\), because \(\cos(Bx+C)\) ranges between \(-1\) and \(1\). This has a useful physical interpretation. If a wave has larger amplitude or oscillates more rapidly, it can have steeper slopes. A taller wave that completes cycles quickly changes more sharply than a small, slow wave.

For cosine models, the idea is similar:

\[ y=A\cos(Bx+C)+D,\qquad y'=-AB\sin(Bx+C) \]

Again, the maximum slope magnitude is \(|AB|\). In graphing questions, this helps connect transformations to calculus. A vertical stretch increases derivative magnitude. A horizontal compression also increases derivative magnitude because the same oscillation occurs in a shorter horizontal distance. A vertical shift does not affect derivative values.

This section is especially important for students who have studied transformations before calculus. Transformations are not separate from derivatives; they change slopes in predictable ways. A graph of \(\sin(5x)\) completes five times as many cycles as \(\sin x\) over the same interval, so the derivative must include a factor of 5.

Related rates with trigonometric functions

Related rates problems connect changing quantities through an equation and use derivatives to find how fast one quantity changes when another changes. Trigonometric functions appear naturally when angles, distances, shadows, ladders, rotating arms, or circular motion are involved.

Suppose a right triangle has a fixed hypotenuse of length 10 and angle \(\theta\) at the base. The opposite side is:

\[ y=10\sin\theta \]

If \(\theta\) changes with time, then \(y\) also changes with time. Differentiate with respect to \(t\):

\[ \frac{dy}{dt}=10\cos\theta\cdot\frac{d\theta}{dt} \]

The factor \(\frac{d\theta}{dt}\) appears because \(\theta\) is a function of time. This is the chain rule in a real context. If \(\theta=\frac{\pi}{3}\) and \(\frac{d\theta}{dt}=0.2\) radians per second, then:

\[ \frac{dy}{dt}=10\cos\left(\frac{\pi}{3}\right)(0.2)=10\cdot\frac12\cdot0.2=1 \]

The opposite side is increasing at 1 unit per second at that moment. The result depends on both the current angle and how quickly the angle is changing.

Related rates problems often fail when students differentiate with respect to the wrong variable. If the independent variable is time, every changing quantity needs a time derivative. For example, differentiating \(\sin\theta\) with respect to \(t\) gives \(\cos\theta\frac{d\theta}{dt}\), not just \(\cos\theta\). This is exactly the same chain rule used in \(\frac{d}{dx}[\sin(g(x))]\), but the notation changes because the variable is time.

More exam-style worked patterns

Pattern 1: Power of a trig function

Differentiate \(y=\tan^4 x\). Rewrite it as \(y=(\tan x)^4\). The outside function is a fourth power, and the inside function is \(\tan x\).

\[ y'=4(\tan x)^3(\sec^2 x)=4\tan^3 x\sec^2 x \]

The derivative is not \(4\tan^3 x\) because the inside derivative \(\sec^2 x\) is required.

Pattern 2: Nested trig function

Differentiate \(y=\sin(\cos x)\). The outside function is sine and the inside function is \(\cos x\).

\[ y'=\cos(\cos x)\cdot(-\sin x)=-\sin x\cos(\cos x) \]

Do not simplify \(\cos(\cos x)\) as \(\cos^2 x\). It means the cosine of the value \(\cos x\), not cosine multiplied by cosine.

Pattern 3: Product with an exponential

Differentiate \(y=e^x\sin x\). This combines a non-trig derivative with a trig derivative:

\[ y'=e^x\sin x+e^x\cos x=e^x(\sin x+\cos x) \]

For more examples involving exponentials and logs, see derivatives of exponential and logarithmic functions.

Pattern 4: Quotient with a trig denominator

Differentiate \(y=\frac{x}{\cos x}\). You may rewrite this as \(y=x\sec x\), which makes the product rule easier:

\[ y'=1\cdot\sec x+x(\sec x\tan x)=\sec x+x\sec x\tan x \]

If you used the quotient rule directly, you would get an equivalent expression:

\[ y'=\frac{\cos x+x\sin x}{\cos^2 x} \]

Both forms are correct where \(\cos x\ne0\). Recognizing equivalence is useful because different mark schemes may present different but equal answers.

Pattern 5: Tangent line after differentiating a composite

Find the slope of the tangent to \(y=\sin(2x)\) at \(x=\frac{\pi}{6}\).

\[ y'=2\cos(2x) \] \[ y'\left(\frac{\pi}{6}\right)=2\cos\left(\frac{\pi}{3}\right)=2\cdot\frac12=1 \]

The tangent slope is 1. The chain rule factor 2 is essential; without it, the answer would be \(\frac12\), which is the slope of \(\sin x\) at a different angle, not the slope of \(\sin(2x)\).

Worked examples

Example 1: Differentiate \(y=7\sin x-4\cos x\)

\[ y'=7\cos x-4(-\sin x)=7\cos x+4\sin x \]

The key step is remembering that the derivative of \(\cos x\) is \(-\sin x\). The negative coefficient and the negative derivative combine to create a positive term.

Example 2: Differentiate \(y=3\tan x+2\sec x\)

\[ y'=3\sec^2 x+2\sec x\tan x \]

This example uses two standard rules directly. No product rule is needed because the expression is a sum of terms, each with a constant multiplier.

Example 3: Differentiate \(y=\sin(2x^2-1)\)

\[ y'=\cos(2x^2-1)\cdot4x=4x\cos(2x^2-1) \]

The inside function is \(2x^2-1\), and its derivative is \(4x\). The outside derivative changes sine to cosine.

Example 4: Differentiate \(y=\cos^3 x\)

Rewrite as \(y=(\cos x)^3\). This is a chain rule problem with outside function \(u^3\) and inside function \(u=\cos x\).

\[ y'=3(\cos x)^2(-\sin x)=-3\cos^2 x\sin x \]

Example 5: Find the tangent slope to \(y=\sin x\) at \(x=\frac{\pi}{3}\)

\[ y'=\cos x,\qquad y'\left(\frac{\pi}{3}\right)=\cos\left(\frac{\pi}{3}\right)=\frac12 \]

The tangent slope is \(\frac12\). If you also need the tangent line, find the point: \(y=\sin(\pi/3)=\frac{\sqrt3}{2}\). Then use point-slope form.

Example 6: Differentiate \(y=x\cos x-\sin x\)

Apply the product rule to \(x\cos x\), then subtract the derivative of \(\sin x\):

\[ y'=(1)(\cos x)+x(-\sin x)-\cos x=-x\sin x \]

The \(\cos x\) terms cancel. Cancellations like this are common in well-designed calculus problems, so do not stop too early.

Derivatives of inverse trigonometric functions

This page focuses on derivatives of the six basic trigonometric functions. Inverse trigonometric functions have their own derivative rules. They are related but should not be confused with reciprocal trig functions. For example, \(\sin^{-1}x\) usually means \(\arcsin x\), not \(\frac{1}{\sin x}\). By contrast, \(\csc x=\frac{1}{\sin x}\).

Compare these two derivatives:

\[ \frac{d}{dx}(\csc x)=-\csc x\cot x \] \[ \frac{d}{dx}(\arcsin x)=\frac{1}{\sqrt{1-x^2}} \]

The notation is easy to mix up, especially in handwritten work. If the input is an angle and the function is reciprocal, use secant, cosecant, and cotangent rules. If the function is inverse sine, inverse cosine, or inverse tangent, use inverse trig derivative rules. For that separate topic, see derivatives of inverse trigonometric functions and derivatives of an inverse function.

Common mistakes with trigonometric derivatives

Mistake 1: Forgetting radians

The standard derivative rules assume radians. If a problem uses degrees, convert to radians or include the necessary conversion factor. This is one of the most common conceptual errors in early calculus.

Mistake 2: Losing the negative sign on cosine

The derivative of \(\cos x\) is \(-\sin x\). The derivative of \(-\cos x\) is \(+\sin x\). A missing negative sign can change the entire graph interpretation and lead to wrong maxima, minima, or tangent slopes.

Mistake 3: Forgetting the chain rule

The derivative of \(\sin(5x)\) is \(5\cos(5x)\), not \(\cos(5x)\). The derivative of \(\cos(x^2)\) is \(-2x\sin(x^2)\), not \(-\sin(x^2)\).

Mistake 4: Confusing reciprocal and inverse trig functions

\(\sec x\) is reciprocal cosine, while \(\arccos x\) is inverse cosine. Their derivatives are completely different. Always read notation carefully.

Mistake 5: Applying product rule where a constant multiple is enough

The derivative of \(4\sin x\) is \(4\cos x\). You do not need the product rule because 4 is a constant. Save product rule for products like \(x\sin x\) or \(e^x\cos x\).

Mistake 6: Over-simplifying too aggressively

Some trig derivative answers can be simplified using identities, but unnecessary simplification often creates errors. Unless the question asks for a specific form, a correct product-rule or quotient-rule expression is usually acceptable if it is clear and mathematically equivalent.

A step-by-step workflow for any trig derivative problem

When a trigonometric derivative problem looks complicated, do not start by differentiating immediately. A short workflow makes the problem safer. First, identify the main structure of the expression. Second, decide whether a trigonometric identity should be used before differentiation. Third, apply the correct derivative rule. Fourth, simplify only as much as needed. Fifth, check signs, chain-rule factors, and domain restrictions.

The main structure is the outermost operation. In \(y=\sin(3x)\), the main structure is a composite function. In \(y=x\sin x\), the main structure is a product. In \(y=\frac{\cos x}{1+x}\), the main structure is a quotient. In \(y=\sin^2 x\), the main structure is a power of a trigonometric function, which is also a composite function because \(\sin^2 x=(\sin x)^2\).

After identifying the structure, ask whether simplification helps. For \(y=\sin x\sec x\), simplifying to \(y=\tan x\) is efficient. For \(y=\frac{1-\cos^2 x}{\sin x}\), the numerator can become \(\sin^2 x\), so the expression simplifies to \(\sin x\) where defined. The derivative is then \(\cos x\). Without the identity, the quotient rule would be longer and less transparent.

However, simplification is not always better. For \(y=\sin x+\cos x\), no identity makes the derivative easier. For \(y=x^2\sin(5x)\), applying the product rule directly is clean. For \(y=\tan x\), rewriting as \(\frac{\sin x}{\cos x}\) is useful if you are deriving the rule, but once you know the rule, \(\sec^2 x\) is faster.

Expression patternBest first decisionExampleDerivative approach
Single basic trig functionUse the standard rule.\(\cos x\)\(-\sin x\)
Trig function with linear insideUse chain rule.\(\sin(7x)\)\(7\cos(7x)\)
Trig function with nonlinear insideUse chain rule carefully.\(\cos(x^3)\)\(-3x^2\sin(x^3)\)
Power of a trig functionRewrite mentally as a power.\(\sin^5 x\)\(5\sin^4 x\cos x\)
Product involving trigUse product rule.\(x\cos x\)\(\cos x-x\sin x\)
Quotient involving trigSimplify if possible; otherwise use quotient rule.\(\frac{\sin x}{x}\)\(\frac{x\cos x-\sin x}{x^2}\)
Identity hidden in expressionSimplify before differentiating.\(\sin^2 x+\cos^2 x\)\(0\), because the expression is 1.

The final check is important. Ask whether the answer has the right sign and approximate behavior. For instance, \(\cos x\) is decreasing immediately to the right of \(x=0\), so its derivative at \(x=0\) should be 0 and then negative nearby. The formula \(-\sin x\) matches that behavior. If your answer for the derivative of \(\cos x\) is \(+\sin x\), the graph behavior exposes the error.

Also check whether the derivative has the expected scale. The derivative of \(\sin(10x)\) should have larger maximum slope magnitude than the derivative of \(\sin x\), because it oscillates faster. The formula \(10\cos(10x)\) confirms this. If your answer is only \(\cos(10x)\), it misses the chain-rule multiplier and underestimates the slope.

For applied problems, finish with units and interpretation. If \(s(t)=4\sin(2t)\) is displacement in centimeters, then \(s'(t)=8\cos(2t)\) is velocity in centimeters per second when \(t\) is in seconds. If the derivative is negative at a particular time, the object is moving in the negative direction. If it is zero, the object is instantaneously at rest, often at a maximum or minimum displacement.

How to present trig derivative solutions clearly

Clear mathematical presentation matters because trigonometric differentiation often involves several rules at once. A well-written solution makes it obvious which rule is being applied and reduces the risk of losing a sign or multiplier. Start by writing the original function. Then write the derivative step with enough structure to show the rule. Finally, simplify the result if the simplification is useful.

For example, instead of jumping from \(y=x^2\sin(3x)\) directly to a final expression, write:

\[ y'=2x\sin(3x)+x^2\cdot3\cos(3x) \] \[ y'=2x\sin(3x)+3x^2\cos(3x) \]

This shows both the product rule and the chain rule. The first term comes from differentiating \(x^2\). The second term comes from differentiating \(\sin(3x)\). If a teacher or examiner reads the solution, the reasoning is visible.

For quotient rule answers, avoid expanding too early. Consider \(y=\frac{\cos(2x)}{x^2+1}\). A clear derivative is:

\[ y'=\frac{(x^2+1)(-2\sin(2x))-\cos(2x)(2x)}{(x^2+1)^2} \]

This form is already correct and understandable. Expanding the numerator may make the answer longer without making it better. In many exam contexts, a factored or structured expression is preferable because it preserves the rule used and is easier to check.

When a problem asks for an exact value, keep exact trigonometric values rather than decimals. For example, if \(y'=\sec^2 x\) at \(x=\pi/3\), then \(\sec(\pi/3)=2\), so the derivative is 4. A decimal is unnecessary. If the angle is not special, an exact expression such as \(\cos(1.2)\) may be acceptable unless the question requests a numerical approximation.

Finally, be consistent with notation. Use \(y'\), \(f'(x)\), or \(\frac{dy}{dx}\) appropriately. If the function is \(s(t)\), then the derivative is \(s'(t)\) or \(\frac{ds}{dt}\), not \(\frac{dy}{dx}\). Correct notation helps communicate which variable is changing and is especially important in related rates and physics applications.

Exam strategy for trigonometric differentiation

In exams, trig derivative questions usually test rule recognition, chain rule discipline, and interpretation. Start by identifying the outer structure: is the function a sum, product, quotient, composite, or power of a trig expression? Then choose the correct differentiation rule before doing algebra. This simple planning step prevents most errors.

When a trigonometric expression is squared or raised to a power, rewrite it mentally as a composite function. For example, \(\sin^2 x\) means \((\sin x)^2\), so its derivative is \(2\sin x\cos x\). It is not \(\cos^2 x\). Similarly, \(\tan^3(2x)\) means \((\tan(2x))^3\), which requires both a power rule outside and a chain rule inside.

When asked to find tangent lines, first differentiate, then evaluate the derivative at the given \(x\)-value to get the slope, then evaluate the original function to get the point. The tangent line uses the point on the original curve, not the point on the derivative graph.

When asked to solve for stationary points, set the derivative equal to zero and use trig identities or unit-circle values. Remember to apply the interval restrictions in the question. A solution that is valid for all real numbers may need to be reduced to \(0\le x\le2\pi\), \(-\pi\le x\le\pi\), or another stated domain.

For curriculum alignment and wider revision, students can connect this guide with IB Mathematics, AP Calculus AB, and AP Calculus BC. The same derivative rules appear across these courses, but the depth of proof, application, and algebraic manipulation varies.

Practice questions

  1. Differentiate \(y=5\sin x-2\cos x\).
  2. Differentiate \(y=4\tan x+7\sec x\).
  3. Differentiate \(y=\sin(6x)\).
  4. Differentiate \(y=\cos(3x^2+1)\).
  5. Differentiate \(y=\tan(2x-5)\).
  6. Differentiate \(y=x\sin x\).
  7. Differentiate \(y=x^2\cos(4x)\).
  8. Differentiate \(y=\frac{\sin x}{1+x}\).
  9. Find the slope of the tangent to \(y=\cos x\) at \(x=\frac{\pi}{2}\).
  10. Find the stationary points of \(f(x)=\sin x+\cos x\) on \(0\le x\le2\pi\).
  11. Differentiate \(y=\sin^2 x\) and simplify using a double-angle identity if possible.
  12. Differentiate \(y=\sec(5x)\).

Answer checks

  1. \(y'=5\cos x+2\sin x\).
  2. \(y'=4\sec^2 x+7\sec x\tan x\).
  3. \(y'=6\cos(6x)\).
  4. \(y'=-(6x)\sin(3x^2+1)\).
  5. \(y'=2\sec^2(2x-5)\).
  6. \(y'=\sin x+x\cos x\).
  7. \(y'=2x\cos(4x)-4x^2\sin(4x)\).
  8. \(y'=\frac{(1+x)\cos x-\sin x}{(1+x)^2}\).
  9. \(y'=-\sin x\), so the slope is \(-1\).
  10. \(f'(x)=\cos x-\sin x=0\), so \(x=\frac{\pi}{4},\frac{5\pi}{4}\).

Quick quiz

Question: What is the derivative of \(y=\cos(4x)\)?

Select an answer to check your chain rule reasoning.

Questions and answers

What is the derivative of \(\sin x\)?

The derivative of \(\sin x\) is \(\cos x\), assuming \(x\) is measured in radians.

What is the derivative of \(\cos x\)?

The derivative of \(\cos x\) is \(-\sin x\). The negative sign is essential and is one of the most common sources of errors.

What is the derivative of \(\tan x\)?

The derivative of \(\tan x\) is \(\sec^2 x\). It can be derived by rewriting tangent as \(\frac{\sin x}{\cos x}\) and applying the quotient rule.

What are the derivatives of secant and cosecant?

The derivative of \(\sec x\) is \(\sec x\tan x\). The derivative of \(\csc x\) is \(-\csc x\cot x\).

Why do trig derivative formulas use radians?

Radians make the limit \(\lim_{h\to0}\frac{\sin h}{h}=1\) true in its clean form. Degree measure would introduce a conversion factor, so calculus uses radians as the natural angle measure.

How do I differentiate \(\sin(kx)\)?

Use the chain rule. \(\frac{d}{dx}[\sin(kx)]=k\cos(kx)\), because the derivative of the inside expression \(kx\) is \(k\).

Is \(\sin^{-1}x\) the same as \(\csc x\)?

No. In calculus notation, \(\sin^{-1}x\) usually means \(\arcsin x\), the inverse sine function. Cosecant is \(\csc x=\frac{1}{\sin x}\). Their derivatives are different.

How do trig derivatives connect to integration?

Integration reverses differentiation. Since \(\frac{d}{dx}(\sin x)=\cos x\), an antiderivative of \(\cos x\) is \(\sin x\). Since \(\frac{d}{dx}(\cos x)=-\sin x\), an antiderivative of \(\sin x\) is \(-\cos x\).

Key takeaways

  • The derivative of \(\sin x\) is \(\cos x\).
  • The derivative of \(\cos x\) is \(-\sin x\).
  • The derivative of \(\tan x\) is \(\sec^2 x\).
  • The derivatives of \(\cot x\), \(\sec x\), and \(\csc x\) follow from reciprocal and quotient relationships.
  • All standard trig derivative rules assume radian measure.
  • Composite trig functions require the chain rule.
  • Products and quotients involving trig functions require product or quotient rule structure first.
  • Derivative signs explain increasing, decreasing, maximum, and minimum behavior on trig graphs.

Once these formulas are comfortable, continue into related derivative families such as derivatives of exponential and logarithmic functions. Together, power, trigonometric, exponential, logarithmic, inverse, product, quotient, and chain rules form the core toolkit for early calculus.

Derivatives of Trigonometric Functions
Derivatives of Trigonometric Functions
Derivatives of Trigonometric Functions
Derivatives of Trigonometric Functions
Shares: