2 Numerical solutions
We suppose that the initial value problem
is such that we are unable (or unwilling) to seek a solution analytically (that is, by hand) and that we prefer to use a computer to approximate instead. We begin by asking what we expect a numerical solution to look like.
Numerical solutions to initial value problems discussed in this Workbook will be in the form of a sequence of numbers approximating at a sequence of values of . The simplest methods choose the -values to be equally spaced, and we will stick to these methods. We denote the common distance between consecutive -values as .
Key Point 2
A numerical approximation to the initial value problem
is a sequence of numbers
,
,
,
,
.
The value
will be exact, because it is defined by the initial condition.
For
,
is the approximation to the exact value
at
.
In Figure 1 the exact solution is shown as a thick curve and approximations to are shown as crosses.
Figure 1
The general idea is to take the given initial condition and then use it together with what we know about the physical process (from the differential equation) to obtain an approximation to . We will have then carried out the first time step .
Then we use the differential equation to obtain , an approximation to . Thus the second time step is completed.
And so on, at the time step we find , an approximation to .
Key Point 3
A time step is the procedure carried out to move a numerical approximation one increment forward in time.
The way in which we choose to “use the differential equation" will define a particular numerical method, and some ways are better than others. We begin by looking at the simplest method.