Euler method

Euler method

In mathematics and computational science, the Euler method, named after Leonhard Euler, is a first order numerical procedure for solving ordinary differential equations (ODEs) with a given initial value. It is the most basic kind of explicit method for numerical integration for ordinary differential equations.

Informal geometrical description

Consider the problem of calculating the shape of an unknown curve which starts at a given point and satisfies a given differential equation. Here, a differential equation can be thought of as a formula by which the slope of the tangent line to the curve can be computed at any point on the curve, once the position of that point has been calculated.

The idea is that while the curve is initially unknown, its starting point, which we denote by A_0, is known (see the picture on top right). Then, from the differential equation, the slope to the curve at A_0 can be computed, and so, the tangent line.

Take a small step along that tangent line up to a point A_1. If we pretend that A_1 is still on the curve, the same reasoning as for the point A_0 above can be used. After several steps, a polygonal curve A_0A_1A_2A_3dots is computed. In general, this curve does not diverge too far from the original unknown curve, and the error between the two curves can be made small if the step size is small enough and the interval of computation is finite (although things are more complicated for stiff equations, as discussed below).

Derivation

We want to approximate the solution of the initial value problem:y'(t) = f(t,y(t)), qquad qquad y(t_0)=y_0,

by using the first two terms of the Taylor expansion of "y", which represents the linear approximation around the point (t0,y(t0)) . One step of the Euler method from "t"n to "t"n+1 = "t"n + "h" is

: y_{n+1} = y_n + hf(t_n,y_n). qquad qquad

The Euler method is explicit, i.e. the solution y_{n+1} is an explicit function of y_i for i leq n.

While the Euler method integrates a first order ODE, any ODE of order N can be represented as a first-order ODE in more than one variable by introducing N-1 further variables, y', y", ..., y^{(N)}, and formulating N first order equations in these new variables. The Euler method can be applied to the vector mathbf{y}(t)=(y(t),y'(t),y"(t),...,y^{(N)}(t)) to integrate the higher-order system.

Error

The magnitude of the errors arising from the Euler method can be demonstrated by comparison with a Taylor expansion of "y". If we assume that f(t) and y(t) are known exactly at a time t_0, then the Euler method gives the approximate solution at time t_0+h as:

:y(t_0 + h) = y(t_0) + h f(t_0,y(t_0)) = y(t_0) + h y'(t_0) , qquad qquad

(the second equality holds because "y" satisfies the differential equation y'=f(t, y)). In comparison, the Taylor expansion in h about t_0 gives:

:y(t_0 + h) = y(t_0) + h y'(t_0) + frac{1}{2}h^2 y"(t_0) + O(h^3).

The error introduced by the Euler method is given by the difference between these equations:

:frac{1}{2}h^2 y"(t_0) + O(h^3).

For small h, the dominant error per step is proportional to h^2. To solve the problem over a given range of t, the number of steps needed is proportional to 1/h so it is to be expected that the total error at the end of the fixed time will be proportional to h (error per step times number of steps). For this reason, the Euler method is said to be first order. This makes the Euler method less accurate (for small h) than other higher-order techniques such as Runge-Kutta methods and linear multistep methods.

The Euler method can also be numerically unstable, especially for stiff equations. This limitation—along with its slow convergence of error with h—means that the Euler method is not often used, except as a simple example of numerical integration.

ee also

*Numerical integration of ordinary differential equations
*For numerical methods for calculating definite integrals, see Numerical integration
*Gradient descent similarly uses finite steps, here to find minima of functions

External links

* [http://www.krellinst.org/UCES/archive/classes/CNA/dir2.4/uces2.4.html Initial Value Problems: Euler’s Method]
* [http://math.fullerton.edu/mathews/n2003/Euler'sMethodMod.html Euler's Method for O.D.E.'s]

References

* Ascher, Uri M.; Petzold, Linda Ruth. Computer methods for ordinary differential equations and differential-algebraic equations. 1998. SIAM. ISBN 0898714125


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Euler method — noun A method for numerically approximating the solution to an ordinary differential equation with a given initial value …   Wiktionary

  • Semi-implicit Euler method — In mathematics, the semi implicit Euler method, also called symplectic Euler, semi explicit Euler, Euler–Cromer, and Newton–Størmer–Verlet (NSV), is a modification of the Euler method for solving Hamilton s equations, a system of ordinary… …   Wikipedia

  • Euler-Maruyama method — In mathematics, the Euler Maruyama method is a technique for the approximate numerical solution of a stochastic differential equation. It is a simple generalization of the Euler method for ordinary differential equations to stochastic… …   Wikipedia

  • Euler's factorization method — is a method of factorization based upon representing a positive integer N as the sum of two squares in two different ways :N = a^2+ b^2 = c^2+ d^2 (1)Although the algebraic factorization of binomial numbers cannot factor sums of two squares… …   Wikipedia

  • Euler summation — is a summability method for convergent and divergent series. Given a series Σ a n , if its Euler transform converges to a sum, then that sum is called the Euler sum of the original series.Euler summation can be generalized into a family of… …   Wikipedia

  • Euler's sum of powers conjecture — Euler s conjecture is a disproved conjecture in mathematics related to Fermat s last theorem which was proposed by Leonhard Euler in 1769. It states that for all integers n and k greater than 1, if the sum of n k th powers of positive integers is …   Wikipedia

  • Euler's Day Off (game) — Euler s Day Off is a letter rearrangement word game.Objective of the gameThe object of the game is to arrange twenty five randomly selected letters in a five by five grid to form as many vertical and horizontal words as possible.coringPlayers… …   Wikipedia

  • Euler equations (fluid dynamics) — In fluid dynamics, the Euler equations govern inviscid flow. They correspond to the Navier Stokes equations with zero viscosity and heat conduction terms. They are usually written in the conservation form shown below to emphasize that they… …   Wikipedia

  • Euler's three-body problem — In physics and astronomy, Euler s three body problem is to solve for the motion of a particle that is acted upon by the gravitational field of two other point masses that are either fixed in space or move in circular coplanar orbits about their… …   Wikipedia

  • Euler–Lagrange equation — In calculus of variations, the Euler–Lagrange equation, or Lagrange s equation is a differential equation whose solutions are the functions for which a given functional is stationary. It was developed by Swiss mathematician Leonhard Euler and… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”