← Engineering Mathematics · UPSC ESE Civil

Chapter 2 of 6

Numerical Analysis

In the UPSC ESE Civil syllabus under Engineering Mathematics · 2 parts

📑 Contents (14 sections)

Part 1 of 2

Numerical Methods — Roots of Equations & Linear Systems

Last reviewed 16 Sept 2026 · 7 min read

Errors

Error Definition
Absolute error
Relative error
Percentage error Relative error × 100
Round-off error Due to finite number of digits in computation
Truncation error Due to approximating an infinite process by a finite one (e.g. truncating a Taylor series)
Inherent error Present in the data/model itself
  • Significant digits — digits that carry meaning; a number correct to decimal places has error at most .
  • Errors propagate: for sums, absolute errors add; for products/quotients, relative errors add (approximately).

Roots of non-linear equations

Intermediate value theorem

If is continuous on and , there is at least one root in .

1. Bisection method

  1. Choose with .
  2. ; replace the end point whose function value has the same sign as .
  3. Repeat until the interval is small enough.
  • Always converges (bracketing), but slowly — linear convergence, error halves each step.
  • Iterations for accuracy ε: .

2. Regula falsi (method of false position)

Keeps a bracket like bisection but uses the chord intercept — usually faster; linear convergence (one end may remain fixed).

3. Secant method

No bracketing required; superlinear convergence (order ≈ 1.618); may diverge.

4. Newton–Raphson method

FormulaNewton–Raphson
  • Quadratic convergence (order 2) near a simple root — the number of correct digits roughly doubles each step.
  • Requires ; fails or is slow if , near multiple roots (convergence becomes linear), or with poor starting values.
  • Square root of :
  • Reciprocal of :

5. Fixed-point iteration

Rewrite as and iterate .

  • Converges if near the root (linear convergence with rate ).

Order of convergence summary

Method Order Bracketing
Bisection 1 (linear) Yes
Regula falsi 1 (linear) Yes
Secant ≈ 1.618 No
Newton–Raphson 2 (quadratic) No
Fixed-point 1 (if ) No

Linear systems — direct methods

Gauss elimination

  1. Forward elimination — reduce to upper triangular form.
  2. Back substitution.
  • Partial pivoting — swap rows so the largest absolute element in the column becomes the pivot — reduces round-off errors and avoids division by zero.
  • Computational effort ≈ multiplications for large .

Gauss–Jordan method

Eliminates above and below pivots to obtain the identity matrix — gives the solution directly (more work than Gauss elimination); used to find inverses.

LU decomposition

, then solve (forward substitution) and (back substitution) — efficient for many right-hand sides.

Method Form
Doolittle has unit diagonal
Crout has unit diagonal
Cholesky for symmetric positive definite matrices (about half the work)

Thomas algorithm

A simplified Gauss elimination for tridiagonal systems (common in finite differences for beams, heat conduction) — work proportional to .

Part 2 of 2

Numerical Interpolation, Integration & Solution of ODEs

Last reviewed 16 Sept 2026 · 7 min read

Finite differences

For equally spaced values with :

Operator Definition
Forward difference
Backward difference
Central difference
Shift operator
Averaging operator

Relations: ; ; ; ().

  • The nth differences of a polynomial of degree n are constant, and higher differences are zero.

Interpolation

Newton's forward difference formula

For near the beginning of the table, :

Newton's backward difference formula

For near the end of the table, :

(Central difference formulas — Gauss, Stirling, Bessel, Everett — are used near the middle.)

Lagrange's interpolation formula

For unequally spaced points:

Newton's divided difference formula

with , etc. — convenient for adding points.

  • Interpolation error ; high-degree polynomials on equally spaced points may oscillate (Runge phenomenon) — spline interpolation is often preferred.
  • Extrapolation (outside the data range) is unreliable.

Numerical differentiation

From Newton's forward formula at :

Simple approximations: forward (error ); central (error ); second derivative .

Numerical integration

FormulaNewton–Cotes rules (h = step, n = number of intervals)

Trapezoidal rule:

Error (global); exact for linear functions.

Simpson's 1/3 rule ( even):

Error ; exact for polynomials up to degree 3.

Simpson's 3/8 rule ( a multiple of 3):

Error .

Weddle's rule ( multiple of 6): per 6 intervals.

Gaussian quadrature

  • Chooses optimal points and weights — an -point Gauss–Legendre rule is exact for polynomials of degree up to .
  • Two-point rule on : .
  • For , substitute .
  • Widely used in finite element stiffness computations.

Romberg integration

Richardson extrapolation of trapezoidal results with successively halved step sizes: (gives Simpson accuracy), repeated for higher accuracy.

Finished reading? Test yourself.

A timed chapter test from the UPSC ESE Civil series, on exactly this chapter.

Practice this chapter →