# Calculus/Derivatives of Trigonometric Functions

Sine, cosine, tangent, cosecant, secant, cotangent. These are functions that crop up continuously in mathematics and engineering and have a lot of practical applications. They also appear in more advanced mathematics, particularly when dealing with things such as line integrals with complex numbers and alternate representations of space like spherical and cylindrical coordinate systems.

We use the definition of the derivative, i.e.,

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

to work these first two out.

Let us find the derivative of sin x, using the above definition.

 $f(x) = \sin{x} \, \!$ $f'(x) = \lim_{h \to 0}{\sin(x+h)-\sin{x} \over h}$ Definition of derivative $= \lim_{h \to 0}{\cos(x)\sin(h)+\cos(h)\sin(x) - \sin(x) \over h}$ trigonometric identity $= \lim_{h \to 0}{\cos(x)\sin(h)+(\cos(h) - 1)\sin(x) \over h}$ factoring $= \lim_{h \to 0}{\cos(x)\sin(h) \over h}$ $+\lim_{h \to 0}{(\cos(h) - 1)\sin(x) \over h}$ separation of terms $= \cos{x} \, \! \times 1 + \sin{x} \, \! \times 0$ application of limit $= \cos{x} \, \!$ solution

Now for the case of cos x.

 $f(x) = \cos{x} \, \!$ $f'(x) = \lim_{h \to 0}{\cos(x+h)-\cos{x} \over h}$ Definition of derivative $= \lim_{h \to 0}{\cos(x)\cos(h)-\sin(h)\sin(x) - \cos(x) \over h}$ trigonometric identity $= \lim_{h \to 0}{\cos(x)(\cos(h) - 1)-\sin(x)\sin(h) \over h}$ factoring $=\lim_{h \to 0}{\cos(x)(\cos(h) - 1) \over h}$ $- \lim_{h \to 0}{\sin(x)\sin(h) \over h}$ separation of terms $= \cos{x} \, \! \times 0 - \sin{x} \, \! \times 1$ application of limit $= -\sin{x} \, \!$ solution

Therefore we have established

 Derivative of Sine and Cosine$\frac{d}{dx} \sin(x) = \cos(x)\,\!$$\frac{d}{dx} \cos(x) = -\sin(x)\,\!$

To find the derivative of the tangent, we just remember that:

$\tan(x) = \frac{\sin(x)}{\cos(x)}$

which is a quotient. Applying the quotient rule, we get:

$\frac{d}{dx} \tan(x) = \frac{\cos^2(x) + \sin^2(x)}{\cos^2(x)}$

Then, remembering that $\cos^2(x) + \sin^2(x) = 1$, we simplify:

 $\frac{\cos^2(x) + \sin^2(x)}{\cos^2(x)}$ $=\frac{1}{\cos^2(x)}$ $=\sec^2(x)\,$

 Derivative of the Tangent$\frac{d}{dx} \tan(x) = \sec^2(x)\,\!$

For secants, we again apply the quotient rule.

$\sec(x) = \frac{1}{\cos(x)}$
\begin{align}\frac{d}{dx} \sec(x)&=\frac{d}{dx}\frac{1}{\cos(x)}\\ &=\frac{\cos(x)\frac{d 1}{dx}-1\frac{d \cos(x)}{dx}}{\cos(x)^2}\\ &=\frac{\cos(x)0-1(-\sin(x))}{\cos(x)^2} \end{align}

Leaving us with:

$\frac{d}{dx} \sec(x) = \frac{\sin(x)}{\cos^2(x)}$

Simplifying, we get:

 Derivative of the Secant$\frac{d}{dx} \sec(x) = \sec(x) \tan(x)\,\!$

Using the same procedure on cosecants:

$\csc(x) = \frac{1}{\sin(x)}$

We get:

 Derivative of the Cosecant$\frac{d}{dx} \csc(x) = -\csc(x) \cot(x)\,\!$

Using the same procedure for the cotangent that we used for the tangent, we get:

 Derivative of the Cotangent$\frac{d}{dx} \cot(x) = -\csc^2(x) \,\!$