Browse papers
A

Section A: Long Answer Questions

Attempt any TWO questions.

3 questions·10 marks each
1long10 marks

Explain the Gauss elimination method with partial pivoting to solve a system of linear equations. Solve the system 2x + y + z = 10, 3x + 2y + 3z = 18, x + 4y + 9z = 16.

Gauss Elimination with Partial Pivoting

Idea. Convert the augmented matrix [Ab][A\,|\,b] into an upper-triangular form by elementary row operations, then solve by back substitution.

Partial pivoting. Before eliminating column kk, search rows k,k+1,,nk, k+1, \dots, n for the entry with the largest absolute value in that column and swap it into the pivot (diagonal) position. This avoids division by a small/zero pivot and controls round-off error, improving numerical stability.

Algorithm.

  1. Form augmented matrix [Ab][A\,|\,b].
  2. For each column kk: pick the row with maxaik\max|a_{ik}| and swap to row kk (partial pivot).
  3. Eliminate entries below the pivot using RiRiaikakkRkR_i \to R_i - \frac{a_{ik}}{a_{kk}}R_k.
  4. After triangularization, back-substitute: xn=bn/annx_n = b_n/a_{nn}, then xi=1aii(bij>iaijxj)x_i = \frac{1}{a_{ii}}\left(b_i - \sum_{j>i} a_{ij}x_j\right).

Solving the System

2x+y+z=10,3x+2y+3z=18,x+4y+9z=16.2x + y + z = 10,\quad 3x + 2y + 3z = 18,\quad x + 4y + 9z = 16.

Augmented matrix:

[211103231814916]\left[\begin{array}{ccc|c} 2 & 1 & 1 & 10 \\ 3 & 2 & 3 & 18 \\ 1 & 4 & 9 & 16 \end{array}\right]

Step 1 — Pivot column 1. Largest ai1|a_{i1}| is 33 (row 2). Swap R1R2R_1 \leftrightarrow R_2:

[323182111014916]\left[\begin{array}{ccc|c} 3 & 2 & 3 & 18 \\ 2 & 1 & 1 & 10 \\ 1 & 4 & 9 & 16 \end{array}\right]

Eliminate: R2R223R1R_2 \to R_2 - \tfrac{2}{3}R_1, R3R313R1R_3 \to R_3 - \tfrac{1}{3}R_1:

[32318013120103810]\left[\begin{array}{ccc|c} 3 & 2 & 3 & 18 \\ 0 & -\tfrac{1}{3} & -1 & -2 \\ 0 & \tfrac{10}{3} & 8 & 10 \end{array}\right]

Step 2 — Pivot column 2. 103>13|\tfrac{10}{3}| > |\tfrac{1}{3}|, so swap R2R3R_2 \leftrightarrow R_3:

[32318010381001312]\left[\begin{array}{ccc|c} 3 & 2 & 3 & 18 \\ 0 & \tfrac{10}{3} & 8 & 10 \\ 0 & -\tfrac{1}{3} & -1 & -2 \end{array}\right]

Eliminate: R3R31/310/3R2=R3+110R2R_3 \to R_3 - \frac{-1/3}{10/3}R_2 = R_3 + \tfrac{1}{10}R_2:

a33=1+110(8)=0.2,b3=2+110(10)=1.a_{33} = -1 + \tfrac{1}{10}(8) = -0.2,\qquad b_3 = -2 + \tfrac{1}{10}(10) = -1. [323180103810000.21]\left[\begin{array}{ccc|c} 3 & 2 & 3 & 18 \\ 0 & \tfrac{10}{3} & 8 & 10 \\ 0 & 0 & -0.2 & -1 \end{array}\right]

Back substitution.

z=10.2=5.z = \frac{-1}{-0.2} = 5. 103y+8(5)=10103y=30y=9.\tfrac{10}{3}y + 8(5) = 10 \Rightarrow \tfrac{10}{3}y = -30 \Rightarrow y = -9. 3x+2(9)+3(5)=183x18+15=183x=21x=7.3x + 2(-9) + 3(5) = 18 \Rightarrow 3x - 18 + 15 = 18 \Rightarrow 3x = 21 \Rightarrow x = 7.

Solution: x=7,  y=9,  z=5\boxed{x = 7,\; y = -9,\; z = 5} (verified in all three original equations).

linear-systems
2long10 marks

Derive the Simpson's 1/3 rule for numerical integration. Evaluate the integral of 1/(1+x) from 0 to 6 using Simpson's 1/3 rule taking 6 subintervals.

Derivation of Simpson's 1/3 Rule

Approximate x0x2f(x)dx\int_{x_0}^{x_2} f(x)\,dx over two equal subintervals of width hh (so three points x0,x1,x2x_0, x_1, x_2) by fitting a second-degree (parabolic) polynomial through (x0,y0),(x1,y1),(x2,y2)(x_0,y_0),(x_1,y_1),(x_2,y_2).

Using Newton's forward interpolation with x=x0+shx = x_0 + sh:

f(x)y0+sΔy0+s(s1)2Δ2y0.f(x) \approx y_0 + s\,\Delta y_0 + \frac{s(s-1)}{2}\,\Delta^2 y_0.

Integrating from x0x_0 to x2x_2 (i.e. s=0s = 0 to 22), with dx=hdsdx = h\,ds:

x0x2fdx=h02 ⁣[y0+sΔy0+s2s2Δ2y0]ds=h[2y0+2Δy0+13Δ2y0].\int_{x_0}^{x_2} f\,dx = h\int_0^2\!\left[y_0 + s\Delta y_0 + \frac{s^2-s}{2}\Delta^2 y_0\right]ds = h\left[2y_0 + 2\Delta y_0 + \frac{1}{3}\Delta^2 y_0\right].

Substituting Δy0=y1y0\Delta y_0 = y_1 - y_0 and Δ2y0=y22y1+y0\Delta^2 y_0 = y_2 - 2y_1 + y_0:

x0x2f(x)dx=h3(y0+4y1+y2).\int_{x_0}^{x_2} f(x)\,dx = \frac{h}{3}\big(y_0 + 4y_1 + y_2\big).

Composite rule (for nn even subintervals): the pattern is 1,4,2,4,,4,11,4,2,4,\dots,4,1:

abfdx=h3[(y0+yn)+4(y1+y3+)+2(y2+y4+)].\int_{a}^{b} f\,dx = \frac{h}{3}\Big[(y_0 + y_n) + 4(y_1 + y_3 + \cdots) + 2(y_2 + y_4 + \cdots)\Big].

Evaluation of 06dx1+x\int_0^6 \frac{dx}{1+x}, n=6n = 6

Here a=0, b=6, n=6h=606=1a=0,\ b=6,\ n=6 \Rightarrow h = \frac{6-0}{6} = 1, with f(x)=11+xf(x)=\frac{1}{1+x}.

iixix_iyi=1/(1+xi)y_i = 1/(1+x_i)
001.000000
110.500000
220.333333
330.250000
440.200000
550.166667
660.142857

Apply the rule:

I=h3[(y0+y6)+4(y1+y3+y5)+2(y2+y4)].I = \frac{h}{3}\Big[(y_0+y_6) + 4(y_1+y_3+y_5) + 2(y_2+y_4)\Big]. =13[(1+0.142857)+4(0.5+0.25+0.166667)+2(0.333333+0.2)]= \frac{1}{3}\Big[(1 + 0.142857) + 4(0.5 + 0.25 + 0.166667) + 2(0.333333 + 0.2)\Big] =13[1.142857+4(0.916667)+2(0.533333)]= \frac{1}{3}\Big[1.142857 + 4(0.916667) + 2(0.533333)\Big] =13[1.142857+3.666667+1.066667]=13(5.876190)=1.95873.= \frac{1}{3}\big[1.142857 + 3.666667 + 1.066667\big] = \frac{1}{3}(5.876190) = \boxed{1.95873}.

Check. Exact value =ln7=1.94591= \ln 7 = 1.94591, so the approximation is accurate to about 0.0130.013.

integration
3long10 marks

Explain the fourth-order Runge-Kutta method for solving ordinary differential equations. Solve dy/dx = x + y, y(0) = 1 to find y(0.2) taking h = 0.1.

Fourth-Order Runge-Kutta (RK4) Method

For the IVP dydx=f(x,y), y(x0)=y0\dfrac{dy}{dx} = f(x,y),\ y(x_0)=y_0, the RK4 method advances the solution by one step hh using a weighted average of four slope estimates:

k1=hf(xn,yn)k_1 = h\,f(x_n, y_n) k2=hf ⁣(xn+h2, yn+k12)k_2 = h\,f\!\left(x_n + \tfrac{h}{2},\ y_n + \tfrac{k_1}{2}\right) k3=hf ⁣(xn+h2, yn+k22)k_3 = h\,f\!\left(x_n + \tfrac{h}{2},\ y_n + \tfrac{k_2}{2}\right) k4=hf ⁣(xn+h, yn+k3)k_4 = h\,f\!\left(x_n + h,\ y_n + k_3\right) yn+1=yn+16(k1+2k2+2k3+k4).y_{n+1} = y_n + \tfrac{1}{6}\big(k_1 + 2k_2 + 2k_3 + k_4\big).

The local truncation error is O(h5)O(h^5) and the global error O(h4)O(h^4), giving high accuracy without computing derivatives of ff.

Solve dydx=x+y, y(0)=1\dfrac{dy}{dx} = x + y,\ y(0)=1, find y(0.2)y(0.2), h=0.1h=0.1

Here f(x,y)=x+yf(x,y) = x + y.

Step 1: x0=0, y0=1y(0.1)x_0 = 0,\ y_0 = 1 \to y(0.1)

k1=0.1(0+1)=0.1k_1 = 0.1(0 + 1) = 0.1 k2=0.1(0.05+(1+0.05))=0.1(1.1)=0.11k_2 = 0.1\big(0.05 + (1 + 0.05)\big) = 0.1(1.1) = 0.11 k3=0.1(0.05+(1+0.055))=0.1(1.105)=0.1105k_3 = 0.1\big(0.05 + (1 + 0.055)\big) = 0.1(1.105) = 0.1105 k4=0.1(0.1+(1+0.1105))=0.1(1.2105)=0.12105k_4 = 0.1\big(0.1 + (1 + 0.1105)\big) = 0.1(1.2105) = 0.12105 y1=1+16(0.1+2(0.11)+2(0.1105)+0.12105)=1+0.663056=1.110342.y_1 = 1 + \tfrac{1}{6}(0.1 + 2(0.11) + 2(0.1105) + 0.12105) = 1 + \tfrac{0.66305}{6} = 1.110342.

Step 2: x1=0.1, y1=1.110342y(0.2)x_1 = 0.1,\ y_1 = 1.110342 \to y(0.2)

k1=0.1(0.1+1.110342)=0.121034k_1 = 0.1(0.1 + 1.110342) = 0.121034 k2=0.1(0.15+(1.110342+0.060517))=0.1(1.320859)=0.132086k_2 = 0.1\big(0.15 + (1.110342 + 0.060517)\big) = 0.1(1.320859) = 0.132086 k3=0.1(0.15+(1.110342+0.066043))=0.1(1.326385)=0.132638k_3 = 0.1\big(0.15 + (1.110342 + 0.066043)\big) = 0.1(1.326385) = 0.132638 k4=0.1(0.2+(1.110342+0.132638))=0.1(1.442980)=0.144298k_4 = 0.1\big(0.2 + (1.110342 + 0.132638)\big) = 0.1(1.442980) = 0.144298 y2=1.110342+16(0.121034+2(0.132086)+2(0.132638)+0.144298)y_2 = 1.110342 + \tfrac{1}{6}\big(0.121034 + 2(0.132086) + 2(0.132638) + 0.144298\big) =1.110342+0.7947806=1.110342+0.132463=1.242805.= 1.110342 + \tfrac{0.794780}{6} = 1.110342 + 0.132463 = \boxed{1.242805}.

