

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Subject Numerical Algorithms, this introduces numerical methods of finding differentiation using Taylor expansion
Typology: Cheat Sheet
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Finite difference formulas are commonly used to approximate derivatives. Here, we discuss the 2-point centered difference formula , 3-point centered difference formula , and a non-symmetric 3-point formula.
Taylor series:
The 2-point centered difference formula approximates the first derivative at a point xx using the values of the function on either side of xx. It is given by:
where is the step size.
Advantages :
Simple and easy to implement. Second-order accurate (error term proportional to ) Disadvantages : Requires two function evaluations. Accuracy is limited by the size of
The 3-point centered difference formula provides a more accurate approximation of the first derivative by including a higher-order term. The formula is:
Advantages : Higher accuracy: Fourth-order accurate (error term proportional to ) Useful for applications requiring greater precision. Disadvantages : Requires four function evaluations, increasing computational cost. May introduce larger rounding errors for very small
The non-symmetric 3-point formula is used when data points are not symmetrically distributed. For example, to approximate using , the formula is:
Advantages :