The exact value is
I would hope you get negative values! What's your h?
Hi,
I am revising the trapezium rule and I can't continue because I am stuck on an exercise question.
I am asked to find the approximation for this value using the trapezium rule between x = 1 and x = 4
When I work it out I keep getting a negative value. What would I do here.
Thanks.
I think you were told wrong, then. The integrand is negative everywhere in the interval of integration, and zero at the endpoints. Aside from knowing the exact value of this fairly straight-forward integral, there are theorems that can prove, at least quite easily, that the integral is non-positive. With just a little more work, you can prove that the integral is negative using inequalities.
Here's a detailed calculation of the exact integral using the Fundamental Theorem of the Calculus:
as mentioned before.
Let's let
the integrand.
Using the trapezoidal rule, I believe you will have
I get -4.375, which isn't too awful bad, compared with the true value of -4.5.