wanna mathMath ain't scary (not anymore)
4-Tier Textbook Index • Vol → Mod → Ch → Lab

Engineering Mathematics Volumes I–VI

6 Volumes • 20 Modules • 85 ChaptersFull Matrix →
4-Tier Statistics Index • Vol S → Mod → Ch → Lab

Interactive Statistics (S.1–S.6)

6 Modules • 18 ChaptersStatistics Index →
FORMULA SHEET • MODULE 6.25 Reference Sections

Numerical Analysis: Iterative Linear Solvers, Roots, Interpolation & Quadrature

Jacobi and Gauss–Seidel linear iterations, Bisection, Regula Falsi, Fixed-Point and Newton–Raphson root finding, finite differences, Newton forward/backward & Lagrange interpolation with error bounds, Trapezoidal, Simpson's 1/3, Gauss–Legendre quadrature, and RK4.

Mathematical Rigor & Accuracy Notes
  • Strict Diagonal Dominance Guard (Jacobi & Gauss–Seidel): Requiring ∣aii∣>∑j≠i∣aij∣|a_{ii}| > \sum_{j\neq i}|a_{ij}| for every row guarantees convergence of both Jacobi and Gauss–Seidel from ANY initial guess x(0)\mathbf{x}^{(0)}. If violated, first try swapping equations (pivoting) to place largest magnitudes on the diagonal before rejecting iterative solvers.
  • Fixed-Point Contraction vs. Newton Tangents: Fixed-point iteration xn+1=g(xn)x_{n+1} = g(x_n) converges locally if ∣g′(r)∣<1|g'(r)| < 1 and diverges whenever ∣g′(r)∣>1|g'(r)| > 1. Newton–Raphson achieves quadratic convergence (O(en2)O(e_n^2)) only at simple roots where f′(r)≠0f'(r) \neq 0; near multiple roots or horizontal tangents (f′(xn)≈0f'(x_n) \approx 0), steps collapse or shoot far away.
  • Even-Interval Requirement for Simpson's 1/3 Rule: Composite Simpson's 1/31/3 applies parabolic arcs over consecutive pairs of subintervals, so the subinterval count nn MUST be even (meaning n+1n+1 equally spaced sample points). Use Trapezoidal or Simpson's 3/83/8 on an odd final triplet if nn is odd.
  • High-Degree Equispaced Interpolation Caveat (Runge Phenomenon): Raising polynomial degree nn over uniform grid nodes can trigger violent endpoint oscillation (max⁡∣Rn(x)∣\max |R_n(x)| diverges even for smooth curves like 1/(1+25x2)1/(1+25x^2)); prefer piecewise splines or Chebyshev nodes at high nn.

1. Iterative Linear Solvers: Jacobi & Gauss–Seidel

Splitting A=D+L+UA = D + L + U into diagonal DD, strictly lower LL, and strictly upper UU parts replaces O(n3)O(n^3) direct elimination with rapidly converging fixed-point updates on sparse, diagonally dominant systems.

Jacobi Iteration (Simultaneous Update)
xi(k+1)=1aii(bi−∑j≠iaijxj(k)),x(k+1)=−D−1(L+U)x(k)+D−1bx_i^{(k+1)} = \frac{1}{a_{ii}}\left(b_i - \sum_{j \neq i} a_{ij}x_j^{(k)}\right), \qquad \mathbf{x}^{(k+1)} = -D^{-1}(L + U)\mathbf{x}^{(k)} + D^{-1}\mathbf{b}

Condition:Requires aii≠0a_{ii} \neq 0 for all ii; every coordinate uses only previous iteration (k)(k).

Gauss–Seidel Iteration (Sequential In-Place Update)
xi(k+1)=1aii(bi−∑j<iaijxj(k+1)−∑j>iaijxj(k)),x(k+1)=−(D+L)−1Ux(k)+(D+L)−1bx_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), \qquad \mathbf{x}^{(k+1)} = -(D + L)^{-1}U\mathbf{x}^{(k)} + (D + L)^{-1}\mathbf{b}

