A particle of charge q and mass m moves along the x-axis under the action of an electric field E=k−cx where c is a positive constant and x is the distance from the point, where the particle was initially at rest. Caluculate:
(a) distance travelled by the particle before it comes to rest.
(b) acceleration at the moment, when it comes to rest.