Docsity

Gauss Integration 1-Finite Element Method-Assignment Solution, Exercises of Mathematical Methods for Numerical Analysis and Optimization

Partial preview of the text

Download Gauss Integration 1-Finite Element Method-Assignment Solution and more Exercises Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

  • Problem # 4.

Problem # 4.

Evaluate the integral

Using the following methods and compare the results: (a) Two-point Gauss integration (b) Analytical integration

Solution:

(a) Using Two-point Gauss integration

The general form of the gauss integration is

Where is called the "weight" associated with the ith point, and n is the number of sampling points. This means that in order to evaluate the integral, we evaluate the function at several sampling points, multiply each value by an appropriate weight , and add.

As we have to use two-point gauss integration so for this

……………………………………... (1)

Now

From the table 4.1 for two-points, we have

x 1 = -0.577350269189626, w 1 =1.

x 2 = 0.577350269189626, w 2 =1.

From the given problem we have

Comparison

The gauss integration method is the numerical technique for evaluating an integral. In the given problem the polynomial is of degree 4 for which 3-point gauss formula will give the exact results but as mentioned in the problem that 2-point formula has to use so there will definitely be an error between numerical integration and analytical integration.