Let f(x)=acosx+bsinx, where a and b are real constants. One antiderivative of f is F(x). The curve y=F(x) passes through the three points (0,2),(2π,5) and (π,4).
(i) Find the general expression for F(x), writing the constant of integration as C.
(ii) Using each of the three given points successively, establish three equations in a,b and C.
(iii) Solve the simultaneous equations to obtain the values of a,b and C.