Uses newly updated xj(k+1)x_j^{(k+1)} immediately within sweep k+1k+1 — typically converging in roughly half the iterations of Jacobi.

Sufficient Strict Diagonal Dominance Criterion
∣aii∣>∑j=1j≠in∣aij∣(i=1,…,n)  ⟹  ρ(TJ), ρ(TGS)<1|a_{ii}| > \sum_{\substack{j=1 \\ j\neq i}}^{n} |a_{ij}| \quad (i = 1,\dots,n) \;\Longrightarrow\; \rho(T_{\text{J}}),\,\rho(T_{\text{GS}}) < 1

Condition:Necessary and sufficient for any initial x(0)\mathbf{x}^{(0)}: spectral radius ρ(T)<1\rho(T) < 1 of iteration matrix TT.

Worked Example: One Iteration of Jacobi vs. Gauss–Seidel on a Diagonally Dominant 3×3 System

4x1−x2+x3=1,−x1+5x2−x3=10,x1−x2+4x3=−5(∣aii∣>row sum:  4>2,  5>2,  4>2)4x_1 - x_2 + x_3 = 1, \quad -x_1 + 5x_2 - x_3 = 10, \quad x_1 - x_2 + 4x_3 = -5 \qquad (|a_{ii}| > \text{row sum}:\; 4>2,\; 5>2,\; 4>2)
x(0)=(0,0,0)T  ⟹  Jacobi: x1(1)=14(1)=0.25,  x2(1)=15(10)=2,  x3(1)=14(−5)=−1.25\mathbf{x}^{(0)} = (0,0,0)^T \implies \text{Jacobi: } x_1^{(1)} = \tfrac{1}{4}(1) = 0.25,\; x_2^{(1)} = \tfrac{1}{5}(10) = 2,\; x_3^{(1)} = \tfrac{1}{4}(-5) = -1.25
Gauss–Seidel: x1(1)=0.25,  x2(1)=15(10+0.25+0)=2.05,  x3(1)=14(−5−0.25+2.05)=−0.80\text{Gauss–Seidel: } x_1^{(1)} = 0.25, \; x_2^{(1)} = \tfrac{1}{5}(10 + 0.25 + 0) = 2.05, \; x_3^{(1)} = \tfrac{1}{4}(-5 - 0.25 + 2.05) = -0.80

Exact solution is (1,2,−1)(1, 2, -1): notice Gauss–Seidel's x3(1)=−0.80x_3^{(1)} = -0.80 is immediately closer to −1-1 than Jacobi's −1.25-1.25 after just one sweep.

2. Transcendental Root-Finding: Bisection, Regula Falsi, Fixed-Point & Newton–Raphson

Bisection Method & Guaranteed Error Bound
mk=ak+bk2,∣r−mk∣≤b0−a02km_k = \frac{a_k + b_k}{2}, \qquad |r - m_k| \le \frac{b_0 - a_0}{2^k}

Condition:Requires ff continuous on [a0,b0][a_0, b_0] with opposite endpoint signs f(a0)f(b0)<0f(a_0)f(b_0) < 0.

Regula Falsi (False Position Chord Intersection)
ck=akf(bk)−bkf(ak)f(bk)−f(ak)=bk−f(bk)bk−akf(bk)−f(ak)c_k = \frac{a_k f(b_k) - b_k f(a_k)}{f(b_k) - f(a_k)} = b_k - f(b_k)\frac{b_k - a_k}{f(b_k) - f(a_k)}

Maintains sign bracket f(ak)f(bk)<0f(a_k)f(b_k) < 0 like Bisection, though one endpoint can stagnate on strictly convex/concave curves.

Fixed-Point Iteration & Contraction Test
f(x)=0  ⟺  x=g(x),xn+1=g(xn),∣en+1∣≈∣g′(r)∣ ∣en∣  (∣g′(r)∣<1)f(x) = 0 \iff x = g(x), \qquad x_{n+1} = g(x_n), \qquad |e_{n+1}| \approx |g'(r)|\,|e_n| \;(|g'(r)| < 1)

