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

4 次查看(过去 30 天)
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 个评论
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