Euler's method for solving differential equations
Euler’s method approximates the solution to a differential equation
Euler’s Method helps you approximate solutions to differential equations.
You’ll always be given an equation and an initial condition, and you’ll use this information to carry out the Euler’s approximation in multiple steps.
Hi! I'm krista.
I create online courses to help you rock your math class. Read more.
The better approximation you want, the more steps you have to take. The only formula you’ll need to remember is
In this formula, represents the first value you’ll need to calculate. and are the values you’re given in the initial condition, and is the distance between values of .
Note that the values of and given in the initial condition are denoted by and . This does not necessarily mean that or that . This only means that these values of and were given in the original problem.
Each subsequent approximation of is denoted by , , , ... and each value of for which is estimated is denoted by , , , ... . The “step-size” or the distance between two successive values of at which is approximated is often denoted by or .
Making a table to approximate the solution in steps
Take the course
Want to learn more about Differential Equations? I have a step-by-step course for that. :)
Using Euler’s method with two steps to find the solution to the differential equation
Example
Use Euler’s Method and two steps, find if and .
To find step size, divide the change in (from to ; to ) by the number of steps, in our case, two.
Now we can start building our table. and both come from our initial condition, . To find and , we add to the previous value for . We do that until we reach , which is the value the problem originally asked for when it asked us to find .
We find and using the Euler’s Method equation mentioned at the beginning of this section. To calculate , we plug in the values of and . To calculate , we plug in the values of and , and so on. In other words, looking at the table above, use the values from the row above the value you’re trying to calculate.
We’ll look at one more example of a problem worded slightly differently.
One thing you MUST remember whenever you’re using Euler’s Method, is to keep ALL of your decimal places until you get to the last value of , and you’ve found your final answer. Remember that Euler’s Method is about approximation, so if you start rounding off decimal places prior to the end of the problem, your approximation will get less and less accurate as you go. Therefore, if your calculator gives you twelve decimal places, write down every single one until you get your final answer. THEN, and ONLY then, can you round your answer.
One thing you MUST remember whenever you’re using Euler’s Method, is to keep ALL of your decimal places until you get to the last value of Y.
Example
Use Euler’s Method with step size to approximate the values , , and of when .
Since we’re given step-size directly, we already know that
To start building our table, we first plug in and from our initial condition, . Since we’re calculating all the way to , we start adding to until we reach .
Once we’ve built out the first column, we start to calculate using the Euler’s Method equation mentioned at the beginning of this section. To calculate , we’ll plug in the values of and . To calculate , we plug in the values of and , and so on. In other words, looking at the table above, use the values from the row above the -value you’re trying to calculate. We continue this method until we’ve found all values of through .