Euler Method - Exercise 3 Solution

Numerical Methods for Solving Differential Equations

Euler's Method

Using the Method with Mathematica

(continued from last page...)

Solution to Exercise 3

Solution
Name
Differential
Equation
Initial
Condition
Solve
up to
Number
of Steps
eulerex3 y′ = x2+1/y2 y(5) = 1 x = 6 30

Your solution, in tabular form, and abbreviated to save space, should have looked something like this:

5         1
5.03333   1.86667
5.06667   2.72071
.         .
.         .
.         .
5.96667   30.0212
6.        31.2079

And your plot of this solution should have looked something like this (though your points may not have been this size, or in color):

Euler Plot

If your solution doesn't match what you see here, then go back to Mathematica and carefully check the parameters that you passed to the euler program. If necessary, change them, and reevaluate the commands.

Now, back to the exercises...

 


Compass If you're lost, impatient, want an overview of this laboratory assignment, or maybe even all three, you can click on the compass button on the left to go to the table of contents for this laboratory assignment.