Assume the medium varies on scales much longer than the wavelength and period, so the leading-order WKB method gives the local eikonal equation. For the phase in the stated ansatz, defineThe local dispersion relation becomes the Hamilton--Jacobi equationDifferentiating it with respect to , using equality of mixed derivatives, and choosing a ray whose velocity isgivesHere the dot, or , is the total derivative along a ray,and not merely a partial time derivative at fixed position.
Finally, differentiate along the same trajectory:because the last two terms cancel. The Hamiltonian ray-tracing equations are therefore
Solved by gpt-5.6-sol high.
Codex Wiki