hi there,(adsbygoogle = window.adsbygoogle || []).push({});

I'm trying to plot r against [tex]\phi[/tex] by solving the following ODEs using runge-kutta. The problem i'm having is with the square root. How do I know when it will be positive and when it will be negative? If this is a simple question I apologise I'm not that great with the maths :).

E and L and M are constants.

r>0.

[tex]

V^2(r) = \left(1 - \frac{2M}{r} \right)\frac{L^2}{r^2}

[/tex]

[tex]

\frac{d \phi}{d \lambda} &= \frac{L}{r^2}

[/tex]

[tex]

\frac{dr}{d\lambda} &= \pm\sqrt{E^2 - V^2(r)}

[/tex]

Thanks

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Confused with square root ODE

Loading...

Similar Threads - Confused square root | Date |
---|---|

B Simple double integration of square wave question | Aug 16, 2017 |

I Following an example. Implies L{2du/dt+1}=2s+1. I'm Confused. | Feb 9, 2017 |

I Confused about Finding the Green Function | May 29, 2016 |

Confusion about notation and convention regarding differentials as objects and operators | Jun 9, 2015 |

Sturm-Liouville confusion | Dec 12, 2014 |

**Physics Forums - The Fusion of Science and Community**