The R-formula (a cos + b sin)

The R-formula (a cos + b sin)

Spec E6 · AQA A-Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • acos⁡θ+bsin⁡θa\cos\theta+b\sin\theta can be written as Rcos⁡(θ−α)R\cos(\theta-\alpha) with R=a2+b2R=\sqrt{a^2+b^2} and tan⁡α=ba\tan\alpha=\frac ba.
  • Write Rcos⁡α=aR\cos\alpha=a and Rsin⁡α=bR\sin\alpha=b first.
  • The expression has maximum RR and minimum −R-R.
  • acos⁡θ+bsin⁡θ=ca\cos\theta+b\sin\theta=c has solutions only if ∣c∣≤R|c|\le R.
  • Change the interval for the new angle before solving.

The R-formula

Expand Rcos⁡(θ−α)R\cos(\theta-\alpha) and match coefficients to find RR and α\alpha.

The R-formula writes acos⁡θ+bsin⁡θa\cos\theta+b\sin\theta as a single trig function. Expanding Rcos⁡(θ−α)=Rcos⁡αcos⁡θ+Rsin⁡αsin⁡θR\cos(\theta-\alpha)=R\cos\alpha\cos\theta+R\sin\alpha\sin\theta and comparing coefficients gives Rcos⁡α=aR\cos\alpha=a and Rsin⁡α=bR\sin\alpha=b.

Squaring and adding gives R=a2+b2R=\sqrt{a^2+b^2}, and dividing gives tan⁡α=ba\tan\alpha=\frac ba. The amplitude is always RR.

−11234567−8−6−4−22468xyy = a cos x + b sin x
Change a and b: the amplitude is always R = √(a² + b²).
  • RRa2+b2\sqrt{a^2+b^2}
  • tan⁡α\tan\alphaba\frac{b}{a}

Worked example

Write 3cos⁡θ+4sin⁡θ3\cos\theta+4\sin\theta in the form Rcos⁡(θ−α)R\cos(\theta-\alpha).

Write 5cos⁡θ+12sin⁡θ5\cos\theta+12\sin\theta as Rcos⁡(θ−α)R\cos(\theta-\alpha). What is RR?

The four forms

Any of four equivalent forms works; expand your chosen form and match coefficients.

You can choose any of four equivalent forms. For acos⁡θ+bsin⁡θa\cos\theta+b\sin\theta, expand the form you want and match coefficients with aa and bb.

In each case R=a2+b2R=\sqrt{a^2+b^2}. For Rcos⁡(θ−α)R\cos(\theta-\alpha), tan⁡α=coefficient of sin⁡coefficient of cos⁡\tan\alpha=\frac{\text{coefficient of }\sin}{\text{coefficient of }\cos}.

−1123456−6−4−2246xy(0.927, 5)3cosθ + 4sinθ5cos(θ − 0.927)
3 cos θ + 4 sin θ and 5 cos(θ − 0.927) are the same curve (R = 5, α = arctan 4/3 ≈ 0.927 rad). Maximum value R = 5 at θ = α.

R cos(θ − α)

Rcos⁡αR\cos\alpha:
aa
Rsin⁡αR\sin\alpha:
bb

R cos(θ + α)

Rcos⁡αR\cos\alpha:
aa
Rsin⁡αR\sin\alpha:
−b-b

R sin(θ + α)

Rcos⁡αR\cos\alpha:
bb
Rsin⁡αR\sin\alpha:
aa

R sin(θ − α)

Rcos⁡αR\cos\alpha:
bb
Rsin⁡αR\sin\alpha:
−a-a

Worked example

Write 3sin⁡θ−cos⁡θ\sqrt3\sin\theta-\cos\theta in the form Rsin⁡(θ−α)R\sin(\theta-\alpha).

Write 4cos⁡θ+3sin⁡θ4\cos\theta+3\sin\theta as Rcos⁡(θ−α)R\cos(\theta-\alpha). What is tan⁡α\tan\alpha?

Maximum and minimum values

