SlideShare a Scribd company logo
3
Most read
5
Most read
6
Most read
Simpson’s Rule of Integration
Dr. Varun Kumar
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 1 / 9
Outlines
1 Introduction to Simpson’s Rule
2 Mathematical Formulation
3 Example
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 2 / 9
Introduction to Simpson’s Rule
Important points
⇒ Numerical integration means the numerical evaluation of integrals
J =
Z b
a
f (x)dx = F(b) − F(a), where F0
(x) = f (x) (1)
a and b are given.
f (x) is a function given analytically.
J is the area under curve of f (x) between a and b.
⇒ As per Simpson’s rule
We divide the interval of integration a 5 x 5 b into an even number of
interval.
Ex- n = 2m or sub-interval length h = b−a
n
Interval points are x0 = a, x1, x2, ......, x2m−1, x2m = b.
Including end points, total 2m + 1 points are taken for consideration.
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 3 / 9
Continued–
⇒ We take and find the two sub-interval and approximate f (x) in the
interval x0 5 x 5 x2 = x0 + 2h.
⇒ Applying the Lagrange’s polynomial p2(x) through (x0, f0), (x1, f1),
(x2, f2)
p2(x) =
(x − x1)(x − x2)
(x0 − x1)(x0 − x2)
f0 +
(x − x0)(x − x2)
(x1 − x0)(x1 − x2)
f1 +
(x − x0)(x − x1)
(x2 − x0)(x2 − x1)
f2 (2)
⇒ The denominator terms are 2h2
, -h2
and 2h2
, respectively.
⇒ Let s = (x−x1)
h
then
p2(x) =
1
2
s(s − 1)f0 − (s + 1)(s − 1)f1 +
1
2
(s + 1)sf2 (3)
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 4 / 9
Geometrical Interpretation of Simpson’s Rule
Figure: Simpson’s Rule
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 5 / 9
Algorithm of Simpson’s Rule
Algorithm
It computes the integral
R b
a f (x)dx
Steps
⇒ INPUT: a, b, m, f0, f1, ....., f2m
⇒ Output: Approximate value ˜
J of J.
⇒ Compute s0 = f0 + f2m
s1 = f1 + f3 + ... + f2m−1
s2 = f2 + f4 + ... + f2m−2
h = (b−a)
2m
˜
J = h
3 (s0 + 4s1 + 2s2)
⇒ Mathematical expression of numerical integration using Simpson’s
Rule
Z b
a
f (x)dx ≈
h
3

f0+4f1+2f2+4f3+...+2f2m−2+42f2m−1+f2m

(4)
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 6 / 9
Example–
Example
Q Evaluate the following definite integral J with 2m = 10, where
J =
Z 1
0
e−x2
dx
⇒ Solve the above integral using Simpson’s rule and estimate the error.
Ans Solution: According to question, a = 0, b = 1, 2m = 10 and
h = 1−0
10 = 0.1
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 7 / 9
Continued–
˜
J ≈ h
3
h
1.367879 + 4 × 3.740266 + 2 × 3.037901
i
= 0.746825
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 8 / 9
Integration accuracy
Solve the standard integral and check its accuracy using rectangular
and trapezoidal rule
1
R 1
0 x2dx
2
R 3
1
1
1+x dx
3
R π/2
0
cos x
sin5
x
dx
4
R 2
1 x2e2x dx
5
R 11
4
x3
1+x5 dx
6
R 1
0 x cos xdx
Note: Students can also observe the effect of n on definite integral
accuracy.
Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 9 / 9

More Related Content

PDF
Solving Quadratic Equations
PPT
Derivation of Simpson's 1/3 rule
PPT
Laws of exponents
PPT
Exponential functions
PPTX
Math presentation on domain and range
PPTX
FTIR spectrophotometer
PDF
Numerical Differentiation and Integration
PPTX
Noise in communication system
Solving Quadratic Equations
Derivation of Simpson's 1/3 rule
Laws of exponents
Exponential functions
Math presentation on domain and range
FTIR spectrophotometer
Numerical Differentiation and Integration
Noise in communication system

What's hot (20)