Result: y(0.2)1.2428y(0.2) \approx 1.2428. (Exact y=2exx1y = 2e^x - x - 1 gives y(0.2)=1.242806y(0.2)=1.242806 — excellent agreement.)

oderunge-kutta
B

Section B: Short Answer Questions

Attempt any EIGHT questions.

9 questions·5 marks each
4short5 marks

State and explain Lagrange's interpolation formula with a suitable example.

Lagrange's Interpolation Formula

Given n+1n+1 data points (x0,y0),(x1,y1),,(xn,yn)(x_0,y_0),(x_1,y_1),\dots,(x_n,y_n) with distinct, not necessarily equally spaced xix_i, the unique interpolating polynomial of degree n\le n is:

P(x)=i=0nyiLi(x),Li(x)=j=0jinxxjxixj.P(x) = \sum_{i=0}^{n} y_i\, L_i(x),\qquad L_i(x) = \prod_{\substack{j=0 \\ j\ne i}}^{n} \frac{x - x_j}{x_i - x_j}.

Each Lagrange basis polynomial Li(x)L_i(x) has the property Li(xk)=1L_i(x_k) = 1 if k=ik=i and 00 otherwise, so P(xk)=ykP(x_k)=y_k at every node. Its main advantage is that it needs no divided-difference table and works for unequal spacing; its drawback is that adding a new point requires recomputing all basis polynomials.

Example

Given (1,1),(2,4),(3,9)(1,1),(2,4),(3,9), estimate f(2.5)f(2.5):

L0=(x2)(x3)(12)(13),L1=(x1)(x3)(21)(23),L2=(x1)(x2)(31)(32).L_0 = \frac{(x-2)(x-3)}{(1-2)(1-3)},\quad L_1 = \frac{(x-1)(x-3)}{(2-1)(2-3)},\quad L_2 = \frac{(x-1)(x-2)}{(3-1)(3-2)}.

At x=2.5x=2.5: L0=(0.5)(0.5)2=0.125L_0 = \frac{(0.5)(-0.5)}{2} = -0.125, L1=(1.5)(0.5)1=0.75L_1 = \frac{(1.5)(-0.5)}{-1} = 0.75, L2=(1.5)(0.5)2=0.375L_2 = \frac{(1.5)(0.5)}{2} = 0.375.

f(2.5)=1(0.125)+4(0.75)+9(0.375)=0.125+3+3.375=6.25.f(2.5) = 1(-0.125) + 4(0.75) + 9(0.375) = -0.125 + 3 + 3.375 = 6.25.

This matches f(x)=x2(2.5)2=6.25f(x)=x^2 \Rightarrow (2.5)^2 = 6.25.

interpolationlagrange
5short5 marks

Derive the trapezoidal rule for numerical integration and state its error term.

Derivation of the Trapezoidal Rule

To approximate x0x1f(x)dx\int_{x_0}^{x_1} f(x)\,dx over one subinterval of width h=x1x0h = x_1 - x_0, fit a straight line (first-degree polynomial) through (x0,y0)(x_0,y_0) and (x1,y1)(x_1,y_1). Using Newton's forward formula with x=x0+shx = x_0 + sh:

f(x)y0+sΔy0.f(x) \approx y_0 + s\,\Delta y_0.

Integrating over s[0,1]s\in[0,1], dx=hdsdx = h\,ds:

