MHB Calculus II Simpson's, Trapezoidal, and Midpoint Rule

Click For Summary
The discussion centers on solving calculus problems using the Simpson's, Trapezoidal, and Midpoint rules. For question 7a, the trapezoidal rule yielded an answer of approximately 1.732865, while the midpoint rule in part b resulted in 0.893713, which was noted to be incorrect and too low. In question 7c, the Simpson's rule produced a value of about 1.719693, close to the trapezoidal approximation. Participants provided calculations and hints to correct the midpoint result. The conversation highlights the importance of accuracy in applying 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!
 
Thread 'Problem with calculating projections of curl using rotation of contour'
Hello! I tried to calculate projections of curl using rotation of coordinate system but I encountered with following problem. Given: ##rot_xA=\frac{\partial A_z}{\partial y}-\frac{\partial A_y}{\partial z}=0## ##rot_yA=\frac{\partial A_x}{\partial z}-\frac{\partial A_z}{\partial x}=1## ##rot_zA=\frac{\partial A_y}{\partial x}-\frac{\partial A_x}{\partial y}=0## I rotated ##yz##-plane of this coordinate system by an angle ##45## degrees about ##x##-axis and used rotation matrix to...

Similar threads

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