3E

The sum of sine and cosine

Write a sin x + b cos x as R sin(x + α) or R cos(x − α) using an auxiliary angle, read off its maximum and minimum, and solve equations and inequations of the form a sin x + b cos x = c.

Add a sine wave to a cosine wave with the same period and you might expect a mess. In fact you always get another perfect sine wave, just taller and shifted sideways. Writing it that way turns hard equations into easy ones, and gives the maximum and minimum for free.

One wave from two

Sketch $y = \sin x$ and $y = \cos x$ and add their heights (as in 1D). The sum is zero where the heights are opposite, at $x = \tfrac{3\pi}4$ and $\tfrac{7\pi}4$. At $x = \tfrac\pi4$ both are $\tfrac{1}{\sqrt2}$, giving $\sqrt2$. It looks exactly like $y = \sin x$ moved left $\tfrac\pi4$ and stretched by $\sqrt2$. Expanding confirms it:

$$\sqrt2\sin\left(x + \tfrac\pi4\right) = \sqrt2\left(\sin x \cdot \tfrac{1}{\sqrt2} + \cos x \cdot \tfrac{1}{\sqrt2}\right) = \sin x + \cos x$$

y = a sin x + b cos x

Orange: the sum. Blue dashed: y = a sin x. Pink dashed: y = b cos x. The orange curve is a sine wave with amplitude R, shifted left by α.

Try this

Before moving anything, predict the height of the highest point of the orange curve for $a = 3$, $b = 4$. Then set $a = 1$, $b = 1$ and check that the maximum is $\sqrt2 \approx 1.41$, at $x = \tfrac\pi4$.

The auxiliary angle method

Example 1●●

Write $\sqrt3\sin x - \cos x$ in the form $R\sin(x - \alpha)$, with $R \gt 0$ and $0 \le \alpha \lt 2\pi$.

$R\sin(x - \alpha) = R\cos\alpha\sin x - R\sin\alpha\cos x$
Expand the target form.
$R\cos\alpha = \sqrt3$ and $R\sin\alpha = 1$
Match the coefficient of sin x, then of cos x.
$R^2 = 3 + 1 = 4$, so $R = 2$.
Square and add, using cos² + sin² = 1.
$\alpha = \dfrac\pi6$, so $\sqrt3\sin x - \cos x = 2\sin\left(x - \dfrac\pi6\right)$.
cos α = √3/2 and sin α = ½, both positive, so α is in the first quadrant.

Once it is one wave, the extremes are immediate. $R\sin(x - \alpha)$ has maximum $R$ and minimum $-R$, because sine runs between $-1$ and $1$. For example, $3\sin x + 4\cos x$ has maximum $5$ and minimum $-5$.

Solving a sin x + b cos x = c

Example 2●●●

Solve $5\sin x + 12\cos x = 6.5$ for $0^\circ \le x \le 360^\circ$, to the nearest $0.1^\circ$.

$5\sin x + 12\cos x = 13\sin(x + \alpha)$, where $\alpha = \tan^{-1}\tfrac{12}{5} \approx 67.38^\circ$
R = √(25 + 144) = 13. With R sin(x + α): R cos α = 5 and R sin α = 12, both positive, so α is acute. Keep α in the calculator memory.
$13\sin(x + \alpha) = 6.5$, so $\sin(x + \alpha) = \tfrac12$
$x + \alpha = 150^\circ$ or $390^\circ$ (since $30^\circ$ is below the range)
Shift the domain: if 0 ≤ x ≤ 360, then α ≤ x + α ≤ 360 + α, roughly 67.4° to 427.4°.
$x \approx 82.6^\circ$ or $322.6^\circ$
Subtract α, using the stored value.

This also gives a neat way to do $\sin x + \cos x = 1$ from 3D without squaring: $\sqrt2\sin\left(x + \tfrac\pi4\right) = 1$, so $x + \tfrac\pi4 = \tfrac\pi4, \tfrac{3\pi}4, \tfrac{9\pi}4$, giving $x = 0, \tfrac\pi2, 2\pi$, with no false solutions to check.

Inequations

Solve the equation first, then use the shape of the single wave to decide which pieces satisfy the inequality. For $5\sin x + 12\cos x \ge 6.5$ on $0^\circ \le x \le 360^\circ$: at $x = 0$ the left side is $12$, which is bigger than $6.5$, so the wave starts above the line, drops below it at $82.6^\circ$ and comes back up at $322.6^\circ$. So $0^\circ \le x \le 82.6^\circ$ or $322.6^\circ \le x \le 360^\circ$.

Your turn

Write $2\cos x - \sin x$ in the form $R\cos(x + \alpha)$, with $\alpha$ acute in degrees to 1 decimal place.

Show the working

$R\cos(x + \alpha) = R\cos\alpha\cos x - R\sin\alpha\sin x$. So $R\cos\alpha = 2$ and $R\sin\alpha = 1$. $R = \sqrt5$, and $\tan\alpha = \tfrac12$ with both positive, so $\alpha \approx 26.6^\circ$. Hence $2\cos x - \sin x = \sqrt5\cos(x + 26.6^\circ)$.

Flashcards
$R$ for $asin x + bcos x$
$R = \sqrt{a^2 + b^2}$
Maximum of $asin x + bcos x$
$\sqrt{a^2 + b^2}$ (minimum is $-\sqrt{a^2 + b^2}$)
$sin x + cos x$ as one wave
$\sqrt2\sin\left(x + \tfrac\pi4\right)$
Practice
  1. Find the maximum value of $3\sin x + 4\cos x$.

  2. Write $2\cos x - \sin x$ as $R\cos(x + \alpha)$. Find $R$, correct to 2 decimal places.

  3. $\sin x + \cos x$ equals:

  4. $\sqrt3\sin x - \cos x = R\sin(x - \alpha)$. Then:

  5. $3\sin x - 4\cos x = 5\cos(x - \alpha)$ with $0^\circ \le \alpha \lt 360^\circ$. Find $\alpha$ to the nearest degree.

  6. Find the minimum value of $5\sin x + 12\cos x + 2$.

  7. Solve $\sqrt3\sin x - \cos x = 1$ for $0^\circ \le x \le 360^\circ$. Enter both solutions in degrees, separated by &.

  8. An equation $a\sin x + b\cos x = c$ has no solutions when:

  9. Exam style: solve $5\sin x + 12\cos x = 6.5$ for $0^\circ \le x \le 180^\circ$, to 1 decimal place.

  10. Exam style: find the value of $x$ between $0^\circ$ and $90^\circ$ where $5\sin x + 12\cos x$ is greatest, to 1 decimal place.

Formula sheet