Since −1≤cos⁡(θ−α)≤1-1\le\cos(\theta-\alpha)\le1, the expression lies between −R-R and RR.

The maximum of acos⁡θ+bsin⁡θa\cos\theta+b\sin\theta is RR and the minimum is −R-R.

For 3cos⁡θ+4sin⁡θ3\cos\theta+4\sin\theta the maximum is 55 at θ=α=53.1∘\theta=\alpha=53.1^\circ, and the minimum is −5-5 at θ=233.1∘\theta=233.1^\circ.

For 10+3cos⁡θ+4sin⁡θ10+3\cos\theta+4\sin\theta the greatest value is 1515 and the least is 55. In a model such as tide depth, RR is the amplitude of the variation.

−11234567−6−4−2246xy(53.1°, 5)(233.1°, −5)y = 3cos x + 4sin x
y = 3cos x + 4sin x (radians) has maximum 5 and minimum −5.

What is the greatest value of 2+3sin⁡θ−cos⁡θ2+\sqrt3\sin\theta-\cos\theta?

Solving equations

Write the left side as Rcos⁡(θ−α)R\cos(\theta-\alpha), so cos⁡(θ−α)=cR\cos(\theta-\alpha)=\frac cR; no solution if ∣c∣>R|c|>R.

To solve acos⁡θ+bsin⁡θ=ca\cos\theta+b\sin\theta=c, write the left side as Rcos⁡(θ−α)R\cos(\theta-\alpha), so cos⁡(θ−α)=cR\cos(\theta-\alpha)=\frac{c}{R}.

A solution exists only if ∣c∣≤R|c|\le R. Work out the range of θ−α\theta-\alpha for the solution interval before listing solutions.

123456−6−4−2246xy113.1°353.1°y = 3cos x + 4sin xy = 2.5
3cos x + 4sin x = 2.5 has two solutions in one turn: x ≈ 113.1° and 353.1°.

Worked example

Solve 3cos⁡θ+4sin⁡θ=2.53\cos\theta+4\sin\theta=2.5 for 0∘≤θ<360∘0^\circ\le\theta<360^\circ.

Second example

Solve 5sin⁡x+12cos⁡x=6.55\sin x+12\cos x=6.5 for 0∘≤x<360∘0^\circ\le x<360^\circ.

Does 3cos⁡θ+4sin⁡θ=63\cos\theta+4\sin\theta=6 have solutions?

Modelling

Rewriting as k+Rcos⁡(ωt−α)k+R\cos(\omega t-\alpha) shows the range and the time of the first maximum.

Periodic models, such as tides, often take the form D=k+acos⁡(ωt)+bsin⁡(ωt)D=k+a\cos(\omega t)+b\sin(\omega t).

Rewriting as D=k+Rcos⁡(ωt−α)D=k+R\cos(\omega t-\alpha) shows that the depth oscillates between k−Rk-R and k+Rk+R, with the first maximum when ωt=α\omega t=\alpha.

24681012246810121416xy(1.77, 15)(3.99, 12)(7.77, 5)(11.56, 12)DD = 12
Depth D (m) against t (hours); D is below 12 m from t = 3.99 to 11.56.

Worked example

D=10+3cos⁡(30t)∘+4sin⁡(30t)∘D=10+3\cos(30t)^\circ+4\sin(30t)^\circ. Find the maximum depth and for how long the depth is below 1212 m in 0≤t≤120\le t\le12.

In D=10+5cos⁡(30t−53.1)∘D=10+5\cos(30t-53.1)^\circ, what is the least depth?

Try an exam question

(a) Express 6cos⁡θ+8sin⁡θ6\cos\theta+8\sin\theta in the form Rcos⁡(θ−α)R\cos(\theta-\alpha), where R>0R>0 and 0∘<α<90∘0^\circ<\alpha<90^\circ. (b) Write down the maximum value of 6cos⁡θ+8sin⁡θ6\cos\theta+8\sin\theta.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the value of rr.

1 mark, marked against the mark scheme

Revision notes