Week 3.5 - Deriving 4th order approximation of a 2nd order derivative using Taylor Table method
AIM:
To derive the fourth order approximations of a second order derivative using central differencing scheme, skewed right sided difference and skewed left sided difference with the help of taylor table method and to compare the analytical derivative with obtained values for the given function.
SCHEME DERIVATIONS:
CENTRAL DIFFERENCING SCHEME:
NO OF NODES:
The number of nodes = p+q-1
Where, p is order of derivative.
q is order of approximations.
The no of nodes = 2+4-1 =5.
DERIVATION:
To derive a fourth order approximation for the second order derivative,we start with these approximation,

taylor series derivation for the above terms,

Simillarly expand all the terms in the equation (1) and are represented in the form of table using taylor table method.

the linear equation obtained from the above table are solved using matrix inversion method,
A.X = B

X = inv(A)*B
we get the coefficients as,

a=-0.0833, b=1.3333, c=-2.5000, d=1.3333 e=-0.0833
substituting these coefficient in equation(1) we get,

SKEWED RIGHT HAND DIFFERENCE SCHEME:
NO OF NODES:
The number of nodes = p+q
Where, p is order of derivative.
q is order of approximations.
The no of nodes = 2+4 =6.
DERIVATION:
To derive a fourth order approximation for the second order derivative,we start with these approximation,
expand all the terms in the equation (2) using taylor series expansion and are represented in the form of table using taylor table method.

the linear equation obtained from the above table are solved using matrix inversion method,
A.X = B

X = inv(A)*B
we get the coefficients as,

a=3.7500, b=-12.8333, c=17.8333, d=-13.0000 e=5.0833 g=-0.8333
substituting these coefficient in equation(2) we get,

SKEWED LEFT HAND DIFFERENCE SCHEME:
NO OF NODES:
The number of nodes = p+q
Where, p is order of derivative.
q is order of approximations.
The no of nodes = 2+4 =6.
DERIVATION:
To derive a fourth order approximation for the second order derivative,we start with these approximation,

expand all the terms in the equation (3) using taylor series expansion and are represented in the form of table using taylor table method.

the linear equation obtained from the above table are solved using matrix inversion method,
A.X = B

X = inv(A)*B
we get the coefficients as,

a=-0.8333, b=5.0833, c=-13.0000, d=17.8333 e=-12.8333 g=3.7500
substituting these coefficient in equation(3) we get

MATLAB CODE:
MAIN CODE:

CONCLUSION:
As seen from the plot, the central differencing scheme has very less error compared to other schemes. Therefore, central differencing is better than other schemes because it uses information from both the sides from the point of consideration to give approximative and accurate values.
As the left and right skewed difference methods uses data only from one side of point of interest it gives less approximative and accurate values about the point.
WHY A SKEWED SCHEME IS USEFUL:
The system which doesn’t contain sufficient information on both side of the point of interest. In such cases we cannot use central differencing scheme so skewed scheme is useful in such cases.
WHAT CAN A SKEWED SCHEME DO THAT A CD SCHEME CANNOT DO:
CDS cannot not be employed at the boundary nodes due to unavailability of right and left nodes at the same time. In such cases the skewed differencing scheme is used.