Light ray paths near schwarzschild blackhole

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
32 replies · 11K views
nocks said:
That would be

[tex]\frac{d^2r}{d\lambda^2} = - \frac{L^2(3M-r)}{r^4}[/tex]

Which gives me the closest radius for a stable orbit of a photon as 3M

Reduce this second-order equation to two first-order equations by setting [itex]p = dr/d\lambda[/itex], so that [itex]dp/dt = d^2r/d\lambda^2[/itex]. The set of equations that describes the worldline of a photon then is

[tex] \begin{equation*}<br /> \begin{split}<br /> \frac{d \phi}{d \lambda} &= \frac{L}{r^2} \\<br /> \frac{dr}{d\lambda} &= p \\<br /> \frac{dp}{d \lambda} &= \frac{L^2(r - 3M)}{r^4}.\\<br /> \end{split}<br /> \end{equation*}[/tex]

Assuming that all required values are given, write a few lines of (pseudo)code that uses the simplest, most intuitive method (Euler's method) to solve these equations.
 
Physics news on Phys.org
Having a bit of trouble with this but I have p as

p = [tex]\frac{L^2(2M-r)}{2r^3}[/tex]
 
wow it's been a while since I looked at this project.
Thought i'd come back to it :)

George Jones said:
Reduce this second-order equation to two first-order equations by setting [itex]p = dr/d\lambda[/itex], so that [itex]dp/dt = d^2r/d\lambda^2[/itex]. The set of equations that describes the worldline of a photon then is

[tex] \begin{equation*}<br /> \begin{split}<br /> \frac{d \phi}{d \lambda} &= \frac{L}{r^2} \\<br /> \frac{dr}{d\lambda} &= p \\<br /> \frac{dp}{d \lambda} &= \frac{L^2(r - 3M)}{r^4}.\\<br /> \end{split}<br /> \end{equation*}[/tex]

Assuming that all required values are given, write a few lines of (pseudo)code that uses the simplest, most intuitive method (Euler's method) to solve these equations.
A few questions. Since I lack a good maths background, I would appreciate some advice on how I would implement these 3 equations into a numerical solver like Euler's or Runge-Kutta to get back some results that I could plot.
e.g. Do I pre-define L?, how do I know which direction the photon is travelling?

currently trying to use this : http://www.ee.ucl.ac.uk/~mflanaga/java/RungeKutta.html
 
Last edited: