MTH603 – Numerical Analysis: Midterm Important Subjective (27 Solved Q&As)
Mathematics • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · MTH603 Course Page · MTH603 MCQ Pack (116 MCQs)
-
Convert the decimal number 75 into its binary equivalent.
Topic: General
By repeated division by 2 and collecting the remainders in reverse order: 75 ÷ 2 = 37, remainder 1 37 ÷ 2 = 18, remainder 1 18 ÷ 2 = 9, remainder 0 9 ÷ 2 = 4, remainder 1 4 ÷ 2 = 2, remainder 0 2 ÷ 2 = 1, remainder 0 1 ÷ 2 = 0, remainder 1 Reading the remainders from bottom to top: 75 = (1001011)₂
-
Convert the octal number (247)₈ into a decimal number.
Topic: General
(247)₈ = 2 × 8² + 4 × 8¹ + 7 × 8⁰ = 2 × 64 + 4 × 8 + 7 × 1 = 128 + 32 + 7 = 167 Hence (247)₈ = (167)₁₀
-
Define absolute error, relative error and percentage error. If the true value of a number is 0.6667 and its approximate value is 0.6665, find all three errors.
Topic: General
Absolute error = |True value − Approximate value| Relative error = Absolute error / |True value| Percentage error = Relative error × 100 Here: Absolute error = |0.6667 − 0.6665| = 0.0002 Relative error = 0.0002 / 0.6667 ≈ 0.0003 Percentage error ≈ 0.0003 × 100 = 0.03%
-
Write down the Newton-Raphson formula for finding the root of f(x) = 0.
Topic: General
Starting from an initial approximation x₀, the successive approximations are given by x(n+1) = x(n) − f(x(n)) / f '(x(n)), n = 0, 1, 2, ... provided f '(x(n)) ≠ 0.
-
Write down the formula of the Secant method for finding the root of f(x) = 0.
Topic: General
Starting from two initial approximations x₀ and x₁, the successive approximations are given by x(n+1) = x(n) − f(x(n)) · (x(n) − x(n−1)) / (f(x(n)) − f(x(n−1))), n = 1, 2, 3, ...
-
Find a real root of the equation x³ − 9x + 1 = 0, correct to three decimal places, by the Bisection method, given that a root lies between 2 and 3. Perform five iterations.
Topic: General
Here f(x) = x³ − 9x + 1, f(2) = −9 and f(3) = 1, so a root lies in (2, 3). Iteration 1: x = (2 + 3)/2 = 2.5, f(2.5) = −5.875 < 0 → root in (2.5, 3) Iteration 2: x = (2.5 + 3)/2 = 2.75, f(2.75) = −2.9531 < 0 → root in (2.75, 3) Iteration 3: x = (2.75 + 3)/2 = 2.875, f(2.875) = −1.1113 < 0 → root in (2.875, 3) Iteration 4: x = (2.875 + 3)/2 = 2.9375, f(2.9375) = −0.0901 < 0 → root in (2.9375, 3) Iteration 5: x = (2.9375 + 3)/2 = 2.96875, f(2.96875) = 0.4463 > 0 → root in (2.9375, 2.96875) Hence the root ≈ (2.9375 + 2.96875)/2 = 2.953 (correct to three decimal places).
-
Find a real root of the equation x³ − 2x − 5 = 0 by the Regula-Falsi method, performing three iterations. (A root lies between 2 and 3.)
Topic: General
Here f(x) = x³ − 2x − 5, f(2) = −1 and f(3) = 16. Iteration 1: x = (2 × 16 − 3 × (−1)) / (16 − (−1)) = 35/17 = 2.0588, f(2.0588) = −0.3908 < 0 → root in (2.0588, 3) Iteration 2: x = (2.0588 × 16 − 3 × (−0.3908)) / (16 + 0.3908) = 2.0813, f(2.0813) = −0.1472 < 0 → root in (2.0813, 3) Iteration 3: x = (2.0813 × 16 − 3 × (−0.1472)) / (16 + 0.1472) = 2.0896, f(2.0896) = −0.0547 < 0 Hence after three iterations the root ≈ 2.0896 (the root continues to approach 2.0946).
-
Find √10 by the Newton-Raphson method, taking the initial approximation x₀ = 3. Perform three iterations.
Topic: General
Let x = √10, so f(x) = x² − 10 = 0 and f '(x) = 2x. The iteration formula is x(n+1) = x(n) − (x(n)² − 10) / (2x(n)) = (1/2)(x(n) + 10/x(n)) x₁ = (1/2)(3 + 10/3) = 3.166667 x₂ = (1/2)(3.166667 + 10/3.166667) = 3.162281 x₃ = (1/2)(3.162281 + 10/3.162281) = 3.162278 Hence √10 ≈ 3.1623, correct to four decimal places.
-
Find a real root of the equation x³ − 4x − 9 = 0 by the Secant method, taking x₀ = 2 and x₁ = 3. Perform three iterations.
Topic: General
Here f(x) = x³ − 4x − 9, f(2) = −9 and f(3) = 6. Iteration 1: x₂ = 3 − 6 × (3 − 2) / (6 − (−9)) = 3 − 0.4 = 2.6000, f(2.6000) = −1.8240 Iteration 2: x₃ = 2.6000 − (−1.8240) × (2.6000 − 3) / (−1.8240 − 6) = 2.6933, f(2.6933) = −0.2372 Iteration 3: x₄ = 2.6933 − (−0.2372) × (2.6933 − 2.6000) / (−0.2372 + 1.8240) = 2.7072, f(2.7072) = 0.0120 Hence the root ≈ 2.7072 (the exact root is 2.7065, correct to three decimal places).
-
State the condition for the convergence of the fixed-point iteration method x = g(x), and explain it briefly.
Topic: General
The iteration x(n+1) = g(x(n)) converges to a root of x = g(x) if |g '(x)| < 1 for all x in the interval containing the root and the initial approximation. Geometrically, |g '(x)| is the slope of the curve y = g(x) near the fixed point; if this slope is less than 1 in magnitude, the successive approximations spiral (or step) towards the fixed point, whereas if |g '(x)| > 1 they move away from it and the process diverges.
-
Solve the following system of equations by Gaussian elimination: x+y+z=6 x−y+z=2 2x + y − z = 1
Topic: General
The augmented matrix is [1 1 1 | 6] [1 −1 1 | 2] [2 1 −1 | 1] Apply R₂ → R₂ − R₁ and R₃ → R₃ − 2R₁: [1 1 1 | 6] [0 −2 0 | −4] [0 −1 −3 | −11] From R₂: −2y = −4 → y = 2. Apply R₃ → R₃ − (1/2)R₂: [0 0 −3 | −9] → −3z = −9 → z = 3. Back substitution in the first equation: x + 2 + 3 = 6 → x = 1. Hence x = 1, y = 2, z = 3.
-
Find the inverse of the matrix A = [[2, 3], [1, 2]] by the Gauss-Jordan method.
Topic: General
Write the augmented matrix [A | I]: [2 3 | 1 0] [1 2 | 0 1] Apply R₁ → R₁/2: [1 3/2 | 1/2 0] [1 2 | 0 1] Apply R₂ → R₂ − R₁: [1 3/2 | 1/2 0] [0 1/2 | −1/2 1] Apply R₂ → 2R₂: [1 3/2 | 1/2 0] [0 1 | −1 2] Apply R₁ → R₁ − (3/2)R₂: [1 0 | 2 −3] [0 1 | −1 2] Hence A⁻¹ = [[2, −3], [−1, 2]].
-
Solve the system 2x + y = 5, 5x + 3y = 10 by LU decomposition.
Topic: General
Write A = LU with L = [[1, 0], [l₂₁, 1]] and U = [[u₁₁, u₁₂], [0, u₂₂]]. Comparing A = [[2, 1], [5, 3]] with LU gives u₁₁ = 2, u₁₂ = 1, l₂₁ = 5/2 = 2.5 and u₂₂ = 3 − 2.5 × 1 = 0.5. So L = [[1, 0], [2.5, 1]] and U = [[2, 1], [0, 0.5]]. First solve Ly = b: y₁ = 5; 2.5 × 5 + y₂ = 10 → y₂ = −2.5. Then solve Ux = y: 0.5x₂ = −2.5 → x₂ = −5; 2x₁ + x₂ = 5 → 2x₁ = 10 → x₁ = 5. Hence x = 5, y = −5.
-
Solve the following system by the Jacobi method, performing three iterations with the initial approximation (0, 0, 0): 10x + y + z = 12 x + 10y + z = 12 x + y + 10z = 12
Topic: General
The system is strictly diagonally dominant. The Jacobi iteration formulas are x = (12 − y − z)/10, y = (12 − x − z)/10, z = (12 − x − y)/10 Iteration 1: x = y = z = 12/10 = 1.2 → (1.2, 1.2, 1.2) Iteration 2: x = (12 − 1.2 − 1.2)/10 = 0.96 → (0.96, 0.96, 0.96) Iteration 3: x = (12 − 0.96 − 0.96)/10 = 1.008 → (1.008, 1.008, 1.008) The iterations are converging to the exact solution x = y = z = 1.
-
Solve the following system by the Gauss-Seidel method, performing two iterations with the initial approximation (0, 0, 0): 4x + 3y = 24 3x + 4y − z = 30 −y + 4z = −24
Topic: General
The iteration formulas (using the latest values as soon as they are available) are x = (24 − 3y)/4, y = (30 − 3x + z)/4, z = (−24 + y)/4 Iteration 1: x = 24/4 = 6; y = (30 − 18 + 0)/4 = 3; z = (−24 + 3)/4 = −5.25 → (6, 3, −5.25) Iteration 2: x = (24 − 9)/4 = 3.75; y = (30 − 11.25 − 5.25)/4 = 3.375; z = (−24 + 3.375)/4 = −5.1562 → (3.75, 3.375, −5.1562)
-
For the system 2x + 3y = 1, 3x + 2y = −4, perform the first step of the Relaxation method starting from the initial approximation (0, 0).
Topic: General
With R = b − Ax, the residuals at (0, 0) are R₁ = 1 − 2(0) − 3(0) = 1, R₂ = −4 − 3(0) − 2(0) = −4. The largest residual in magnitude is R₂ = −4. The coefficient of x in the second equation is 3, so we change x by δx = R₂/3 = −4/3 ≈ −1.3333, which reduces R₂ to zero. The new approximation is (x, y) = (−1.3333, 0), and the new residuals are R₁ = 1 − 2(−4/3) = 11/3 ≈ 3.6667 and R₂ = 0.
-
Rearrange the following system so that it becomes strictly diagonally dominant: −6x + 4y + 11z = 1 x − 3y + z = −2 5x − 2y − 2z = 9
Topic: General
A system is strictly diagonally dominant if, in every equation, the coefficient on the main diagonal is numerically greater than the sum of the magnitudes of all the other coefficients in that equation. So each equation must be placed in the position where its numerically largest coefficient falls on the diagonal: 5x − 2y − 2z = 9: largest coefficient 5 (of x), and |5| > |−2| + |−2| = 4 ✓ → first equation x − 3y + z = −2: largest coefficient −3 (of y), and |−3| > |1| + |1| = 2 ✓ → second equation −6x + 4y + 11z = 1: largest coefficient 11 (of z), and |11| > |−6| + |4| = 10 ✓ → third equation Hence the rearranged, strictly diagonally dominant system is: 5x − 2y − 2z = 9 x − 3y + z = −2 −6x + 4y + 11z = 1 Iterative methods such as Jacobi and Gauss-Seidel are guaranteed to converge for such a system.
-
Using the Gauss-Seidel method, find the first iteration for the system x − 2y = 1, x + 4y = 4, starting from (0, 0).
Topic: General
The iteration formulas are x = 1 + 2y and y = (4 − x)/4. Starting from (0, 0): x = 1 + 2(0) = 1; then, using the new value of x, y = (4 − 1)/4 = 0.75. Hence the first iteration gives (x, y) = (1, 0.75).
-
Apply the Power method to find the dominant eigenvalue and the corresponding eigenvector of the matrix A = [[0, 11, −5], [−2, 17, −7], [−4, 26, −10]], starting with X₀ = (1, 1, 1). Perform five iterations.
Topic: General
Iteration 1: AX₀ = (6, 8, 12) = 12 (0.5, 0.6667, 1) → λ ≈ 12 Iteration 2: A(0.5, 0.6667, 1) = (2.3333, 3.3333, 5.3333) = 5.3333 (0.4375, 0.625, 1) → λ ≈ 5.3333 Iteration 3: A(0.4375, 0.625, 1) = (1.875, 2.75, 4.5) = 4.5 (0.4167, 0.6111, 1) → λ ≈ 4.5 Iteration 4: A(0.4167, 0.6111, 1) = (1.7222, 2.5556, 4.2222) = 4.2222 (0.4079, 0.6053, 1) → λ ≈ 4.2222 Iteration 5: A(0.4079, 0.6053, 1) = (1.6579, 2.4737, 4.1053) = 4.1053 (0.4038, 0.6026, 1) → λ ≈ 4.1053 The approximations are converging to the dominant eigenvalue λ = 4 with the corresponding eigenvector (0.4, 0.6, 1).
-
For the symmetric matrix A = [[3, 1], [1, 2]], find the angle θ of Jacobi's rotation that annihilates the off-diagonal element, and hence find the eigenvalues of A.
Topic: General
For Jacobi's method, θ is given by tan 2θ = 2a₁₂ / (a₁₁ − a₂₂) = 2(1) / (3 − 2) = 2 2θ = tan⁻¹(2) = 63.43°, so θ = 31.72°. The rotation through θ = 31.72° makes the off-diagonal element zero, and the eigenvalues then appear on the diagonal. Directly, the characteristic equation is (3 − λ)(2 − λ) − 1 = λ² − 5λ + 5 = 0 λ = (5 ± √5)/2, i.e. λ₁ = 3.618 and λ₂ = 1.382.
-
Define an eigenvalue and an eigenvector of a square matrix A. Verify your definitions for the matrix A = [[2, 1], [0, 3]].
Topic: General
A non-zero vector X is called an eigenvector of A if AX = λX for some scalar λ; the scalar λ is called the eigenvalue of A corresponding to X. For A = [[2, 1], [0, 3]] (an upper triangular matrix), the characteristic equation is |A − λI| = (2 − λ)(3 − λ) = 0, so the eigenvalues are λ = 2 and λ = 3 — the diagonal entries of A. For λ = 2: (A − 2I)X = 0 gives y = 0, so X = (1, 0) is an eigenvector. For λ = 3: (A − 3I)X = 0 gives −x + y = 0, i.e. y = x, so X = (1, 1) is an eigenvector.
-
Write down Newton's backward difference formula for interpolation.
Topic: General
Let y₀, y₁, ..., y(n) be the values of f(x) at the equally spaced points x₀, x₀ + h, ..., x₀ + nh. With p = (x − x(n))/h, Newton's backward difference formula is f(x) = y(n) + p∇y(n) + p(p + 1)/2! ∇²y(n) + p(p + 1)(p + 2)/3! ∇³y(n) + ... where ∇ is the backward difference operator and y(n) is the last tabular value.
-
Construct the forward difference table for the following data: x: 0.1 0.3 0.5 0.7 0.9 1.1 1.3 y: 0.003 0.067 0.148 0.248 0.370 0.518 0.697
Topic: General
The forward difference table (h = 0.2) is: x y Δy Δ²y Δ³y Δ⁴y 0.1 0.003 0.064 0.3 0.067 0.017 0.081 0.002 0.5 0.148 0.019 0.001 0.100 0.003 0.000 0.7 0.248 0.022 0.001 0.000 0.122 0.004 0.9 0.370 0.026 0.001 0.148 0.005 1.1 0.518 0.031 0.179 1.3 0.697 The fourth differences are (almost) constant, showing that the data is closely represented by a polynomial of degree four.
-
Using Newton's forward difference formula, estimate f(0.25) from the following table: x: 0.2 0.3 0.4 0.5 0.6 f(x): 0.2304 0.2788 0.3222 0.3617 0.3979
Topic: General
Here h = 0.1 and p = (0.25 − 0.2)/0.1 = 0.5. The differences at x₀ = 0.2 are: Δf₀ = 0.0484, Δ²f₀ = −0.0050, Δ³f₀ = 0.0011, Δ⁴f₀ = −0.0005 Newton's forward formula gives f(0.25) = 0.2304 + (0.5)(0.0484) + (0.5)(−0.5)/2! (−0.0050) + (0.5)(−0.5)(−1.5)/3! (0.0011) + (0.5)(−0.5)(−1.5)(−2.5)/4! (−0.0005) = 0.2304 + 0.0242 + 0.000625 + 0.0000688 + 0.0000195 ≈ 0.25531 Hence f(0.25) ≈ 0.2553.
-
Using Lagrange's interpolation formula, find f(1.5) and f(1.3) for the function f(x) = x + 2/x, using the values at x = 0.5, 1, 2 and 2.5.
Topic: General
The tabular values are f(0.5) = 4.5, f(1) = 3, f(2) = 3, f(2.5) = 3.3. For x = 1.5, the Lagrange coefficients are L₀ = −1/6, L₁ = 2/3, L₂ = 2/3, L₃ = −1/6, so f(1.5) ≈ (−1/6)(4.5) + (2/3)(3) + (2/3)(3) + (−1/6)(3.3) = −0.75 + 2 + 2 − 0.55 = 2.7000 (the true value is 2.8333). For x = 1.3, the Lagrange coefficients are L₀ = −0.168, L₁ = 0.896, L₂ = 0.384, L₃ = −0.112, so f(1.3) ≈ (−0.168)(4.5) + (0.896)(3) + (0.384)(3) + (−0.112)(3.3) = 2.7144 (the true value is 2.8385). The difference from the true values is the interpolation error, since f(x) = x + 2/x is not a polynomial.
-
Define the shift operator E and state its relations with the forward difference operator Δ and the central difference operator δ.
Topic: General
The shift operator E shifts the argument of a function by one step of the interval h: Ef(x) = f(x + h), and in tabular form Ey(x) = y(x+1). Since Δf(x) = f(x + h) − f(x) = (E − 1)f(x), we have E = 1 + Δ. The central difference operator is related to E by δ = E^(1/2) − E^(−1/2), i.e. δf(x) = f(x + h/2) − f(x − h/2).
-
What is meant by extrapolation in interpolation? How does it differ from interpolation?
Topic: General
Interpolation is the process of estimating the value of a function at a point that lies within the range of the given tabular points. Extrapolation is the process of estimating the value of a function at a point that lies outside the range of the given tabular points, i.e. beyond the smallest or the largest tabular value. The same interpolation formulas are used for extrapolation, but the results are generally less reliable because the error grows rapidly outside the tabular range.