Which of the following functions of time represent

Which of the following functions of time represent (a) S.H.M., and (b) periodic but not simple harmonic motion ? Give the period for each case: