Difference Equation Representations for Second Derivatives

If a function f(x) is tabulated at a uniform interval h, then

f(x0 + nh) = f(xn) = fn
where n is an integer and x0 is any arbitrary value.

The values at the right in the table below are the leading error terms for each difference equation representation.

Centered Differences

       f1 - 2f0 + f-1
f''0 = --------------
             h2

       -f2 + 16f1 - 30f0 + 16f-1 - f-2
f''0 = ------------------------------
                     h2

       2f3 - 27f2 + 270f1 - 490f0 + 270f-1 + 2f-2
f''0 = -----------------------------------------
                         180h2


  h2 f(4)0
- -------
     12

  h4 f(6)0
+ -------
     90

  h6 f(8)0
- -------
    560

Forward Differences

       f2 - 2f1 + f0
f''0 = -------------
             h2

       -f3 + 4f2 - 5f1 + 2f0
f''0 = ---------------------
                 h2

       11f4 - 56f3 + 114f2 - 104f1 + 35f0
f''0 = ----------------------------------
                      12h2

       -f3 + 4f2 + 6f1 - 20f0 + 11f-1
f''0 = -----------------------------
                    12h2

       -10f5 + 61f4 - 156f3 + 214f2 - 154f1 + 45f0
f''0 = ------------------------------------------
                          12h2

       f4 - 6f3 + 14f2 - 4f1 - 15f0 + 10f-1
f''0 = -----------------------------------
                       12h2

       137f6 - 972f5 + 2970f4 - 5080f3 + 5265f2 - 3132f1 + 812f0
f''0 = --------------------------------------------------------
                                 180h2

       -13f5 + 93f4 - 285f3 + 470f2 - 255f1 - 147f0 + 137f-1
f''0 = ----------------------------------------------------
                              180h2

       2f4 - 12f3 + 15f2 + 200f1 - 420f0 + 228f-1 - 13f-2
f''0 = -------------------------------------------------
                             180h2



- h f(3)0


  11h2 f(4)0
+ ---------
      12

  5h3 f(5)0
- --------
      6

  h3 f(5)0
+ -------
     12


  137h4 f(6)0
+ ----------
      180

  13h4 f(6)0
- ---------
     180


  7h5 f(7)0
- --------
     10

  11h5 f(7)0
+ ---------
     180

  h5 f(7)0
- -------
     90

Backward Differences

       f0 - 2f-1 + f-2
f''0 = ---------------
              h2

       2f0 - 5f-1 + 4f-2 - f-3
f''0 = ----------------------
                 h2

       35f0 - 104f-1 + 114f-2 - 56f-3 + 11f-4
f''0 = -------------------------------------
                        12h2

       11f1 - 20f0 + 6f-1 + 4f-2 - f-3
f''0 = ------------------------------
                    12h2

       45f0 - 154f-1 + 214f-2 - 156f-3 + 61f-4 - 10f-5
f''0 = ---------------------------------------------
                           12h2

       10f1 - 15f0 - 4f-1 + 14f-2 - 6f-3 + f-4
f''0 = -------------------------------------
                        12h2

       812f0 - 3132f-1 + 5265f-2 - 5080f-3 + 2970f-4 - 972f-5 + 137f-6
f''0 = -------------------------------------------------------------
                                   180h2

       137f1 - 147f0 - 255f-1 + 470f-2 - 285f-3 + 93f-4 - 13f-5
f''0 = ------------------------------------------------------
                               180h2

       -13f2 + 228f1 - 420f0 + 200f-1 + 15f-2 - 12f-3 + 2f-4
f''0 = ---------------------------------------------------
                              180h2



+ h f(3)0


  11h2 f(4)0
+ ---------
      12

  5h3 f(5)0
+ --------
      6

  h3 f(5)0
- -------
     12


  137h4 f(6)0
+ ----------
      180

  13h4 f(6)0
- ---------
     180


  7h5 f(7)0
+ --------
     10

  11h5 f(7)0
- ---------
     180

  h5 f(7)0
+ -------
     90


Research Interests
First Derivatives

Copyright © 1999-2011 by L. M. Stockman - All Rights Reserved