we know that
$$a = \dfrac{dv}{dt}$$
dividing numerator and denominator by $dx$, we get $$a=v\dfrac{dv}{dx}$$ provided that $dx$ is not equal to zero or instantaneous velocity not equal to zero
when I questioned my teacher that this formula implies instantaneous velocity should not be zero or their should be no turnaround points then why we use this formula for deriving equations of particle's position , velocity which is performing SHM, but got no satisfactory answer.
what is wrong in my argument and what are the conditions under which above mentioned equation is not true?