Your SlideShare is downloading. ×
0
Numerical Methods - NumericalIntegrationN. B. VyasDepartment of Mathematics,Atmiya Institute of Tech. and Science, Rajkot ...
Numerical IntegrationLet I =bay dx where y = f(x) takes the values y0, y1, . . . , yn forx0, x1, . . . , xnN. B. Vyas Nume...
Numerical IntegrationLet I =bay dx where y = f(x) takes the values y0, y1, . . . , yn forx0, x1, . . . , xnLet us divide t...
Numerical IntegrationLet I =bay dx where y = f(x) takes the values y0, y1, . . . , yn forx0, x1, . . . , xnLet us divide t...
Numerical IntegrationLet I =bay dx where y = f(x) takes the values y0, y1, . . . , yn forx0, x1, . . . , xnLet us divide t...
Numerical IntegrationSimpson’s13rd rule:N. B. Vyas Numerical Methods - Numerical Integration
Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anN. B...
Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anwhil...
Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anwhil...
Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anwhil...
Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anwhil...
Numerical IntegrationGaussian Integration Formula:1−1f(t)dt =ni=1wif(ti)It should be noted here that, t = ±1 is obtained b...
Numerical IntegrationGaussian Integration Formula: The following table gives thevalues for n = 2, 3, 4, 5N. B. Vyas Numeri...
ExampleEx. Evaluate10e−x2dx by using Gaussion integration formula forn = 3.Sol. Here, we have to first convert the given in...
ErrorError in Quadrature Formula:If yp is a polynomial representing the function y = f(x) in theinterval [x0, xn] the erro...
ErrorError in Trapezoidal rule:|error| ≤ (b − a)h212|f (M)|where f (M) = max |f 0(x)|, |f 1(x)|, ..., |f n−1(x)|∴ error is...
ErrorError in Simpson’s13rd rule:|error| ≤ (b − a)h4180|f4(M)|where f4(M) = max |y40|, |y42|, ..., |y4n−2|∴ error is of or...
ErrorError in Simpson’s38th rule:|error| ≤ (b − a)h480|f4(M)|where f4(M) = max |y40|, |y43|, ..., |y4n−3|∴ error is of ord...
Upcoming SlideShare
Loading in...5
×

Numerical Methods 3

1,127

Published on

