필터 지우기
필터 지우기

Solve a second order differential equation

조회 수: 2 (최근 30일)
Mj
Mj 2020년 11월 4일
편집: Mj 2020년 11월 5일
hi.i want to solve this second order differential equation in matlab an plot figure. can you help me please?
d2a/de2=(((((2+c2)./(1+c2)).*(Fu.^2))+1)*(a.^c2)-((2+c2)./(1+c2)).*(Fu.^2./a)-a.^(2+(2.*c2)))./( ((2+c2)/((3+c2).*(1+c2))).*Fu.^2 );
Fu=1
c2=0,0.5,1

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 4일
This is a second-order ODE which can be solved using ode45(). See the example titled "Solve Nonstiff Equation" here: https://www.mathworks.com/help/matlab/ref/ode45.html#bu3uj8b
  댓글 수: 10
Mj
Mj 2020년 11월 4일
i put my initial condition instead of yours, but it did not give me the righ figure.
IC = [0.75; 0];
The alpha value as the initial condition is 0.75. But I do not have d-Alpha in the same place. Elsewhere, d-alpha value is zero.
do you know what should i do?
excuse me because of my boring questions.
Ameer Hamza
Ameer Hamza 2020년 11월 4일
This is the solution according to the equation you shared. Check if there is a mistake in writing the equation.

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

추가 답변 (0개)

카테고리

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