MHB Trapezoid & Simpson's Rule with their respective errors.

  • Thread starter Thread starter Jboeding
  • Start date Start date
  • Tags Tags
    Errors Trapezoid
Jboeding
Messages
9
Reaction score
0
Hey Everyone,

I know I just posted yesterday, but I have another problem from the first chapter of my Calc 2 summer course that I would like to iron out.

Integral of (5/x)dx from 1 to e
with n=4, 8 finding both Trapezoid rule and Simpson's rule approximations, and their errors.

I know how to do both trapezoid rule and the Simpson's rule, but I never get the correct values for this problem, for an unknown reason.

So, from 1 to e, with n=4, I get these values:
∆x = (b-a)/n = (e-1)/4
Values: 1, ((e/4) + (3/4)), ((e/2) + (1/2)), ((3e/4) + (1/4)), e

Plug into the formula:
∆x[(1/2)f(x1) + f(x2) + f(x3) +... + (1/2)f(xn)]

I get: 5.46027, but the answer is different below.

What am I doing wrong?
What is with the +/- at the end of each problem (it is online work).
Is there a way to input this into your calculator for when the n values are up there? (I have a TI-89)

Answer:
Trapezoid(4) = 5.06195 +/- .000004 -OR- 5.065192 +/- .000004
Trapezoid(8) = 5.01635 +/- .000004 -OR- 5.016532 +/- .000004
Simpson's(8) = 5.00315 +/- .000004 -OR- 5.00312 +/- .000004
T(Error) = .016535
S(Error) = .000315

Thanks everyone,
- Jacob
 
Physics news on Phys.org
Jboeding said:
Plug into the formula:
∆x[(1/2)f(x1) + f(x2) + f(x3) +... + (1/2)f(xn)]

I get: 5.46027, but the answer is different below.
I get 5.065195. Perhaps you can post your values for $x_1,\dots,x_5$, $f(x_1),\dots,f(x_5)$ and $\Delta x$ so that we can check.

Jboeding said:
What is with the +/- at the end of each problem (it is online work).
I am not sure what you mean.
 
Evgeny.Makarov said:
I get 5.065195. Perhaps you can post your values for $x_1,\dots,x_5$, $f(x_1),\dots,f(x_5)$ and $\Delta x$ so that we can check.

I am not sure what you mean.

I got it now, thanks for your help.
I think I was just clumping them all together when I should've done it piece by piece. I also changed my float number to include more decimals.

- Jacob
 
Back
Top