Q.
The equation of a SHM of amplitude a and angular frequency ω in which all distances are measured from one extreme position and time is taken to be zero at the other extreme position is
If SHM. starts from means position, then x0=asin(ωt+θ0)
Now, x=x0−(−a)⇒x=x0+a=a+asin(ω+θ0)
At t=0,x=2a ⇒2a=a+asin(ω(0)+θ0) ⇒θ0=2π or x=a+asin(ωt+2π) ⇒x=a+acosωt