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

5 visualizaciones (últimos 30 días)
Westin Messer
Westin Messer el 5 de Feb. de 2018
Comentada: Torsten el 6 de Feb. de 2018
I'm trying to solve the following differential equation:
y''+y'-6y=20e^t, y(0)=0, y'(0)=1
  3 comentarios
Jan
Jan el 5 de Feb. de 2018
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.

Iniciar sesión para comentar.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by