Solve ODE
15: Solve & Graph an ODE
Given an ODE (ordinary differential equation), solve it analytically if possible, solve it with a specific initial condition (analytically or numerically); make a graph of its ``direction field'' with little arrows, and plot a specific solution to the ODE + initial condition. For these examples use this ODE for y(t):y' + 3y = t + e-2t
| 1. If possible, solve the ODE generally 2. Solve the ODE given initial condition y(-1)=-0.4, and graph the solution 3. graph the direction field of the ODE, for -1.5<t<5 and -1<y<3 4. superimpose the solution (2) on the vector field (3) |
| Mathematica:
(1)
|
Matlab:
(1) (use Mathematica or Maple) (2) now run Matlab: (3) (4) |
| Maple:
(1) (2) with(DEtools): (3) (4) |
IDL:
(1) (use Mathematica or Maple) (2) (numerically, for 0<t<5)
|
