The function acosx + bsinx =rcos(x-alpha)