How to use Shooting Method

I'm very new to Matlab so ill try my best to explain the problem, please bare with me.
I have the following function
((x-c)^2)-B^2)(y''-(a^2)*y)=((2B^2)/((x-c)^2))*(y-(x-c)y')
, where -1<x<1, y=y(z), The eigenvalue c to be "guessed", B=constant.
Guessing the function y=1 at x=-1, I need to code a shooting method, for -1<x<1, where y satisfies the following boundary conditons:
At x=1: Aexp(-a)=y and [(1-c)-(B^2)/(1-c)]*(-aAexp(-a))=[(1-c)-(B^2)/(1-c)]y'
At x=-1 Aexp(-a)=y and [(-1-c)-(B^2)/(-1-c)]*(aAexp(-a))=[(-1-c)-(B^2)/(-1-c)]y'.
If the problem can't be done for B as a general constant it could be set for 0<B<1 or B=0.5, say.
I'm completely lost and don't have any idea how to get started, any help would be much appreciated.
Thanks.

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Elementary Math 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by