SlideShare a Scribd company logo
2
Most read
Verlet’s Method

The Euler method is a first order method. This means that the global error is proportional
to the step size. Although the Euler-Cromer method has better energy conserving
properties than the Euler method, it is still a first order method for non-periodic motions.
For some problems, it is useful to have a more accurate higher order method. The
simplest second order method is Verlet’s method. Verlet’s method appears in slightly
different forms and here we take a different approach to it than in the textbook.

Suppose we have an equation of motion of form
                                       d 2x
                                            = a ( x, t )
                                       dt 2
This can be written as two first order equations by introducing the velocity
                                           dx
                                              =v
                                           dt
                                           dv
                                              =a
                                           dt
Euler’s method gives the recurrence relations
                                     vn+1 = vn + an ∆t
                                     xn+1 = xn + vn ∆t
and the Euler-Cromer method gives the recurrence relations
                                    vn+1 = vn + an ∆t
                                    xn+1 = xn + vn+1∆t

The reason why the Euler method is only first order accurate is that the acceleration and
velocity are calculated at the beginning of the step. A more accurate scheme would be to
use information at the mid-point of the step e.g. if we knew the velocity at the mid point
of the step we could use
                                    xn+1 = xn + vn+½ ∆t
Since we, in principle, know the acceleration at the beginning of the step we can find the
velocity at the middle of the step by using
                                   vn+½ = vn−½ + an ∆t
These last two equations constitute Verlet’s method. The time centering makes this
method second order accurate.

Note if we replace vn+½ by vn+1 and vn-½ by vn we get the Euler-Cromer method. However
there is a real difference between the Euler-Cromer method and Verlet’s method in that to
get the correct velocity at the end of the step in Verlet’s method you should find the
average
                                 vn+1 =
                                          1
                                            (v + v )
                                          2 n+3/ 2 n+1/ 2
whereas the Euler-Cromer method uses vn+1/2.
Verlet’s method also needs care to be taken with the initial conditions. In practice, you
usually know the initial velocity at the same time as the initial position. To start Verlet’s
method you need to take either a half step backwards in time to get v-1/2 or a half step
forwards in time to get v+1/2. Either way can be done using Euler’s method, with a number
of sufficiently small steps to get the desired accuracy.

More Related Content

PDF
analisis
PDF
Basiceqs3
PDF
Navier strokes equation
PPT
Basic differential equations in fluid mechanics
PDF
Partial Differential Equations, 3 simple examples
PPTX
application of first order ordinary Differential equations
PPTX
Application of Derivative 1
PDF
Mit2 092 f09_lec07
analisis
Basiceqs3
Navier strokes equation
Basic differential equations in fluid mechanics
Partial Differential Equations, 3 simple examples
application of first order ordinary Differential equations
Application of Derivative 1
Mit2 092 f09_lec07

What's hot (20)

PPT
The wave equation
PPTX
Ordinary differential equation
PPT
Ordinary Differential Equation
PPTX
Jeremy soroka lo 1
PDF
Differential equations final -mams
DOCX
1 d wave equation
DOC
Applications of differential equations by shahzad
PPTX
Applications of Differential Equations of First order and First Degree
PDF
Mit2 092 f09_lec16
PDF
On the Fixed Point Extension Results in the Differential Systems of Ordinary ...
PPTX
Fourier series
PPTX
differential equations
PDF
wave_equation
PPT
Higher Differential Equation
PPT
2 2-d kinematics notes
PPT
Laplace equation
PDF
Sect5 6
PPTX
Maths 3 ppt
PPTX
APPLICATION OF HIGHER ORDER DIFFERENTIAL EQUATIONS
The wave equation
Ordinary differential equation
Ordinary Differential Equation
Jeremy soroka lo 1
Differential equations final -mams
1 d wave equation
Applications of differential equations by shahzad
Applications of Differential Equations of First order and First Degree
Mit2 092 f09_lec16
On the Fixed Point Extension Results in the Differential Systems of Ordinary ...
Fourier series
differential equations
wave_equation
Higher Differential Equation
2 2-d kinematics notes
Laplace equation
Sect5 6
Maths 3 ppt
APPLICATION OF HIGHER ORDER DIFFERENTIAL EQUATIONS
Ad

