3.1: The Euler Method
( \newcommand{\kernel}{\mathrm{null}\,}\)
Although it is not always possible to find an analytical solution of (3.1) for y=y(x), it is always possible to determine a unique numerical solution given an initial value y(x0)=y0, and provided f(x,y) is a well-behaved function. The differential equation (3.1) gives us the slope f(x0,y0) of the tangent line to the solution curve y=y(x) at the point (x0,y0). With a small step size ∆x=x1−x0, the initial condition (x0,y0) can be marched forward to (x1,y1) along the tangent line using Euler’s method (see Fig. 3.1.1) y1=y0+Δxf(x0,y0).
This solution (x1,y1) then becomes the new initial condition and is marched forward to (x2,y2) along a newly determined tangent line with slope given by f(x1,y1). For small enough ∆x, the numerical solution converges to the exact solution.
