Solving a non linear ODE with Matlab ode functions

조회 수: 13 (최근 30일)
Otoniel Diaz
Otoniel Diaz 2013년 6월 6일
댓글: RahulTandon 2015년 7월 6일
I need to solve a non linear ODE. I want to use one of the ODE matlab functions if possible. However the problem is that it is not possible for me to convert it to a first order differential equation. The differential equation that I want to solve contains terms of this type: (y")^2*x^2+2*y*y"+(y')^2. As you can see the higher exponential is in the higher order term of the equation. Any way to solve this type of equations?
  댓글 수: 1
RahulTandon
RahulTandon 2015년 7월 6일
Use solve() the solve the equations algeabraically. Get the solutions to teh quadratic equations and then solve using ODExx for nth order diff equations!! Send copy of teh actual problem. if you can.

댓글을 달려면 로그인하십시오.

채택된 답변

Roger Stafford
Roger Stafford 2013년 6월 6일
Try using 'ode15i' which can use implicit differential equations. In your example you would presumably have the two components in your function handle:
(y'(2))^2*t^2+2*y(1)*y'(2)+(y(2))^2 = 0
y'(1)-y(2) = 0

추가 답변 (1개)

Iván
Iván 2013년 6월 6일
you can define a system of equations like:
y'(2)= y(1);
y'(3)= y(2);
so that
y'(3)=y''(1);
in this way you can go from your equation to a ordinary diferential equation system and use any of the matlab ode solvers.
  댓글 수: 1
Otoniel Diaz
Otoniel Diaz 2013년 6월 6일
Thanks for the answer, it works well for a "simple" non linear equation in which the higher derivative can be solved but in the problem I'm facing it is not posible to solve the equation for the higher derivative.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by