00:01
Okay, so we're given this differential equation and this initial condition.
00:05
And this time we're asked to find using oilers method concepts, we want to find an h value, like a step size, so that we can approximate y of 1 within 1 ,100th of the correct value.
00:22
And just to be clear, our x not in this case is zero and our y not in this case is zero.
00:29
And now i won't go through all the steps of using oilers method because we've done that a lot in this section.
00:38
But i will show you that i tried an h going from x is zero to x is one.
00:45
So our final x is x equals 1.
00:49
So we're going from x equals 0 to x equal 1 using different step sizes.
00:54
So i used an h of 0 .1.
00:57
I used an h of 0 .05, and i looked again at an h of 0 .02.
01:05
So decreasing values of h to approximate the solution at y of 1.
01:14
For h is 0 .1, i got a y of 1 to be 0 .3487.
01:24
If i used a smaller h of 0 .05, i got the solution at y of 1 .1.
01:30
One to be 0 .3585.
01:38
And again, decreasing our step size again, i got a solution of 0 .36442.
01:54
Okay.
01:55
And so we're looking for a tolerance of 1 ,100, 0 .01.
02:03
And if you think about rounding these just to 100.
02:07
This would give me 0 .35.
02:11
This guy would give me 0 .36.
02:14
This guy would give me also 0 .36.
02:16
So i've converted by shrinking our step size from 0 .05 to 0 .02, i didn't gain any more accuracy to 2 decimal places, right? these are the same to two decimal places.
02:31
So what that tells me is i could have just stuck with this h value of, 0 .05 and gotten an accuracy of 0 .01.
02:41
So for the first part, find an h value that gives us accuracy within this amount, then that is our solution.
02:47
An h value of 0 .05 will give you that accuracy.
02:53
Okay.
02:54
So the next step of this problem says, can we find some values they're calling x not, such that when i find the solution at that x value, it gives me the value.
03:08
0 .2, it approximates solution 0 .2 within 500s.
03:15
And so in a similar, similar strategy, i used an h value, looking at all the steps along the way for an h value of 0 .05 and also for 0 .02...