The main problem of computational calculus is to compute derivatives and integrals of functions. There are two directions that we can take for such problems, numerical computing and symbolic computing. Some problem turn out to be too difficult to apply symbolic computation, and sometimes we just want the numerical results. So that’s what this chapter talks about.
Numerical Differentiation
Two-point Difference Formula
We can apply these formulas continually:
Interpolation Method
The key idea of Interpolation method for numerical differentiation is using interpolation function which is easier to differentiate to fit the original function .
Richardson Extrapolation
Assume that we are presented with an order formula for approximating a given quantity . The order means that
Then
Is order approximating at least.
example of Richardson Extrapolation

Undetermined Coefficients Method

Numerical Integration
Interpolation Method
The numerical calculation of definite integrals relies on many of the same tools we have already seen. In Chapters 3 and 4, methods were developed for finding function approximation to a set of data points, using interpolation and least squares modeling. We will discuss methods for numerical integration, or quadrature, based on both of These ideas.
If we select data points at the same interval, this numerical interpolation method is called Newton-Cote’s integration.
Newton-Cote’s Integration
Trapezoid Rule

Interpolation error:
Integration error:
Simpson’s Law
For data points: , We use Lagrange Interpolation to fit the original function:

The final formula:
Interpolation error:
Integration error:
Algebra Accuracy
If a certain quadrature formula is accurate for polynomials of degree , but not for polynomials of degree , then it is said that the quadrature formula has the accuracy of degree .


Opened Newton-Cote’s Integration

Composite Newton-Cote’s Interpolation
The Trapezoid and Simpson’s Rules are limited to operating on a single interval. Of course, since definite integrals are additive over subintervals, we can evaluate an integral by dividing the interval up into several subintervals, applying the rule separately on each one, and then totaling up. This strategy is called composite numerical integration.


Romberg Integration
The main idea of Romberg integration is using Richardson Extrapolation to increase the accuracy of the integration.


Undetermined Coefficients Method

Gauss Integration
Are the Newton–Cotes formulas optimal for their degree of precision, or can more powerful formulas be developed? In particular, if the requirement that evaluation points be evenly spaced is relaxed, are there better methods?
We pick out the most famous one to discuss in this section. Gaussian Quadrature has degree of precision when points are used, double that of Newton–Cotes.

Integration error:
There are mainly three ways to find :
- Let ,
- Given linearly independent functions in interval , build orthogonality function using Gram-Schmidt
- Legendre polynomials
We usually use Legendre polynomials to compute numerical integration.

approximate integrals on a general interval
