All articles
Mathematics
alevel-trig

Mastering Harmonic Form: Expressing acosx + bsinx as Rcos(x ± α)

Learn how to simplify complex trigonometric expressions into harmonic form. This guide covers the R-formula, step-by-step derivations, and exam-ready techniques for A-Level Maths.

Math Instructor AI 22 September 2026 8 min read

Mastering Harmonic Form: Expressing acosx + bsinx as Rcos(x ± α)

In A-Level Mathematics, you will frequently encounter expressions involving both sine and cosine terms, such as $a \cos x + b \sin x$. While these are standard, they can be difficult to solve when they appear in equations or when you need to find maximum and minimum values. The harmonic form allows you to collapse these two terms into a single trigonometric function, making the expression much easier to manipulate.

By expressing $a \cos x + b \sin x$ in the form $R \cos(x \mp \alpha)$, you transform a complex sum into a single wave function. This technique is a cornerstone of A-Level trigonometry and is essential for solving equations, sketching graphs, and modelling periodic behaviour.

Understanding the Harmonic Form

The goal is to rewrite $a \cos x + b \sin x$ as $R \cos(x - \alpha)$ or $R \cos(x + \alpha)$. To do this, we rely on the compound angle identities:

$$R \cos(x - \alpha) = R(\cos x \cos \alpha + \sin x \sin \alpha)$$ $$R \cos(x + \alpha) = R(\cos x \cos \alpha - \sin x \sin \alpha)$$

By expanding these, we can equate the coefficients of $\cos x$ and $\sin x$ to the original expression. This allows us to determine the values of $R$ (the amplitude) and $\alpha$ (the phase shift).

Step-by-Step Derivation

To express $a \cos x + b \sin x$ in the form $R \cos(x - \alpha)$, follow these steps:

  1. Expand the target form: Write $R \cos(x - \alpha) = R \cos x \cos \alpha + R \sin x \sin \alpha$.
  2. Equate coefficients: Compare this to $a \cos x + b \sin x$. You will see that $a = R \cos \alpha$ and $b = R \sin \alpha$.
  3. Find R: Square both equations and add them: $a^2 + b^2 = R^2 \cos^2 \alpha + R^2 \sin^2 \alpha$. Since $\cos^2 \alpha + \sin^2 \alpha = 1$, we get $R = \sqrt{a^2 + b^2}$.
  4. Find α: Divide the sine coefficient by the cosine coefficient: $\frac{R \sin \alpha}{R \cos \alpha} = \frac{b}{a}$, which simplifies to $\tan \alpha = \frac{b}{a}$. Thus, $\alpha = \arctan(\frac{b}{a})$.

Worked Example 1: Basic Conversion

Question: Express $3 \cos x + 4 \sin x$ in the form $R \cos(x - \alpha)$, where $R > 0$ and $0 < \alpha < \frac{\pi}{2}$.

Solution: We want $3 \cos x + 4 \sin x = R \cos(x - \alpha) = R \cos x \cos \alpha + R \sin x \sin \alpha$.

Equating coefficients: $R \cos \alpha = 3$ $R \sin \alpha = 4$

Calculate $R$: $R = \sqrt{3^2 + 4^2} = \sqrt{9 + 16} = \sqrt{25} = 5$.

Calculate $\alpha$: $\tan \alpha = \frac{4}{3}$ $\alpha = \arctan(\frac{4}{3}) \approx 0.927$ radians.

Result: $5 \cos(x - 0.927)$.

Worked Example 2: Solving an Equation

Question: Solve $5 \cos x - 12 \sin x = 6$ for $0 \le x < 2\pi$.

Solution: First, express $5 \cos x - 12 \sin x$ as $R \cos(x + \alpha)$. $R = \sqrt{5^2 + (-12)^2} = 13$. $R \cos x \cos \alpha - R \sin x \sin \alpha = 5 \cos x - 12 \sin x$. So, $R \cos \alpha = 5$ and $R \sin \alpha = 12$. $\tan \alpha = \frac{12}{5} \implies \alpha \approx 1.176$.

Now solve $13 \cos(x + 1.176) = 6$: $\cos(x + 1.176) = \frac{6}{13} \approx 0.4615$. $x + 1.176 = \arccos(0.4615) \approx 1.091$ or $2\pi - 1.091 = 5.192$. $x_1 = 1.091 - 1.176 = -0.085$ (add $2\pi$ to get $6.198$). $x_2 = 5.192 - 1.176 = 4.016$.

Common Mistakes

  • Inverting the ratio: A common error is calculating $\tan \alpha = \frac{a}{b}$ instead of $\frac{b}{a}$. Always check which term is attached to the sine and which to the cosine.
  • Sign errors: When converting $a \cos x - b \sin x$, ensure the sign inside the bracket matches the identity. If you use $R \cos(x + \alpha)$, the expansion is $R \cos x \cos \alpha - R \sin x \sin \alpha$, so the signs must align.
  • Degree vs Radians: Always check if your question requires radians or degrees. Most A-Level papers default to radians unless specified otherwise.

Frequently Asked Questions

Why do we use Rcos instead of Rsin? Both are valid. The choice usually depends on the form requested in the exam question. If the question asks for $R \cos(x - \alpha)$, you must use that specific form.

How do I know if I should use a plus or minus sign? Look at the original expression. If you have $a \cos x - b \sin x$, you should aim for $R \cos(x + \alpha)$ because the expansion of $\cos(x + \alpha)$ contains a minus sign.

What if R is negative? By convention, $R$ is defined as a positive constant ($R > 0$). If your calculation leads to a negative $R$, recheck your squaring process.

Conclusion

Mastering the harmonic form is a vital skill for A-Level Maths, turning intimidating trigonometric equations into simple, solvable problems. By consistently applying the expansion and coefficient comparison method, you can approach these questions with confidence. To see these concepts in action with narrated, animated visualisations, head over to MathInstructor AI and generate your free lesson today.

Topics

a level maths
harmonic form
r cos
r sin
trig combinations
alevel-trig
trigonometric identities
compound angle formulae

Want this explained out loud?

Turn any question into a narrated, animated lesson in seconds.

Try the Studio free