Chapter 4
Mathematics for Physics (MAT-303)
TU BBS past exam questions
Past questions and answers
6 questions set from this chapter. Most repeated first.
- 2081 · MAT-303 · 2+2 marks
Define error in numerical methods with its different kinds. If the number is approximated to 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:
The difference between the exact (true) value and the approximate value obtained by a numerical method is called error. If is the true value and is the approximate value, then error is usually taken as
Different kinds of error:
- Absolute error:
- Relative error:
- Percentage error:
By source, errors are also classified as:
- Inherent error: due to inexact input data.
- Truncation error: due to truncating an infinite process or series.
- Round-off error: due to finite-digit arithmetic.
- Discretization error: due to approximating a continuous problem by a discrete one.
Numerical part:
True value, .
Approximating to 4 significant digits: the first four significant digits are ; the next digit is , so we round up.
Absolute error:
Relative error:
Percentage error:
OR
MATLAB program for RK-2 method to solve
% RK-2 (Heun's method) for IVP y' = f(x,y), y(x0)=y0 at x=xp
clc; clear;
% Define the function f(x,y)
f = @(x,y) x + y; % Change this to the given f(x,y)
% Inputs
x0 = 0; % initial x
y0 = 1; % initial y
xp = 1; % target x
h = 0.1; % step size
x = x0;
y = y0;
while x < xp
if x + h > xp
h = xp - x; % adjust last step
end
k1 = h * f(x, y);
k2 = h * f(x + h, y + k1);
y = y + (k1 + k2)/2;
x = x + h;
end
fprintf('At x = %f, y = %f\n', x, y);
Note: For the midpoint RK-2 method, replace the two stages by
k1 = h * f(x, y);
k2 = h * f(x + h/2, y + k1/2);
y = y + k2;
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · MAT-303 · 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
Write the system as (Ax=b):
[ A=\begin{bmatrix} 1&1&1\ 2&-3&4\ 3&4&5 \end{bmatrix},\qquad b=\begin{bmatrix} 9\13\40 \end{bmatrix} ]
Using Doolittle’s LU-decomposition, take (A=LU), where (L) is unit lower triangular and (U) is upper triangular.
[ L=\begin{bmatrix} 1&0&0\ 2&1&0\ 3&-\frac15&1 \end{bmatrix},\qquad U=\begin{bmatrix} 1&1&1\ 0&-5&2\ 0&0&\frac{12}{5} \end{bmatrix} ]
Check:
[ LU= \begin{bmatrix} 1&1&1\ 2&-3&4\ 3&4&5 \end{bmatrix}=A ]
Now solve (Ly=b):
[ \begin{bmatrix} 1&0&0\ 2&1&0\ 3&-\frac15&1 \end{bmatrix} \begin{bmatrix} y_1\y_2\y_3 \end{bmatrix}
\begin{bmatrix} 9\13\40 \end{bmatrix} ]
From the first row:
[ y_1=9 ]
From the second row:
[ 2y_1+y_2=13 ]
[ 18+y_2=13 \Rightarrow y_2=-5 ]
From the third row:
[ 3y_1-\frac15y_2+y_3=40 ]
[ 27-\frac15(-5)+y_3=40 ]
[ 27+1+y_3=40 \Rightarrow y_3=12 ]
So,
[ y=\begin{bmatrix} 9\-5\12 \end{bmatrix} ]
Now solve (Ux=y):
[ \begin{bmatrix} 1&1&1\ 0&-5&2\ 0&0&\frac{12}{5} \end{bmatrix} \begin{bmatrix} x\y\z \end{bmatrix}
\begin{bmatrix} 9\-5\12 \end{bmatrix} ]
From the third row:
[ \frac{12}{5}z=12 ]
[ z=5 ]
From the second row:
[ -5y+2z=-5 ]
[ -5y+10=-5 ]
[ -5y=-15 \Rightarrow y=3 ]
From the first row:
[ x+y+z=9 ]
[ x+3+5=9 ]
[ x=1 ]
Hence the required solution is
[ \boxed{x=1,\quad y=3,\quad z=5} ]
Verification:
[ 1+3+5=9 ]
[ 2(1)-3(3)+4(5)=2-9+20=13 ]
[ 3(1)+4(3)+5(5)=3+12+25=40 ]
So the solution is correct.
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · MAT-303 · 6 marks
Find the value of from the following data using Lagrange interpolation formula
Answer
Using Lagrange’s interpolation formula,
[ y(x)=\sum_{i=0}^{3} y_i \frac{(x-x_0)(x-x_1)\cdots (x-x_{i-1})(x-x_{i+1})\cdots (x-x_3)} {(x_i-x_0)(x_i-x_1)\cdots (x_i-x_{i-1})(x_i-x_{i+1})\cdots (x_i-x_3)} ]
Given points:
[ (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),
[ y(3)=10\frac{(3-4)(3-9)(3-11)}{(1-4)(1-9)(1-11)} +25\frac{(3-1)(3-9)(3-11)}{(4-1)(4-9)(4-11)} ]
[ +40\frac{(3-1)(3-4)(3-11)}{(9-1)(9-4)(9-11)} +60\frac{(3-1)(3-4)(3-9)}{(11-1)(11-4)(11-9)} ]
Now,
[ 10\frac{(-1)(-6)(-8)}{(-3)(-8)(-10)} =10\cdot \frac{1}{5}=2 ]
[ 25\frac{(2)(-6)(-8)}{(3)(-5)(-7)} =25\cdot \frac{32}{35}=\frac{160}{7} ]
[ 40\frac{(2)(-1)(-8)}{(8)(5)(-2)} =40\cdot \left(-\frac15\right)=-8 ]
[ 60\frac{(2)(-1)(-6)}{(10)(7)(2)} =60\cdot \frac{3}{35}=\frac{36}{7} ]
Therefore,
[ y(3)=2+\frac{160}{7}-8+\frac{36}{7} ]
[ =2-8+\frac{196}{7} =-6+28=22 ]
[ \boxed{y(3)=22} ]
Answer checked by Claude Haiku · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · MAT-303 · 6 marks
Find a real root of the equation using secant method correct to four decimal places.
Answer
Let , so we solve .
Locating the root. and , so a root lies between and .
Secant formula.
Take , .
| 1 | 0.6000 | 0.7000 | 0.607028 | ||
| 2 | 0.7000 | 0.607028 | 0.607101 | ||
| 3 | 0.607028 | 0.607101 | 0.607102 |
The last two iterates agree to four decimal places ().
Root: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · MAT-303 · 6 marks
Use Simpson's rule to evaluate taking suitable number of sub-intervals.
Answer
Take sub-intervals (an even number, as Simpson's rule requires), so and .
| 0 | 0.00 | 1.0000000 |
| 1 | 0.25 | 0.9394131 |
| 2 | 0.50 | 0.7788008 |
| 3 | 0.75 | 0.5697828 |
| 4 | 1.00 | 0.3678794 |
Simpson's rule:
Result: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2081 · MAT-303 · 6 marks
Given IVP: use Euler's method to find at . Take .
Answer
Here , , , . Euler's method:
(Use 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 · 2082), TU 4 Yrs BSc 3rd Year Math Physics (Bachelor Level (4 Yrs.)/Science & Tech./III year · Math Physics & Classical Mechanics- PHY 301 (New Course) · 2081), TU 4 Yrs BSc 3rd Year Numerical Methods (Bachelor Level (4 Yrs.) III Year · MAT-303 · 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./III 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 Regular · 2076). Answers are written for this site; check them against your class notes.