Differentiating trigonometric functions
The derivatives of sin x, cos x and tan x in radians, the chain rule standard forms, and differentiating products, quotients, powers and compositions involving trigonometric functions.
Calculus with polynomials, exponentials and logs gives you the tools. Now sine and cosine join in, and they turn out to be the neatest functions of all: each one's derivative is the other, give or take a minus sign.
The three standard derivatives
Look at the gradient of $y = \sin x$ as you move along it. At $x = 0$ it climbs most steeply. At $x = \tfrac{\pi}{2}$, the top of the hill, the gradient is $0$. At $x = \pi$ it falls most steeply. Plot those gradients and you get another wave, which starts at its highest point. That is the shape of $\cos x$.
Orange: y = sin x. Dashed blue: y = cos x. The readout measures the gradient of the orange curve at P.
Drag P to $x = 0$, then to $x = \pi$ (about 3.14). Predict each gradient before you look. Then find two places where the gradient is $0$.
The graph can show the shape is a cosine wave, but not that its height is exactly $1$. That needs the limit $\dfrac{\sin h}{h} \to 1$, which is proved in 6F. The result for $\cos x$ follows by shifting, and $\tan x = \dfrac{\sin x}{\cos x}$ then gives $\sec^2 x$ by the quotient rule.
Differentiate (a) $y = 5\sin x - 2\cos x$ and (b) $y = \tan x + x^2$.
The chain rule forms
For $\sin(\text{something})$, differentiate the outside to get $\cos(\text{same something})$, then multiply by the derivative of the inside. The inside stays the same.
The most common case is a linear inside, $ax + b$, where the derivative of the inside is just $a$. For example $\dfrac{d}{dx}\sin(ax + b) = a\cos(ax + b)$.
Differentiate (a) $\cos(3x - \tfrac{\pi}{4})$ (b) $\tan\dfrac{x}{2}$ (c) $\sin(x^3)$ (d) $\cos^2 x$.
Products, quotients and other functions
Nothing new here: use the product and quotient rules exactly as before, with the trig derivatives slotted in.
Differentiate (a) $x^2\sin x$ (b) $e^{2x}\cos x$ (c) $\dfrac{\cos x}{x}$ (d) $\ln(\sin x)$.
Second derivatives
Differentiate $\sin x$ four times: $\cos x$, $-\sin x$, $-\cos x$, $\sin x$. You are back where you started, and after two steps you had the negative of the original. With $\sin nx$ each step also brings out a factor of $n$.
Show that $y = 3\sin 2x - \cos 2x$ satisfies $y'' = -4y$.
Your turn
Find the gradient of $y = x\cos x$ at $x = \pi$.
Show the working
Product rule: $y' = \cos x - x\sin x$. At $x = \pi$: $\cos\pi - \pi\sin\pi = -1 - 0 = -1$.
$\dfrac{d}{dx}\cos 4x =$
Chain rule: the outside $\cos$ becomes $-\sin$, and the inside $4x$ has derivative $4$. So $-4\sin 4x$.
Find the gradient of $y = \sin 2x$ at $x = 0$.
$y' = 2\cos 2x$. At $x = 0$: $2\cos 0 = 2$.
Find the gradient of $y = 3\tan x$ at $x = \dfrac{\pi}{4}$.
$y' = 3\sec^2 x = \dfrac{3}{\cos^2 x}$. At $x = \tfrac{\pi}{4}$, $\cos^2 x = \tfrac12$, so $y' = 3 \times 2 = 6$.
$\dfrac{d}{dx}\sin^2 x =$
$\sin^2 x = (\sin x)^2$. Bring down the $2$, keep the inside, then multiply by the derivative of $\sin x$: $2\sin x\cos x$.
Find the derivative of $y = x\cos x$ at $x = 2\pi$.
Product rule: $y' = \cos x - x\sin x$. At $x = 2\pi$: $\cos 2\pi - 2\pi\sin 2\pi = 1 - 0 = 1$.
$\dfrac{d}{dx}\left(e^x\sin x\right) =$
Product rule: $e^x\sin x + e^x\cos x = e^x(\sin x + \cos x)$.
$y = 5\cos 2x$ satisfies $y'' = -ky$. Find $k$.
$y' = -10\sin 2x$ and $y'' = -20\cos 2x = -4(5\cos 2x) = -4y$. So $k = 4$.
$\dfrac{d}{dx}\tan(x^2) =$
Chain rule with inside $x^2$: the derivative of the inside is $2x$, and the inside stays as $x^2$. So $2x\sec^2(x^2)$.
Find the derivative of $y = \ln(\sin x)$ at $x = \dfrac{\pi}{4}$.
$y' = \dfrac{\cos x}{\sin x}$. At $x = \tfrac{\pi}{4}$, sine and cosine are both $\tfrac{1}{\sqrt2}$, so $y' = 1$.
Exam style: show that $\dfrac{d}{dx}\left(\dfrac{\sin x}{1 + \cos x}\right) = \dfrac{1}{1 + \cos x}$, then find the value of the derivative at $x = \dfrac{\pi}{2}$.
Quotient rule: $\dfrac{\cos x(1 + \cos x) - \sin x(-\sin x)}{(1 + \cos x)^2} = \dfrac{\cos x + \cos^2 x + \sin^2 x}{(1 + \cos x)^2}$. Since $\cos^2 x + \sin^2 x = 1$, the top is $1 + \cos x$, and cancelling gives $\dfrac{1}{1 + \cos x}$. At $x = \tfrac{\pi}{2}$: $\dfrac{1}{1 + 0} = 1$.
Coaching Centre