Need Help Understanding Shooting Method

  • Context: Graduate 
  • Thread starter Thread starter tau1777
  • Start date Start date
  • Tags Tags
    Method Shooting method
Click For Summary

Discussion Overview

The discussion revolves around the shooting method for solving a set of differential equations dependent on a parameter, κ. Participants explore how to implement this method to find values of κ and the function y[x] using boundary conditions at two points.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant describes their approach to reduce a system of ODEs into a second order differential equation and seeks guidance on how to solve for κ and y[x] using boundary conditions.
  • Another participant suggests perturbing the value of κ and calculating the derivative of the mismatch with respect to κ to apply Newton's method for refining κ.
  • A later reply outlines a method for calculating the mismatch at two different κ values and proposes using these to build the derivative needed for the next guess of κ.
  • There is a question about whether to use the first or second mismatch value when calculating the derivative, indicating uncertainty in the method.
  • Another participant reassures that it should not matter much which mismatch is used, emphasizing the iterative nature of Newton's method.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and confidence in the implementation of the shooting method. While some agree on the general approach, there remains uncertainty regarding specific steps and calculations, particularly in the application of Newton's method.

Contextual Notes

Participants discuss the need for clarity on how to update the value of κ based on the mismatch, indicating potential limitations in their understanding of the method's application.

tau1777
Messages
29
Reaction score
0
I'm trying to solve a set of differential equations that all depend on a parameter, κ. I can use the system of ODEs to reduce the four equations into one second order differential equation, for y[x;κ]. I've seen certain tricks to solving equations such as d^2y/dx^2 = κ y[x].But I can not put my equation in that form. So the real trick is,how do I solve for κ and y[x] with only one equation.

My idea is as follows, I will look at the limit of the differential equation at x =0 (ODE1), and the limit of it at the other boundary x = a, (ODE2).Then I will technically have two differential equations. Then I pick a value for κ, from some physics that I know about the problem, i.e. set κ = constant. After this I solve ODE1 in the domain x= 0 to x0 and I solve ODE2 in the domain x0 to x=a. Finally I check whether or not the function y[x] matches at the point x0. If it doesn't match I try this again until I find the value of κ that makes the two sides match up.

Its the last part that I don't know how to implement? How do I use the mis-match to get me a new value of κ? I've read several sources about this idea, under "shooting method", but I really don't get how I should update the values of κ.

Thanks for reading, and any help is much appreciated.
 
Physics news on Phys.org
tau1777 said:
I'm trying to solve a set of differential equations that all depend on a parameter, κ. I can use the system of ODEs to reduce the four equations into one second order differential equation, for y[x;κ]. I've seen certain tricks to solving equations such as d^2y/dx^2 = κ y[x].But I can not put my equation in that form. So the real trick is,how do I solve for κ and y[x] with only one equation.

My idea is as follows, I will look at the limit of the differential equation at x =0 (ODE1), and the limit of it at the other boundary x = a, (ODE2).Then I will technically have two differential equations. Then I pick a value for κ, from some physics that I know about the problem, i.e. set κ = constant. After this I solve ODE1 in the domain x= 0 to x0 and I solve ODE2 in the domain x0 to x=a. Finally I check whether or not the function y[x] matches at the point x0. If it doesn't match I try this again until I find the value of κ that makes the two sides match up.

Its the last part that I don't know how to implement? How do I use the mis-match to get me a new value of κ? I've read several sources about this idea, under "shooting method", but I really don't get how I should update the values of κ.

Thanks for reading, and any help is much appreciated.

In the shooting method, you don't only evaluate the mismatch at one value of k. You also slightly perturb the value of k, and then see how it affects the mismatch. You numerically calculate the derivative of the mismatch wrt k, and use Newton's method to provide a new estimate of k, aimed to reducing the mismatch to zero.
 
Thanks very much Chestermiller. I just have one more question and then I think I will get it. So using what you are saying I would do something like this:

1) pick κ1
- Solve ODE1 to get y_interior[x0]
- Solve ODE 2 to get y_exterior[x0]
- Find mismatch : δy1= y_int[x0] - y_ext[x0]

2) pick κ2
- Solve ODE1 to get y_interior_2[x0]
- Solve ODE 2 to get y_exterior_2[x0]
- Find mismatch : δy2= y_int_2[x0] - y_ext_2[x0]

Define, δκ = κ2 - κ2

In building the derivative with respect to κ, I would want δy/ δκ right? But the question that remains is do I used δy1 or δy2?

Thanks again.
 
I posted the question in another forum, and I think they cleared up the issue. Basically I have do something like this:

1) pick κ1
- Solve ODE1 to get y_interior[x0]
- Solve ODE 2 to get y_exterior[x0]
define y1= y_int[x0] - y_ext[x0]

2) pick κ2
- Solve ODE1 to get y_interior_2[x0]
- Solve ODE 2 to get y_exterior_2[x0]
define y2= y_int_2[x0] - y_ext_2[x0]

Now define δy = y2 - y1, and δκ = κ2 - κ1, and thus I can build the derivative dδy/dδκ, which I can use to get my next guess.

This the correct method right?
 
tau1777 said:
Thanks very much Chestermiller. I just have one more question and then I think I will get it. So using what you are saying I would do something like this:

1) pick κ1
- Solve ODE1 to get y_interior[x0]
- Solve ODE 2 to get y_exterior[x0]
- Find mismatch : δy1= y_int[x0] - y_ext[x0]

2) pick κ2
- Solve ODE1 to get y_interior_2[x0]
- Solve ODE 2 to get y_exterior_2[x0]
- Find mismatch : δy2= y_int_2[x0] - y_ext_2[x0]

Define, δκ = κ2 - κ2

In building the derivative with respect to κ, I would want δy/ δκ right? But the question that remains is do I used δy1 or δy2?

Thanks again.

It shouldn't matter much. Newton's method is iterative, so unless dy/dk is constant, you keep applying the same Newton's equation over and over again until the mismatch adequately converges to zero.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
682
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K