• No results found

integ4.5

N/A
N/A
Protected

Academic year: 2020

Share "integ4.5"

Copied!
29
0
0

Loading.... (view fulltext now)

Full text

(1)

Chapter 4

Numerical Integration and Differentiation

Lecture 4.5

Books: (1) Numerical Methods for Engineer and Scientists, by Joe D, Hoffman, McGraw Hill Publication

(ii) ) Numerical Methods for Engineers by Chapra and Canale

(2)

In the numerical integration so far we discussed Trapezoidal and Simpson rules. In these methods, as we discussed

earlier, to achieve more accuracy in the results we need to increase the number of intervals.

So we now study more methods for numerical integrations which

are more accurate as compared to

(3)

Romberg Integration: Romberg integration is based on successive applications of Trapezoidal rule to obtain more accurate results for the

integral of functions with less efforts.

In order to understand about the Romberg

integration we first understand about Richardson’s Extrapolation.

(4)

Richardson’s Extrapolation: These methods use two estimates to get more accurate approximation.

The estimate and error associated with a multiple-application trapezoidal rule can be represented as,

---(1)

where I is the exact value of the integral. I(h) is approximation from an n-segment application of trapezoidal rule and h = (b-a)/n is step size.

(5)

Suppose we have two different step sizes h1 and h2 such that

---(2) Error of n-segment trapezoidal rule is given

approximately by

---(3)

Suppose is independent of step size, then using (3), We can write the ratio of errors,

(6)

We can further write Eq. (4) as

---(5)

Using (5) in (2), We get

---(6)

(7)

We use Eqn (6) into following Eq.

---(7)

and get an improved estimate for the result of Integral

---(8)

Error of above estimate is O(h4) and hence more

(8)

If h = h/2, then we have,

(9)

Example: Integrate the following function from

a = 0 to b = 0.8 using improved method discussed On last slides. Exact value of integral is 1.640533.

(10)

Now we combine the estimates for the one and two segments from given table to get an improved result using (9). We get

The error in improved estimate is

If we use 2 and 4 segment trap rule from table then improved result is

(11)

So far we combined the integral with error of order (h2)

to find improved estimate of the integral with error of order (h4).

Now we can combined the integrals of order (h4) to find

More improved estimate of order (h6). Equation for

Integral estimate will be

(12)

Two integral of order (h6) can be combined to compute

an integral of order (h8) and Equation is

Example: In last examples we obtained two estimates for the integral of order (h4). These were 1.367467 and 1.623467.

Using these we can find more accurate estimate for integral of order (h6) . So we get

(13)

Romberg Integration Algorithm : The Romberg integration is implemented using

In above Eq. and are more and less accurate integrals respectively.

Index k signifies level of accuracy. k= 1 corresponds to ordinary Trapezoidal rule (O(h2)).

k =2 corresponds to (O(h4)) and k = 3 corresponds

to (O(h6)). j distinguish between more (j+1) and less (j)

(14)
(15)
(16)

Gauss Quadrature Formula: In the Newton Cotes formula which we discussed so far the position

of base point was predetermine or fixed.

The formula for trapezoidal rule which give area under straight line is given by

As can be seen from fig there can be situations

(17)

However note that if we are free to choose the end points within which we have to join the

straight line, then suitably choosing the end points

we can decrease the error in result. Gauss Quadrature formula is one such technique to implement above

(18)

Method of undetermined Coefficients: From the method of undetermined coefficients we shall

first find the Trapezoidal rule. This will help

us in implementing the Gauss Quadrature formula.

We can write using Eq. (1), the following Eq.

(19)
(20)

We can write following two equations for constant function and straight line respectively

And

Solving further we get

---(3) .

(21)

Solving (3) and (4), we get

---(5)

Using (5) in (2), we get

----(6)

(22)

Two Point Gauss Legendre Formula: For

Gauss quadrature formula we consider equation

---(7)

Where c’s are unknwon coefficients. In above Eq., in contrast to Trapezoidal

rule, now we have arguments x0 and x1 which are not fixed at end points but are unknown. So we have

(23)

To get four conditions, we assume that Eq. (7) fit integral of constant, integral of linear function, integral of parabolic ( y=x2) and integral of

cubic (y=x3) function exactly.

---(8)

---(9)

---(10)

(24)

Solving above four equations simultaneously we get following values for unkowns

Using above values in Eq. (7) we get two point Gauss Legendre Formula

---(12)

(25)

Note that in above calculations we used the integration limits -1 to +1. We can change other limits to above

limits. For this we consider a linear relation between new variable xd and original variable x i.e.

---(13)

Now let lower limit x = a corresponds to xd = -1. Using These in above equation we get

---(14) For upper limit x = b, xd = +1. So we get from (13),

(26)

Solving (14) and (15) we get

---(15)

---(16) Using (15) and (16) in (13) we get

---(17)

Differentiating above eq, we have

(27)

Example: Integrate following integral from limits x = 0 to 0.8 using Two point Guass Quadrature

Technique

ANS: We first change the limits a = 0 and b = 0.8 to -1 and +1. We have using (17) and (18),

---(19)

(28)

Using (19) and (20) in original equation we get,

---(21)

Now note that the right side of above eq. is in form which is suitable for implementing Gauss

(29)

The transformed function can be evaluated at -1/sqrt(3) and 1/sqrt(3).

Finally we get following value for integral of given function

References

Related documents

It is well-known that the trapezoidal rule, while being only second-order accurate in general, improves to spectral accuracy if applied to the integration of a smooth periodic

Some numerical methods were proposed to estimate signal integral [11]: i) The trapezoidal rule; ii) Simpson’s rule. For the above numerical integrating methods, if stochastic

We can obtain the infinite series forms of any order derivatives of these two types of functions by using Leibniz differential rule, differentiation term by term, and

The midpoint rule, Trapezoidal rule and Simpson’s rule is to introduce the technique and analysis of quadrature methods, Composite Simpson’s rule is easy to use and produces

Trapezoidal rule was based on approximating the integrand by a first order polynomial, and then integrating the polynomial in the interval of integration. Simpson’s 1/3rd rule is

Numerical integration, General quadrature formula, Trapezoidal and Simpson’s rules, Weddle’s rule, Cote’s formula, Numerical solution of first order differential equations :

The definite integral (3.3) can be solved by using suitable numerical methods (for example composite trapezoidal rule, composite Simpson’s 1/3 rule, composite Simpson’s 3/8

are needed and it is not easy to obtain accurate results, especially for hot stamping applications. Conventional formability test methods used to determine