x0x1fdx=h01(y0+sΔy0)ds=h(y0+12Δy0)=h2(y0+y1).\int_{x_0}^{x_1} f\,dx = h\int_0^1 (y_0 + s\Delta y_0)\,ds = h\left(y_0 + \tfrac{1}{2}\Delta y_0\right) = \frac{h}{2}(y_0 + y_1).

Composite trapezoidal rule over nn subintervals (h=(ba)/nh=(b-a)/n):

abf(x)dxh2[y0+yn+2(y1+y2++yn1)].\int_a^b f(x)\,dx \approx \frac{h}{2}\Big[y_0 + y_n + 2(y_1 + y_2 + \cdots + y_{n-1})\Big].

Error Term

For a single strip, the error is

E=h312f(ξ),ξ(x0,x1).E = -\frac{h^3}{12} f''(\xi),\qquad \xi \in (x_0, x_1).

For the composite rule the total error is

E=(ba)h212f(ξ)=O(h2).E = -\frac{(b-a)h^2}{12} f''(\xi) = O(h^2).

Thus the trapezoidal rule is exact for linear functions and the error is proportional to the second derivative, so it is zero when f=0f''=0.

integrationtrapezoidal
6short5 marks

Explain the Gauss-Seidel iterative method to solve a system of linear equations.

Gauss-Seidel Iterative Method

The Gauss-Seidel method solves Ax=bAx = b iteratively. For a system

a11x1+a12x2+=b1, a_{11}x_1 + a_{12}x_2 + \cdots = b_1,\ \dots

each equation is solved for its diagonal variable:

xi(k+1)=1aii(bij<iaijxj(k+1)j>iaijxj(k)).x_i^{(k+1)} = \frac{1}{a_{ii}}\left(b_i - \sum_{j<i} a_{ij}x_j^{(k+1)} - \sum_{j>i} a_{ij}x_j^{(k)}\right).

Key feature: unlike Jacobi's method, it uses the most recently updated values immediately within the same iteration, so it generally converges faster.

Convergence condition: the method is guaranteed to converge if the coefficient matrix is diagonally dominant, i.e. aiijiaij|a_{ii}| \ge \sum_{j\ne i}|a_{ij}| for each row (strict for at least one). Rearrange equations to make AA diagonally dominant before iterating.

Procedure.

  1. Rearrange for diagonal dominance; assume initial guess (e.g. all zeros).
  2. Compute x1,x2,,xnx_1, x_2, \dots, x_n in order, immediately reusing new values.
  3. Repeat until maxixi(k+1)xi(k)<ε\max_i |x_i^{(k+1)} - x_i^{(k)}| < \varepsilon (tolerance).

Example. For 10x+y+z=12, 2x+10y+z=13, 2x+2y+10z=1410x + y + z = 12,\ 2x + 10y + z = 13,\ 2x + 2y + 10z = 14 (diagonally dominant), iterating from (0,0,0)(0,0,0) converges quickly to x=y=z=1x=y=z=1.

linear-systemsiterative
7short5 marks

Explain numerical differentiation using forward and backward difference formulae.

Numerical Differentiation by Finite Differences

Given tabulated values yi=f(xi)y_i = f(x_i) at equally spaced points with step hh, the derivative of ff is approximated using a difference table built from an interpolating polynomial.

Forward Difference Formula (near the start of the table)

Using Newton's forward interpolation f(x)=y0+sΔy0+s(s1)2!Δ2y0+f(x) = y_0 + s\Delta y_0 + \frac{s(s-1)}{2!}\Delta^2 y_0 + \cdots with s=xx0hs=\frac{x-x_0}{h} and differentiating w.r.t. xx (dsdx=1h\frac{ds}{dx}=\frac1h):

