- #1
jschmid2
- 6
- 0
Homework Statement [/b]
I would like to solve a second order ODE, by breaking it up into two first order ODES. However, I'm having a bit of difficultly here.
The ODE is [tex]y''=-(\frac{1}{x}y'+y)[/tex]
and the true solution is Bessel of first kind, order zero.
I have tried setting z=y' which means
z'=y''=the equation shown above.
However, I am having difficultly implementing the [tex]\frac{1}{x}[/tex]
I'm trying to program it in matlab, but none of the ODE solvers knows how to deal with the 1/x.
Any ideas?
I would like to solve a second order ODE, by breaking it up into two first order ODES. However, I'm having a bit of difficultly here.
The ODE is [tex]y''=-(\frac{1}{x}y'+y)[/tex]
and the true solution is Bessel of first kind, order zero.
I have tried setting z=y' which means
z'=y''=the equation shown above.
However, I am having difficultly implementing the [tex]\frac{1}{x}[/tex]
I'm trying to program it in matlab, but none of the ODE solvers knows how to deal with the 1/x.
Any ideas?