Hi!
Thank you for the response. I solved it with someone's help. The mistake I was doing was to use 0.5mv2-m*a*x to replace E. However, using v0 and x0 instead of v and x in this expression works to give the desired result and also, one has to put t0 = 0.
1. Using V(x)= -max, in the following equation:
\int_{x_0}^x \frac{dx}{\pm \sqrt{{\frac{2}{m}\{E-V\left( x\right)\}}}}
\ = t - t0
to get:
x = x0 + v0 + at2/2
E is total energy and V(x) is potential energy. I have tried hard integrating it in various ways but do not seem to get the...