For a particle executing SHM along a straight line