Writing a cos x + b sin x as R cos(x - α)

Combining a cosine and a sine into a single wave makes equations easier to solve and gives the maximum and minimum straight away.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What this topic covers

Use R = √(a² + b²) and tan α = b/a (harmonic form R cos(x − α)); the sine version is harmonic form R sin(x + α). The method comes from the compound angle formula and gives the maximum value R directly.

Each part of this topic has its own page with the formula, worked examples and a solver: Small-angle approximations, Reciprocal functions, sec² identity, cosec² identity, Compound angle: sine, Compound angle: cosine, Compound angle: tangent, Double angle: sine, Double angle: cosine (three forms), Double angle: tangent.

Closely related topics: Trigonometric equations, Exact trig values and radians, Trigonometric identities, Right-angled trigonometry.

What is it used for?

Harmonic form writes a cos x + b sin x as a single wave R cos(x − α). It gives the maximum value and makes the equation easy to solve.

How to solve it

  1. Expand R cos(x - α) = R cos α cos x + R sin α sin x.
  2. Match coefficients: R cos α = a and R sin α = b.
  3. R = √(a² + b²).
  4. tan α = b/a, choosing the quadrant from the signs of a and b.
  5. The maximum value is R and the minimum is -R.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: express 3cos(x)+4sin(x) in the form R cos(x - a)

Worked out by the solver on this page. Press the button to try it yourself.

Harmonic form R cos(x − α) Answer checked
Answer
5cos⁡(x−53.13∘)5\cos(x - 53.13^{\circ})
  1. Expand the target form with the addition formula
  2. Match the coefficients of cos x and sin x
  3. Find R
  4. Find α using tan α = (R sin α)/(R cos α)
  5. Check: compare both sides at x = 0.2, 1.1, 2.7, 4.5
  6. Maximum and minimum

Example 2: write sin(x)+cos(x) in the form R sin(x+a)

Worked out by the solver on this page. Press the button to try it yourself.

Harmonic form R cos(x − α) Answer checked
Answer
2sin⁡(x+45∘)\sqrt{2}\sin(x + 45^{\circ})
  1. Expand the target form with the addition formula
  2. Match the coefficients of cos x and sin x
  3. Find R
  4. Find α using tan α = (R sin α)/(R cos α)
  5. Check: compare both sides at x = 0.2, 1.1, 2.7, 4.5
  6. Maximum and minimum

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

R

3cos x + 4sin x: R = 5

√(9 + 16).

α

tan α = 4/3: α = 53.13°

In the first quadrant.

Maximum

Greatest value is R = 5

cos(x − α) = 1.

A sine form

sin x + cos x = √2 sin(x + 45°)

R = √2.

Word problems

Match a cos x + b sin x with R cos(x − α) by expanding, then find R = √(a² + b²) and tan α = b/a.

R

Express 3cos x + 4sin x as R cos(x − α).

  1. R√(9 + 16) = 5
  2. Check: R² = a² + b² ✓5

α

Find α.

  1. tan α4/3
  2. α53.13°
  3. Check: 5 cos 53.13° = 3 ✓53.13

A sine form Higher

Write sin x + cos x as R sin(x + α).

  1. R√2
  2. α45°
  3. Check: √2 sin 45° = 1 ✓1.4142

Maximum Higher

Greatest value of 3cos x + 4sin x.

  1. R5
  2. Check: the maximum equals R ✓5

Common mistakes

R = a + b

R = 7 ✗

R = 5 ✓

Use Pythagoras.

tan α = a/b

α = 36.87° ✗

α = 53.13° ✓

tan α = b/a for the cosine form.

Wrong quadrant for α

always acute ✗

check the signs of a and b ✓

cos α = a/R, sin α = b/R.

Max is a or b

4 ✗

R = 5 ✓

The amplitude is R.

Exam tips

  1. R = √(a² + b²).
  2. tan α = b/a (cosine form).
  3. Check the quadrant.
  4. Max R, min −R.
  5. Expand to verify.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. R for 5cos x + 12sin x Foundation

13

2. α for 5cos x + 12sin x (2 dp) Foundation

67.38

3. R for cos x + sin x (4 dp) Foundation

1.4142

4. Max of 6cos x + 8sin x Higher

10

5. R for 2cos x + 2sin x (4 dp) Higher

2.8284

6. α for cos x + sin x (degrees) Higher

45

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Harmonic form
A single sine or cosine wave.
Amplitude
R.
Phase angle
α.
Combined wave
Sum of sine and cosine.
Compound angle
The expansion used.
Maximum value
R.

Frequently asked questions

What is harmonic form?

Writing a cos x + b sin x as R cos(x − α).

How do I find R and α?

R = √(a² + b²) and tan α = b/a.

What is the maximum value?

R.

Which page covers the cosine form?

harmonic form R cos(x − α).

Which page covers the sine form?

harmonic form R sin(x + α).

Which page covers the underlying formula?

compound angle cosine.

More in Trigonometry and the formula sheets.