Graduate Solving linear 2nd order IVP non-constant coefficient

Click For Summary
To solve the linear second-order initial value problem (IVP) given by f'' - a(x)f = 0 with specific initial conditions, numerical methods like Runge-Kutta are recommended, especially since the coefficient a(x) introduces complexity. The variable x represents arc-length, which can be switched to s, leading to the equation f''(s) + (c/(2sin(cs/2)))f(s) = 0. The presence of a singularity at s=0 complicates finding an analytic solution, making numerical approaches more viable. Suggestions include proposing a terminal value and integrating backward to explore the solution's nature. Overall, while an analytic solution is sought, numerical methods may provide essential insights into the problem.
member 428835
Hi PF!

Generally speaking, how would one solve $$f''-a(x) f = 0 : f(0)=0,f'(0)=1$$
Or if you could point me to a source that would be awesome too!
 
Physics news on Phys.org
Assuming that a(x) is known, I'd solve it numerically with Runge-Kutta or something similar.
 
  • Like
Likes member 428835
Quick question (I hope it's quick). Variable ##x## is arc-length of a given in parametric form. If it's okay with you, I'll switch variables so that arc-length is ##s##: $$f''(s) + a(s) f(s) = 0$$ where ##a(s)## is the square of the curvature of a line in the ##x-z## plane given in parametric form here $$x(s) = \frac{1}{c} \sin(c s)\\ z(s) = \frac{1}{c}(1- \cos(c s))$$
where ##c## is a constant. One formula of curvature is ##|\hat T'(s)|/|\hat r'(s)|## where ##\hat T## is the unit tangent vector to a curve given in parametric for as ##\hat r(t)##. Computing this in Mathematica gives ##a(s) = c/(2\sin(cs/2))##. Then the IVP is $$f''(s) + \frac{c}{2\sin(cs/2)} f(s) = 0$$ Any ideas for an analytic solution?
 
Now that you have changed notations, what do the primes mean? Is (') =d()/dx or is (') = d()/ds?
 
Dr.D said:
Now that you have changed notations, what do the primes mean? Is (') =d()/dx or is (') = d()/ds?
Sorry, prime denotes ##d/ds##. I tried letting ##f = \exp(u(s))## but that gives a non-linear 1st order IVP...
 
I still suggest obtaining a numerical solution first. This will tell you general shape of the solution, and from there educated guesses may give you a closed-form solution.
 
  • Like
Likes member 428835
Thanks!
 
What about using numerical method like Runge-Kutta 4?
 
Nguyen Son said:
What about using numerical method like Runge-Kutta 4?
Yea that's what Dr.D suggested. I was just wondering if an analytic solution existed.
 
  • #10
Dr.D said:
I still suggest obtaining a numerical solution first. This will tell you general shape of the solution, and from there educated guesses may give you a closed-form solution.
I wrote an RK4 technique, but I get no good response (I check the code on IVPs with analytic solutions and it works). The non-constant coefficient has a singularity at ##s=0##; how would you subvert this?
 
  • #11
i offer a textbook of ode https://drive.google.com/open?id=1JZXHplbM7tIBWYOVxUPx5Oa0Q-L0VC55
you can use "reduction of order method" page 242.
 
  • Like
Likes Nguyen Son
  • #12
Jone Oldman said:
i offer a textbook of ode https://drive.google.com/open?id=1JZXHplbM7tIBWYOVxUPx5Oa0Q-L0VC55
you can use "reduction of order method" page 242.
Hi Jone Oldman, and welcome to PF! Reduction of order requires knowing one solution though, which I don't know.
 
  • #13
The form you give in post #3 should tell you right away that there will be difficulties due to a singularity at the beginning. This is not "just a simple" IVP at all, but rather a very complex differential equation that will require special handling.
 
  • #14
Dr.D said:
The form you give in post #3 should tell you right away that there will be difficulties due to a singularity at the beginning. This is not "just a simple" IVP at all, but rather a very complex differential equation that will require special handling.
Any ideas on how to begin?
 
  • #15
One possibility for a numerical approach is to propose a terminal value, and integrate backwards toward the beginning to see where that takes you. Obviously where it takes you depends in most cases on the terminal value, but you could learn something about the nature of the solution this way.
 
  • #16
Dr.D said:
One possibility for a numerical approach is to propose a terminal value, and integrate backwards toward the beginning to see where that takes you. Obviously where it takes you depends in most cases on the terminal value, but you could learn something about the nature of the solution this way.
Thanks, I'll play around with it!
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K