Where $k,k_0,k_1$ and $a$ are all positive
$a=-\frac{d^{2} x}{d t^{2}}=-w^{2} x$
$w=\sqrt{\frac{k}{m}}$
$-wherein$
$x=A \sin (w t+\delta)$
$a=-K x$
$ x =x+a$
where $ a=-K(x+a)$
In $ S.H.M $ acceleration is directly proportional to the displacement from the mean position
Also the acceleration is in the opposite direction of displacement