6C

Applications of trigonometric derivatives

Tangents and normals to trigonometric curves, finding stationary points and sketching curves such as y = sin x + cos x and y = x + sin x, and optimisation problems involving angles.

Everything in this section is a method you already know from the curve-sketching and optimisation chapters. The only new part is the equation $y' = 0$: it is now a trigonometric equation, so you solve it with exact values and ASTC, and you must find every solution in the domain.

Tangents and normals

Same recipe as always: find the point, find the gradient from $y'$, then use $y - y_1 = m(x - x_1)$. The normal has gradient $-\dfrac{1}{m}$.

Example 1●●

Find the equations of the tangent and normal to $y = \cos 2x$ at $x = \dfrac{\pi}{4}$.

$y = \cos\dfrac{\pi}{2} = 0$, so the point is $\left(\tfrac{\pi}{4}, 0\right)$.
Substitute into the curve to get the point.
$y' = -2\sin 2x$, so $m = -2\sin\dfrac{\pi}{2} = -2$.
Differentiate with the chain rule, then substitute x = π/4.
Tangent: $y = -2\left(x - \tfrac{\pi}{4}\right)$, that is $y = -2x + \dfrac{\pi}{2}$.
Point-gradient form, then expand.
Normal: $y = \tfrac12\left(x - \tfrac{\pi}{4}\right)$, that is $y = \tfrac12x - \dfrac{\pi}{8}$.
The normal is perpendicular, so its gradient is −1 ÷ (−2) = ½.

Stationary points and sketching

For a trig curve on a restricted domain such as $0 \le x \le 2\pi$, the sketch needs the endpoints too, since the highest or lowest value may be at an end.

Example 2●●●

Sketch $y = x - 2\sin x$ for $0 \le x \le 2\pi$, showing stationary points, inflection points and endpoints.

$y' = 1 - 2\cos x = 0$ gives $\cos x = \tfrac12$, so $x = \dfrac{\pi}{3}$ or $x = \dfrac{5\pi}{3}$ (cosine is positive in quadrants 1 and 4).
Set the first derivative to zero. This is a trig equation.
$y\left(\tfrac{\pi}{3}\right) = \tfrac{\pi}{3} - \sqrt3 \approx -0.68$ and $y\left(\tfrac{5\pi}{3}\right) = \tfrac{5\pi}{3} + \sqrt3 \approx 6.97$.
Find the y-values exactly; decimals help with plotting.
$y'' = 2\sin x$. At $\tfrac{\pi}{3}$ it is $\sqrt3 \gt 0$: a local minimum. At $\tfrac{5\pi}{3}$ it is $-\sqrt3 \lt 0$: a local maximum.
Classify with the second derivative.
$2\sin x = 0$ at $x = \pi$ inside the domain, and $\sin x$ changes sign there. Inflection at $(\pi, \pi)$.
Inflections are where y'' = 0 and changes sign.
Endpoints $(0, 0)$ and $(2\pi, 2\pi)$.
The endpoints finish the picture.
y = x − 2 sin x

The graph of Example 2. The readout shows the first and second derivatives at P.

Try this

Drag P until $y' = 0$. Check that $y'' \gt 0$ at the minimum and $y'' \lt 0$ at the maximum. Then find where $y''$ changes sign and confirm it matches the inflection at $(\pi, \pi)$.

Example 3●●

Find the stationary points of $y = x + \sin x$ for $0 \le x \le 2\pi$ and state their nature.

$y' = 1 + \cos x = 0$ when $\cos x = -1$, so $x = \pi$.
Solve y′ = 0.
$y' \gt 0$ on both sides of $\pi$, so $(\pi, \pi)$ is a stationary point of inflection. The curve is increasing everywhere.
Since cos x ≥ −1, y′ is never negative. The second derivative is 0 at x = π, so it can't decide; use the sign of y′ instead.

Optimisation with angles

When the shape of something depends on an angle, write the quantity as a function of $\theta$, state the domain, and solve $\dfrac{dA}{d\theta} = 0$. Often the derivative becomes a quadratic in $\cos\theta$ or $\sin\theta$.

Example 4: a gutter●●●

A metal strip $30$ cm wide is bent into a gutter. The base is $10$ cm, and each $10$ cm side slopes outwards at an angle $\theta$ to the horizontal, where $0 \lt \theta \lt \pi$. Find the angle that gives the largest cross-section area, and that area.

$A = \tfrac12(10 + 10 + 20\cos\theta) \times 10\sin\theta = 100\sin\theta(1 + \cos\theta)$
The cross-section is a trapezium. Its height is 10 sin θ, and the top is 10 + 2 × 10 cos θ wide.
$A' = 100\left(\cos\theta + \cos^2\theta - \sin^2\theta\right) = 100\left(2\cos^2\theta + \cos\theta - 1\right)$
Product rule, then replace sin²θ with 1 − cos²θ so everything is in cos θ.
$A' = 100(2\cos\theta - 1)(\cos\theta + 1) = 0$, so $\cos\theta = \tfrac12$ (since $\cos\theta = -1$ needs $\theta = \pi$, outside the domain). So $\theta = \dfrac{\pi}{3}$.
It factors like a quadratic in cos θ.
$A' \gt 0$ just before $\tfrac{\pi}{3}$ and $A' \lt 0$ just after, so it is a maximum.
Test the sign of A′ either side: cos θ + 1 is always positive, so the sign comes from 2cos θ − 1.
$A = 100 \times \dfrac{\sqrt3}{2} \times \dfrac32 = 75\sqrt3 \approx 129.9$ cm².
Substitute back.

Your turn

Find the maximum value of $y = \sin x + \sqrt3\cos x$ for $0 \le x \le \dfrac{\pi}{2}$.

Show the working

$y' = \cos x - \sqrt3\sin x = 0$ gives $\tan x = \dfrac{1}{\sqrt3}$, so $x = \dfrac{\pi}{6}$. Then $y = \tfrac12 + \sqrt3 \times \tfrac{\sqrt3}{2} = \tfrac12 + \tfrac32 = 2$. Check the endpoints: $y(0) = \sqrt3 \approx 1.73$ and $y\left(\tfrac{\pi}{2}\right) = 1$. So the maximum is $2$.

Practice
  1. Find the gradient of the tangent to $y = \cos x$ at $x = \dfrac{\pi}{2}$.

  2. The tangent to $y = \sin x$ at the origin is:

  3. Find the gradient of the normal to $y = 2\sin x$ at $x = \dfrac{\pi}{3}$.

  4. The tangent to $y = \tan x$ at $x = \dfrac{\pi}{4}$ has equation $y = 2x + b$. Find $b$ correct to two decimal places.

  5. For $0 \le x \le 2\pi$, $y = x - 2\sin x$ has a local minimum at:

  6. $y = x + 2\cos x$ has a local maximum for $0 \le x \le \pi$. Find its $x$-coordinate correct to two decimal places.

  7. The curve $y = x + \sin x$:

  8. The tangent to $y = \sin x$ at $x = \pi$ cuts the $y$-axis at $(0, c)$. Find $c$ correct to two decimal places.

  9. Find the maximum value of $y = \sin x + \sqrt3\cos x$ for $0 \le x \le \dfrac{\pi}{2}$.

  10. Exam style: a rectangle is drawn inside a semicircle of radius $5$, with its base on the diameter. Its top corners are on the arc, at angle $\theta$ from the diameter, so its width is $10\cos\theta$ and height $5\sin\theta$. Find the largest possible area.

Formula sheet