How do I solve a second order ODE with boundary conditions?

조회 수: 4 (최근 30일)
Westin Messer
Westin Messer 2018년 2월 5일
댓글: Torsten 2018년 2월 6일
I'm trying to solve the following differential equation:
y''+y'-6y=20e^t, y(0)=0, y'(0)=1
  댓글 수: 3
Jan
Jan 2018년 2월 5일
Then convert the equation of order 2 to a system of equations of order 1 at first. (As Wikipedia or your text book for the simple details on demand.) Then write the function in Matlab and provide it to ode45 (assuming that the equation is not stiff). Try it and then come back to the forum, if you have a specific problem.

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

채택된 답변

Torsten
Torsten 2018년 2월 5일
Use "dsolve".
Best wishes
Torsten.
  댓글 수: 2
Westin Messer
Westin Messer 2018년 2월 5일
How do I use dsolve with boundary conditions?
Torsten
Torsten 2018년 2월 6일
Paragraph
"Solve differential equation with condition"
under
https://de.mathworks.com/help/symbolic/dsolve.html
Best wishes
Torsten.

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

추가 답변 (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