You are on page 1of 16

Faculty of Engineering Zagazig University 2009-2010 .Department of Engineering Mathematics and Physics.

Numerical integrations.Numerical solution of linear equations. Numerical solution of partial differential equations. Curve fitting. Numerical solution of ordinary differential equations. Numerical solution of non linear equations. .

Next The Main Menu ‫ا‬Previous .

Area a By using a numerical method of 0 approximate integration. Or it is given by a table. a b Where f(x) it is complicated to integrate analytically. Or the integral cannot be represented in terms of finitely elementary functions.Numerical integration It is the evaluation of a definite integral y y = f(x) b I   f(x) dx . Next The Main Menu ‫ا‬Previous x .

I   f(x) dx  h  [f(a)  f(b)]  f(x 1 )  f(x 2 )  .  f(x n 1 )... b =xn h f(a)  2 f(x 1 )  2 f(x 2 )  .y y = f(x) 0 b a I   f(x) dx  a x1 x2 xn-1 b x and a = x0.. 2 1  i .. e .  2 f(x n 1 )  f(b) . 2  a b Where h  b a n Next The Main Menu ‫ا‬Previous ...

9900 0.7788  10 2 0.8 0.6977 0.9 1.2 0.4 0.Evaluate 1 I  e x 2 dx by means of trapezoidal rule with n = 10.5273 0.1 n 10 2 Calculate the values of f(x)  e  x h  x 0 f(x) 1 1 I   e 0 0.1 0.7462 Next The Main Menu ‫ا‬Previous .5273  0.8521  0.6126 0.3679 1 1 [ (1  0.6977  0.5 0.9608  0.4449]  0. For 4D.9608  x2 dx  0.9139  0.4449 0.3679)  0.9139 0.9900  0.8521 0.6 0.6126  0. 0 b a 1   0 .0 0.3 0.7788 0.7 0.

 f(x 2 n 1 ) 2f(x 2 )  f(x 4 )  .. b = x2n Next The Main Menu ‫ا‬Previous .y y = f(x) 0 b I   f(x) dx  a a x1 x2 x3 x2n-1 b x h f(a)  f(b)  4f(x 1 )  f(x 3 )  .. 3 Where h  b a 2n and a = x0...  f(x 2 n 2 ).

9354  0.9682 0.. 0 b  a π/ 2  0 π h    2n 6 12 Calculate the values of f(x)  1  ((sinx) 2 / 4) b I  2 π 6 π 4 0.9682  0..9916  0.4674.8756 π 2 0.9354 x 0 π 12 f(x) 1 0..9014  1.8756 20..  f(x 2 n 2 ).8660 h f(a)  f(b)  4f(x 1 )  f(x 3 )  . For 4D.9014 5π 12 0. 3 x12 Next The Main Menu ‫ا‬Previous .8660  40.9916  I   f(x) dx  a 1 3 4 5 π 3 0.Evaluate π/ 2 I  1  ((sinx) 2 / 4) dx by means of Simpson’s rule with 2n = 6.  f(x 2 n 1 ) 2f(x 2 )  f(x 4 )  . 3  1  0.

8 b a h 3 b 3h f 0  5 f1  f 2  6 f 3  f 4  5 f 5  f 6 . 3h f 0  3 f1  3 f 2  f 3 .3  rule 8 b I   f(x) dx  a Where n = 3. Next h b a 6 The Main Menu ‫ا‬Previous . I   f(x) dx  10 a Where n = 6.

7622  1.2 h  b  a 0.5  0.3 0.1 3 3 Calculate the values of I  f(x)  e x sin 2 x x 0.5 I   e x sin 2 xdx .Evaluate 0. 8 Next The Main Menu ‫ا‬Previous .4 0.4756 0.5 f(x) 0.2 0.0702 1.1) 0. 8 0.2   0.7622 1.3873  0.4756  3(0.0702)  1. Using 3  rule .2760.3873 3(0.

3 0.0702 1.4756  5(0.2285 1.2 b  a 0.0702  5(1.45 6 0.35 0.6156)  0.05) 0.2 0.9142)  1.2285)  1. I  10 Next The Main Menu ‫ا‬Previous .7622  6(0.3873 3h f 0  5 f1  f 2  6 f 3  f 4  5 f 5  f 6 .Evaluate 0.4756 f(x) b  I   f(x) dx  a 0.6156 0.4 5 0.3873  0.2760. Using Weddl’s rule 0.2 h    0.9142 4 0.7622 0.5  0.5 I   e x sin 2 xdx .05 6 6 Calculate the values of f(x)  e x sin 2 x 0 1 2 3 x 0.5 1.25 0. 10 3(0.

The double integral evaluated as an iterated integral d b I    f(x. c a b d a c   (  f(x. using any integration method. y) dx dy . Next The Main Menu ‫ا‬Previous . We can the do the same. y) dx) dy . c a d b   (  f(x. y) dy) dx .

k = 0.1191 0.3 0.0916 0.0836 Next The Main Menu ‫ا‬Previous .0874 0.6 0.125 0.2 4.0962 0.1136 0.6 2 0.0988 0.4 4.1087 0. y)  1 xy y x 4 4.1087 2.Evaluate 2.6 I  2 1 4 xy dx dy.2 in x-direction.64.3 in y-direction.direction and Simpson’s rule in y-direction. Use in x.1035 0.0945 2. 3  rule 8 Calculate the values of f(x. take h = 0.

0836  0.1136)  0.0538 Next The Main Menu ‫ا‬Previous .1191  0.0988)  0.2) 0.1035  0.0538 8 We can put in the table  I2  y 2 2.3  I1  3(0.0916  0.  I0  8 For y =2.2) 0.0945  0.3 Applying  rule in x-direction 8 For y =2 3(0.6 3(0.0874)  0.1087  0.2) 0.0608 0.0608 8 For y =2.0962  3(0.1087  3(0.125  3(0.6 f(y) 0.0698 0.0698.3 2.

6 f(y) 0. 3 I  0 ... 3 Next The Main Menu ‫ا‬Previous ...0367.3 0.0538 k I  f(a)  f(b)  4f(x 1 )  f(x 3 )  .0698 0.0698  0.0608)  0.  f(x 2 n 1 ) 2f(x 2 )  f(x 4 )  .Applying Simpson’s in y-direction y 2 2.0608 0.  f(x 2 n  2 ).0538  4(0.3 2.