Actually, the wording of the problem is ambiguous. The distance traveled depends on the way acceleration changes.
EDIT:
I will give a formula for the distance traveled if the proper-acceleration vs. proper-time is given as [itex]a_0(\tau)[/itex].
[tex]
\frac{d v}{d t} = \frac{ \frac{ d v' \, \left( 1+ \frac{v' \, u}{c^2} \right) - (v' + u) \, \frac{u \, d v'}{c^2} }{\left( 1+ \frac{v' \, u}{c^2} \right)^2} }{ \frac{d t' + \frac{u \, d x'}{c^2}}{\sqrt{1 - \frac{u^2}{c^2}}} } = \frac{d v'}{d t'} \, \frac{ \left( 1 - \frac{u^2}{c^2} \right)^{3/2} }{ \left( 1 + \frac{u \, v'}{c^2} \right)^3 }[/tex]
If [itex]v' = 0[/itex], and [itex]u = v[/itex] (instantaneous proper frame), then [itex]d v'/d t' = a_0[/itex]. Also, since we want to use proper time instead of LAB time, we have:
[tex]
\frac{d t}{d \tau} = \left( 1 - \frac{v^2}{c^2} \right)^{-1/2}[/tex]
Combining these two equations, we have:
[tex]
\frac{d v}{d \tau} = \frac{d v}{d t} \, \frac{d t}{d \tau} = a_0 \, \left( 1 - \frac{v^2}{c^2} \right)^{3/2} \, \left( 1 - \frac{v^2}{c^2} \right)^{-1/2} = a_0 \, \left( 1 - \frac{v^2}{c^2} \right)[/tex]
The variables in this ODE may be separated:
[tex]
\frac{d v}{1 - v^2 / c^2} = a_0(\tau) \, d\tau[/tex]
and then integrated:
[tex]
\int_{v_i}^{v}{ \frac{d \tilde{v}}{1 - \tilde{v}^2 / c^2} } = \int_{0}^{\tau}{ a_0(\tilde{\tau}) \, d\tilde{\tau} }[/tex]
For shorthand, we denote [itex]A(\tau) \equiv \int_{0}^{\tau}{ a_0(\tilde{\tau}) \, d\tilde{\tau} }[/itex]. The integral over velocity is performed by introducing the hyperbolic trigonometric substitution (the parameter [itex]\eta[/itex] is called rapidity):
[tex]
\frac{\tilde{v}}{c} = \tanh(\eta) \Rightarrow d\tilde{v} = c \, \mathrm{sech}^2(\eta) \, d\eta, \ \frac{1}{1 - \tilde{v}^2 / c^2} = \cosh^2(\eta)[/tex]
and we have:
[tex]
\eta(\tau) - \eta_i = A(\tau)[/tex]
Thus, we have the following implicity dependence of velocity on proper time:
[tex]
v(\tau) = c \, \tanh^{-1} \left(\eta_i + A(\tau) \right), \eta_i \equiv \tanh \left(\frac{v_i}{c} \right)[/tex]
Once we know [itex]\eta(\tau)[/itex], we can find the dependence of LAB time t on proper time τ:
[tex]
\frac{d t}{d \tau} = \left( 1 - \frac{v^2}{c^2} \right)^{-1/2} = \cosh \left( \eta(\tau) \right)[/tex]
which may be integrated:
[tex]
t(\tau) = \int_{0}^{\tau} {\cosh \left( \eta (\tilde{\tau}) \right) \, d\tilde{\tau} }[/tex]
Finally, the displacement is:
[tex]
dx = v \, dt = c \, \tanh \left( \eta(\tau) \right) \, \cosh \left( \eta(\tau) \right) \, d\tau = c \, \sinh \left( \eta(\tau) \right) \, d\tau[/tex]
[tex]
\Delta x = c \, \int_{0}^{\tau} { \sinh \left( \eta(\tilde{\tau} ) \right) \, d\tilde{\tau} }[/tex]