MHB Verifying Int. of f(x) Using Trapezoid Rule

  • Thread starter Thread starter shamieh
  • Start date Start date
  • Tags Tags
    Trapezoid
Click For Summary
The discussion focuses on verifying the calculation of the integral of the function f(x) using the trapezoid rule. The user initially calculated the integral as approximately 4.5605 but was informed that this result was incorrect due to an error in the constant factor used in the trapezoid rule formula. After recalculating with the correct constant, the revised estimate of the integral is approximately 2.28025, which was confirmed as accurate by another forum member. The user expressed gratitude for the assistance received from the forum. Accurate calculations are crucial for understanding integral approximations.
shamieh
Messages
538
Reaction score
0
Just need someone to verify my solution and that I have done my calculations correctly. Thank you again for all of your help in advance, everyone on this forum has helped me SO much with my classes this semester.

Using the trapezoid rule.

The following data was collected about the function $$f(x)$$

Estimate $$\int^{1.25}_0 f(x) \, dx$$

$$x | f(x)$$

$$0 | 3.000$$

$$.25 | 2.540$$

$$.50 | 1.583$$

$$.75 | 1.010$$

$$1.00 | 1.346$$

$$1.25 | 2.284$$

I ended up with $$.25[3.000 + 2(2.540) + 2(1.583) + 2(1.010) + 2(1.346) + 2.284] \approx 4.5605$$
 
Physics news on Phys.org
The constant in front should be:

$$\frac{b-a}{2n}=\frac{1.25-0}{2\cdot5}=0.125$$

Your result is twice as large as it should be. :D
 
MarkFL said:
The constant in front should be:

$$\frac{b-a}{2n}=\frac{1.25-0}{2\cdot5}=0.125$$

Your result is twice as large as it should be. :D

I knew something didn't look right...lol
Thanks Mark!

- - - Updated - - -

so does $\approx 2.28025$ look more accurate?
 
Yes, that looks good. :D
 
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 4 ·
Replies
4
Views
2K
Replies
1
Views
6K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K