How to solve y''+y'/x+y=0 using B.C.s y(0)=0 and y'(0)=1

2 views (last 30 days)
I have tried Dsolve,ode45,ode23,ode15s. But didn't prove any luck.
  2 Comments
Roger Stafford
Roger Stafford on 16 Feb 2017
The reason for your trouble with the numerical ode’s is that initially at x = 0, you must have y” an infinite value to satisfy the equation y” + y’/x + y = 0. That is because y’/x is equal to 1/0 = infinity at that first point. This creates unsurmountable difficulties for the numerical ode procedures. You probably need to reconsider either those initial conditions or else the differential equation itself.
Torsten
Torsten on 16 Feb 2017
Edited: Torsten on 16 Feb 2017
In general, the solution to your ODE is
y(x)=const1*J_0(x)+const2*Y_0(x)
with J and Y being Bessel functions.
Best wishes
Torsten.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!