The displacement, in centimetres, of a particle from an origin, O, at time t seconds, is given by s(t)=t2cost+2tsint , 0≤t≤5 .
a. Find the maximum distance of the particle from O.
b. Find the acceleration of the particle at the instant it first changes direction.