Worked solution
Set up the identity for the harmonic form
Introduce R and alpha to be found.
Compare coefficients of sin and cos
Matching each term gives two equations for R and alpha.
Find R by squaring and adding the coefficients
R = sqrt(a^2+b^2) as an exact surd.