A sum asinx+bcosx is a single sine wave in disguise: Rsin(x+α) with R=a2+b2. Find R and α, and an equation with two functions becomes a basic one.
Recognize the task
A sine and a cosine of the same angle added, each to the first power: sinx+3cosx=1, 3sinx−cosx=2, "find the maximum of 3sinx+4cosx".
The method expands the sine sum formula backwards; the site has no separate lesson on it, the nearest is sum identities.
Steps
Step
On sinx+3cosx=1 on [0,2π)
1
Compute R.R=a2+b2.
R=1+3=2
2
Find α from cos α = a / R and sin α = b / R.Then asinx+bcosx=Rsin(x+α).
cosα=21, sinα=23: α=3π
3
Solve the single sine equation.Over the shifted interval x+α∈[α,2π+α) (basic equations).
sin(x+3π)=21: x+3π=65π,613π
4
Subtract α and check.
x=2π,611π; both give 1 ✓
Worked examples
Example 1 · maximum value
read off R
3sinx+4cosx=5sin(x+α)
R=9+16
maximum 5, minimum −5
Example 2 · a difference
R sin(x − α)
3sinx−cosx=2sin(x−6π)
cosα=23, sinα=21
=2⇒x−6π=4π,43π⇒x=125π,1211π
Example 3 · the trace
shifted interval
sinx+3cosx=1⇒2sin(x+3π)=1
x=2π,611π
See it happen
Add a sine wave of height 1 and a cosine wave of height 3, a quarter-period apart: the sum is one wave of height 2, shifted by 3π. R is that height and α that shift; they are the length and angle of the vector (a,b).
Common mistakes
α from the wrong ratio
✗tanα=ba
✓tanα=ab, and check the quadrant with the signs of a and b