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

Exercise 8.3 (The Trapezoidal Rule) of Chapter 8: Numerical Solutions of Nonlinear Equations, 12th class Mathematics new book (Punjab, PECTAA 2026-27). All 10 questions are solved step by step with the final answer highlighted, with figures where they help.
Question 1Use Trapezoidal Rule to approximate the value of the definite integral $\int_0^2\cos(x)\,dx$ taking $n=4$.
Sol:
Given:
Continuity:
So $f$ is continuous on $[0,2]$.
The calculator is in radian mode.
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}$ | $0.5$ | 0.8776 |
| $x_{2}$ | $1$ | 0.5403 |
| $x_{3}$ | $1.5$ | 0.0707 |
| $x_{4}$ | $2$ | −0.4161 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{3})$.
Apply the trapezium rule.
Question 2Use Trapezoidal Rule to approximate the value of the definite integral $\int_0^1e^x\,dx$ taking $n=7$.
Sol:
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$ | 1.1536 |
| $x_{2}$ | $\frac27$ | 1.3307 |
| $x_{3}$ | $\frac37$ | 1.5351 |
| $x_{4}$ | $\frac47$ | 1.7708 |
| $x_{5}$ | $\frac57$ | 2.0427 |
| $x_{6}$ | $\frac67$ | 2.3564 |
| $x_{7}$ | $1$ | 2.7183 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{6})$.
Apply the trapezium rule.
Question 3Use Trapezoidal Rule to approximate the value of the definite integral $\int_1^7\ln(x)\,dx$ taking $n=6$.
Sol:
Given:
Continuity:
So $f$ is continuous on $[1,7]$.
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}$ | $1$ | 0.0000 |
| $x_{1}$ | $2$ | 0.6931 |
| $x_{2}$ | $3$ | 1.0986 |
| $x_{3}$ | $4$ | 1.3863 |
| $x_{4}$ | $5$ | 1.6094 |
| $x_{5}$ | $6$ | 1.7918 |
| $x_{6}$ | $7$ | 1.9459 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{5})$.
Apply the trapezium rule.
Question 4Use Trapezoidal Rule to approximate the value of the definite integral $\int_0^2x^3\,dx$ taking $n=8$.
Sol:
Given:
Continuity:
So $f$ is continuous on $[0,2]$.
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$ | 0.0000 |
| $x_{1}$ | $0.25$ | 0.0156 |
| $x_{2}$ | $0.5$ | 0.1250 |
| $x_{3}$ | $0.75$ | 0.4219 |
| $x_{4}$ | $1$ | 1.0000 |
| $x_{5}$ | $1.25$ | 1.9531 |
| $x_{6}$ | $1.5$ | 3.3750 |
| $x_{7}$ | $1.75$ | 5.3594 |
| $x_{8}$ | $2$ | 8.0000 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{7})$.
Apply the trapezium rule.
Question 5Use Trapezoidal Rule to approximate the value of the definite integral $\int_0^4\sqrt x\,dx$ taking $n=4$.
Sol:
Given:
Continuity:
So $f$ is continuous on $[0,4]$.
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$ | 0.0000 |
| $x_{1}$ | $1$ | 1.0000 |
| $x_{2}$ | $2$ | 1.4142 |
| $x_{3}$ | $3$ | 1.7321 |
| $x_{4}$ | $4$ | 2.0000 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{3})$.
Apply the trapezium rule.
Question 6Use Trapezoidal Rule to approximate the value of the definite integral $\int_{-1}^1e^{-x^2}\,dx$ taking $h=0.4$.
Sol:
Given:
Continuity:
So $f$ is continuous on $[-1,1]$.
Number of subintervals:
The points are $x_i=a+ih$. The values of $f(x)$ are rounded to 5 decimal places.
| $x$ | $f(x)$ | |
|---|---|---|
| $x_{0}$ | $-1$ | 0.36788 |
| $x_{1}$ | $-0.6$ | 0.69768 |
| $x_{2}$ | $-0.2$ | 0.96079 |
| $x_{3}$ | $0.2$ | 0.96079 |
| $x_{4}$ | $0.6$ | 0.69768 |
| $x_{5}$ | $1$ | 0.36788 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{4})$.
Apply the trapezium rule.
Question 7Use Trapezoidal Rule to approximate the value of the definite integral $\int_{-1}^1(x^4-x+1)\,dx$ taking $h=0.2$.
Sol:
Given:
Continuity:
So $f$ is continuous on $[-1,1]$.
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}$ | $-1$ | 3.0000 |
| $x_{1}$ | $-0.8$ | 2.2096 |
| $x_{2}$ | $-0.6$ | 1.7296 |
| $x_{3}$ | $-0.4$ | 1.4256 |
| $x_{4}$ | $-0.2$ | 1.2016 |
| $x_{5}$ | $0$ | 1.0000 |
| $x_{6}$ | $0.2$ | 0.8016 |
| $x_{7}$ | $0.4$ | 0.6256 |
| $x_{8}$ | $0.6$ | 0.5296 |
| $x_{9}$ | $0.8$ | 0.6096 |
| $x_{10}$ | $1$ | 1.0000 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{9})$.
Apply the trapezium rule.
Question 8Use Trapezoidal Rule to approximate the value of the definite integral $\int_0^\pi\sin(x^2)\,dx$ taking $h=\frac\pi6$.
Sol:
Given:
Continuity:
So $f$ is continuous on $[0,\pi]$.
The calculator is in radian mode.
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}$ | $\frac\pi6$ | 0.2707 |
| $x_{2}$ | $\frac\pi3$ | 0.8897 |
| $x_{3}$ | $\frac\pi2$ | 0.6243 |
| $x_{4}$ | $\frac{2\pi}3$ | −0.9474 |
| $x_{5}$ | $\frac{5\pi}6$ | 0.5402 |
| $x_{6}$ | $\pi$ | −0.4303 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{5})$.
Apply the trapezium rule.
Question 9Show by the trapezium rule that the approximate area bounded by the curve $y=\sqrt{8-2x-x^2}$ and the $x$-axis using $n=8$ is $13.5$ square units. Calculate the exact area by using the formula for finding the area of semi-circle.
Sol:
Find where the curve meets the $x$-axis. Put $y=0$.
So $a=-4$, $b=2$ and $n=8$.
Let
Continuity:
So $f$ is continuous on $[-4,2]$.
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}$ | $-4$ | 0.0000 |
| $x_{1}$ | $-3.25$ | 1.9843 |
| $x_{2}$ | $-2.5$ | 2.5981 |
| $x_{3}$ | $-1.75$ | 2.9047 |
| $x_{4}$ | $-1$ | 3.0000 |
| $x_{5}$ | $-0.25$ | 2.9047 |
| $x_{6}$ | $0.5$ | 2.5981 |
| $x_{7}$ | $1.25$ | 1.9843 |
| $x_{8}$ | $2$ | 0.0000 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{7})$.
Apply the trapezium rule.
To one decimal place, the approximate area is $13.5$ square units. Hence proved.
Exact area: square both sides of the equation of the curve.
Add $1$ to both sides to complete the square.
This is a circle with centre $(-1,0)$ and radius $r=3$. Since $y\ge0$, the curve is its upper half, a semicircle.
Question 10Setting $h=0.5$, use the trapezium rule to find the approximate area bounded by the curve $y=e^{x^2}$ from the line $x=0$ to the line $x=4$.
Sol:
Given:
Continuity:
So $f$ is continuous on $[0,4]$.
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$ | 1.0000 |
| $x_{1}$ | $0.5$ | 1.2840 |
| $x_{2}$ | $1$ | 2.7183 |
| $x_{3}$ | $1.5$ | 9.4877 |
| $x_{4}$ | $2$ | 54.5982 |
| $x_{5}$ | $2.5$ | 518.0128 |
| $x_{6}$ | $3$ | 8103.0839 |
| $x_{7}$ | $3.5$ | 208981.2889 |
| $x_{8}$ | $4$ | 8886110.5205 |
Add the values that are taken twice, from $f(x_1)$ to $f(x_{7})$.
Apply the trapezium rule.
See Exercise 8.3 worked examples
Quick check: MCQs on Exercise 8.3
- If $[0,2]$ is divided into $8$ equal subintervals, then $h=$
(a) $4$ · (b) $0.5$ · (c) $0.16$ · (d) $0.25$Show answer
Answer: (d) $0.25$. $h=\frac{b-a}n=\frac{2-0}8=0.25$. - In the trapezium rule, the values $f(x_1),f(x_2),\ldots,f(x_{n-1})$ are taken
(a) once · (b) twice · (c) three times · (d) four timesShow answer
Answer: (b) twice. Each of them is a side of two neighbouring trapeziums. - The trapezium rule with $n=2$ gives $\int_0^2x^2\,dx\approx$
(a) $3$ · (b) $2$ · (c) $4$ · (d) $\frac83$Show answer
Answer: (a) $3$. $h=1$, so the value is $\frac12[0+2(1)+4]=3$. - The trapezium rule usually becomes more accurate when
(a) $n$ is made smaller · (b) $h$ is made larger · (c) $n$ is made larger · (d) only two points are usedShow answer
Answer: (c) $n$ is made larger. More subintervals make the gap between the curve and the trapeziums smaller.