Numerical Analysis
Root finding, interpolation, numerical integration, numerical ODE methods, and iterative linear solvers for GATE preparation with error analysis throughout.
Numerical methods for solving \(f(x) = 0\). We study convergence rates and conditions under which each method is applicable.
The bisection method has linear convergence with rate \(r = 1\). It always converges but is relatively slow.
\(x_0 = 1\), \(x_1 = 1.5\), \(x_2 = 1.41\overline{6}\), \(x_3 = 1.414215686\ldots\)
Rapid quadratic convergence to \(\sqrt{2} \approx 1.41421356\ldots\)
Constructing polynomials that pass through given data points. Key formulations include Lagrange, Newton, and spline interpolation.
\(P_2(x) = 1 + 7(x-1) + 6(x-1)(x-2) = 6x^2 - 11x + 6\).
Note: these are values of \(x^3\), and indeed \(x^3 \ne 6x^2 - 11x + 6\), but the quadratic interpolant matches at the three given points.
- \(S(x)\) is a cubic polynomial on each subinterval \([x_i, x_{i+1}]\)
- \(S\), \(S'\), and \(S''\) are continuous on \([x_0, x_n]\)
- \(S(x_i) = y_i\) at each data point
Quadrature rules for approximating definite integrals, with error bounds and convergence analysis.
\(T = \frac{0.5}{2}[e^0 + 2e^{0.5} + e^1] = 0.25[1 + 2(1.6487) + 2.7183] = 0.25 \times 7.0157 = 1.7539\).
Exact value: \(e - 1 \approx 1.7183\). Error \(\approx 0.0356\).
For 2-point Gauss-Legendre: \(x_{1,2} = \pm\frac{1}{\sqrt{3}}\), \(w_{1,2} = 1\). This is exact for all cubics.
One-step and multi-step methods for solving initial value problems \(y' = f(t,y)\), \(y(t_0) = y_0\).
Exact: \(y(0.1) = e^{0.1} \approx 1.10517\). Error \(\approx 0.00517\).
Adams-Moulton (implicit) methods use future values and are more accurate but require solving an equation at each step. Predictor-corrector pairs combine both.
Direct and iterative methods for solving linear systems \(Ax = b\).
So \(x^{(1)} = (0.25, 0.667)^T\).
- Newton-Raphson converges quadratically; bisection is guaranteed but only linearly convergent.
- Lagrange interpolation error depends on \(f^{(n+1)}\) and the product \(\prod(x - x_i)\).
- Simpson's rule is \(O(h^4)\), two orders better than the trapezoidal rule's \(O(h^2)\).
- RK4 gives \(O(h^4)\) accuracy for ODEs with only 4 function evaluations per step.
- Diagonal dominance guarantees convergence of both Jacobi and Gauss-Seidel iterations.