SlideShare a Scribd company logo
13
Most read
14
Most read
21
Most read
Trapezoidal 
Method
Acknowledgement 
Md. Jashim Uddin 
Assistant Professor 
Dept. Of Natural Sciences 
Dept. Of Computer Science and 
Engineering 
Daffodil International University
Content 
 What is Trapezoidal Method 
 General Formula of Integration 
 How it works 
 History of Trapezoidal Method 
 Advantages 
 Application of Trapezoidal Rule 
 Example 
 Problem & Algorithm 
 C code for Trapezoidal Rule 
 Live Preview 
 Conclusion 
 References
Team : Root Finder 
Group Member : 
• Syed Ahmed Zaki ID:131-15-2169 
• Fatema Khatun ID:131-15-2372 
• Sumi Basak ID:131-15-2364 
• Priangka Kirtania ID:131-15-2385 
• Afruza Zinnurain ID:131-15-2345
What is Trapezoidal Method ? 
In numerical analysis, the trapezoidal rule or method is a 
technique for approximating the definite integral. 
푥푛 
푥0 
f(x) dx 
It also known as Trapezium rule. 
1
General Formula of Integration 
In general Integration formula when n=1 its 
Trapezoidal rule. 
I=h[n푦0+ 
푛2 
2 
Δ푦0+ 
2푛3−3푛2 
12 
Δ2푦0+ 
푛4−4푛3+4푛2 
24 
Δ3푦0 + ⋯ ] 
After putting n=1, 
Trapezoidal Rule = 
ℎ 
2 
[푦0 + 푦푛 + 2(푦1 + 푦2 + 푦3 + ⋯ . 푦푛−1)] 
2
How it works ? 
Trapezoid is an one kind of rectangle which has 4 sides and minimum two 
sides are parallel 
Area A= 
푏1+푏2 
2 
ℎ 
3
The trapezoidal rule works 
by approximating the region 
under the graph of the 
function as a trapezoid and 
calculating its area in limit. 
It follows that, 
푏 
f(x) dx ≈ 
푎 
(b−a) 
2 
[f(a) +f(b)] 
4
The trapezoidal rule 
approximation improves 
With More strips , from 
This figure we can clearly 
See it 
5
History Of Trapezoidal Method 
• Trapezoidal Rule,” by Nick Trefethen and 
André Weideman. It deals with a fundamental and 
classical issue in numerical analysis—approximating 
an integral. 
• By focusing on up-to-date covergence of recent 
results 
Trefethen 
6
Advantages 
There are many alternatives to the trapezoidal rule, 
but this method deserves attention because of 
• Its ease of use 
• Powerful convergence properties 
• Straightforward analysis 
7
Application of Trapezoidal Rule 
• The trapezoidal rule is one of the family members of 
numerical-integration formula. 
• The trapezoidal rule has faster convergence. 
• Moreover, the trapezoidal rule tends to become 
extremely accurate than periodic functions 
8
Example: 
푥1 푥2 푥3 
=2 =3 =4 
=1 =5 
5 
1 + 푥2 푑푥 
1 
h = 
5−1 
4 
=1 
Trapezoidal Rule = 
1 
2 
[ 푓(1) + 푓(5) + 2(푓(2) + 푓(3) + 푓(4)] 
= 
1 
2 
[ (1 + 12) + (1 + 52) + 2((1 + 22) + (1 + 32) + (1 + 42)] 
= 
1 
2 
× 92 
= 46 9
Problem & Algorithm 
Problem: Here we have to find integration for the (1+푥2)dx 
with lower limit =1 to upper limit = 5 
Algorithm: 
Step 1: input a,b,number of interval n 
Step 2: h=(b-a)/n 
Step 3: sum=f(a)+f(b) 
Step 4: If n=1,2,3,……i 
Then , sum=sum+2*y(a+i*h) 
Step 5: Display output=sum *h/2 
10
C Code for Trapezoidal Method 
#include<stdio.h> 
float y(float x) 
{ 
return (1+x*x); 
} 
int main() 
{ 
float a,b,h,sum; 
int i,n; 
printf("Enter a=x0(lower limit), b=xn(upper limit), number of 
subintervals: "); 
11
scanf("%f %f %d",&a,&b,&n); 
h=(b-a)/n; 
sum=y(a)+y(b); 
for(i=1;i<n;i++) 
{ 
sum=sum+2*y(a+i*h); 
} 
printf("n Value of integral is %f n",(h/2)*sum); 
return 0; 
} 
12
Live Preview 
Live Preview of Trapezoidal Method 
5 
1 + 푥2 푑푥 
1 
Lower limit =1 
Upper limit =5 
Interval h=4 
13
Conclusion 
Trapezoidal Method can be applied accurately for 
non periodic function, also in terms of periodic 
integrals. 
when periodic functions are integrated over their 
periods, trapezoidal looks for extremely accurate. 
14 
Periodic Integral Function
References 
 http://en.wikipedia.org/wiki/Trapezoidal_rule 
 http://blogs.siam.org/the-mathematics-and-history- 
of-the-trapezoidal-rule/ 
 And various relevant websites 
15
Presentation on Numerical Method (Trapezoidal Method)
Thank You

More Related Content

PPTX
Trapezoidal rule
PPTX
Trapezoidal rule
PPTX
trapezoidal and simpson's 1/3 and 3/8 rule
PPTX
Newton cotes integration method
PPTX
NUMERICAL INTEGRATION AND ITS APPLICATIONS
PPTX
Presentation on Numerical Integration
PPT
Derivation of Simpson's 1/3 rule
PPTX
simpion's 3/8 rule
Trapezoidal rule
Trapezoidal rule
trapezoidal and simpson's 1/3 and 3/8 rule
Newton cotes integration method
NUMERICAL INTEGRATION AND ITS APPLICATIONS
Presentation on Numerical Integration
Derivation of Simpson's 1/3 rule
simpion's 3/8 rule

What's hot (20)

PPT
Numerical integration
PPT
MATLAB : Numerical Differention and Integration
PPTX
Numerical differentiation
PPTX
Runge kutta
PPT
introduction to Numerical Analysis
PPTX
presentation on Euler and Modified Euler method ,and Fitting of curve
PPT
Numerical integration
PPTX
Numerical analysis ppt
PPTX
Homogeneous Linear Differential Equations
PDF
Simpson's rule of integration
PPTX
Lagrange’s interpolation formula
PDF
Numerical Differentiation and Integration
PPT
Numerical method
PPTX
Iterative methods
PPT
Fourier series
PDF
Curve fitting - Lecture Notes
PDF
Study Material Numerical Differentiation and Integration
PPTX
Bisection method
PPTX
Interpolation
PPTX
GAUSS ELIMINATION METHOD
Numerical integration
MATLAB : Numerical Differention and Integration
Numerical differentiation
Runge kutta
introduction to Numerical Analysis
presentation on Euler and Modified Euler method ,and Fitting of curve
Numerical integration
Numerical analysis ppt
Homogeneous Linear Differential Equations
Simpson's rule of integration
Lagrange’s interpolation formula
Numerical Differentiation and Integration
Numerical method
Iterative methods
Fourier series
Curve fitting - Lecture Notes
Study Material Numerical Differentiation and Integration
Bisection method
Interpolation
GAUSS ELIMINATION METHOD
Ad

Similar to Presentation on Numerical Method (Trapezoidal Method) (20)

PPTX
Numerical
PDF
Ankit_Practical_File-1.pdf A detailed overview of Rizir as a brand
PPTX
numerical method hgg hghg hg12500223125.pptx
PDF
Numerical Integration: Trapezoidal Rule
DOCX
Trapezoidal Method IN Numerical Analysis
PPTX
CE324-Module-9-10-Week-5-1st-Session.pptx
PPT
Chapter 3
PPT
25285 mws gen_int_ppt_trapcontinuous
PDF
Applied numerical methods lec10
PPTX
TRAPEZOIDAL RULE IN NUMERICAL ANYLISIS.pptx
PPTX
NUMERICAL METHOD'S
PDF
Efficient Accuracy: A Study on Numerical Integration.
PPT
Calc 4.6
PPT
Introduction to Differential Equations
PPT
Section 1-4 -- Trapezoid Rule
PPT
Numerical differentiation integration
PPT
mtl_gen_int_ppt_romberg.ppt 6 6 6
PPTX
Multiple sagement trapezoidal rule
DOCX
Numerical Analysis and Computer Applications
PPT
1519 differentiation-integration-02
Numerical
Ankit_Practical_File-1.pdf A detailed overview of Rizir as a brand
numerical method hgg hghg hg12500223125.pptx
Numerical Integration: Trapezoidal Rule
Trapezoidal Method IN Numerical Analysis
CE324-Module-9-10-Week-5-1st-Session.pptx
Chapter 3
25285 mws gen_int_ppt_trapcontinuous
Applied numerical methods lec10
TRAPEZOIDAL RULE IN NUMERICAL ANYLISIS.pptx
NUMERICAL METHOD'S
Efficient Accuracy: A Study on Numerical Integration.
Calc 4.6
Introduction to Differential Equations
Section 1-4 -- Trapezoid Rule
Numerical differentiation integration
mtl_gen_int_ppt_romberg.ppt 6 6 6
Multiple sagement trapezoidal rule
Numerical Analysis and Computer Applications
1519 differentiation-integration-02
Ad

More from Syed Ahmed Zaki (11)

PDF
Networking Lab Report
PDF
Lab report assembly
PDF
Assignment on Numerical Method C Code
PPTX
Presentation on Transmission Media
PPTX
Architecture of 80286 microprocessor
PPTX
Algorithm Presentation
PPSX
Importance of Electric Device Knowledge in Computer Science Education
PPTX
Presentation on bernoulli
PPTX
Presentation on inverse matrix
PDF
Project Report - Diabetic Profile Management System : Structured Programming ...
PPTX
History and Real Life Applications of Fourier Analaysis
Networking Lab Report
Lab report assembly
Assignment on Numerical Method C Code
Presentation on Transmission Media
Architecture of 80286 microprocessor
Algorithm Presentation
Importance of Electric Device Knowledge in Computer Science Education
Presentation on bernoulli
Presentation on inverse matrix
Project Report - Diabetic Profile Management System : Structured Programming ...
History and Real Life Applications of Fourier Analaysis

Recently uploaded (20)

PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
web development for engineering and engineering
PDF
PPT on Performance Review to get promotions
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Welding lecture in detail for understanding
PDF
composite construction of structures.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
UNIT 4 Total Quality Management .pptx
DOCX
573137875-Attendance-Management-System-original
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
bas. eng. economics group 4 presentation 1.pptx
OOP with Java - Java Introduction (Basics)
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
web development for engineering and engineering
PPT on Performance Review to get promotions
Mechanical Engineering MATERIALS Selection
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Welding lecture in detail for understanding
composite construction of structures.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
UNIT 4 Total Quality Management .pptx
573137875-Attendance-Management-System-original

Presentation on Numerical Method (Trapezoidal Method)

  • 2. Acknowledgement Md. Jashim Uddin Assistant Professor Dept. Of Natural Sciences Dept. Of Computer Science and Engineering Daffodil International University
  • 3. Content  What is Trapezoidal Method  General Formula of Integration  How it works  History of Trapezoidal Method  Advantages  Application of Trapezoidal Rule  Example  Problem & Algorithm  C code for Trapezoidal Rule  Live Preview  Conclusion  References
  • 4. Team : Root Finder Group Member : • Syed Ahmed Zaki ID:131-15-2169 • Fatema Khatun ID:131-15-2372 • Sumi Basak ID:131-15-2364 • Priangka Kirtania ID:131-15-2385 • Afruza Zinnurain ID:131-15-2345
  • 5. What is Trapezoidal Method ? In numerical analysis, the trapezoidal rule or method is a technique for approximating the definite integral. 푥푛 푥0 f(x) dx It also known as Trapezium rule. 1
  • 6. General Formula of Integration In general Integration formula when n=1 its Trapezoidal rule. I=h[n푦0+ 푛2 2 Δ푦0+ 2푛3−3푛2 12 Δ2푦0+ 푛4−4푛3+4푛2 24 Δ3푦0 + ⋯ ] After putting n=1, Trapezoidal Rule = ℎ 2 [푦0 + 푦푛 + 2(푦1 + 푦2 + 푦3 + ⋯ . 푦푛−1)] 2
  • 7. How it works ? Trapezoid is an one kind of rectangle which has 4 sides and minimum two sides are parallel Area A= 푏1+푏2 2 ℎ 3
  • 8. The trapezoidal rule works by approximating the region under the graph of the function as a trapezoid and calculating its area in limit. It follows that, 푏 f(x) dx ≈ 푎 (b−a) 2 [f(a) +f(b)] 4
  • 9. The trapezoidal rule approximation improves With More strips , from This figure we can clearly See it 5
  • 10. History Of Trapezoidal Method • Trapezoidal Rule,” by Nick Trefethen and André Weideman. It deals with a fundamental and classical issue in numerical analysis—approximating an integral. • By focusing on up-to-date covergence of recent results Trefethen 6
  • 11. Advantages There are many alternatives to the trapezoidal rule, but this method deserves attention because of • Its ease of use • Powerful convergence properties • Straightforward analysis 7
  • 12. Application of Trapezoidal Rule • The trapezoidal rule is one of the family members of numerical-integration formula. • The trapezoidal rule has faster convergence. • Moreover, the trapezoidal rule tends to become extremely accurate than periodic functions 8
  • 13. Example: 푥1 푥2 푥3 =2 =3 =4 =1 =5 5 1 + 푥2 푑푥 1 h = 5−1 4 =1 Trapezoidal Rule = 1 2 [ 푓(1) + 푓(5) + 2(푓(2) + 푓(3) + 푓(4)] = 1 2 [ (1 + 12) + (1 + 52) + 2((1 + 22) + (1 + 32) + (1 + 42)] = 1 2 × 92 = 46 9
  • 14. Problem & Algorithm Problem: Here we have to find integration for the (1+푥2)dx with lower limit =1 to upper limit = 5 Algorithm: Step 1: input a,b,number of interval n Step 2: h=(b-a)/n Step 3: sum=f(a)+f(b) Step 4: If n=1,2,3,……i Then , sum=sum+2*y(a+i*h) Step 5: Display output=sum *h/2 10
  • 15. C Code for Trapezoidal Method #include<stdio.h> float y(float x) { return (1+x*x); } int main() { float a,b,h,sum; int i,n; printf("Enter a=x0(lower limit), b=xn(upper limit), number of subintervals: "); 11
  • 16. scanf("%f %f %d",&a,&b,&n); h=(b-a)/n; sum=y(a)+y(b); for(i=1;i<n;i++) { sum=sum+2*y(a+i*h); } printf("n Value of integral is %f n",(h/2)*sum); return 0; } 12
  • 17. Live Preview Live Preview of Trapezoidal Method 5 1 + 푥2 푑푥 1 Lower limit =1 Upper limit =5 Interval h=4 13
  • 18. Conclusion Trapezoidal Method can be applied accurately for non periodic function, also in terms of periodic integrals. when periodic functions are integrated over their periods, trapezoidal looks for extremely accurate. 14 Periodic Integral Function
  • 19. References  http://en.wikipedia.org/wiki/Trapezoidal_rule  http://blogs.siam.org/the-mathematics-and-history- of-the-trapezoidal-rule/  And various relevant websites 15