It seems that the differential equation solver gets hung up on the boundary conditions for some reason. Let us therefore do some intermediate steps by hand. First, consider the general solution of the differential equation:
DSolve[{z''[t] + 1/z[t]^2 == 0}, z[t], t]
Solve[(-(Log[1 + (C[1] + Sqrt[C[1]] Sqrt[C[1] + 2/z[t]]) z[t]]/C[1]^(3/2))
+ (Sqrt[C[1] + 2/z[t]] z[t])/C[1])^2 == (t + C[2])^2, z[t]]
This result means that an ordinary equation must be satisfied by z[t] in order to give the differential equation solution. Let's rewrite it as expr==0 with
expr = (-(Log[1 + (C[1] + Sqrt[C[1]] Sqrt[C[1] + 2/z[t]]) z[t]]/C[1]^(3/2))
+ (Sqrt[C[1] + 2/z[t]] z[t])/C[1])^2 - (t + C[2])^2;
Note that t only enters as t^2, which means that we can immediately replace t by its absolute value Abs[t] in all further considerations, since time in physics is a real variable (For simplicity, let us concentrate on the region where Abs[t]=t for now, and analytically continue the solution to the other region when we are done). We also see that there are two integration constants C[1],C[2] that we should use to obtain the boundary conditions we are interested in. First condition for t=0:
Series[expr /. t -> 0, {z[0], 0, 0}] // Normal
-C[2]^2
implies C[2] -> 0. For the second condition we need the first derivative z'[t]:
zp = z'[t] /. Solve[D[expr /. C[2] -> 0, t] == 0, z'[t]][[1]] // Simplify
(t C[1]^(3/2) Sqrt[ C[1] + 2/z[t]])/(-Log[ 1 + (C[1] + Sqrt[C[1]] Sqrt[C[1] + 2/z[t]]) z[t]] + Sqrt[C[1]] Sqrt[C[1] + 2/z[t]] z[t])
This almost looks like C[1] -> 0 should be chosen. However, we should take this limit carefully:
zpBC = Series[zp, {C[1], 0, 0}] // Normal
(3 t)/z[t]^2
We see that the first derivative is non-zero for C[1] -> 0, but we still need to take t -> -Infinity. It makes sense that z[t] should go to infinity in that limit as well (particle falling in from far away), but we need to make sure that it approaches infinity quicker than Sqrt[t] for the above first derivative to vanish. Indeed, we find:
Series[expr /. C[2] -> 0, {C[1], 0, 0}] // Normal
-t^2 + (2 z[t]^3)/9
So that
z[t] == (3^(2/3) t^(2/3))/2^(1/3)
And the first derivative properly goes to zero as t -> -Infinity:
zpBC /. z[t] -> (3^(2/3) t^(2/3))/2^(1/3)
2^(2/3)/(3^(1/3) t^(1/3))
Therefore, z[t] == (3^(2/3) t^(2/3))/2^(1/3) is likely the solution you are after.
We can also check explicitly:
z[t_] := (3^(2/3) t^(2/3))/2^(1/3)
z''[t] + 1/z[t]^2
0
that the differential equation is indeed satisfied. Also, recall that by t we actually mean Abs[t]. This implies that substituting t -> -t also gives a solution. This one is actually the one you need, since for t<0 we have Abs[t] == -t and you expect the solution to be real on physical grounds.
t<0while the first one takes on complex values. – Kagaratsch Dec 06 '16 at 13:55