I will reuse equation for energy from the geodesics chapter:
We are considering the path of light rays (ϵ=0\epsilon = 0ϵ=0)