Exercise 8.3 Examples – 12th Class Math New Book (The Trapezoidal Rule)

Solved examples of Exercise 8.3 (The Trapezoidal Rule): the 2 textbook examples, Chapter 8: Numerical Solutions of Nonlinear Equations, 12th class Mathematics new book (Punjab, PECTAA 2026-27), worked step by step.
Example 6Use trapezium rule to approximate the definite integral $\int_0^1e^{-x^2}\,dx$ by dividing the closed interval $[0,1]$ into $7$ subintervals of equal length.
Solution:
Given:
Continuity:
So $f$ is continuous on $[0,1]$.
Step size:
The points are $x_i=a+ih$. The values of $f(x)$ are rounded to 4 decimal places.
| $x$ | $f(x)$ | |
|---|---|---|
| $x_{0}$ | $0$ | 1.0000 |
| $x_{1}$ | $\frac17$ | 0.9798 |
| $x_{2}$ | $\frac27$ | 0.9216 |
| $x_{3}$ | $\frac37$ | 0.8322 |
| $x_{4}$ | $\frac47$ | 0.7214 |
| $x_{5}$ | $\frac57$ | 0.6004 |
| $x_{6}$ | $\frac67$ | 0.4797 |
| $x_{7}$ | $1$ | 0.3679 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{6})$.
Apply the trapezium rule.
Example 7Use Trapezium Rule to approximate the definite integral $\int_0^6\frac x{1+x^2}\,dx$ by subdividing the closed interval $[0,6]$ each of length $1$. Also compare the answer by solving the integral using the Fundamental Theorem of Calculus.
Solution:
Given:
Continuity:
So $f$ is continuous on $[0,6]$.
Number of subintervals:
The points are $x_i=a+ih$. The values of $f(x)$ are rounded to 4 decimal places.
| $x$ | $f(x)$ | |
|---|---|---|
| $x_{0}$ | $0$ | 0.0000 |
| $x_{1}$ | $1$ | 0.5000 |
| $x_{2}$ | $2$ | 0.4000 |
| $x_{3}$ | $3$ | 0.3000 |
| $x_{4}$ | $4$ | 0.2353 |
| $x_{5}$ | $5$ | 0.1923 |
| $x_{6}$ | $6$ | 0.1622 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{5})$.
Apply the trapezium rule.
Exact value by the Fundamental Theorem of Calculus:
Comparison: the difference between the two values is
The difference can be made smaller by taking more subintervals.