How to integrate an ordinary differential equation around a singular point?

wdlang
Messages
306
Reaction score
0
i have a second order ordinary differential equation of f(x):

f''+(E-A(A+1)/x^2)f=0, where A is a positive integer, E is a real constant

the domain is [0, \infty).

the boundary condition is f(x=0)=0

since this is a linear equation, i only need to determine f up to a overall constant

how to do this numerically from the origin and outward?

we can prove that in the neighborhood of the origin, f is on the order of x^(A+1)
 
Physics news on Phys.org
a naive idea is to use the boundary condition mentioned above and the 4th-order Runge-Kutta method to do it

my concern is that in near the origin, the A(A+1)/x^2 term is too large

and therefore i have no idea whether the RK method will work, or if it does, how to control the error by shrinking the step length.
 
If I do not mistaken, the solution

f(x) = C\sqrt{x}J_{A+1/2}(\sqrt{E}x)

where C is an arbitrary constant fit your ODE and the boundary condition f(x=0)=0.
 
kosovtsov said:
If I do not mistaken, the solution

f(x) = C\sqrt{x}J_{A+1/2}(\sqrt{E}x)

where C is an arbitrary constant fit your ODE and the boundary condition f(x=0)=0.

thanks a lot

however, i am not interested in the analytical solution

i want a general numerical method to deal with such singular points

the equation above is just an example, for which, luckily, an analytical solution is available
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...

Similar threads

Back
Top