Home > Academics > Numerical first derivative using different methods

Numerical first derivative using different methods

I numerically computed the first derivative of the following function at interior points using different methods, in an uniform grid of points. Also, I found the average of the absolute error of the predicted first derivative for all the interior points, providing the best prediction.

f(x)=sin[(4-x)(4+x)], 0 <= x <= 8
Numerical methods used:

  • Piecewise quadratic spline functions that represent the function
  • 1st order forward scheme
  • 2nd central difference
  • Padé approximation

Plot of results for each approach along with the exact solution.

Numerical Derivative - Laura Almara. Numerical Derivative Errors by Almara

Categories: Academics Tags:
  1. No comments yet.
  1. No trackbacks yet.