Calculus/Integration techniques/Numerical Approximations

From testwiki
Jump to navigation Jump to search

Template:Calculus/Top Nav

Template:Calculus/Stub

It is often the case, when evaluating definite integrals, that an antiderivative for the integrand cannot be found, or is extremely difficult to find. In some instances, a numerical approximation to the value of the definite value will suffice. The following techniques can be used, and are listed in rough order of ascending complexity.

Riemann Sum

This comes from the definition of an integral. If we pick n to be finite, then we have:

abf(x)dxi=1nf(xi*)Δx

where xi* is any point in the i-th sub-interval [xi1,xi] on [a,b] .

Right Rectangle

A special case of the Riemann sum, where we let xi*=xi , in other words the point on the far right-side of each sub-interval on, [a,b] . Again if we pick n to be finite, then we have:

abf(x)dxi=1nf(xi)Δx

Left Rectangle

Another special case of the Riemann sum, this time we let xi*=xi1 , which is the point on the far left side of each sub-interval on [a,b] . As always, this is an approximation when n is finite. Thus, we have:

abf(x)dxi=1nf(xi1)Δx

Trapezoidal Rule

abf(x)dxba2n[f(x0)+2i=1n1(f(xi))+f(xn)]=ba2n(f(x0)+2f(x1)+2f(x2)++2f(xn1)+f(xn))

Simpson's Rule

Remember, n must be even,

abf(x)dx ba6n[f(x0)+i=1n1((3(1)i)f(xi))+f(xn)]
=ba6n[f(x0)+4f(x12)+2f(x1)+4f(x32)++4f(xn12)+f(xn)]

Maclaurin Approximation

A common technique of approximating common trigonometric functions is to use the Taylor-Maclaurin series. Term-by-term integration allows one to easy compute the value of the integral by hand, well up to 5 decimal places of precision, and up to 10 given a factorial table.

For example, using the Maclaurin series of sin(x), one can easily approximate its integral with a polynomial.

n=0(1)nx2n+1(2n+1)!

We can then easily integrate each term, taking (1)n and 1(2n+1)! to be constants.

n=0(1)nx2n+1(2n+1)!c0+n=0(1)nx2n+2(2n+2)!

We can easily find the constant term by inspecting the known principle integral, cos(x), and the new series. This nets us the final equation.

0tsin(x)dx+1=n=0(1)nt2n+2(2n+2)!While this is a rather fast-converging series, converging at log10((2x+2)!) digits of significance, it is relatively useless, since factorials are expensive to compute.

Further reading

Template:Calculus/Stub

Template:Calculus/Top Nav Template:Calculus/TOC