0% found this document useful (0 votes)
48 views

Assignment 4

1. This document contains 20 numerical integration problems involving techniques like Simpson's rule, Simpson's 1/3 rule, Romberg integration, Gauss integration, and Trapezoidal integration. The problems involve evaluating definite integrals using the table of function values or formulas given. 2. The student is asked to evaluate definite integrals over various intervals using different numerical integration techniques, estimate errors, and in some cases calculate exact solutions for comparison. 3. The problems cover both single and double integrals, and involve functions including trigonometric, exponential, logarithmic and other common mathematical functions.

Uploaded by

Ghaida mohamed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Assignment 4

1. This document contains 20 numerical integration problems involving techniques like Simpson's rule, Simpson's 1/3 rule, Romberg integration, Gauss integration, and Trapezoidal integration. The problems involve evaluating definite integrals using the table of function values or formulas given. 2. The student is asked to evaluate definite integrals over various intervals using different numerical integration techniques, estimate errors, and in some cases calculate exact solutions for comparison. 3. The problems cover both single and double integrals, and involve functions including trigonometric, exponential, logarithmic and other common mathematical functions.

Uploaded by

Ghaida mohamed
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Cairo University Faculty of Engineering

Main-Stream Spring 2023


MTH 2134 Numerical Analysis

Assignment 4
Integration
2 .4
1. Using Simpson's rule to evaluate  ydx
0 .8
, and calculate its error .

x 0.8 1 1.2 1.4 1.6 1.8 2 2.2 2.4


y 1.3 1.7 2.3 3.2 4.7 6.2 8.1 9.2 9.8
1.2

 tan( x
2
2. Use Simpson 1/3 rule to evaluate )dx with n = 6 , then find the true error.
1
3.2
1
3. Estimate the error in evaluating I = 
2
x +1
dx , using Simpson 1/3 rule with n = 4 .

1.4

 xf
2
4. Use Romberg integration to find ( x )dx , where f ( x ) is given by the following table:
0.6

x 0.6 0.8 1.0 1.2 1.4 1.6 1.8


f ( x) 0.2404 0.2834 0.3245 0.3631 03992 0.4332 0.4641
1.2

 tan( x )dx , with error O(h 6 ).


2
5. Use Romberg integral to find
1
6. The following table gives f(x,y) at the given values of x and y :

y x -0.2 -0.1 0 0.1 0.2


1 4 5 2 1 7
1.3 3 2 4 8 1
1.5 6 4 5 5 3
1.7 2 7 1 9 4

0.1 1.3

a) Evaluate   f ( x, y)dydx with min. error.


−0.2 1
0.2

b) Evaluate  f ( x,1.3)dx
−0.2
with O(h6).
1.7
c) Evaluate  f (0.1, y)dy .
1
0.2

d) Find min. Ea for  f ( x,1.5)dx .


−0.2
5 5
7. Using Gauss integration to evaluate   ln( xy)dxdy
1 1
with three points.
1.4 1.4

  ln( x
2
8. Using Numerical integration to evaluate y )dxdy .
1 1
0 .3 0 .2

9. Use the following table for f(x,y) to evaluate   f ( x, y )dxdy .


0 .1 0 .1

xy 0.1 0.15 0.2


0.1 1.01 1.015 1.02
0.2 1.02 1.03 1.04
0.3 1.03 1.045 1.06

2x
10. Use Gauss method with n=3 to evaluate x
5
3
+3
dx

2.2

 cos (3 x )dx with min. error and evaluate it.( h = 0.2 ).


2
11. Evaluate
1

12.
x 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
y 2.718 3.354 4.221 5.419 7.099 9.488 12.94 17.98 25.54 36.97
1.9

 xy dx with min. error, then evaluate that error.


2
Use the above table to evaluate
1
13. For the following data
x 0.1 0.4 0.6 0.7 1.0 1.2 1.3
y 0.98 0.95 0.81 0.71 0.54 0.36 0.17
1.3
Evaluate  xy 2 dx up to O(h 6 ).
0.1

e −( x + y 2 + 2)
1.5 1.5 2

14. Use Trapezoidal integral to evaluate 


1 1 xy
dydx with n = 5 , then estimate your

error.

15. Use Gauss Integration formula with 𝒏 = 𝟐 to evaluate:


𝟏
𝟏 ∞ (𝒙+ ) 𝟏
𝒆 𝒚 𝐜𝐨𝐬 ( ) 𝐜𝐨𝐬(𝒚)
𝒙
∫∫ 𝒅𝒙𝒅𝒚
𝒙𝟐
𝟎 𝟏

𝟏 𝟏 𝟏
16. Use Romberg Integration formula to evaluate: ∫𝟎 ∫𝟎 ∫𝟎 𝐜𝐨𝐬 𝒙𝟐 𝐜𝐨𝐬 𝒚𝟐 𝐜𝐨𝐬 𝒛𝟐 𝒅𝒙 𝒅𝒚 𝒅𝒛.
Up to O(h6)
𝒚
𝟒 𝟐 (𝐥𝐧 𝒙)(𝐥𝐧𝟐)
17. Use Simpson’s formula with 𝒏 = 𝟖 to evaluate: ∫ ∫
𝟐 𝟏 𝒙𝒚
𝒅𝒙𝒅𝒚 .
√𝟐

∞ 𝟏
18. Use Gauss Integration formula with 𝒏 = 𝟑 to evaluate: ∫
𝟐 𝒙𝟐 +𝟒
𝒅𝒙 . Calculate the
𝟏 𝒙
percentage of true error if the analytical solution is: 𝟐 𝐭𝐚𝐧−𝟏 (𝟐).
𝟏.𝟒 𝟒.𝟓
19. Evaluate: ∫𝟏 ∫𝟐.𝟓 𝒇(𝒙, 𝒚) 𝒅𝒙𝒅𝒚 using an appropriate minimal error formula,
given the following table.

y x 2.5 3 3.5 4 4.5


1 4.2 4.3 4.7 4.9 5.2
1.2 3.8 3.9 4.1 4.5 4.8
1.4 2.7 2.8 2.9 3 3.1
𝝅
𝟒
20. Evaluate: ∫𝟎𝟐 ∫𝟎 √𝒙 + 𝟏 𝐬𝐢𝐧 𝒚 𝒅𝒙𝒅𝒚 using Romberg Extrapolation formula up to
O(h6). Estimate the percentage of true error if the exact solution is 6.7869

You might also like