Similar to Verlet's method (20)

PDF
Term project
PDF
Mit18 330 s12_chapter5
PDF
Conjugate Gradient Methods
PDF
Applications Of MATLAB Ordinary Differential Equations (ODE
PDF
Matlab lab.pdf
PPTX
Numerical Analysis and Its application to Boundary Value Problems
PPT
NUMERICAL METHODS
PDF
poster2
DOCX
LAB #2Escape VelocityGoal Determine the initial veloc.docx
PDF
Project on CFD using MATLAB
DOCX
The geometry of three planes in space
PDF
landau-zener-tunneling
PDF
adams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdf
DOCX
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
PDF
numericalmethods.pdf
PDF
dot product of vectors
PDF
Numerical_PDE_Paper
PDF
linear transformation and rank nullity theorem
PPTX
PDF
_lecture_05 F_chain_rule.pdf
Term project
Mit18 330 s12_chapter5
Conjugate Gradient Methods
Applications Of MATLAB Ordinary Differential Equations (ODE
Matlab lab.pdf
Numerical Analysis and Its application to Boundary Value Problems
NUMERICAL METHODS
poster2
LAB #2Escape VelocityGoal Determine the initial veloc.docx
Project on CFD using MATLAB
The geometry of three planes in space
landau-zener-tunneling
adams1jhfdkjshfkjfhifhdsufhuidfhidfk.pdf
CALIFORNIA STATE UNIVERSITY, NORTHRIDGEMECHANICAL ENGINEERIN.docx
numericalmethods.pdf
dot product of vectors
Numerical_PDE_Paper
linear transformation and rank nullity theorem
_lecture_05 F_chain_rule.pdf
Ad

Verlet's method

  • 1. Verlet’s Method The Euler method is a first order method. This means that the global error is proportional to the step size. Although the Euler-Cromer method has better energy conserving properties than the Euler method, it is still a first order method for non-periodic motions. For some problems, it is useful to have a more accurate higher order method. The simplest second order method is Verlet’s method. Verlet’s method appears in slightly different forms and here we take a different approach to it than in the textbook. Suppose we have an equation of motion of form d 2x = a ( x, t ) dt 2 This can be written as two first order equations by introducing the velocity dx =v dt dv =a dt Euler’s method gives the recurrence relations vn+1 = vn + an ∆t xn+1 = xn + vn ∆t and the Euler-Cromer method gives the recurrence relations vn+1 = vn + an ∆t xn+1 = xn + vn+1∆t The reason why the Euler method is only first order accurate is that the acceleration and velocity are calculated at the beginning of the step. A more accurate scheme would be to use information at the mid-point of the step e.g. if we knew the velocity at the mid point of the step we could use xn+1 = xn + vn+½ ∆t Since we, in principle, know the acceleration at the beginning of the step we can find the velocity at the middle of the step by using vn+½ = vn−½ + an ∆t These last two equations constitute Verlet’s method. The time centering makes this method second order accurate. Note if we replace vn+½ by vn+1 and vn-½ by vn we get the Euler-Cromer method. However there is a real difference between the Euler-Cromer method and Verlet’s method in that to get the correct velocity at the end of the step in Verlet’s method you should find the average vn+1 = 1 (v + v ) 2 n+3/ 2 n+1/ 2 whereas the Euler-Cromer method uses vn+1/2.
  • 2. Verlet’s method also needs care to be taken with the initial conditions. In practice, you usually know the initial velocity at the same time as the initial position. To start Verlet’s method you need to take either a half step backwards in time to get v-1/2 or a half step forwards in time to get v+1/2. Either way can be done using Euler’s method, with a number of sufficiently small steps to get the desired accuracy.