Writing acosx+bsinx in the form Rcos(x-a)

Tiedot: Writing acosx+bsinx in the form Rcos(x-a)