Solving 3rd order ODE with B.C. of Numan and Dirichlet Type

  • Context: Graduate 
  • Thread starter Thread starter oby7842
  • Start date Start date
  • Tags Tags
    Ode Type
Click For Summary
SUMMARY

The discussion centers on solving a third-order ordinary differential equation (ODE) given by d^3y/dx^3 = (1-y)/y^3 with boundary conditions (B.C.) at x = 50, where y = 1 (Dirichlet B.C.), dy/dx = 0 (Neumann B.C.), and d^2y/dx^2 = 0. The user initially attempted to use MATLAB's ode45 function but encountered issues with the solution remaining constant across the range. A workaround was suggested by adjusting the boundary condition to y(50) = 1 + 1e-15, which yielded a valid solution. Further inquiries were raised regarding the implications of an unbounded upper limit and the use of bvp4c for incorporating an unknown parameter.

PREREQUISITES
  • Understanding of third-order ordinary differential equations (ODEs)
  • Familiarity with MATLAB's ode45 and bvp4c functions
  • Knowledge of boundary conditions, specifically Dirichlet and Neumann types
  • Concept of equilibrium points in differential equations
NEXT STEPS
  • Research the stability of solutions for third-order ODEs
  • Learn about the implications of boundary conditions on solution behavior
  • Explore the use of MATLAB's bvp4c for solving boundary value problems
  • Investigate methods for determining unknown parameters in differential equations
USEFUL FOR

Researchers, mathematicians, and engineers working on differential equations, particularly those dealing with boundary value problems and numerical methods in MATLAB.

oby7842
Messages
9
Reaction score
0
Hiii,

In my research i encountared with following 3rd order ODE:

d^3y/dx^3 = (1-y)/y^3.

my B.C. are:

at x = 50 y=1(dirichlet B.C.) ; dy/dx=0 ( numan B.C.) and d^2y/dx^2=0.

i need to integrate from x=0:50. I tried ode45 but it gives same result as B.C. throughout the range. If anyone have any idea how can i approach to solve this problem please let me know. thanks.

Omar Bin Yusuf
 
Physics news on Phys.org


the command is
[x,y]=ode45(@(x,y)[y(2);y(3);(1-y(1))/y(1)^3],[50 0],[1;0;0]);

I've tried, and obtained the same result as you. This is an equilibrium point of the system. if you try y(50)=1+1e-15, it blows up. If you try y(0)=1-1e-15, it blows up too (when reaching y=0).
 


Thanks gato. i tried with y(50)=1+1e-15. and it works. I have 3 more question i hope you will be able to help me.

1. In my problem the upper end ( x = 50 ) is not fixed. In original problem it was said that Y( as x goes to infinity) =1. at first I sovled the problem by assuming upper limit as 50. What should be the approach of fixing this upper limit.

2. Again although if I use y(50)=1+1e-15 and use ode45, we can see that y remains equal 1 far below x= 50. Why is this happening?

3. Inliterature i found for this problem authors described another BC by dy/dx(x=0)=alpha. where 'alpha' is unknown. So now can i solve this problem by bvp4c and solve the problem along with that unknown parameter? I tried but my results are heavily influenced by initial guess.

Thank you again for your reply. your ans really help me a lot.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K