All articles
Mathematics
alevel-integration

Mastering Numerical Integration with the Trapezium Rule

Learn how to use the trapezium rule to estimate definite integrals in A-Level Maths. This guide covers the formula, step-by-step examples, and common pitfalls.

Math Instructor AI 22 September 2026 8 min read

Mastering Numerical Integration with the Trapezium Rule

In A-Level Mathematics, you will often encounter integrals that are difficult or impossible to solve using standard analytical techniques like substitution or integration by parts. When an exact solution is elusive, we turn to numerical methods. The trapezium rule is a fundamental tool that allows you to estimate the area under a curve by approximating the region as a series of trapeziums.

Understanding this method is essential for your exams, as it frequently appears in papers to test your ability to handle numerical data and apply systematic procedures. By the end of this article, you will be able to confidently apply the trapezium rule to estimate definite integrals and understand the geometric principles behind the approximation.

The Trapezium Rule Formula

The trapezium rule approximates the area under a curve $y = f(x)$ between the limits $x = a$ and $x = b$ by dividing the region into $n$ strips of equal width, $h$. The width of each strip is calculated as:

$$h = \frac{b - a}{n}$$

The formula for the area is given by:

$$\int_{a}^{b} f(x) , dx \approx \frac{h}{2} \left[ (y_0 + y_n) + 2(y_1 + y_2 + \dots + y_{n-1}) \right]$$

In this formula, $y_0$ and $y_n$ are the first and last ordinates (the values of the function at the boundaries), while $y_1, y_2, \dots, y_{n-1}$ are the interior ordinates. Note that the first and last values are counted once, while all interior values are multiplied by two.

Step-by-Step Worked Example 1

Estimate the value of $\int_{0}^{1} \sqrt{x^2 + 1} , dx$ using 4 strips.

Step 1: Determine the width $h$. Here, $a = 0$, $b = 1$, and $n = 4$. So, $h = \frac{1 - 0}{4} = 0.25$.

Step 2: Create a table of values. We calculate $y = \sqrt{x^2 + 1}$ for each $x$ value:

| $x$ | $y$ | |---|---| | 0 | 1.000 | | 0.25 | 1.031 | | 0.5 | 1.118 | | 0.75 | 1.250 | | 1 | 1.414 |

Step 3: Apply the formula. Sum of first and last: $1.000 + 1.414 = 2.414$. Sum of interior: $1.031 + 1.118 + 1.250 = 3.399$.

$$\text{Area} \approx \frac{0.25}{2} \left[ 2.414 + 2(3.399) \right] = 0.125 \times [2.414 + 6.798] = 0.125 \times 9.212 = 1.1515$$

Worked Example 2: Trigonometric Functions

Estimate $\int_{0}^{\pi} \sin(x) , dx$ using 4 strips. Ensure your calculator is in radians.

Step 1: Determine $h$. $h = \frac{\pi - 0}{4} = \frac{\pi}{4}$.

Step 2: Table of values.

| $x$ | $y = \sin(x)$ | |---|---| | 0 | 0 | | $\pi/4$ | 0.707 | | $\pi/2$ | 1 | | $3\pi/4$ | 0.707 | | $\pi$ | 0 |

Step 3: Apply the formula. $$\text{Area} \approx \frac{\pi/4}{2} \left[ (0 + 0) + 2(0.707 + 1 + 0.707) \right] = \frac{\pi}{8} \times [2(2.414)] = \frac{\pi}{8} imes 4.828 \approx 1.896$$

Overestimates and Underestimates

Whether your estimate is an overestimate or an underestimate depends on the curvature of the function. If the curve is concave (the second derivative $f''(x) < 0$), the straight line segments of the trapeziums lie below the curve, resulting in an underestimate. If the curve is convex ($f''(x) > 0$), the segments lie above the curve, resulting in an overestimate. Always check the shape of the graph if you are asked to justify your answer.

Improving Accuracy

To improve the accuracy of your estimate, you must increase the number of strips ($n$). As $n$ increases, the width of each strip ($h$) decreases, meaning the straight-line tops of the trapeziums follow the curve more closely. In an exam, you might be asked how to improve an estimate; the correct answer is always to increase the number of intervals.

Common Mistakes

  1. Calculator Mode: Forgetting to set your calculator to radians when integrating trigonometric functions is a common cause of lost marks.
  2. Confusing $n$ and $n+1$: Remember that $n$ strips require $n+1$ ordinates. If you are asked for 5 strips, you need 6 $y$-values.
  3. Coefficient Errors: A frequent error is forgetting to multiply the interior ordinates by 2 or accidentally multiplying the first and last ordinates by 2.
  4. Rounding: Always keep values to at least 4 decimal places during intermediate steps to avoid rounding errors in your final answer.

Frequently Asked Questions

Why do we use the trapezium rule? It is used to estimate the area under a curve when the function cannot be integrated analytically or when we only have discrete data points.

Does the trapezium rule always give an underestimate? No. It depends on the concavity of the curve. Concave curves produce underestimates, while convex curves produce overestimates.

How do I know how many strips to use? Usually, the question will specify the number of strips. If not, more strips generally lead to a more accurate result.

Can I use this for negative areas? Yes, the rule calculates the integral, which accounts for the sign of the function. If the curve is below the $x$-axis, the $y$-values will be negative, and the result will correctly reflect this.

Conclusion

Mastering the trapezium rule is a vital skill for your A-Level Maths journey. By practising the systematic layout of your tables and carefully applying the formula, you can ensure accuracy in your numerical integration tasks. Ready to see these concepts in motion? Head over to MathInstructor AI to generate a free, narrated animated lesson on the trapezium rule and solidify your understanding today.

Topics

trapezium rule
numerical integration
approximate area
a level maths
numerical methods
alevel-integration
definite integrals
maths revision

Want this explained out loud?

Turn any question into a narrated, animated lesson in seconds.

Try the Studio free