PPT
Numerical integration
PPTX
simpion's 3/8 rule
PPT
Numerical integration
PPTX
Maxima & Minima of Calculus
PPT
Partial Differentiation & Application
PPT
21 simpson's rule
PDF
Beta gamma functions
PPTX
Presentation on Numerical Method (Trapezoidal Method)
PPTX
Partial Derivatives
PDF
Numerical Integration: Trapezoidal Rule
PPTX
Presentation on Numerical Integration
PPT
Application of derivatives 2 maxima and minima
PDF
Integral calculus
PPT
Fourier series
PPTX
the fourier series
PPTX
Divergence,curl,gradient
PPTX
14.6 triple integrals in cylindrical and spherical coordinates
PDF
Function of several variables
PPSX
Complex number
Numerical integration
simpion's 3/8 rule
Numerical integration
Maxima & Minima of Calculus
Partial Differentiation & Application
21 simpson's rule
Beta gamma functions
Presentation on Numerical Method (Trapezoidal Method)
Partial Derivatives
Numerical Integration: Trapezoidal Rule
Presentation on Numerical Integration
Application of derivatives 2 maxima and minima
Integral calculus
Fourier series
the fourier series
Divergence,curl,gradient
14.6 triple integrals in cylindrical and spherical coordinates
Function of several variables
Complex number
Ad

Similar to Simpson's rule of integration (20)

PDF
Newton's Forward/Backward Difference Interpolation
PDF
Best polynomial approximation
PDF
Gaussian Numerical Integration
PDF
Newton's Divide and Difference Interpolation
PDF
Cubic Spline Interpolation
PPTX
Twinkle
PDF
Romberg's Integration
PDF
Evaluating definite integrals
PPT
Riemann sumsdefiniteintegrals
PDF
2. Definite Int. Theory Module-5.pdf
PPT
1519 differentiation-integration-02
PDF
10.1007 978 3-642-31137-6-9
DOCX
Statistics formulaee
PPT
Lar calc10 ch03_sec1
PPTX
Calculus 4.1-4.3
PPT
3_1 Exponential functions and their graphs (1).ppt
PDF
Applications of Differentiation
PDF
From moments to sparse representations, a geometric, algebraic and algorithmi...
PDF
Maths paper class 12 maths paper class 12
Newton's Forward/Backward Difference Interpolation
Best polynomial approximation
Gaussian Numerical Integration
Newton's Divide and Difference Interpolation
Cubic Spline Interpolation
Twinkle
Romberg's Integration
Evaluating definite integrals
Riemann sumsdefiniteintegrals
2. Definite Int. Theory Module-5.pdf
1519 differentiation-integration-02
10.1007 978 3-642-31137-6-9
Statistics formulaee
Lar calc10 ch03_sec1
Calculus 4.1-4.3
3_1 Exponential functions and their graphs (1).ppt
Applications of Differentiation
From moments to sparse representations, a geometric, algebraic and algorithmi...
Maths paper class 12 maths paper class 12
Ad

More from VARUN KUMAR (20)

PDF
Distributed rc Model
PDF
Electrical Wire Model
PDF
Interconnect Parameter in Digital VLSI Design
PDF
Introduction to Digital VLSI Design
PDF
Challenges of Massive MIMO System
PDF
E-democracy or Digital Democracy
PDF
Ethics of Parasitic Computing
PDF
Action Lines of Geneva Plan of Action
PDF
Geneva Plan of Action
PDF
Fair Use in the Electronic Age
PDF
Software as a Property
PDF
Orthogonal Polynomial
PDF
Patent Protection
PDF
Copyright Vs Patent and Trade Secrecy Law
PDF
Property Right and Software
PDF
Investigating Data Trials
PDF
Censorship and Controversy
PDF
Introduction to Censorship
PDF
Protect your online privacy-2
PDF
Interception Act vs Privacy Act
Distributed rc Model
Electrical Wire Model
Interconnect Parameter in Digital VLSI Design
Introduction to Digital VLSI Design
Challenges of Massive MIMO System
E-democracy or Digital Democracy
Ethics of Parasitic Computing
Action Lines of Geneva Plan of Action
Geneva Plan of Action
Fair Use in the Electronic Age
Software as a Property
Orthogonal Polynomial
Patent Protection
Copyright Vs Patent and Trade Secrecy Law
Property Right and Software
Investigating Data Trials
Censorship and Controversy
Introduction to Censorship
Protect your online privacy-2
Interception Act vs Privacy Act

Recently uploaded (20)

PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPT
Project quality management in manufacturing
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
web development for engineering and engineering
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Welding lecture in detail for understanding
PPTX
Construction Project Organization Group 2.pptx
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
additive manufacturing of ss316l using mig welding
PPT
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
PPT on Performance Review to get promotions
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Project quality management in manufacturing
CYBER-CRIMES AND SECURITY A guide to understanding
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
web development for engineering and engineering
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Welding lecture in detail for understanding
Construction Project Organization Group 2.pptx
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Geodesy 1.pptx...............................................
additive manufacturing of ss316l using mig welding
CRASH COURSE IN ALTERNATIVE PLUMBING CLASS
UNIT 4 Total Quality Management .pptx
Operating System & Kernel Study Guide-1 - converted.pdf
PPT on Performance Review to get promotions
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx

Simpson's rule of integration

  • 1. Simpson’s Rule of Integration Dr. Varun Kumar Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 1 / 9
  • 2. Outlines 1 Introduction to Simpson’s Rule 2 Mathematical Formulation 3 Example Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 2 / 9
  • 3. Introduction to Simpson’s Rule Important points ⇒ Numerical integration means the numerical evaluation of integrals J = Z b a f (x)dx = F(b) − F(a), where F0 (x) = f (x) (1) a and b are given. f (x) is a function given analytically. J is the area under curve of f (x) between a and b. ⇒ As per Simpson’s rule We divide the interval of integration a 5 x 5 b into an even number of interval. Ex- n = 2m or sub-interval length h = b−a n Interval points are x0 = a, x1, x2, ......, x2m−1, x2m = b. Including end points, total 2m + 1 points are taken for consideration. Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 3 / 9
  • 4. Continued– ⇒ We take and find the two sub-interval and approximate f (x) in the interval x0 5 x 5 x2 = x0 + 2h. ⇒ Applying the Lagrange’s polynomial p2(x) through (x0, f0), (x1, f1), (x2, f2) p2(x) = (x − x1)(x − x2) (x0 − x1)(x0 − x2) f0 + (x − x0)(x − x2) (x1 − x0)(x1 − x2) f1 + (x − x0)(x − x1) (x2 − x0)(x2 − x1) f2 (2) ⇒ The denominator terms are 2h2 , -h2 and 2h2 , respectively. ⇒ Let s = (x−x1) h then p2(x) = 1 2 s(s − 1)f0 − (s + 1)(s − 1)f1 + 1 2 (s + 1)sf2 (3) Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 4 / 9
  • 5. Geometrical Interpretation of Simpson’s Rule Figure: Simpson’s Rule Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 5 / 9
  • 6. Algorithm of Simpson’s Rule Algorithm It computes the integral R b a f (x)dx Steps ⇒ INPUT: a, b, m, f0, f1, ....., f2m ⇒ Output: Approximate value ˜ J of J. ⇒ Compute s0 = f0 + f2m s1 = f1 + f3 + ... + f2m−1 s2 = f2 + f4 + ... + f2m−2 h = (b−a) 2m ˜ J = h 3 (s0 + 4s1 + 2s2) ⇒ Mathematical expression of numerical integration using Simpson’s Rule Z b a f (x)dx ≈ h 3 f0+4f1+2f2+4f3+...+2f2m−2+42f2m−1+f2m (4) Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 6 / 9
  • 7. Example– Example Q Evaluate the following definite integral J with 2m = 10, where J = Z 1 0 e−x2 dx ⇒ Solve the above integral using Simpson’s rule and estimate the error. Ans Solution: According to question, a = 0, b = 1, 2m = 10 and h = 1−0 10 = 0.1 Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 7 / 9
  • 8. Continued– ˜ J ≈ h 3 h 1.367879 + 4 × 3.740266 + 2 × 3.037901 i = 0.746825 Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 8 / 9
  • 9. Integration accuracy Solve the standard integral and check its accuracy using rectangular and trapezoidal rule 1 R 1 0 x2dx 2 R 3 1 1 1+x dx 3 R π/2 0 cos x sin5 x dx 4 R 2 1 x2e2x dx 5 R 11 4 x3 1+x5 dx 6 R 1 0 x cos xdx Note: Students can also observe the effect of n on definite integral accuracy. Dr. Varun Kumar (IIIT Surat) Unit 5 / Lecture-2 9 / 9