05

Numerical Methods

Chapter 5 • Intermediate

30 min

Numerical Methods for GATE CS

Numerical Methods is an important chapter within Engineering Mathematics, covering approximately 1-2 marks in GATE CS. It provides computational techniques for solving mathematical problems.

Overview

Numerical Methods in GATE CS includes:

  • Root Finding: Bisection, Newton-Raphson methods
  • Interpolation: Linear and polynomial interpolation
  • Numerical Integration: Trapezoidal, Simpson's rule
  • Error Analysis: Understanding approximation errors

Root Finding

Bisection Method

Algorithm:

  1. Start with interval [a, b] where f(a) and f(b) have opposite signs
  2. Calculate midpoint c = (a + b) / 2
  3. If f(c) = 0, c is the root
  4. If f(a) and f(c) have opposite signs, root is in [a, c]
  5. Otherwise, root is in [c, b]
  6. Repeat until convergence

Properties:

  • Guaranteed to converge
  • Slow but reliable
  • Requires continuous function
  • Requires opposite signs at endpoints

Convergence:

Error reduces by half each iteration

Newton-Raphson Method

Formula:

x_{n+1} = x_n - f(x_n) / f'(x_n)

Algorithm:

  1. Start with initial guess x_0
  2. Calculate x_1 = x_0 - f(x_0) / f'(x_0)
  3. Repeat until convergence

Properties:

  • Faster convergence than bisection
  • Requires derivative
  • May not converge if initial guess is poor
  • Can diverge if f'(x) ≈ 0

Convergence:

Quadratic convergence (very fast)

Interpolation

Linear Interpolation

Formula:

y = y₁ + (y₂ - y₁) × (x - x₁) / (x₂ - x₁)

Use Case:

Finding value between two known points

Polynomial Interpolation

Lagrange Interpolation:

P(x) = Σ y_i × L_i(x)

Where L_i(x) = Π (x - x_j) / (x_i - x_j) for j ≠ i

Use Case:

Finding value using multiple known points

Numerical Integration

Trapezoidal Rule

Formula:

∫[a to b] f(x) dx ≈ (h/2) × [f(a) + 2Σf(x_i) + f(b)]

Where h = (b - a) / n

Error:

O(h²)

Simpson's Rule

Formula (n even):

∫[a to b] f(x) dx ≈ (h/3) × [f(a) + 4Σf(x_odd) + 2Σf(x_even) + f(b)]

Error:

O(h⁴) - more accurate than trapezoidal

Error Analysis

Types of Errors

Truncation Error:

Error due to approximation method

Round-off Error:

Error due to finite precision arithmetic

Total Error:

Sum of truncation and round-off errors

GATE CS Weightage

Numerical Methods typically accounts for:

  • 1-2 marks out of 100 in GATE CS
  • Questions often involve root finding methods
  • Less frequently tested than other chapters

Practice Tips

  1. Understand Algorithms: Know the steps for each method
  2. Practice Calculations: Work through examples manually
  3. Error Analysis: Understand convergence properties
  4. Previous Year Questions: Solve GATE questions from last 5 years
  5. Time Management: Numerical methods questions should take 2-3 minutes

Conclusion

Numerical Methods provides computational tools for GATE CS. Focus on understanding root finding methods and basic interpolation. Regular practice with previous year questions will help you master this chapter.