I am currently investigating the motion of a particle around a black hole. The Lagrangian for the system is
$$ \mathcal{L}=F(r)\dot{t}^2-\frac{\dot{r}^2}{F(r)}-(r\dot{\phi})^2 $$
Where $ F(r) = 1 - 1/r $. Dots represent differentiation wrt a parameter $ s $. This gives constants of motion:
$$ F(r)\dot{t} = E $$ $$ r^2\dot{\phi} = L $$
The Lagrangian can be re-written in terms of $u=1/r$ and becomes
F[u_] := 1 - u;
L[u_, t_, p_] := F[u]*D[t, s]^2 - D[u, s]^2/(F[u]*u^4) - (D[p, s]/u)^2;
Solving the Euler-Lagrange equation can be done in one line as
Solve[D[D[L[u[s], t[s], p[s]], u'[s]], s] == D[L[u[s], t[s], p[s]], u], u''[s]]
Which gives
$$
\ddot u = \frac{(5 u-4) \dot u^2}{(u-1)u}
$$
Solving numerically in Mathematica is done below (u
has been denoted w
here)
solu = NDSolve[{w''[s] == ((-4 + 5 w[s])(w'[s])^2)/((-1 + w[s]) w[s]), w'[0] == 0, w[0] == 1/6}, {w, w'}, {s, 0, 10}]
but this gives a constant w
(so u
) for the whole range. Why is this? Obviously the particle is going to move if we put it around a black hole.
w[s]==1/6
! $\endgroup$