2 Numerical solutions

We suppose that the initial value problem

d y d t = f ( t , y ) y ( 0 ) = y 0

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 y 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 y ( t ) at a sequence of values of t . The simplest methods choose the t -values to be equally spaced, and we will stick to these methods. We denote the common distance between consecutive t -values as h .

Key Point 2

A numerical approximation to the initial value problem

d y d t = f ( t , y ) , y ( 0 ) = y 0

is a sequence of numbers y 0 , y 1 , y 2 , y 3 , .

The value y 0 will be exact, because it is defined by the initial condition.

For n 1 , y n is the approximation to the exact value y ( t ) at t = n h .

In Figure 1 the exact solution y ( t ) is shown as a thick curve and approximations to y ( n h ) are shown as crosses.

Figure 1

No alt text was set. Please request alt text from the person who provided you with this resource.

The general idea is to take the given initial condition y 0 and then use it together with what we know about the physical process (from the differential equation) to obtain an approximation y 1 to y ( h ) . We will have then carried out the first time step .

Then we use the differential equation to obtain y 2 , an approximation to y ( 2 h ) . Thus the second time step is completed.

And so on, at the n th time step we find y n , an approximation to y ( n h ) .

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.