The equation of an SHM with amplitude A and angular frequency ω in which all the distances are measured from one extreme, position and time is taken to be zero at the other extreme position is:

A x=A sinωt
B x=A(cosωt+sinωt)
C x=A−A cosωt
D x=A+A cosωt