Are we comfortable with an integral being the area under a curve on a graph? Well we'll draw a curve and think about how we could estimate this area. Would you agree that we could chop up the area under the curve with a number rectangles, or trapezia and add up the area of these shapes to estimate the integral? This is the trapezium rule- and we write it like :\int_{a}^{b} f(x) dx \approx h/2 [(y0 + yn) + 2(y1 + y2 + ... + yn-1)]. Where we split the interval [a, b] into n evenly spaced x0, x1, ..., xn with width h, and yn=f(xn).Derive where the formula comes from (has to be done by diagram really, but shows the construction of trapezia and sums the areas of each trapezia using Ai = h/2 (yi-1 + yi) and adding up these).Let's use an example to unpack how we're going to answer questions on this. Let's say we have a curve f(x) = x2 and we are trying to estimate \int_{1}^{2} x2 dx. Let's split our interval into 4 trapezia. We know that h is the width of each trapezium. The total width is 1 (2-1) so h = 0.25. x0 = a so here x0 = 1 then we keep adding our h until we hit b, in this case 2.x1= 1.25x2= 1.50x3= 1.75x4 = 2. We then create a table with our yn s in. x_i y_i
1 1
1.25 1.5625
1.5 2.25
1.75 3.0625
2 4
Now we can but this into our formula: \int_{1}^{2} x2 dx \approx 4/2 [ (1+4) + 2*(1.5625 + 2.25+3.6025)]= 2*(5 + 14.83) = 39.66.
Can we compare this to the exact answer?