Numerical Methods: Study Material with Examples
This study material is designed to provide a comprehensive overview of Numerical
Methods, covering key concepts, methods, and calculations. Each topic is explained with
examples to help students grasp the fundamental principles and applications.
1. Introduction to Numerical Methods
Definition and Scope: Numerical methods involve algorithms for solving mathematical
problems that are difficult to solve analytically.
Applications: Engineering, physics, finance, and more.
Advantages: Provides approximate solutions where exact solutions are impossible.
Limitations: Accuracy depends on computational resources.
2. Error Analysis
Types of Errors:
- Absolute Error = |Exact Value - Approximate Value|
- Relative Error = (Absolute Error) / |Exact Value|
Example: Calculate absolute and relative errors when the true value is 2.718 and the
approximation is 2.7.
Error Propagation: Errors can accumulate in iterative calculations.
Machine Epsilon: The smallest number that can be represented in a computer.
3. Root-Finding Methods
Bisection Method: Iteratively narrows down the interval containing a root.
Example: Solve f(x) = x^2 - 4 using the Bisection Method.
Newton-Raphson Method: Uses the derivative to approximate roots faster.
Example: Solve f(x) = x^2 - 4 using Newton-Raphson, starting at x0 = 2.
4. Interpolation and Polynomial Approximation
Lagrange Interpolation: A method for constructing a polynomial passing through given data
points.
Example: Interpolate the value of f(2.5) for data points (1, 1), (2, 4), (3, 9).
Newton’s Divided Difference: Iterative method for polynomial interpolation.
Spline Interpolation: Fits piecewise polynomials for smoother results.
5. Numerical Differentiation and Integration
Trapezoidal Rule: Approximates the area under a curve using trapezoids.
Example: Approximate ∫(x^2 dx) from 0 to 2 using 4 intervals.
Simpson's Rule: Combines parabolic arcs to approximate integrals.
Numerical Differentiation: Uses finite differences to approximate derivatives.
6. Systems of Linear Equations
Gaussian Elimination: Systematically eliminates variables to solve linear systems.
Example: Solve the system of equations: 2x + y = 5, 4x - y = 1.
LU Decomposition: Factorizes a matrix into lower and upper triangular matrices.
Iterative Methods: Jacobi and Gauss-Seidel methods for solving large systems.
7. Numerical Solutions of Ordinary Differential Equations
Euler’s Method: Approximates solutions by advancing a step size.
Example: Solve dy/dx = x + y, y(0) = 1 for x ∈ [0, 0.2] with h = 0.1.
Runge-Kutta Methods: Provides higher accuracy by evaluating intermediate points.
Multistep Methods: Uses previous steps to estimate the current step.