Under the influence of electric field
Fe=qE=q(E0−ax)
mdvdt=q(E0−ax)
⟹vdvdx=qm(E0−ax)
⟹∫vdv=∫qm(E0−ax)dx
⟹v22=qm(E0x−ax22)+C
Using initial condition,
At x=0, v=0 and C=0
v2=2qm[E0x−ax22]
When the particle comes to rest (i.e V = 0)
0=E0x−ax22
⟹x=2E0a
∴x=2E0a is the distance covered by the particle till the moment it comes to rest.