0:00
Hi there.
00:01
In this problem, we are asked to use euler's method to find an approximate solution for a differential equation, and then we will check it by finding the actual solution.
00:12
So let's start with euler's method.
00:14
We'll need our function g, which is just dy, the x, and in this case, we are given that it is y times e to the x.
00:24
Okay.
00:26
We also have the initial condition, y of zero equals two.
00:31
We know that.
00:32
That our h value is 0 .1 and we are supposed to find an approximate value for y of 0 .4.
00:46
Alright, so let's start with the other's method.
00:49
To make it easier, let's make a little table for ourselves.
00:53
So at each step we will need the x value, the y value, we'll need to plug those into our g.
01:03
Whatever we obtain there we will multiply by h which in this case is point one and finally we will add that to our current y value to get the next y value and then just keep repeating until we're done so our initial condition y of 0 equals 2 that tells us that when x is 0 y is 2 we can actually fill in the rest of the x values here since h is 0 .1 will those keep adding that to a for x values and will be done when we arrive at 0 .4.
01:40
Okay, so now we can start on the top row.
01:44
If we plug in 0 for x and 2 for y into y e to the x, we will get 2 times e to the 0, which is 2.
01:55
We'll take that, multiply by 0 .1, gives us 0 .2, and finally we'll add that to our current y value of 2 to get 2 .2.
02:07
So that's our new y value.
02:09
We will copy that down into the next row and start all over again.
02:14
So if we plug in 0 .1 for x, 2 .2 for y, our g will evaluate to 2 .43414.
02:23
Make sure you get that.
02:25
And then times point 1, we'll get 0 .2431.
02:30
Add that to our current y value, we'll get 2 .4431.
02:36
All right, so that's our new y value.
02:40
And do the same thing again.
02:43
This time when we plug into g, make sure you're getting 2 .98040.
02:51
Multiply that by 0 .1.
02:53
We should get 0 .2984.
02:57
And add that to our current y value, and we will get 2 .745 for our next y value.
03:06
Okay, last step coming up.
03:09
So we have our x and our y...