How Does the Trapezium Rule Apply to Unequal Widths in Integration?

  • Thread starter Thread starter rock.freak667
  • Start date Start date
AI Thread Summary
The discussion focuses on applying the trapezium rule to integrate the function e^{-x} over the interval from 0 to 1 using two trapezia of unequal widths. The user initially struggles with the correct formulation of the trapezium rule and attempts to derive the expression for the approximation. A diagram of the exponential curve is suggested to visualize the trapezoids and their areas, which helps clarify the problem. The user realizes they made an error in their diagram by incorrectly marking the x-coordinates. Ultimately, the correct approach involves properly identifying the bases of the trapezoids along the x-axis.
rock.freak667
Homework Helper
Messages
6,221
Reaction score
31
[SOLVED] Help me with the trapezium rule please

Homework Statement


\int _{0} ^{1} e^{-x} dx
By using two trapezia of unequal width, with one width,h, and the other (1-h) show that
T\approx<br /> \frac{1}{2}(e^{-1}+h(1-e^{-1})+e^{-h}

Homework Equations


The Attempt at a Solution



So the sum is given by

\frac{1}{2}(e^h+1)h + \frac{1}{2}(e^{1-h}+e^h)(1-h)

= \frac{1}{2}(h+e^{1-h}+e^h-he^{1-h})

and here is where I can't show it.
 
Last edited:
Physics news on Phys.org
There may be a problem because this line should be

\frac{1}{2}(e^{-h}+1)h + \frac{1}{2}(e^{-h}+e^{-1})(1-h)

Draw a diagram of the exponential curve e^(-x), mark the points on the curve at x = h and x = 1, connect the dots from (0,1) to (h, e^(-h)) and from there to (1, e^(-1)), draw the trapezoids, and find their areas. (What the problem is calling the "widths" are the bases of the trapezoids along the x-axis.)
 
Last edited:
ahhhh...dumb me... I drew the diagram correctly but instead of from 0 to 1, I drew from 0 to -1...and I used the wrong x-coordinate...I got it now thanks!
 
I tried to combine those 2 formulas but it didn't work. I tried using another case where there are 2 red balls and 2 blue balls only so when combining the formula I got ##\frac{(4-1)!}{2!2!}=\frac{3}{2}## which does not make sense. Is there any formula to calculate cyclic permutation of identical objects or I have to do it by listing all the possibilities? Thanks
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks
Back
Top