0:00
Hi there.
00:02
In this problem, we are asked to use orler's method to approximate a solution to a differential equation, and then after that, we'll find the exact solution and see how close we got.
00:12
So, we are given, for orler's method, we're given d, y, dx, which our textbook also calls the function g of x and y.
00:23
In this case, it happens to be only a function of x, which will make things a little easier for us down the road.
00:30
So there's our function g.
00:32
We have an initial condition.
00:34
They tell us y of zero equals one.
00:38
All right.
00:39
We are told that our h value is going to be 0 .1, and we are going to try to approximate y of 0 .4.
00:52
So that's the info we'll need to get started.
00:56
Now, to do oilers method, let's make a little table for ourselves.
00:59
To keep everything straight, we're going to need, at each step, we need an x value.
01:04
We need our y value at each step.
01:08
We will need to compute g by plugging in those x and y values.
01:17
Once we have g we need to multiply by h which in this case is 0 .1 that will give us our differential and finally take that result and add it to our current y value and that will give us our next y value.
01:36
So hopefully that makes sense.
01:38
That's just unraveling oilers method as shown to us in this section of our book.
01:44
To get started, we'll use our initial condition, y of 0 equals 1.
01:50
And in fact, we can fill in all the rest of the x's because h is 0 .1.
01:55
So we're just going to add 0 .1 every time.
01:58
Point 2, and we can stop when we get to 0 .4.
02:03
All right, let's make it happen.
02:07
G of 0 comma 1.
02:10
So we're putting in 0 for x, 1 for y.
02:12
It only depends on x.
02:14
So we're getting negative 4 plus 0 will give us 4.
02:19
I'm sorry, negative 4.
02:20
There we go.
02:21
Now we multiply that by 0 .1.
02:23
That will give us negative 0 .4.
02:27
Add that to our current y value, which is 1.
02:31
Negative 0 .4 plus 1 is 0 .6...