Harmonic Form: a cos x + b sin x Explained with Worked Examples

A combination can be written as a single cosine, , where and .

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 Harmonic form: a cos x + b sin x means

Expanding and comparing with gives and .

Squaring and adding gives , and dividing gives .

The form shows that the maximum value is and the minimum is , and it makes equations easy to solve. The two forms are linked by compound angle: sine and compound angle: cosine, the single-term version is harmonic form: R sin, and the result simplifies equations, as with the double angle: sine.

This page is part of Trigonometric identities in Trigonometry. Topics that work alongside it: Harmonic form: R sin(x + α), Compound angle: cosine, Compound angle: sine, Double angle: tangent, Small-angle approximations, Properties of the sine, cosine and tangent graphs and Inverse trigonometric functions: ranges.

What is it used for?

A sum a cos x + b sin x can be written as a single wave R cos(x − α), where R = √(a² + b²).

How to use harmonic form: a cos x + b sin x

  1. Write .
  2. Find .
  3. Find , checking the quadrant.
  4. Use the single cosine to solve or find the maximum.

Graph

3 cos x + 4 sin x is a wave of amplitude 50123456-6-4-202463 cos x + 4 sin x is a wave of amplitude 5xyy = 3 cos x + 4 sin xmaximum R = 5minimum −RGraph with x from 0 to 6.3 and y from -6 to 6. Shows the curve y = 3 cos x + 4 sin x; the curve maximum R = 5; the curve minimum −R.

The sum of the two waves is a single wave with amplitude R = √(3² + 4²) = 5.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: write in harmonic form

Write in the form .

Worked example
Answer
5cos⁡(x−53.1∘)5\cos(x-53.1^{\circ})
  1. Find R
  2. Find α
  3. Write the result

Example 2: find the maximum

Find the maximum value of .

Worked example
Answer
55
  1. Use the harmonic form
    The maximum of is .
  2. Calculate R

Example 3: cos x + √3 sin x

Write in the form .

Worked example
Answer
2cos⁡(x−60∘)2\cos(x - 60^{\circ})
  1. Find R
  2. Find α

Special cases

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

3cos x + 4sin x

R = √(9 + 16)

5.

same

α = arctan(4/3)

0.9273 rad.

5cos x + 12sin x

R

13.

cos x + sin x

R

1.4142.

Word problems

a cos x + b sin x = R cos(x − α), with R = √(a² + b²), cos α = a/R, sin α = b/R. Its maximum is R and its minimum −R.

R

a = 3, b = 4.

  1. √25
  2. Check: ✓5

α

tan α = 4/3, first quadrant.

  1. arctan 1.3333
  2. Check: ✓0.9273

R Higher

a = 5, b = 12.

  1. √169
  2. Check: ✓13

R Higher

a = b = 1.

  1. √2
  2. Check: ✓1.4142

Common mistakes

R = a + b

sum ✗

√(a² + b²) ✓

Pythagoras.

tan α = a/b

inverted ✗

b/a ✓

Matches cos form.

Ignoring the quadrant

always first ✗

check signs of a, b ✓

Quadrant.

Max is a or b

a ✗

R ✓

Amplitude.

Exam tips

  1. R = √(a² + b²).
  2. tan α = b/a.
  3. Max R, min −R.
  4. Check quadrant of α.
  5. Use to solve a cos x + b sin x = c.

Practice questions

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

1. R for 6cos x + 8sin x Foundation

10

2. R for 8cos x + 15sin x Foundation

17

3. α for cos x + sin x (rad), 4 dp Foundation

0.7854

4. R for 2cos x + 3sin x, 4 dp Higher

3.6056

5. α for 5cos x + 12sin x (rad), 4 dp Higher

1.176

6. Max of 7cos x + 24sin x Higher

25

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
R cos(x − α).
Amplitude (R)
√(a² + b²).
Phase angle (α)
tan α = b/a.
Combined wave
Single cosine.
Compound angle
cos(x − α) expansion.
Maximum value
R.

Frequently asked questions

How do I write a cos x + b sin x as one cosine?

R cos(x − α) with R = √(a² + b²) and tan α = b/a.

What is the maximum value?

R.

How do I find α?

arctan(b/a), adjusted for the quadrant.

How do I solve a cos x + b sin x = c?

Rewrite and solve R cos(x − α) = c.

Which page covers the sine form?

harmonic form R sin(x + α).

Which page covers compound angles?

compound angle cosine.

More in Trigonometry and the formula sheets.