BAS302 · Engineering Mathematics-III · Unit 5
Numerical Techniques–II
Unit Scope & Exam Weightage: This unit completes the numerical toolkit: direct and iterative solution of systems of linear equations (matrix decomposition, Jacobi, Gauss-Seidel), numerical differentiation and integration (trapezoidal, Simpson's 1/3 and 3/8 rules), and numerical solution of ordinary differential equations by Picard's method and the fourth-order Runge-Kutta method. The 2023-24 paper set 4 clusters (one 2-mark and three 7-mark questions), about 23 marks.
Front Page: Importance-Wise Topic Roadmap (2023–26 PYQs)
| Priority | Topic (Exact Syllabus) | PYQs Asked | Marks Weightage | Tag |
|---|---|---|---|---|
| 1 | GaussSeidel method | 1 (2023-24) |
7m | Survival Mode |
| 2 | Solution of ordinary differential equations by Picard's and fourth-order Runge-Kutta methods | 1 (2023-24) |
7m | Survival Mode |
| 3 | Simpson's one third and three-eight rules | 1 (2023-24) |
7m | High Yield |
| 4 | Trapezoidal rule | 1 (2023-24) |
2m | Quick Marks |
2-Hour Last-Night Survival Checklist:
- Gauss-Seidel: rearrange each equation for its diagonal variable, iterate in order using freshly updated values; convergence is guaranteed for diagonal dominance.
- RK4: k₁=hf(x,y), k₂=hf(x+h/2,y+k₁/2), k₃=hf(x+h/2,y+k₂/2), k₄=hf(x+h,y+k₃); ynext=y+(k₁+2k₂+2k₃+k₄)/6.
- Trapezoidal: I≈(h/2)[y₀+2(y₁+…+yn−1)+yn].
- Simpson 1/3: n even, I≈(h/3)[y₀+yn+4(sum of odd ordinates)+2(sum of even interior ordinates)].
- Simpson 3/8: n multiple of 3, I≈(3h/8)[y₀+yn+3(non-multiples of 3)+2(multiples of 3)]
1. Solution of Systems of Linear Equations
Gaussian elimination reduces AX=B to upper-triangular form and back-substitutes. Matrix decomposition writes A = LU (or A = LDV / Cholesky A = LLT for positive-definite A), so that L Y = B and U X = Y are solved by forward and back substitution — efficient when many right-hand sides share the same matrix.
Jacobi iteration: xi(k+1) = (bi − Σj≠i aijxj(k))/aii — all values are taken from the previous iteration.
Gauss-Seidel iteration: the same formula but newly computed values are used immediately for subsequent equations in the same sweep; this usually converges about twice as fast. Both methods converge if A is strictly diagonally dominant: |aii| > Σj≠i|aij| for every i.
1.1 Solved 7-mark PYQ — Gauss-Seidel
Q: "Solve , , by the Gauss-Seidel method."
Solution: Rearrange so each diagonal coefficient is largest:
x = (44 − y − 2z)/10, y = (51 − 2x − z)/10, z = (61 − x − 2y)/10.
Start x₀ = y₀ = z₀ = 0 and update sequentially:
| Iteration | x | y | z |
|---|---|---|---|
| 1 | 4.400000 | 4.220000 | 4.816000 |
| 2 | 3.014800 | 4.015440 | 4.995432 |
| 3 | 2.999370 | 4.000583 | 4.999947 |
| 4 | 2.999987 | 4.000005 | 5.000002 |
Answer: x = 3, y = 4, z = 5. Check: 2(3)+10(4)+5=51; 10(3)+4+2(5)=44; 3+2(4)+10(5)=61. ✔
Examiner Tip (Gauss-Seidel): Rearrange the equations before starting — putting the largest coefficient on the diagonal is what makes the iteration converge. Show at least three sweeps in a table and verify the final values in the original equations.
2. Numerical Differentiation and Integration
2.1 Numerical Differentiation
Using Newton's forward difference operator with step h:
| Formula | Expression | Error order |
|---|---|---|
| First derivative at x₀ | f′(x₀) ≈ (f₁−f₀)/h | O(h) |
| Central first derivative | f′(x₀) ≈ (f₁−f−1)/(2h) | O(h²) |
| Second derivative | f″(x₀) ≈ (f₁−2f₀+f−1)/h² | O(h²) |
2.2 Newton-Cotes Integration Formulae
Let y₀, y₁, …, yn be ordinates at equally spaced points with h = (b−a)/n.
Solved 2-mark PYQ: "Write the formula for the trapezoidal rule of numerical integration." Answer: ∫ab f(x)dx ≈ (h/2)[y₀ + 2(y₁+⋯+yn−1) + yn], h=(b−a)/n — it approximates the curve by straight-line segments (degree-1 interpolation).
2.3 Solved 7-mark PYQ — Simpson's One-Third Rule
Q: "Evaluate using Simpson's one-third rule."
Solution: Take h = 1, n = 6 (even). Ordinates yi = 1/(1+i²):
| x | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|---|
| y | 1.000000 | 0.500000 | 0.200000 | 0.100000 | 0.058824 | 0.038462 | 0.027027 |
Odd sum = y₁+y₃+y₅ = 0.638462; even interior sum = y₂+y₄ = 0.258824.
I ≈ (1/3)[y₀+y₆ + 4(0.638462) + 2(0.258824)] = (1/3)[1.027027 + 2.553846 + 0.517647] = 1.366173. (Exact value tan−16 ≈ 1.405648; the error is typical for h=1.)
Examiner Tip (Simpson): Check that n is even for 1/3 rule and a multiple of 3 for 3/8 rule before applying. List all ordinates in a table with six decimals — examiners award steps for the table even if the final addition slips.
3. Numerical Solution of ODEs — Picard and RK4
Picard's method (successive approximation) converts y′=f(x,y), y(x₀)=y₀ into the integral equation y(x)=y₀+∫x₀x f(t,y(t))dt and iterates: yn+1(x)=y₀+∫ f(t,yn(t))dt. Starting with y₀(x)=y₀, the iterates approach the Taylor series of the true solution.
Fourth-order Runge-Kutta (RK4) with step h:
k₂ = h f(xn+h/2, yn+k₁/2)
k₃ = h f(xn+h/2, yn+k₂/2)
k₄ = h f(xn+h, yn+k₃)
yn+1 = yn + (k₁+2k₂+2k₃+k₄)/6
RK4 has local error O(h⁵) and global error O(h⁴); it needs only function evaluations, no derivatives, which is why it is preferred to Taylor series methods.
3.1 Solved 7-mark PYQ — RK4
Q: "Use the fourth-order Runge-Kutta method to find for , ."
Solution: h = 0.2, f(x,y)=1+y², x₀=0, y₀=0.
- k₁ = 0.2 f(0,0) = 0.2(1+0) = 0.200000.
- k₂ = 0.2 f(0.1, 0.1) = 0.2(1+0.01) = 0.202000.
- k₃ = 0.2 f(0.1, 0.101) = 0.2(1+0.010201) = 0.202040.
- k₄ = 0.2 f(0.2, 0.202040) = 0.2(1+0.040820) = 0.208164.
- Δy = (k₁+2k₂+2k₃+k₄)/6 = (0.200000+0.404000+0.404080+0.208164)/6 = 0.202707.
- Answer: y(0.2) ≈ 0.2027. (Exact solution y=tan x gives tan 0.2 = 0.202710 — excellent agreement.)
Examiner Tip (RK4): Write all four k-values with their arguments before computing Δy; the examiner checks the correct argument pairs (x+h/2 with y+k₁/2, etc.), not just the final number.
Solved Exam-Ready Questions
Solved Q1 (2 Marks) — Trapezoidal Rule
Q: "Write the formula for the trapezoidal rule of numerical integration." Answer: ∫ab f(x)dx ≈ (h/2)[y₀+2(y₁+⋯+yn−1)+yn], h=(b−a)/n.
Solved Q2 (7 Marks) — Gauss-Seidel
Q: "Solve , , by the Gauss-Seidel method." Solution: Iterate x=(44−y−2z)/10, y=(51−2x−z)/10, z=(61−x−2y)/10 from (0,0,0): (4.4,4.22,4.816) → (3.0148,4.01544,4.995432) → (2.99937,4.00058,4.99995) → (3,4,5).
Solved Q3 (7 Marks) — Simpson's Rule
Q: "Evaluate using Simpson's one-third rule." Solution: h=1; ordinates 1, 0.5, 0.2, 0.1, 0.058824, 0.038462, 0.027027; I=(1/3)[1.027027+4(0.638462)+2(0.258824)]=1.366173.
Solved Q4 (7 Marks) — RK4
Q: "Use the fourth-order Runge-Kutta method to find for , ." Solution: k₁=0.2, k₂=0.202, k₃=0.202040, k₄=0.208164; y(0.2)=0+(0.2+0.404+0.404080+0.208164)/6=0.202707.
Practice Questions (Self-Test)
- Decompose A = [[4,1],[1,2]] into LU and use it to solve AX=[5,4]T.
- Apply Jacobi iteration to the system in Solved Q2 and compare the first two iterates with Gauss-Seidel.
- Using the central difference formula, estimate f′(1) from f(0.9)=0.7833, f(1.1)=1.2214.
- Evaluate ∫₀⁴ exdx by trapezoidal rule with h=1 and compare with e⁴−1.
- Apply Simpson's 3/8 rule with h=1 to ∫₀³ dx/(1+x) and compare with ln 4.
- Use Picard's method to find the second approximation for y′=x+y, y(0)=1.