Condition:Converges linearly if g∈C1g \in C^1 and ∣g′(x)∣≤L<1|g'(x)| \le L < 1 near root rr; diverges whenever ∣g′(r)∣>1|g'(r)| > 1.

Newton–Raphson Method (Quadratic Order)
xn+1=xn−f(xn)f′(xn),lim⁡n→∞∣en+1∣∣en∣2=∣f′′(r)2f′(r)∣x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}, \qquad \lim_{n\to\infty}\frac{|e_{n+1}|}{|e_n|^2} = \left|\frac{f''(r)}{2f'(r)}\right|

Condition:Requires f′(r)≠0f'(r) \neq 0 (simple root) and x0x_0 inside the local basin of attraction.

Comparison of Transcendental Equation Solvers for f(x) = 0

MethodUpdate FormulaOrder of ConvergenceBracketing & Main Failure Trap
Bisectionmk=12(ak+bk)m_k = \frac{1}{2}(a_k + b_k)Linear (rate 1/21/2)Guaranteed bracket; slow; misses even-order tangent roots (x2=0x^2=0)
Regula FalsiSecant xx-intercept keeping f(a)f(b)<0f(a)f(b)<0Linear (superlinear only when modified)Guaranteed bracket; one endpoint stalls if f′′f'' keeps fixed sign
Fixed-Pointxn+1=g(xn)x_{n+1} = g(x_n)Linear with ratio ∣g′(r)∣|g'(r)|Open (no bracket); diverges immediately if ∣g′(r)∣>1|g'(r)| > 1
Newton–Raphsonxn+1=xn−f(xn)f′(xn)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}Quadratic (p=2p=2, simple roots)Open (needs f′(x)f'(x)); breaks if f′(xn)≈0f'(x_n)\approx 0 or degrades to linear at multiple roots

3. Finite Differences, Interpolation Formulas & Remainder Error

Forward (Δ), Backward (∇) & Shift (E) Operators
Δyk=yk+1−yk,∇yk=yk−yk−1,Eyk=yk+1=(1+Δ)yk=(1−∇)−1yk\Delta y_k = y_{k+1} - y_k, \qquad \nabla y_k = y_k - y_{k-1}, \qquad E y_k = y_{k+1} = (1 + \Delta)y_k = (1 - \nabla)^{-1}y_k

Condition:Equally spaced nodes xk=x0+khx_k = x_0 + k h; higher differences recurse via Δmyk=Δm−1yk+1−Δm−1yk\Delta^{m} y_k = \Delta^{m-1} y_{k+1} - \Delta^{m-1} y_k.

Newton's Forward Interpolation Formula (Near x₀)
Pn(x0+uh)=y0+u Δy0+u(u−1)2!Δ2y0+⋯+u(u−1)⋯(u−n+1)n!Δny0P_n(x_0 + u h) = y_0 + u\,\Delta y_0 + \frac{u(u-1)}{2!}\Delta^2 y_0 + \cdots + \frac{u(u-1)\cdots(u-n+1)}{n!}\Delta^n y_0

Condition:Dimensionless offset u=x−x0hu = \frac{x - x_0}{h}; best accuracy near the top of the table (0≤u≤10 \le u \le 1).

Newton's Backward Interpolation Formula (Near xₙ)
Pn(xn+vh)=yn+v ∇yn+v(v+1)2!∇2yn+⋯+v(v+1)⋯(v+n−1)n!∇nynP_n(x_n + v h) = y_n + v\,\nabla y_n + \frac{v(v+1)}{2!}\nabla^2 y_n + \cdots + \frac{v(v+1)\cdots(v+n-1)}{n!}\nabla^n y_n

Condition:Dimensionless offset v=x−xnhv = \frac{x - x_n}{h}; best accuracy near the bottom of the table (−1≤v≤0-1 \le v \le 0).

Lagrange Interpolation & Remainder Error Formula
Pn(x)=∑k=0nykLk(x),Lk(x)=∏j=0j≠knx−xjxk−xj,Rn(x)=f(x)−Pn(x)=f(n+1)(ξ)(n+1)!∏i=0n(x−xi)P_n(x) = \sum_{k=0}^{n} y_k L_k(x), \quad L_k(x) = \prod_{\substack{j=0 \\ j\neq k}}^{n} \frac{x - x_j}{x_k - x_j}, \qquad R_n(x) = f(x) - P_n(x) = \frac{f^{(n+1)}(\xi)}{(n+1)!}\prod_{i=0}^{n}(x - x_i)

Works for arbitrary non-uniform nodes x0,…,xnx_0, \dots, x_n; error Rn(x)=0R_n(x) = 0 identically whenever ff is a polynomial of degree ≤n\le n.

4. Numerical Integration: Trapezoidal, Simpson's 1/3 & Gauss–Legendre

Composite Trapezoidal Rule & O(h²) Error
∫abf(x) dx≈h2[y0+2(y1+⋯+yn−1)+yn],ET=−b−a12h2f′′(ξ)\int_a^b f(x)\,dx \approx \frac{h}{2}\Bigl[y_0 + 2(y_1 + \cdots + y_{n-1}) + y_n\Bigr], \qquad E_T = -\frac{b-a}{12}h^2 f''(\xi)

Condition:h=(b−a)/nh = (b-a)/n; exact for degree ≤1\le 1 linear functions.

Composite Simpson's 1/3 Rule & O(h⁴) Error
∫abf(x) dx≈h3[y0+4(y1+y3+⋯+yn−1)+2(y2+y4+⋯+yn−2)+yn],ES=−b−a180h4f(4)(ξ)\int_a^b f(x)\,dx \approx \frac{h}{3}\Bigl[y_0 + 4(y_1 + y_3 + \cdots + y_{n-1}) + 2(y_2 + y_4 + \cdots + y_{n-2}) + y_n\Bigr], \qquad E_S = -\frac{b-a}{180}h^4 f^{(4)}(\xi)

Condition:Subinterval count nn MUST be even; integrates every cubic polynomial (f(4)≡0f^{(4)} \equiv 0) exactly.

Gauss–Legendre Quadrature (Degree 2n − 1 Exactness)
∫−11f(x) dx≈∑i=1nwi f(xi)(Pn(xi)=0)\int_{-1}^{1} f(x)\,dx \approx \sum_{i=1}^{n} w_i\,f(x_i) \qquad \bigl(P_n(x_i) = 0\bigr)

Transforms any [a,b][a,b] via x=b−a2t+a+b2x = \tfrac{b-a}{2}t + \tfrac{a+b}{2}, dx=b−a2dtdx = \tfrac{b-a}{2}dt.

5. Initial-Value ODE Stepping: Euler, Heun & RK4

Forward Euler vs. Heun Predictor–Corrector
yn+1Euler=yn+hf(tn,yn)  [O(h)],yn+1Heun=yn+h2(f(tn,yn)+f(tn+1,yn+hf(tn,yn)))  [O(h2)]y_{n+1}^{\text{Euler}} = y_n + h f(t_n, y_n) \;[O(h)], \qquad y_{n+1}^{\text{Heun}} = y_n + \frac{h}{2}\bigl(f(t_n,y_n) + f(t_{n+1}, y_n + h f(t_n,y_n))\bigr) \;[O(h^2)]
Classical Fourth-Order Runge–Kutta (RK4)
yn+1=yn+h6(k1+2k2+2k3+k4)(O(h4) global error)y_{n+1} = y_n + \frac{h}{6}(k_1 + 2k_2 + 2k_3 + k_4) \qquad \bigl(O(h^4) \text{ global error}\bigr)

Uses k1=f(tn,yn)k_1 = f(t_n,y_n), k2=f(tn+h2,yn+h2k1)k_2 = f(t_n+\tfrac{h}{2}, y_n+\tfrac{h}{2}k_1), k3=f(tn+h2,yn+h2k2)k_3 = f(t_n+\tfrac{h}{2}, y_n+\tfrac{h}{2}k_2), k4=f(tn+h,yn+hk3)k_4 = f(t_n+h, y_n+h k_3).

Related Formula Reference Sheets

All Formula Sheets