Calculus II Simpson's, Trapezoidal, and Midpoint Rule

  • Context: MHB 
  • Thread starter Thread starter ardentmed
  • Start date Start date
  • Tags Tags
    Calculus Calculus ii
Click For Summary
SUMMARY

This discussion focuses on the application of numerical integration techniques, specifically the Trapezoidal Rule, Midpoint Rule, and Simpson's Rule, to approximate the integral of a function. The user computed values for three parts of a question, yielding results of 1.732865 for the Trapezoidal Rule, 0.893713 for the Midpoint Rule, and 1.719693 for Simpson's Rule. The calculations involved specific intervals and function evaluations, highlighting the differences in accuracy between the methods used.

PREREQUISITES
  • Understanding of numerical integration techniques: Trapezoidal Rule, Midpoint Rule, Simpson's Rule
  • Familiarity with function evaluation and approximation methods
  • Basic knowledge of calculus concepts, particularly integrals
  • Ability to perform calculations involving limits and summations
NEXT STEPS
  • Study the derivation and application of the Trapezoidal Rule in detail
  • Learn about error analysis in numerical integration methods
  • Explore advanced numerical integration techniques such as Romberg integration
  • Investigate the impact of different step sizes on the accuracy of numerical approximations
USEFUL FOR

Students and educators in calculus, mathematicians focusing on numerical methods, and anyone looking to enhance their understanding of numerical integration techniques.

ardentmed
Messages
158
Reaction score
0
Hey guys, I'd appreciate some tips for this question.

1391f1257f53a17199f9_3.jpg


For question 7a, I used
1/2 * 4/8 [1f(x) + 2 + 2 + 2 + 1.. etc]
and computed 1.732865 as the answer.

For part b, I used 1/4, 3/4.. (etc.).. up to 15/4 for the midpoints, added the f(x) values of those points together, and divided by four. Oddly enough, I only got 0.893713 this time.

Finally, for question 7c, I used
1/3 * 4/8 [1f(x) + 4 + 2+ 4+ 2 + 4.. etc]
and computed 1.719693 as the answer, which is close to the trapezoidal approximation, but the midpoint approximation is what's throwing me off.

Thanks a ton, I really appreciate the help guys.
 
Physics news on Phys.org
For the trapezoidal one:
$a=0$
$b=4$
$n=8$
$\Delta x=\frac{4-0}{8}=\frac{1}{2}$

$T_{8}=\frac{0.5}{2}[f(0)+2f(0.5)+2f(1)+2f(1.5)+2f(2)+2f(2.5)+2f(3)+2f(3.5)+f(4)]=0.25[(\sqrt{0} \sin\left({0}\right))+2(\sqrt{0.5} \sin\left({0.5}\right))+2(\sqrt{1} \sin\left({1}\right))+2(\sqrt{1.5} \sin\left({1.5}\right))+2(\sqrt{2} \sin\left({2}\right))+2(\sqrt{2.5} \sin\left({2.5}\right))+2(\sqrt{3} \sin\left({3}\right))+2(\sqrt{3.5} \sin\left({3.5}\right))+(\sqrt{4} \sin\left({4}\right))]=1.73287$ For the Midpoint one:
$\Delta x$ is the same.
$M_{8}=0.5[f(\frac{1}{4})+f(\frac{3}{4})+f(\frac{5}{4})+f(\frac{7}{4})+f(\frac{9}{4})+f(\frac{11}{4})+f(\frac{13}{4})+f(\frac{15}{4})]=0.5[(\sqrt{1/4}*\sin\left({1/4}\right))+(\sqrt{3/4}*\sin\left({3/4}\right))+(\sqrt{5/4}*\sin\left({5/4}\right))+(\sqrt{7/4}*\sin\left({7/4}\right))+(\sqrt{9/4}*\sin\left({9/4}\right))+(\sqrt{11/4}*\sin\left({11/4}\right))+(\sqrt{13/4}*\sin\left({13/4}\right))+(\sqrt{15/4}*\sin\left({15/4}\right))]=1.78743$For the Simpsons one:
$\Delta x$ is the same.
$S_{8}=\frac{0.5}{3}[f(0)+4f(0.5)+2f(1)+4f(1.5)+2f(2)+4f(2.5)+2f(3)+4f(3.5)+f(4)]=[(\sqrt{0} \sin\left({0}\right))+4(\sqrt{0.5} \sin\left({0.5}\right))+2(\sqrt{1} \sin\left({1}\right))+4(\sqrt{1.5} \sin\left({1.5}\right))+2(\sqrt{2} \sin\left({2}\right))+4(\sqrt{2.5} \sin\left({2.5}\right))+2(\sqrt{3} \sin\left({3}\right))+4(\sqrt{3.5} \sin\left({3.5}\right))+(\sqrt{4} \sin\left({4}\right))]=1.77214$

i hope that helps
 
Last edited:
ardentmed said:
For question 7a, I used
1/2 * 4/8 [1f(x) + 2 + 2 + 2 + 1.. etc]
and computed 1.732865 as the answer.
I agree.

ardentmed said:
For part b, I used 1/4, 3/4.. (etc.).. up to 15/4 for the midpoints, added the f(x) values of those points together, and divided by four. Oddly enough, I only got 0.893713 this time.
Hint: your answer is two times less than the correct one.

ardentmed said:
Finally, for question 7c, I used
1/3 * 4/8 [1f(x) + 4 + 2+ 4+ 2 + 4.. etc]
and computed 1.719693 as the answer, which is close to the trapezoidal approximation
I got 1.77214.
 
You guys are brilliant. Thanks!
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K