Chapter 11
Numerical Methods for Algebraic and Transcendental Equations
TU BSc past exam questions
Past questions and answers
6 questions set from this chapter. Most repeated first.
- 2081 · Numerical Methods (MAT-303) (Elective, New Course) · 2+2 marks
Define error in numerical methods with its different kinds. If the number 625.4835 is approximated to 4 significant digits then find the percentage error in the number.
OR
Write a Matlab program to solve the IVP : at RK-2 method with step size .
Answer
Error in Numerical Methods
Definition. In numerical computation we replace the exact (true) value of a quantity by an approximate value . The difference between the two is called the error:
Kinds of error
| Kind | Meaning |
|---|---|
| Absolute error | — the actual magnitude of the difference |
| Relative error | — error measured per unit of the true value |
| Percentage error | |
| Inherent error | Error already present in the given data or in the mathematical model itself |
| Round-off error | Error caused by retaining only a fixed number of digits (rounding) |
| Truncation error | Error caused by cutting off an infinite process, e.g. a Taylor series after a few terms |
Numerical part
Given: true value , to be approximated to 4 significant digits.
The first four significant digits are ; the next digit is , so we round up:
Absolute error:
Relative error:
Percentage error:
Result: The percentage error is approximately .
OR — MATLAB program for RK-2 (Heun's) method
Heun's RK-2 formulas:
% RK-2 (Heun's) method for y' = f(x,y), y(x0) = y0, at x = xp
clc; clear;
f = @(x,y) x + y; % <-- enter f(x,y) here
x0 = 0; % initial x
y0 = 1; % initial y
xp = 0.2; % point where y is required
h = 0.05; % step size
n = round((xp - x0)/h); % number of steps
x = x0; y = y0;
fprintf(' x y\n');
fprintf('%6.4f %10.6f\n', x, y);
for i = 1:n
k1 = h*f(x, y);
k2 = h*f(x + h, y + k1);
y = y + (k1 + k2)/2;
x = x + h;
fprintf('%6.4f %10.6f\n', x, y);
end
fprintf('\ny(%.4f) = %.6f\n', xp, y);
Output (for ): (exact value ).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · Numerical Methods (MAT-303) (Elective, New Course) · 7 marks
Solve the following system of linear equations using LU-decomposition method:
OR
Write the algorithm of Gauss elimination method for solving linear system .
Answer
Solve by LU-decomposition (Doolittle method)
Given system:
In matrix form, (Ax=b):
Let
where (L) is unit lower triangular and (U) is upper triangular:
Step 1: Find (L) and (U)
From the first row of (U):
From the first column of (L):
Now compute the second row of (U):
Compute (l_{32}):
Compute (u_{33}):
Hence,
Step 2: Solve (Ly=b)
Let
Then
From the first equation:
From the second:
From the third:
Thus,
Step 3: Solve (Ux=y)
Let
Then
From the last equation:
From the second equation:
From the first equation:
Therefore,
Verification
Hence the solution is correct.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · Numerical Methods (MAT-303) (Elective, New Course) · 6 marks
Find the value of from the following data using Lagrange interpolation formula
x 1 4 9 11 y 10 25 40 60
Answer
Using Lagrange’s interpolation formula,
[ y(x)=\sum_{i=0}^{3} y_i \prod_{\substack{j=0\j\ne i}}^{3}\frac{x-x_j}{x_i-x_j} ]
Given:
[ (x_0,y_0)=(1,10),\quad (x_1,y_1)=(4,25),\quad (x_2,y_2)=(9,40),\quad (x_3,y_3)=(11,60) ]
For (x=3),
[ L_0=\frac{(3-4)(3-9)(3-11)}{(1-4)(1-9)(1-11)} =\frac{(-1)(-6)(-8)}{(-3)(-8)(-10)} =\frac{-48}{-240}=\frac15 ]
[ L_1=\frac{(3-1)(3-9)(3-11)}{(4-1)(4-9)(4-11)} =\frac{(2)(-6)(-8)}{(3)(-5)(-7)} =\frac{96}{105}=\frac{32}{35} ]
[ L_2=\frac{(3-1)(3-4)(3-11)}{(9-1)(9-4)(9-11)} =\frac{(2)(-1)(-8)}{(8)(5)(-2)} =\frac{16}{-80}=-\frac15 ]
[ L_3=\frac{(3-1)(3-4)(3-9)}{(11-1)(11-4)(11-9)} =\frac{(2)(-1)(-6)}{(10)(7)(2)} =\frac{12}{140}=\frac{3}{35} ]
Now,
[ y(3)=10L_0+25L_1+40L_2+60L_3 ]
[ =10\left(\frac15\right)+25\left(\frac{32}{35}\right)+40\left(-\frac15\right)+60\left(\frac{3}{35}\right) ]
[ =2+\frac{160}{7}-8+\frac{36}{7} ]
[ =-6+\frac{196}{7} ]
[ =-6+28=22 ]
[ \boxed{y(3)=22} ]
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · Numerical Methods (MAT-303) (Elective, New Course) · 6 marks
Find a real root of the equation using secant method correct to four decimal places.
Answer
Secant method for
Let .
Locating the root: and , so a root lies in . Take , (angles in radians).
Secant formula:
| 1 | 0.6 | 0.62 | 0.607091 | ||
| 2 | 0.62 | 0.607091 | 0.607102 | ||
| 3 | 0.607091 | 0.607102 | 0.607102 |
The last two iterates agree to four decimal places (), so the iteration has converged.
Root:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · Numerical Methods (MAT-303) (Elective, New Course) · 6 marks
Use Simpson's rule to evaluate taking suitable number of sub-intervals.
Answer
Simpson's 1/3 rule for
Take sub-intervals (an even number, as the rule requires), so . Let .
| 0 | 0.25 | 0.5 | 0.75 | 1 | |
|---|---|---|---|---|---|
| 1.000000 | 0.939413 | 0.778801 | 0.569783 | 0.367879 | |
Result: (the exact value is ).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · Numerical Methods (MAT-303) (Elective, New Course) · 6 marks
Given IVP: use Euler's method to find at . Take .
Answer
Euler's method for
Formula: , with (angles in radians).
| 0 | 0.0 | 1.0000 | 0.8415 | 1.0841 |
| 1 | 0.1 | 1.0841 | 0.9839 | 1.1825 |
| 2 | 0.2 | 1.1825 | 1.1256 | 1.2951 |
| 3 | 0.3 | 1.2951 | 1.2622 | 1.4213 |
| 4 | 0.4 | 1.4213 | 1.3888 | 1.5602 |
| 5 | 0.5 | 1.5602 | 1.4999 | 1.7102 |
| 6 | 0.6 | 1.7102 | 1.5903 | 1.8692 |
| 7 | 0.7 | 1.8692 | 1.6558 | 2.0348 |
| 8 | 0.8 | 2.0348 | 1.6943 | 2.2042 |
| 9 | 0.9 | 2.2042 | 1.7060 | 2.3748 |
Result:
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU 4 Years BSc 3rd Year Math Physics (Bachelor Level (4 Yrs.)/Science & Tech. / III year · Math Physics & Classical Mechanics PHY 301 (New Course) · 2082), TU 4 Yrs BSc 3rd Year Math Physics (Bachelor Level (4 Yrs.)/Science & Tech. / III year · PHY 301 (New Course) · 2081), TU 4 Yrs BSc 3rd Year Numerical Methods (Bachelor Level (4 Yrs.) III Year/Science & Tech. · Numerical Methods (MAT-303) (Elective, New Course) · 2081), TU 4 Yrs BSc 3rd Year Research (Bachelor Level (4 Yrs.)/Science & Tech./III Year · R.M. 305 · 2081), TU 4 Yrs BSc 3rd Year Operations (Bachelor Level (4 Yrs.) Science & Tech. 3rd Year · Operations Research (STA.304) Elective · 2078) and TU BSc 3rd Year Operations Research (Bachelor Level (4 Yrs.)/Science & Tech./III Year · Operations Research (STA.304) Elective · 2076). Answers are written for this site; check them against your class notes.