Unformatted text preview: NDSolve command. Higherorder ordinary differential equations are treated in the same way. For example, given the initial value problem d 2 y dt 2 + . 5 dy dt + sin( y ) = , y (0) = − 1 , y ± (0) = , t ∈ [0 , 15] the input instruction is sol=NDSolve[{y’’[t]+0.5y’[t]+Sin[y[t]]==0, y[0]==1,y’[0]==0}, y[t],{t,0,15}] with plot Plot[y[t] /. sol, {t,0,15}] 2.12 Solving differential equations with Maple 2.12.1 Firstorder equations Maple has a built in command for dealing with differential equations, which is the dsolve command. This command is used to ±nd a symbolic solution to a differential equation. The command dsolve(. . . , numeric) ±nds a numerical approximation. Consider the following ±rstorder differential equation dy dt = f ( y , t )...
View
Full Document
 Fall '11
 Dr.Gwartney
 Economics, Differential Equations

Click to edit the document details