Find the largest and smallest values of the functions
a) f1(x)=acosx+bsinx; b) f2(x)=acos2x+bcosxsinx+csin2x.