dydxx0=1h[Δy012Δ2y0+13Δ3y0].\left.\frac{dy}{dx}\right|_{x_0} = \frac{1}{h}\left[\Delta y_0 - \tfrac{1}{2}\Delta^2 y_0 + \tfrac{1}{3}\Delta^3 y_0 - \cdots\right].

Simplest two-point form: f(x0)y1y0hf'(x_0) \approx \dfrac{y_1 - y_0}{h}, error O(h)O(h).

Backward Difference Formula (near the end of the table)

Using Newton's backward interpolation and differentiating at xnx_n:

dydxxn=1h[yn+122yn+133yn+].\left.\frac{dy}{dx}\right|_{x_n} = \frac{1}{h}\left[\nabla y_n + \tfrac{1}{2}\nabla^2 y_n + \tfrac{1}{3}\nabla^3 y_n + \cdots\right].

Simplest form: f(xn)ynyn1hf'(x_n) \approx \dfrac{y_n - y_{n-1}}{h}, error O(h)O(h).

Usage. Use the forward formula to estimate derivatives near the beginning of the table and the backward formula near the end; both are first-order accurate (error h\propto h), while a central difference yi+1yi12h\frac{y_{i+1}-y_{i-1}}{2h} is second-order accurate. Second derivatives follow by differentiating the series twice.

differentiation
8short5 marks

Explain Euler's method to solve an ordinary differential equation with an example.

Euler's Method

Euler's method is the simplest single-step method for the IVP dydx=f(x,y), y(x0)=y0\dfrac{dy}{dx}=f(x,y),\ y(x_0)=y_0. It approximates the curve by its tangent line over each step hh:

yn+1=yn+hf(xn,yn),xn+1=xn+h.y_{n+1} = y_n + h\,f(x_n, y_n),\qquad x_{n+1} = x_n + h.

Geometrically, starting at (xn,yn)(x_n,y_n) we move along the slope f(xn,yn)f(x_n,y_n) for a horizontal distance hh. It is a first-order method with local truncation error O(h2)O(h^2) and global error O(h)O(h), so small hh is needed for accuracy.

Example

Solve dydx=x+y, y(0)=1\dfrac{dy}{dx} = x + y,\ y(0)=1 for y(0.2)y(0.2) with h=0.1h=0.1 (here f(x,y)=x+yf(x,y)=x+y):

Step 1 (x0=0,y0=1x_0=0, y_0=1):

y1=1+0.1(0+1)=1.1at x1=0.1.y_1 = 1 + 0.1(0 + 1) = 1.1\quad\text{at } x_1 = 0.1.

Step 2 (x1=0.1,y1=1.1x_1=0.1, y_1=1.1):

y2=1.1+0.1(0.1+1.1)=1.1+0.12=1.22at x2=0.2.y_2 = 1.1 + 0.1(0.1 + 1.1) = 1.1 + 0.12 = 1.22\quad\text{at } x_2 = 0.2.

