|
|||||
These methods suggest the following questions: These methods obviously cannot be applied directly on an infinite interval,
so if confronted by one you must do something to it, like changing the independent
variable to make it into a finite interval problem before even thinking of using
one. There is another way you can run into a problem and that is when, though f is well behaved, the solution you seek becomes infinite at some point in the interval you are concerned with. That is not really as bad or strange a problem as you might expect. It does mess up these methods if you try to apply them naively though. First it only really means that the reciprocal of y, the function 1/y, goes through zero at the point at which y becomes infinite. It is really no more surprising for 1/y to be zero than it is for it to be anything else, so this can easily happen with a non-linear differential equation. Second and most important, if you know y' you also know (1/y)', and can apply these methods to 1/y just as easily as you can to y. If we make the definition: z = 1/y, we find, when y' = f(x, y): and we can apply the rules discussed to solve for z(b) instead of y(b) given
z(a). In fact when y is greater than 1, the derivative of z will be smaller than
that of y and so you can expect to find it easier to approximate the changes in
z than in y. When y explodes and goes to infinity, z wanders quietly near 0, and
its behavior can easily be tracked by our methods. Exercise 26.4 Try your favorite method on the differential equation z' = -z2x - z, with z(0) = 1, and compare the reciprocal of the values you obtain for z(1), that is, 1/z(1), with those you obtained earlier for y. There is much lore about numerical methods, and the subject is called numerical analysis. It used to be a very dry field, because it is tedious and dull to learn a method that you can't possibly use, something like trying to read a cookbook when you have no kitchen to cook in. Nowadays you can easily play with these methods, and they have dramatic application to real time control so that the field is now actually fun. You will note that in every case, extrapolation using larger intervals only was able to improve the accuracy of estimates here, by factors on the order of a hundred thousand to a million, for each method. Is extrapolation the best we can do here to improve solutions? |