Numerical Differentiation - Examples & Applications
This section provides practical examples of numerical differentiation techniques, including forward, backward, and centered finite differences, high-accuracy formulas, Richardson extrapolation, unequally spaced data, and partial derivatives.
First-Derivative Finite Differences
The most basic methods for estimating the first derivative are the forward, backward, and centered divided difference formulas, all derived from the Taylor series expansion.
Intermediate: Comparing Forward, Backward, and Centered Differences
Estimate the first derivative of at using a step size of .
Calculate the true percent relative error for the forward, backward, and centered difference approximations.
The true value of the derivative is .
Step-by-Step Solution
0 of 4 Steps Completed1
Higher-Accuracy Differentiation Formulas
By retaining more terms in the Taylor series expansion, we can derive finite difference formulas with higher-order accuracy (e.g., for forward/backward, and for centered).
Advanced: High-Accuracy Centered Difference
Estimate the first derivative of at using the centered difference formula.
Use a step size of . The true value is .
Step-by-Step Solution
0 of 3 Steps Completed1
Derivatives of Unequally Spaced Data
When data points are not equally spaced, standard finite difference formulas cannot be used. Instead, a Lagrange interpolating polynomial is fit through the points and then differentiated.
Intermediate: Unequally Spaced Data
Given three unequally spaced points:
Estimate the derivative .
Step-by-Step Solution
0 of 2 Steps Completed1
Partial Derivatives
Partial derivatives are estimated by holding all other variables constant and applying standard finite difference formulas to the variable of interest.
Intermediate: Numerical Partial Derivative
Let . Estimate at using a centered difference with .
Step-by-Step Solution
0 of 2 Steps Completed1
Richardson Extrapolation
Richardson extrapolation uses two derivative estimates computed with different step sizes to obtain a third, more accurate estimate.
Advanced: Richardson Extrapolation
Use Richardson extrapolation to estimate the first derivative of at .
First, calculate centered difference estimates using and .
Then, combine them using Richardson extrapolation to find an estimate.
True value is .
Step-by-Step Solution
0 of 3 Steps Completed1