Скачать книгу

approximate solution at level n plus 1 are grouped together and only then can the solution at this level be found. Obviously, implicit methods are more difficult to program than explicit methods because we must solve a system of equations at each time step.

      2.3.1 Common Schemes

      We now introduce a number of important and useful difference schemes that approximate the solution of Equation (2.1). These schemes will pop up all over the place in later chapters. Understanding how the schemes work in a simpler context will help you appreciate them when we tackle partial differential equations based on the Black–Scholes model. They also help in our understanding of notation, jargon, and syntax.

      The main schemes are:

       Explicit Euler

       Implicit Euler

       Crank–Nicolson (or Box scheme)

       The trapezoidal method.

      The explicit Euler method is given by:

      It is useful to know that the three schemes can be merged into one generic scheme as it were by introducing a parameter theta (the scheme is sometimes called the Theta method):

      and the special cases are given by:

      (2.14)StartLayout 1st Row 1st Column theta 2nd Column equals 1 comma explicit Euler 2nd Row 1st Column theta 2nd Column equals 0 comma implicit Euler 3rd Row 1st Column theta 2nd Column equals one half comma Crank en-dash Nicolson period EndLayout

      (2.15)u Superscript n plus 1 comma theta Baseline identical-to u Superscript n plus 1 comma Baseline equals StartFraction left-parenthesis 1 minus k theta a Superscript n comma theta Baseline right-parenthesis u Superscript n Baseline plus italic k f Superscript n comma theta Baseline Over 1 plus k left-parenthesis 1 minus theta right-parenthesis a Superscript n comma theta Baseline EndFraction period

      This equation is useful because it can be mapped to C++ code and will be used by other schemes by defining the appropriate value of the parameter theta.

      (2.16)StartLayout 1st Row 1st Column Blank 2nd Column StartFraction u Superscript n plus 1 Baseline minus u Superscript n Baseline Over k EndFraction plus one half left-parenthesis a Superscript n Baseline u Subscript n Baseline plus a Superscript n plus 1 Baseline u Subscript n plus 1 Baseline right-parenthesis equals one half left-parenthesis f Superscript n Baseline plus f Superscript n plus 1 Baseline right-parenthesis comma n equals 0 comma ellipsis comma upper N minus 1 2nd Row 1st Column Blank 2nd Column u Superscript o Baseline equals upper A period EndLayout

      2.3.2 Discrete Maximum Principle

      Having developed some difference schemes, we would like to have a way of determining if the discrete solution is a good approximation to the exact solution in some sense. Although we do not deal with this issue in great detail, we do look at stability and convergence issues.

      Definition 2.1 The one-step difference scheme upper L left-parenthesis k right-parenthesis of the form (2.13) is said to be positive if:

      (2.17)upper L left-parenthesis k right-parenthesis w Superscript n Baseline 
				<p style= Скачать книгу