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


Richardson extrapolation

Undetermined Coefficients Method


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


example of trapezoid rule

Interpolation error:

Integration error:

Simpson’s Law

For data points: , We use Lagrange Interpolation to fit the original function:


Simpson Law

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 .


example of algebra accuracy

Accuracy of Newton-Cote's integration

Opened Newton-Cote’s Integration


text title here...

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.


text title here...

example of composite trapezoid rule and Simpson law

Romberg Integration

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


text title here...

pseudocode of Romberg

Undetermined Coefficients Method


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.


text title here...

Integration error:

There are mainly three ways to find :

  1. Let ,
  2. Given linearly independent functions in interval , build orthogonality function using Gram-Schmidt
  3. Legendre polynomials

We usually use Legendre polynomials to compute numerical integration.


Gaussian Quadrature coefficients

approximate integrals on a general interval


approximate integrals on a general interval