Find the largest and smallest values of the functions
a) \(f_1 (x) = a \cos x + b \sin x\); b) \(f_2 (x) = a \cos^2x + b \cos x \sin x + c \sin^2x\).