Effacer les filtres
Effacer les filtres

Solve and Plot Second-Order Differential Equation with Initial Conditions

5 vues (au cours des 30 derniers jours)
Ismaeel Dasti
Ismaeel Dasti le 30 Mar 2017
Modifié(e) : Carl le 4 Avr 2017
Numerically solve the differential equation y'' + sin(y) = 0 using initial conditions y(0)= 0, y′(0) = 1. Solve equation y'' + y = 0 with the same initial conditions. Plot on the same graph the solutions to both the nonlinear equation (first) and the linear equation (second) on the interval from t = 0 to t = 40, and compare the two. Be clear about which curve is the nonlinear solution and which is the linear solution.
Compare the linear and nonlinear solutions for each of the following values of the initial velocity v: 1, 1.99, 2, 2.01. For the (numerical) nonlinear solution, interpret what the graph indicates the pendulum is doing physically. What do you think the exact solution does in each case?

Réponses (1)

Carl
Carl le 4 Avr 2017
Modifié(e) : Carl le 4 Avr 2017
Hi Ismaeel, see the following documentation page for how to solve differential equations with MATLAB:
The rest of the question is very specific to your homework - solving it would be a good learning exercise.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by