For an interactive study experience with progress tracking, bookmarks, and solutions, try our reader.
Open in Interactive ReaderChapter Overview
This chapter is a highly practical branch of calculus — bridging the gap between theoretical integration and real-world computation. While standard calculus relies on finding anti-derivatives (which is impossible for functions like $e^{-x^2}$ or $\frac{\sin x}{x}$), numerical integration allows us to approximate definite integrals with remarkable accuracy using discrete points. In the NEB board exams, numerical integration is a scoring area, appearing as 1-mark MCQs, 2-mark conceptual questions, and 4-to-5-mark long calculation tasks. Master these structured algorithms, and you are guaranteed full marks in this section.
What this chapter covers
Concept of Definite Integrals as AreaLimitations of Analytical IntegrationSub-intervals, Step Size, and OrdinatesMid-point Approximation RuleSimple and Composite Trapezoidal RulesSimpson's 1/3 Rule (Parabolic Approximation)Key Differences and Applicability ConditionsError Estimation and Absolute BoundsTabulating Function Values AccuratelyRadian Mode in Trigonometric Integrals
Learning Objectives
1
Explain the geometric principles behind the Mid-point, Trapezoidal, and Simpson's 1/3 rules
2
Calculate step size ($h$) correctly and construct error-free tables of ordinates
3
Apply the Composite Trapezoidal Rule for any integer $n \ge 1$
4
Apply Simpson's 1/3 Rule correctly, ensuring the sub-interval count ($n$) is strictly even
5
Compare numerical approximations with exact analytical values to compute absolute, relative, and percentage errors
6
Select the most appropriate numerical integration method based on given boundary conditions or tabular data
The Core Philosophy of Numerical Integration
Key Insight
Every numerical integration technique works by replacing a complex, non-integrable curve $y = f(x)$ with a simple, easily-integrable approximating function over discrete sub-intervals.
The Mid-point Rule uses horizontal line segments (rectangles).
The Trapezoidal Rule connects points with straight, sloping lines (first-degree polynomials) to form trapeziums.
Simpson's 1/3 Rule fits quadratic parabolas (second-degree polynomials) through groups of three successive points, capturing curves far better.
As a rule of thumb, Simpson's rule yields significantly higher accuracy than the Trapezoidal rule for the same number of sub-intervals.
The Mid-point Rule uses horizontal line segments (rectangles).
The Trapezoidal Rule connects points with straight, sloping lines (first-degree polynomials) to form trapeziums.
Simpson's 1/3 Rule fits quadratic parabolas (second-degree polynomials) through groups of three successive points, capturing curves far better.
As a rule of thumb, Simpson's rule yields significantly higher accuracy than the Trapezoidal rule for the same number of sub-intervals.
In NEB exams: always keep your calculator in RADIAN mode when working with trigonometric functions like $\sin x$ or $\cos x$. Using degree mode is the most common reason students lose all marks on a question.
Key Definitions
Numerical Integration
A mathematical process of approximating the numerical value of a definite integral $\int_{a}^{b} f(x) dx$ when the analytical antiderivative of $f(x)$ is difficult or impossible to find.
Sub-interval (n)
The number of equal parts into which the integration interval $[a, b]$ is divided. For Simpson's 1/3 rule, $n$ must always be an even integer.
Step Size (h)
The uniform width of each sub-interval, representing the horizontal step along the x-axis.
$$h = \frac{b - a}{n}$$
Ordinates (y_i)
The calculated values of the function $f(x)$ at the boundary points of each sub-interval. For $n$ sub-intervals, there are always $n+1$ ordinates.
$$y_i = f(x_i) = f(a + i \cdot h)$$
Mid-point Rule
An approximation method where the height of each rectangle is taken as the value of the function at the midpoint of each sub-interval.
$$I \approx (b - a) \cdot f\left(\frac{a + b}{2}\right)$$
Composite Trapezoidal Rule
The integration method that estimates the area under $f(x)$ by summing the areas of $n$ distinct trapeziums formed under the curve.
$$T_n = \frac{h}{2} \left[ y_0 + y_n + 2(y_1 + y_2 + \dots + y_{n-1}) \right]$$
Simpson's 1/3 Rule
A highly accurate numerical method that uses parabolic arcs to approximate the boundary of the curve, requiring $n$ to be even.
$$S_n = \frac{h}{3} \left[ y_0 + y_n + 4(y_1 + y_3 + \dots + y_{n-1}) + 2(y_2 + y_4 + \dots + y_{n-2}) \right]$$
Absolute Error
The magnitude of the difference between the exact analytical value of a definite integral ($I_{exact}$) and its numerically approximated value ($I_{approx}$).
$$E_{abs} = |I_{exact} - I_{approx}|$$
Trapezoidal Rule vs Simpson's 1/3 Rule
The two main numerical integration techniques compared. Memorize their conditions and formulas.
Trapezoidal Rule
$$T_n = \frac{h}{2} [y_0 + y_n + 2(\sum y_{rem})]$$
Approximates the curve using first-degree linear polynomials (straight line segments)
Works for any number of sub-intervals $n \ge 1$ (both even and odd)
Geometrically constructs $n$ trapeziums under the curve
Less accurate than Simpson's rule for curved boundaries
Error is proportional to $h^2$ (second-order accuracy)
VS
Simpson's 1/3 Rule
$$S_n = \frac{h}{3} [y_0 + y_n + 4(\sum y_{odd}) + 2(\sum y_{even})]$$
Approximates the curve using second-degree quadratic parabolas
Strictly requires the number of sub-intervals $n$ to be even
Geometrically fits parabolas across successive groups of three points
Highly accurate, capturing curved pathways effectively
Error is proportional to $h^4$ (fourth-order accuracy)
Quick check: Is $n$ odd? You can only use the Trapezoidal Rule. Is $n$ even? Use Simpson's 1/3 Rule for superior accuracy.
Complete Formula Sheet with Derivations
Interval Width / Step Size
$$h = \frac{b - a}{n}$$
Always calculate this step first. Here, $a$ is the lower limit, $b$ is the upper limit, and $n$ is the number of intervals.
Mid-point Rule
$$\int_{a}^{b} f(x) dx \approx (b - a) f\left(\frac{a + b}{2}\right)$$
Estimates the entire integral using a single rectangle evaluated at the center.
Composite Trapezoidal Rule
$$T_n = \frac{h}{2} \left[ y_0 + y_n + 2\sum_{i=1}^{n-1} y_i \right]$$
End-point ordinates are taken once; all internal ordinates are doubled.
Simpson's 1/3 Rule
$$S_n = \frac{h}{3} \left[ y_0 + y_n + 4\sum_{\text{odd } i} y_i + 2\sum_{\text{even } i} y_i \right]$$
Remember: Ends are single, odds are multiplied by 4, evens (excluding ends) are multiplied by 2.
Error Bound for Trapezoidal Rule
$$|E_T| \le \frac{M(b - a)^3}{12n^2}$$
M is the maximum value of the absolute second derivative |f''(x)| on [a, b].
Error Bound for Simpson's Rule
$$|E_S| \le \frac{M(b - a)^5}{180n^4}$$
M is the maximum value of the absolute fourth derivative |f^(4)(x)| on [a, b].
Which Integration Method Should I Choose?
Use this structured decision tree to select the correct integration rule for any board problem.
Is the function $f(x)$ non-integrable but you only have a single interval with no sub-intervals?
Yes
Use the basic Mid-point Rule: Area ≈ (b - a) * f((a+b)/2)
No
Continue ↓
Are you asked specifically to approximate with an ODD number of sub-intervals (e.g., n = 3, n = 5)?
Yes
Use the Composite Trapezoidal Rule (Simpson's 1/3 cannot be applied here).
No
Continue ↓
Is the number of sub-intervals (n) EVEN (e.g., n = 2, 4, 6) or are you free to choose?
Yes
Use Simpson's 1/3 Rule (it yields significantly lower error margins).
No
Check coordinates carefully. If intervals are unequal, standard composite formulas do not apply.
The Coordinate Table and Radian Warning
The foundation of any numerical integration problem is constructing a clean, accurate coordinate table mapping inputs $x_i$ to functional outputs $y_i$.
$$x_i = a + i \cdot h \quad \text{and} \quad y_i = f(x_i)$$
Why it works (Derivation):
1Constructing the table of coordinates is the first step of any calculation.
2For $n$ sub-intervals, you must list $n+1$ values of $x$ starting from $x_0 = a$ up to $x_n = b$.
3At each $x_i$, compute $y_i = f(x_i)$. Keep at least 4 decimal places during intermediate steps to minimize rounding errors.
4Critical Trigonometric Rule: When evaluating integrals like $\int_0^{\pi/2} \sin x \, dx$, the limits and steps are in radians. Your scientific calculator MUST be in Radian Mode (R), not Degree Mode (D).
Example: For $\int_0^{\pi/2} \sin x \, dx$ with $n=2$, step size $h = \frac{\pi/2 - 0}{2} = \frac{\pi}{4}$. Points are $x_0 = 0$, $x_1 = \frac{\pi}{4}$, $x_2 = \frac{\pi}{2}$. In radian mode: $y_0 = \sin(0) = 0$, $y_1 = \sin(\pi/4) = 0.7071$, $y_2 = \sin(\pi/2) = 1.0$.
When to use: Construct the table systematically before writing down or substituting values into any integration formula.
Memory Tricks — Never Forget These
Trick: Three quick memory hooks that cover the most common formula confusions in this chapter.
Steps to Remember:
- The Trapezoidal Rhythm — 'Ends are Single, Middle is Double': In the Trapezoidal formula, the extreme values ($y_0$ and $y_n$) have a coefficient of 1, while all intermediate values are multiplied by 2.
- The Simpson Rhythm — '1, 4, 2, 4, 2... 1': In Simpson's 1/3 rule, coefficients start at 1, alternate between 4 (for odd steps) and 2 (for even steps), and end with 1.
- The H-Denominator Trick: The fraction in front of the bracket matches the rule name. For Trapezoidal (2 parallel sides), it is $\frac{h}{2}$. For Simpson's 1/3 rule, it is $\frac{h}{3}$.
Mnemonic: Ends are single, mid-doubled for Trap | Ends + 4(Odds) + 2(Evens) for Simpson | Radian mode for trigs
Common Mistakes
These mistakes cause the most mark losses in NEB exams for this chapter.
- Degree Mode Pitfall: Evaluating trigonometric functions ($\sin x, \cos x$) with the calculator in Degree mode. This yields completely incorrect coordinate values.
- Applying Simpson's with Odd n: Trying to use Simpson's 1/3 rule on a dataset or problem where $n$ is odd (like $n = 3$ or $n = 5$). Simpson's rule strictly requires an even number of intervals.
- Ordinate vs Interval Count: Confusing the number of intervals ($n$) with the number of ordinates ($n+1$). If a question says 'use 5 ordinates', then $n = 4$.
- Early Rounding Errors: Rounding intermediate values in your table to 1 or 2 decimal places. This propagates errors. Always maintain at least 4 decimal places.
- Formula Mismatch: Swapping the multipliers for odd and even indices in Simpson's rule. Remember, odd steps ($y_1, y_3$) get a multiplier of 4, while even steps ($y_2, y_4$) get a multiplier of 2.
NEB Exam Traps — These Appear Every Year
NEB Exam Warning
Board examiners specifically test these edge cases. Knowing them can save 2–5 marks.
- 'Use n ordinates' trick: The question asks to integrate with '5 ordinates'. Many students set $n = 5$. In reality, $n = 5 - 1 = 4$ intervals. Always check the wording carefully.
- Comparing with Exact Value: Many 5-mark long questions ask you to compare your numerical result with the exact analytical value. Do not skip integrating the function using standard calculus rules first.
- Logarithmic Integrals: For $\int_1^2 \frac{dx}{x}$, the analytical value is $\ln(2)$. Remember that $\ln(2)$ is the natural logarithm (base $e$), evaluated using the 'ln' key on your calculator, not 'log' (base 10).
- Constant or Linear Functions: If $f(x) = kx + c$, both Trapezoidal and Simpson's rules give the exact value. If $f(x) = Ax^2 + Bx + C$, Simpson's rule is exact, while Trapezoidal is an approximation.
Question Recognition Guide
| Keyword / Phrase in Question | Use This |
|---|---|
| Question asks for 'Trapezoidal Rule' with any given $n$ | Calculate $h = \frac{b-a}{n}$ and use $T_n = \frac{h}{2} [y_0 + y_n + 2\sum y_{\text{rem}}]$ |
| Question asks for 'Simpson's Rule' with even $n$ | Calculate $h = \frac{b-a}{n}$ and use $S_n = \frac{h}{3} [y_0 + y_n + 4\sum y_{\text{odds}} + 2\sum y_{\text{evens}}]$ |
| Question specifies 'using 5 ordinates' | Set $n = 4$ intervals, construct 5 coordinate points, then apply the rule |
| Question says 'compare with exact value' or 'find absolute error' | Find the definite integral analytically first, then calculate $|I_{\text{exact}} - I_{\text{approx}}|$ |
| Integrand contains $\sin(x)$, $\cos(x)$, or $e^x$ limits | Construct table of values with calculator set strictly to Radian Mode |
| Dataset table is given directly with uneven spacing | Calculate individual trapeziums manually; standard composite formulas cannot be used |
Solved Examples (Easy → Hard)
1
Evaluate $\int_1^2 x^2 \, dx$ with $n = 2$ using the Trapezoidal Rule.
Easy
2
Evaluate $\int_{0}^{1} \frac{dx}{1+x}$ with $n = 4$ using Simpson's 1/3 Rule.
Medium
3
Find the error bound for the approximation of $\int_{1}^{2} \frac{1}{x} \, dx$ using the Trapezoidal Rule with $n = 4$.
Hard
MCQ Practice
Mixed Level — MCQ
1
Numerical integration is primarily used to compute which mathematical quantity?
Correct!
Incorrect. Correct: The approximate value of a definite integral
2
Which of the following conditions must be met to apply Simpson's 1/3 Rule?
Correct!
Incorrect. Correct: The number of sub-intervals (n) must be even
3
If a definite integral is partitioned into 8 sub-intervals (n = 8), how many ordinates (y-values) must be calculated?
Correct!
Incorrect. Correct: 9
4
What is the uniform step size (h) when evaluating an integral from a = 1 to b = 4 with n = 6?
Correct!
Incorrect. Correct: 0.50
5
Simpson's 1/3 Rule approximates the boundary curve of an integrand using which type of polynomial?
Correct!
Incorrect. Correct: Parabolas (second-degree)
6
In the Composite Trapezoidal Rule, what coefficient is applied to the intermediate ordinates (y₁, y₂, ..., yₙ₋₁)?
Correct!
Incorrect. Correct: 2
7
For which of the following functions will the Trapezoidal Rule yield the exact value of the definite integral?
Correct!
Incorrect. Correct: f(x) = 3x + 5
8
In Simpson's 1/3 Rule, what coefficient is applied to the odd-indexed intermediate ordinates (y₁, y₃, y₅)?
Correct!
Incorrect. Correct: 4
9
The global truncation error in the Composite Trapezoidal Rule is proportional to:
Correct!
Incorrect. Correct: h²
10
When solving trigonometric definite integrals numerically, why is Radian Mode mandatory on calculators?
Correct!
Incorrect. Correct: Degree mode values are conceptually incompatible with linear limits
Short Questions (2 Marks Each)
1
Define numerical integration and state when it is used.
[2 marks]
2
Write down the Composite Trapezoidal Rule formula for $n = 4$.
[2 marks]
3
Explain why Simpson's 1/3 Rule cannot be applied when the number of sub-intervals is $n = 5$.
[2 marks]
4
Calculate the step size ($h$) and list the partition points ($x_i$) for $\int_{1}^{3} f(x) \, dx$ with $n = 4$.
[2 marks]
5
Approximate $\int_{1}^{3} x^3 \, dx$ using the Mid-point Rule with a single interval ($n = 1$).
[2 marks]
6
What is the geometric interpretation of the Trapezoidal Rule?
[2 marks]
7
Find the ordinates $y_0, y_1, y_2$ for $\int_{0}^{1} \frac{dx}{1+x^2}$ with $n = 2$.
[2 marks]
8
State the global error bound formula for the Composite Trapezoidal Rule.
[2 marks]
9
If $f(x) = e^x$, find the exact analytical value of $\int_{0}^{1} e^x \, dx$.
[2 marks]
10
State the coefficients of the ordinates in Simpson's 1/3 Rule when $n = 4$.
[2 marks]
Long Questions (4–5 Marks Each)
1
Evaluate $\int_{0}^{1} \frac{dx}{1+x^2}$ using the Trapezoidal Rule with $n = 4$. Compare your approximation with the exact analytical value to find the absolute error.
[4 marks]
2
Approximate the value of $\int_{1}^{3} \frac{1}{x} \, dx$ using Simpson's 1/3 Rule with $n = 4$ sub-intervals. Verify your result using standard integration.
[4 marks]
3
Evaluate $\int_{0}^{\pi} \sin x \, dx$ using Simpson's 1/3 Rule with $n = 6$. Keep calculations in Radian Mode.
[5 marks]
4
Use the Trapezoidal Rule to approximate the value of $\int_{1}^{2} e^{-x^2} \, dx$ using $n = 4$ sub-intervals.
[4 marks]
5
Evaluate $\int_{0}^{2} \sqrt{1+x^3} \, dx$ using Simpson's 1/3 Rule with $n = 4$.
[4 marks]
6
Approximate the value of $\int_2^4 (x^3 - 2x) \, dx$ using:
(i) Trapezoidal Rule with $n = 4$
(ii) Simpson's 1/3 Rule with $n = 4$
Compare both with the exact analytical value.
[5 marks]
(i) Trapezoidal Rule with $n = 4$
(ii) Simpson's 1/3 Rule with $n = 4$
Compare both with the exact analytical value.
7
A river is 80 meters wide. The depth $d$ (in meters) at distance $x$ (in meters) from one bank is given by the following table:
Find the approximate cross-sectional area of the river using Simpson's 1/3 Rule.
[5 marks]
| x | 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 |
| d | 0 | 4 | 7 | 9 | 12 | 15 | 14 | 8 | 3 |
8
Evaluate $\dots \int_1^5 \ln x \, dx$ using the Composite Trapezoidal Rule with $n = 4$. Compare with the exact value to find the percentage error.
[5 marks]
9
For the integral $\int_1^2 \frac{dx}{x}$, find the maximum absolute error in its approximation using the Trapezoidal Rule with $n = 4$. Compare it with the actual error.
[5 marks]
10
Evaluate $\int_0^{1.2} e^x \, dx$ using Simpson's 1/3 Rule with $n = 6$. Compare your result with the exact analytical value to demonstrate accuracy.
[5 marks]
Past NEB Board Questions
Past NEB Board Questions
1
Evaluate $\int_1^2 \frac{dx}{x}$ by using the Trapezoidal Rule for $n = 4$.
NEB 2079
[4 marks]
2
Use Simpson's 1/3 Rule to evaluate $\int_{0}^{1} \frac{dx}{1+x}$ with $n = 4$.
NEB 2078
[4 marks]
3
Estimate the area under the curve $y = \sqrt{x}$ from $x = 1$ to $x = 4$ using the Trapezoidal Rule with $n = 3$.
NEB 2077
[4 marks]
4
Calculate the approximate value of $\int_0^{\pi/2} \cos x \, dx$ with $n = 4$ using Simpson's 1/3 Rule.
NEB 2076
[4 marks]
Chapter Test — Full Mixed Paper
Attempt this test in 45 minutes without consulting your notes. This matches standard NEB grading guidelines.
1
Section A — MCQs (1 Mark Each)
Mixed Level — MCQ
1
Which of the following numerical methods uses straight lines to approximate boundaries?
Correct!
Incorrect. Correct: Trapezoidal Rule
2
If $n = 6$ for an integration interval $[2, 5]$, the step size $h$ is:
Correct!
Incorrect. Correct: 0.5
3
Why is $n = 3$ invalid for Simpson's 1/3 Rule?
Correct!
Incorrect. Correct: Because Simpson's rule requires $n$ to be even
2
Section B — Short Questions (2 Marks Each)
1
Define step size and state how it changes with $n$.
[2 marks]
2
Write the Composite Trapezoidal formula for $n = 3$.
[2 marks]
3
Section C — Long Questions (4–5 Marks Each)
1
Evaluate $\int_1^2 \frac{dx}{x^2}$ using Simpson's 1/3 Rule with $n = 4$. Compare it with the exact analytical value.
[5 marks]
2
Evaluate $\int_0^1 e^x \, dx$ using the Trapezoidal Rule with $n = 4$.
[4 marks]
One-Page Revision Cheat Sheet
1
Step size (h): $h = \frac{b-a}{n}$ — always calculate this first.
2
Table Setup: Write down all $n+1$ points $x_i$ and evaluate $y_i = f(x_i)$.
3
Mid-point Rule: Area $\approx (b-a) f\left(\frac{a+b}{2}\right)$ — uses a single central rectangle.
4
Trapezoidal Rule: $T_n = \frac{h}{2} [y_0 + y_n + 2(y_1 + y_2 + \dots + y_{n-1})]$. Connects points with straight lines.
5
Simpson's 1/3 Rule: $S_n = \frac{h}{3} [y_0 + y_n + 4(\sum y_{\text{odds}}) + 2(\sum y_{\text{evens}})]$. Connects points with parabolic arcs.
6
Simpson's Constraint: The interval count $n$ must be even.
7
Error bound (Trap): $|E_T| \le \frac{M(b-a)^3}{12n^2}$ where $M = \max|f''(x)|$.
8
Error bound (Simpson): $|E_S| \le \frac{M(b-a)^5}{180n^4}$ where $M = \max|f^{(4)}(x)|$.
9
Trig Warning: Set your calculator strictly to Radian Mode for trigonometric limits.
10
Exactness: Trapezoidal is exact for linear functions. Simpson's is exact for polynomials up to degree 3 (cubics).
11
Precision: Keep intermediate table values rounded to at least 4 decimal places to prevent rounding error accumulation.