Numerical Methods 3

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,127
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
71
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Numerical Methods 3"

  1. 1. Numerical Methods - NumericalIntegrationN. B. VyasDepartment of Mathematics,Atmiya Institute of Tech. and Science, Rajkot (Guj.)niravbvyas@gmail.comN. B. Vyas Numerical Methods - Numerical Integration
  2. 2. Numerical IntegrationLet I =bay dx where y = f(x) takes the values y0, y1, . . . , yn forx0, x1, . . . , xnN. B. Vyas Numerical Methods - Numerical Integration
  3. 3. Numerical IntegrationLet I =bay dx where y = f(x) takes the values y0, y1, . . . , yn forx0, x1, . . . , xnLet us divide the interval (a, b) into n sub-intervals of width h sothat x0 = a, x1 = a + h = x0 + h, x2 = x0 + 2h, . . .,xn = x0 + nh = b thenN. B. Vyas Numerical Methods - Numerical Integration
  4. 4. Numerical IntegrationLet I =bay dx where y = f(x) takes the values y0, y1, . . . , yn forx0, x1, . . . , xnLet us divide the interval (a, b) into n sub-intervals of width h sothat x0 = a, x1 = a + h = x0 + h, x2 = x0 + 2h, . . .,xn = x0 + nh = b thenI =bay dx =x0+nhx0f(x) dxN. B. Vyas Numerical Methods - Numerical Integration
  5. 5. Numerical IntegrationLet I =bay dx where y = f(x) takes the values y0, y1, . . . , yn forx0, x1, . . . , xnLet us divide the interval (a, b) into n sub-intervals of width h sothat x0 = a, x1 = a + h = x0 + h, x2 = x0 + 2h, . . .,xn = x0 + nh = b thenI =bay dx =x0+nhx0f(x) dxTrapezoidal rule:b=x0+nha=x0f(x)dx =h2[(y0 + yn) + 2 (y1 + y2 + .... + yn)]; h =b − anIf the number of strips is increased; that is, h is decreased, thenthe accuracy of the approximation is increased.N. B. Vyas Numerical Methods - Numerical Integration
  6. 6. Numerical IntegrationSimpson’s13rd rule:N. B. Vyas Numerical Methods - Numerical Integration
  7. 7. Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anN. B. Vyas Numerical Methods - Numerical Integration
  8. 8. Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anwhile applying this rule, the given interval must be divided intoeven number of equal sub-intervals. i.e. n must be even.N. B. Vyas Numerical Methods - Numerical Integration
  9. 9. Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anwhile applying this rule, the given interval must be divided intoeven number of equal sub-intervals. i.e. n must be even.Simpson’s38th rule:N. B. Vyas Numerical Methods - Numerical Integration
  10. 10. Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anwhile applying this rule, the given interval must be divided intoeven number of equal sub-intervals. i.e. n must be even.Simpson’s38th rule:x0+nhx0f(x)dx = 3h8 [(y0 + yn) + 3(y1 + y2 + y4 + y5 + ....)+2(y3 + y6 + ....)]; h = b−anN. B. Vyas Numerical Methods - Numerical Integration
  11. 11. Numerical IntegrationSimpson’s13rd rule:x0+nhx0f(x)dx = h3 [(y0 + yn) + 4(y1 + y3 + ....)+2(y3 + y4 + ....)]; h = b−anwhile applying this rule, the given interval must be divided intoeven number of equal sub-intervals. i.e. n must be even.Simpson’s38th rule:x0+nhx0f(x)dx = 3h8 [(y0 + yn) + 3(y1 + y2 + y4 + y5 + ....)+2(y3 + y6 + ....)]; h = b−anwhile applying this rule, the number of sub-intervals should betaken as a multiple of 3 i.e. n must be multiple of 3N. B. Vyas Numerical Methods - Numerical Integration
  12. 12. Numerical IntegrationGaussian Integration Formula:1−1f(t)dt =ni=1wif(ti)It should be noted here that, t = ±1 is obtained by settingx =12[(b + a) + t (b − a)]N. B. Vyas Numerical Methods - Numerical Integration
  13. 13. Numerical IntegrationGaussian Integration Formula: The following table gives thevalues for n = 2, 3, 4, 5N. B. Vyas Numerical Methods - Numerical Integration
  14. 14. ExampleEx. Evaluate10e−x2dx by using Gaussion integration formula forn = 3.Sol. Here, we have to first convert the given integral from 0 to 1 intoan integral from −1 to 1. x = 12 [(b + a) + t (b − a)], a = 0 andb = 1∴ x =t + 12⇒ dx =dt2∴10exp(−x2)dx =121−1exp −14(t + 1)2 dtN. B. Vyas Numerical Methods - Numerical Integration
  15. 15. ErrorError in Quadrature Formula:If yp is a polynomial representing the function y = f(x) in theinterval [x0, xn] the error in the quadrature formula is given byE =xnx0f(x) =xnx0ypdxN. B. Vyas Numerical Methods - Numerical Integration
  16. 16. ErrorError in Trapezoidal rule:|error| ≤ (b − a)h212|f (M)|where f (M) = max |f 0(x)|, |f 1(x)|, ..., |f n−1(x)|∴ error is of order h2total error =dh312y 0 + y 1 + ... + y n−1N. B. Vyas Numerical Methods - Numerical Integration
  17. 17. ErrorError in Simpson’s13rd rule:|error| ≤ (b − a)h4180|f4(M)|where f4(M) = max |y40|, |y42|, ..., |y4n−2|∴ error is of order h4total error =h590y40 + y42 + ... + y4n−2N. B. Vyas Numerical Methods - Numerical Integration
  18. 18. ErrorError in Simpson’s38th rule:|error| ≤ (b − a)h480|f4(M)|where f4(M) = max |y40|, |y43|, ..., |y4n−3|∴ error is of order h4total error =3h580y40 + y43 + ... + y4n−3N. B. Vyas Numerical Methods - Numerical Integration
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×