The question is as follows :
The acceleration $a$ of a particle is given as $a(x) = x$ where $x$ is the position of the object on the $x$-axis. Then find the position of the object in terms of time $t$ i.e., find $x(t)$. It has been given that $x(t=0)=0$ i.e., the object is at the origin at time $t = 0$.
My attempt so far:
We can relate velocity and acceleration as functions of position using $v = \frac{dx}{dt}$ and $a = \frac{dv}{dt}$
Dividing, we get $v\ dv = a \ dx$. Now we can integrate $v$ and $a$ from $x = 0$ to $x$ by putting $a = x$ in the above differential equation.
Therefore, $v(x) = x$. Now if we would use $v = \frac{dx}{dt}$ and integrate $x$ from $0$ to $x$, then
$$x = \frac{dx}{dt}\\ \frac{dx}{x} = dt\\ \ln|x|\bigg{|}_0^x=t $$
here, $\ln(x)$ is undefined at the lower limit $x = 0$.
So, how can we move forward from this?