Position, velocity and acceleration in SHM

From $x = A\cos(\omega t + \phi)$, differentiating gives the velocity and acceleration, so speed is greatest at equilibrium, acceleration is greatest at the ends, and the phase is set by the starting conditions.

From AP Physics C: Mechanics.