So y(0.2)1.22y(0.2) \approx 1.22. (Exact value 1.24281.2428; the gap reflects Euler's first-order error, reducible with smaller hh.)

odeeuler
9short5 marks

Differentiate between the Gauss elimination and Gauss-Jordan methods.

Gauss Elimination vs. Gauss-Jordan

Both are direct methods for solving Ax=bAx=b via elementary row operations on the augmented matrix, but they differ in how far the reduction is carried.

AspectGauss EliminationGauss-Jordan
Final formUpper triangular matrixDiagonal / reduced row-echelon (identity) form
EliminationOnly entries below each pivot are made zeroEntries both above and below each pivot are made zero
Final stepRequires back substitution to get the solutionSolution read directly; no back substitution
PivotsUsually not normalized to 1Pivots normalized to 1 (rows divided by pivot)
Arithmetic operationsAbout n33\frac{n^3}{3} — fewerAbout n32\frac{n^3}{2} — more (≈50% extra)
EfficiencyMore efficient for a single systemLess efficient, but convenient for matrix inversion
Typical useSolving one linear systemFinding A1A^{-1} or reduced row-echelon form

Summary: Gauss elimination triangularizes then back-substitutes; Gauss-Jordan fully diagonalizes so the solution appears directly. Gauss-Jordan does more work but is the standard route for computing the inverse of a matrix.

linear-systemsgauss-jordan
10short5 marks

Explain Newton's divided difference interpolation formula.

Newton's Divided Difference Interpolation

For n+1n+1 points (x0,y0),,(xn,yn)(x_0,y_0),\dots,(x_n,y_n) with distinct, possibly unequally spaced xix_i, the interpolating polynomial is

P(x)=f[x0]+(xx0)f[x0,x1]+(xx0)(xx1)f[x0,x1,x2]+P(x) = f[x_0] + (x-x_0)f[x_0,x_1] + (x-x_0)(x-x_1)f[x_0,x_1,x_2] + \cdots +(xx0)(xx1)(xxn1)f[x0,x1,,xn].+ (x-x_0)(x-x_1)\cdots(x-x_{n-1})\,f[x_0,x_1,\dots,x_n].

Divided differences are defined recursively:

f[xi]=yi,f[xi,xi+1]=f[xi+1]f[xi]xi+1xi,f[x_i] = y_i,\qquad f[x_i,x_{i+1}] = \frac{f[x_{i+1}] - f[x_i]}{x_{i+1}-x_i}, f[xi,,xi+k]=f[xi+1,,xi+k]f[xi,,xi+k1]xi+kxi.f[x_i,\dots,x_{i+k}] = \frac{f[x_{i+1},\dots,x_{i+k}] - f[x_i,\dots,x_{i+k-1}]}{x_{i+k} - x_i}.

Properties / advantages.

  • Works for unequally spaced data (unlike Newton's forward/backward formulae).
  • Symmetric in arguments — the result is independent of the order of points.
  • A new data point can be added by appending one extra term without recomputing previous ones.

Example. Given (1,1),(2,8),(4,64)(1,1),(2,8),(4,64): f[x0,x1]=8121=7f[x_0,x_1]=\frac{8-1}{2-1}=7, f[x1,x2]=64842=28f[x_1,x_2]=\frac{64-8}{4-2}=28, f[x0,x1,x2]=28741=7f[x_0,x_1,x_2]=\frac{28-7}{4-1}=7. Hence P(x)=1+7(x1)+7(x1)(x2)P(x)=1 + 7(x-1) + 7(x-1)(x-2), which evaluates the function at any required xx.

interpolationdivided-difference
11short5 marks

Explain the power method for finding the largest eigenvalue of a matrix.

Power Method (Largest Eigenvalue)

The power method is an iterative scheme to find the dominant eigenvalue (largest in magnitude) and its eigenvector of a square matrix AA, provided one eigenvalue strictly dominates: λ1>λ2|\lambda_1| > |\lambda_2| \ge \cdots.

Algorithm.

  1. Choose a non-zero initial vector x(0)x^{(0)} (e.g. [1,0,0]T[1,0,0]^T or all ones).
  2. Iterate: y(k+1)=Ax(k)y^{(k+1)} = A\,x^{(k)}.
  3. The dominant eigenvalue estimate is the largest-magnitude component of y(k+1)y^{(k+1)}:
λ(k+1)=maxiyi(k+1).\lambda^{(k+1)} = \max_i \big|y_i^{(k+1)}\big|.
  1. Normalize to control growth: x(k+1)=y(k+1)λ(k+1)x^{(k+1)} = \dfrac{y^{(k+1)}}{\lambda^{(k+1)}}.
  2. Repeat until λ(k+1)\lambda^{(k+1)} and x(k+1)x^{(k+1)} stabilize within tolerance.

At convergence, λ(k)λ1\lambda^{(k)} \to \lambda_1 (largest eigenvalue) and x(k)x^{(k)} \to corresponding eigenvector.

Why it works. Expressing x(0)=civix^{(0)} = \sum c_i v_i in the eigenbasis, Akx(0)=ciλikvi=λ1k(c1v1+i2ci(λi/λ1)kvi)A^k x^{(0)} = \sum c_i \lambda_i^k v_i = \lambda_1^k\big(c_1 v_1 + \sum_{i\ge2} c_i (\lambda_i/\lambda_1)^k v_i\big). Since λi/λ1<1|\lambda_i/\lambda_1|<1, all terms except the dominant one vanish, leaving the direction of v1v_1.

Note. Convergence speed depends on the ratio λ2/λ1|\lambda_2/\lambda_1|; the inverse power method (A1A^{-1}) gives the smallest eigenvalue.

eigenvalue
12short5 marks

Fit a second-degree parabola y = a + bx + cx^2 to a set of data using the least squares principle.

Fitting a Second-Degree Parabola by Least Squares

We fit y=a+bx+cx2y = a + bx + cx^2 to nn data points (xi,yi)(x_i,y_i) by minimizing the sum of squared residuals

S=i=1n(yiabxicxi2)2.S = \sum_{i=1}^{n}\big(y_i - a - bx_i - cx_i^2\big)^2.

Setting Sa=Sb=Sc=0\dfrac{\partial S}{\partial a} = \dfrac{\partial S}{\partial b} = \dfrac{\partial S}{\partial c} = 0 gives the three normal equations:

y=na+bx+cx2\sum y = n a + b\sum x + c\sum x^2 xy=ax+bx2+cx3\sum xy = a\sum x + b\sum x^2 + c\sum x^3 x2y=ax2+bx3+cx4\sum x^2 y = a\sum x^2 + b\sum x^3 + c\sum x^4

Procedure.

  1. Build a table computing x,x2,x3,x4,y,xy,x2yx, x^2, x^3, x^4, y, xy, x^2y for each point.
  2. Form the column sums x, x2, , x2y\sum x,\ \sum x^2,\ \dots,\ \sum x^2 y.
  3. Substitute into the three normal equations.
  4. Solve the resulting 3×33\times3 linear system (e.g. by Gauss elimination) for a,b,ca, b, c.

Example. For (1,1),(2,5),(3,10),(4,22)(1,1),(2,5),(3,10),(4,22), n=4n=4: x=10, x2=30, x3=100, x4=354, y=38, xy=125, x2y=437\sum x=10,\ \sum x^2=30,\ \sum x^3=100,\ \sum x^4=354,\ \sum y=38,\ \sum xy=125,\ \sum x^2y=437. Substituting and solving the three normal equations yields the best-fit coefficients a,b,ca, b, c, giving the required parabola y=a+bx+cx2y = a + bx + cx^2.

regression

Frequently asked questions

Where can I find the BSc CSIT (TU) Numerical Method (BSc CSIT, CSC207) question paper 2075?
The full BSc CSIT (TU) Numerical Method (BSc CSIT, CSC207) 2075 (regular) question paper is available free on Kekkei. You can read every question online and attempt the paper under timed exam conditions.
Does the Numerical Method (BSc CSIT, CSC207) 2075 paper come with solutions?
Yes. Every question on this Numerical Method (BSc CSIT, CSC207) past paper includes a step-by-step solution, plus instant AI feedback when you attempt it on Kekkei.
How many marks is the BSc CSIT (TU) Numerical Method (BSc CSIT, CSC207) 2075 paper?
The BSc CSIT (TU) Numerical Method (BSc CSIT, CSC207) 2075 paper carries 60 full marks and is meant to be completed in 180 minutes, across 12 questions.
Is practising this Numerical Method (BSc CSIT, CSC207) past paper free?
Yes — reading and attempting this Numerical Method (BSc CSIT, CSC207) past paper on Kekkei is completely free.