Euler Method
The Euler method is the simplest numerical technique for solving first-order ordinary differential equations (ODEs) with an initial condition. It approximates the solution of dy/dx = f(x, y), y(x₀) = y₀ by advancing the solution step-by-step using the slope at the current point. The method is derived from the Taylor series expansion: y(x + h) = y(x) + h·y'(x) + (h²/2)·y''(x) + ... . Truncating after the first-order term gives y(x + h) ≈ y(x) + h·y'(x). Since y'(x) = f(x, y), the update formula becomes y_{n+1} = y_n + h·f(x_n, y_n), where h is the step size. The Euler method is explicit (the new value y_{n+1} is computed directly from known values) and first-order accurate. The local truncation error (error per step) is O(h²), while the global truncation error (accumulated error over the entire interval) is O(h). This means halving the step size approximately halves the global error, but also doubles the number of steps required. To apply the method: (1) Specify the ODE dy/dx = f(x, y) and initial condition y(x₀) = y₀. (2) Choose a step size h (smaller h gives better accuracy but more computation). (3) Iterate: x_{n+1} = x_n + h, y_{n+1} = y_n + h·f(x_n, y_n). (4) Continue until the desired x value is reached. The Euler method has limitations: (1) Low accuracy compared to higher-order methods (Runge-Kutta, multistep methods). (2) Stability constraints: for stiff ODEs or rapidly decaying solutions, h must be very small to avoid instability. (3) Error accumulates over many steps. Despite these limitations, Euler's method is useful for: introducing numerical ODE concepts, quick estimates, problems where low accuracy is acceptable, and as a building block for more sophisticated methods (e.g., improved Euler, Runge-Kutta). The improved Euler method (Heun's method, explicit trapezoidal) uses an average of slopes: y_{n+1} = y_n + (h/2)[f(x_n, y_n) + f(x_{n+1}, y_n + h·f(x_n, y_n))], which is second-order accurate (global error O(h²)).
Knowledge Check
1.What type of differential equation does the Euler method solve?
2.Given dy/dx = 2x, y(0) = 1, and h = 0.5, what is y at x = 0.5 using Euler's method?
3.Continuing from the previous question, what is y at x = 1.0 (after two steps)?
4.What is the global truncation error order of the Euler method?
5.What is the local truncation error (error per step) of the Euler method?
6.For dy/dx = −2y, y(0) = 1, h = 0.1, what is y at x = 0.1 using Euler's method?
7.Why might the Euler method require a very small step size for some ODEs?
8.What is the main advantage of the improved Euler (Heun's) method over the basic Euler method?
9.Given dy/dx = x + y, y(0) = 1, h = 0.2, what is the slope f(x₀, y₀) at the first step?
10.What is a key limitation of the Euler method compared to Runge-Kutta methods?