Register  
 
About Us | Help | Sign in
 
   

Revision:OCR Core 2 - The trapezium rule

From The Student Room

TSR Wiki > Study Help > Subjects and Revision > Revision Notes > Mathematics > OCR Core 2 - The trapezium rule


Contents

10. The trapezium rule

The needs for approximation

There are some functions that cannot be integrated exactly (and some which one will not be able to integrate due to the level of knowledge that one has upon the topic of integration).

Therefore it is useful to be able to give an approximation, and say whether it is above or below what one might expect the real value to be. (In later study one might be able to predict the accuracy of these estimates).

The trapezium rule: simple form

Consider that there is a function of x:  f(x) .

If one was to plot the graph  y = f(x) , and then wanted to approximate the area under the curve between two bounds, one could use trapezia.

The idea of one trapezium is simple. Take the two bounds as the two vertical edges of the trapezium, and then take a line between them as the sloping line at the top. The x-axis is the width, and base line.

One can see that this is a rather crude approximation for larger areas, but consider the idea of multiple trapezia, this is much more accurate. The simple form of the trapezium rule refers to the single trapezium, and can be shown:

 \displaystyle \int _{a}^{b} f(x) \ dx \approx \frac{1}{2} (b - a) \left[ f(b) + f(b) \right]

(The area of a trapezium is the sum of the parallel sides multiplied by the width, multiplied by a half).

This gives the most basic approximation, and can be improved (in most cases).

The trapezium rule: general form

One can consider that as one allows the number of trapezia to increase, and therefore their widths to decrease, one will have a better approximation of the value of the integral. One thing that one should note is that good setting-out of work is crucial, as sometimes one might be expected to deal with 8 trapezia, and therefore the working can become incomprehensible if it is not properly organised.

Consider now that between the bounds, a, and b, one has an indefinite number of trapezia, denoted:

 x_{0}, \ x_{1}, \ x_{2}, \ ... \ , \ x_{n}

Where:

 x_{0} = a

 x_{n} = b

Now one can begin the formal representation:

The one example trapezium is:

  \frac{1}{2} (x_{1} - x_{0}) \left[ f(x_{1}) + f(x_{0}) \right]

Hence, one can use sigma notation to show the total area:

 \displaystyle \sum _{n = 1}^{n} \left{ \frac{1}{2} (x_{n} - x_{n - 1}) \left[ f(x_{n}) + f(x_{n - 1}) \right] \right}

Hence:

 \displaystyle \int _{a}^{b} f(x) \ dx \approx \sum _{n = 1}^{n} \left{ \frac{1}{2} (x_{n} - x_{n - 1}) \left[ f(x_{n}) + f(x_{n - 1}) \right] \right}

Example

1. Use the trapezium rule with 4 intervals to calculate an estimate for the definite integral:

 \displaystyle \int _{0}^{4} \left( x^{2} \right) \ dx ,

and give the percentage accuracy.

This is a simple matter of careful calculation.

The coordinates on the x-axis will be:

(0, 0); (1, 0); (2, 0); (3, 0); (4, 0).

Now the coordinates on the curve are:

(0, 0); (1, 1); (2, 4); (3, 9); (4, 16).

Hence the areas:

 T_{1} = \frac{1}{2}(1 - 0)(0 + 1) = \frac{1}{2}

 T_{2} = \frac{1}{2}(2 - 1)(1 + 4) = \frac{5}{2}

 T_{3} = \frac{1}{2}(3 - 2)(4 + 9) = \frac{13}{2}

 T_{4} = \frac{1}{2}(4 - 3)(9 + 16) = \frac{25}{2}

Hence:

 \displaystyle \int _{0}^{4} \left( x^{2} \right) \ dx \approx \frac{1}{2} + \frac{5}{2} + \frac{13}{2} + \frac{25}{2} = 22

Now:

 \displaystyle \int _{0}^{4} \left( x^{2} \right) \ dx = \left[ \frac{1}{3} x^{3} \right] _{0}^{4} = 21 \frac{1}{3} - 0 = 21 \frac{1}{3}

Hence the accuracy is:

 \displaystyle \frac{22 - 21 \frac{1}{3}}{21 \frac{1}{3}} = \frac{ \frac{2}{3}}{21 \frac{1}{3}} = \frac{6}{192} = \frac{1}{32} = 3.125 \% .

Accuracy of the trapezium rule

One cannot (at this stage) give, in all cases, a good approximation of the accuracy, however, one will be expected to be able to tell whether the estimate is an overestimate, or an underestimate.

It is quite simple to detect these things. First one should draw a sketch graph, and then connect lines in the same manner as one would was one drawing out the trapezia. If the tops of the trapezia are above the curve, there is an overestimate, and if the trapezia are below the curve, it is an underestimate.

The determining factor is whether the curve is having a negative second derivative or not. Consider that a negative second derivative will mean that the curve will be having less gradient at any given interval in the positive x-direction, and therefore the trapezia will be underneath the curve. If the curve bends upwards, the trapezia will extrude, and thus give an overestimate.

The easiest way to predict these things is to draw an accurate sketch graph, or study that graph one is provided with.


Also See

Read these other OCR Core 2 notes:

  1. Trigonometry
  2. Sequences
  3. The binomial theorem
  4. The sine and cosine rules
  5. Integration
  6. Geometric sequences
  7. Exponentials and logarithms
  8. Factors and remainders
  9. Radians
  10. The trapezium rule
collapse
Recent Threads
 
collapse can anyone remember the name of this show?
started by: skittlesftw
forum: TV
replies: 40
last post: 1 Minute Ago
collapse Asking a university to change an offer?
started by: TayloRed
replies: 34
last post: 1 Minute Ago
collapse Optimize Your Sleep...
started by: UniStudent2009
replies: 1
last post: 1 Minute Ago
collapse The Matrix
started by: Reagan Smash
forum: Film
replies: 10
last post: 1 Minute Ago
collapse If People Paid For Healthcare
started by: Renal
replies: 121
last post: 1 Minute Ago