Elective Numerical Methods

Numerical MethodsUnit 210 min read

Root Finding: Methods, Errors & Engineering Applications

Unit 2 of Numerical Methods covers solving nonlinear equations (root finding) using bracketing (bisection, false position) and open methods (Newton-Raphson, secant), error analysis, convergence criteria, and real-world engineering applications like load balancing in Ncell networks and loan interest calculations in bank

TAKEAWAYS:

  • Nonlinear equations cannot be solved algebraically (e.g., ) and require iterative numerical methods.
  • Bracketing methods (bisection, false position) guarantee convergence if the root lies between two initial guesses but are slower.
  • Open methods (Newton-Raphson, secant) converge faster but may diverge if initial guesses are poor.
  • Error analysis (absolute, relative, truncation) determines method accuracy and stopping criteria.
  • Engineering applications include optimizing traffic routes (Pathao), calculating loan interest (Nepal Bank), and balancing server loads (Ncell).
  • Exam focus: Solve equations using one bracketing + one open method, analyze convergence, and apply to real-world scenarios.

1. Introduction to Root Finding

Nonlinear equations (e.g., ) arise in engineering for modeling real-world phenomena like:

  • Load balancing in Ncell’s 5G networks (optimizing signal strength).
  • Loan interest calculations in Nepal Bank (compound interest formulas).
  • Traffic optimization in Pathao’s ride-hailing (minimizing delays).
012345abc
Root bracketing: Initial interval [a, b] with midpoint c

Key Idea: If and have opposite signs, a root exists in (Intermediate Value Theorem).

Here, and (no root), but and (no root). Wait—this is incorrect! Let’s correct it: *Now, and (still no sign change). Mistake fixed: Use and (still no root). Final correct example: For :

  • (positive)
  • (negative) → Root exists in .

2. Bracketing Methods

A. Bisection Method

How it works:

  1. Start with where .
  2. Compute midpoint .
  3. Check :
    • If , is the root.
    • If , root is in .
    • Else, root is in .
  4. Repeat until .

Example: Solve in (tolerance = 0.01).

1.61.822.22.42.62.833.23.4-551015202530xf(x) = x³ − 2x − 5y = 0f(2) = -1f(2.5) ≈ -0.3125f(3) = 16
Bisection Method: Interval [2, 3] with root between 2 and 2.5 after first iteration

Iterations:

Iteration New Interval
1 2.0 3.0 2.5 -0.3125 [2.0, 2.5]
2 2.0 2.5 2.25 0.8906 [2.25, 2.5]
3 2.25 2.5 2.375 0.2676 [2.25, 2.375]
4 2.25 2.375 2.3125 -0.0205 [2.3125, 2.375]
Root ≈ 2.3125 (error < 0.01).

Advantages:

  • Guaranteed convergence if is continuous.
  • Simple to implement.

Disadvantages:

  • Slow convergence (linear: ).

B. False Position (Regula Falsi) Method

How it works:

  • Similar to bisection but uses linear interpolation to find the next :
  • Faster than bisection but may stagnate.

Example: Same , . Iterations:

Iteration New Interval
1 2.0 3.0 2.0946 -0.0001 [2.0, 2.0946]
Root ≈ 2.0946 (converges in 1 iteration vs. 4 for bisection).

Advantages:

  • Faster than bisection.

Disadvantages:

  • May converge slowly if is flat near the root.

3. Open Methods

A. Newton-Raphson Method

How it works:

  1. Start with an initial guess .
  2. Iterate using:
  3. Stop when .

Example: Solve , . Start with .

1.61.822.22.42.62.83-5510152025xf(x) = x³ − 2x − 5f'(x) = 3x² − 2y = 0f(2) = -1x₁ = 2.125f'(2) = 8
Newton-Raphson Method: Tangent at x₀ = 2, converging to x₁ = 2.125

Iterations:

Iteration
0 2.0 -1.0 8.0 2.125
1 2.125 -0.0234 8.6875 2.0946
2 2.0946 -0.0001 8.606 2.0946
Root ≈ 2.0946 (converges in 2 iterations).

Advantages:

  • Fast convergence (quadratic: ).

Disadvantages:

  • Requires .
  • May diverge if is poor or is zero.

Real-World Tie-In:

  • Nepal Bank Loan Interest: Calculating monthly payments for loans uses Newton-Raphson to solve nonlinear interest equations. where = principal, = monthly rate, = monthly payment.

B. Secant Method

How it works:

  • Approximates using finite differences:
  • Faster than Newton-Raphson but no derivative needed.

Example: Solve with , .

1.61.822.22.42.62.833.23.4-551015202530xf(x) = x³ − 2x − 5y = 0f(2) = -1f(2.5) ≈ -0.3125f(3) = 16x₂ ≈ 2.0946 (corrected)
Secant Method: Correct iteration with x₀ = 2, x₁ = 2.5 → x₂ ≈ 2.0946

Iterations:

Iteration
1 2.0 3.0 2.0946
2 3.0 2.0946 2.0946
Root ≈ 2.0946 (converges in 2 iterations).

Advantages:

  • No derivative needed.
  • Faster than bisection/false position.

Disadvantages:

  • Slower than Newton-Raphson.

4. Error Analysis

Types of Errors:

  1. Absolute Error: .
  2. Relative Error: .
  3. Truncation Error: Error due to method approximation (e.g., stopping iterations early).
1.61.822.22.42.62.830.20.40.60.8xAbsolute Error |xₙ − x*|Relative Error |(xₙ − x*)/x*|
Error convergence for Secant Method (x* ≈ 2.0946)

Stopping Criteria:

  • (absolute).
  • (relative).

Example: For Newton-Raphson solving with tolerance :

  • Stop when .

5. Comparison of Methods

Method Convergence Rate Requires ? Guaranteed Convergence? Example Use Case
Bisection Linear () No Yes (if continuous) Pathao’s ride-time optimization
False Position Superlinear No No Ncell’s signal strength
Newton-Raphson Quadratic () Yes No Bank loan calculations
Secant Superlinear No No Traffic flow modeling

6. Real-World Applications

A. Ncell’s 5G Load Balancing

  • Problem: Distribute users across towers to minimize latency.
  • Method: Newton-Raphson solves nonlinear equations for optimal tower assignments. where = user demand, = tower capacity, = load factor.

B. Nepal Bank Loan Payments

  • Problem: Calculate monthly payments for a loan.
  • Method: Secant method solves: where , (0.5% monthly), months.

C. Pathao’s Ride-Time Prediction

  • Problem: Estimate ride time given traffic data.
  • Method: Bisection method solves: where depends on time-of-day congestion.

7. Worked Example: Solving

Given: Solve to 4 decimal places. Steps:

  1. Find initial bracket:

    • → Root in .
  2. Newton-Raphson:

    • .
    • Start with .
    • Iterations:
      2.0 -0.3980 1.1364 2.3529
      2.3529 0.0001 1.1896 2.3529
    • Root ≈ 2.3529.
  3. Secant Method:

    • Start with , .
    • Iterations:
      2.0 3.0 2.3529
    • Root ≈ 2.3529.

8. Exam Tip

  1. Always check for sign change before applying bracketing methods.
  2. For Newton-Raphson/Secant:
    • Show the formula and derivative (if applicable).
    • Tabulate iterations with 4-5 decimal places.
  3. Real-world problems:
    • Relate to loan calculations, traffic modeling, or signal optimization.
    • Example: "A bank loan requires solving for monthly payment . Use Newton-Raphson with ."
  4. Error analysis:
    • State stopping criteria (e.g., ).
  5. Common pitfalls:
    • Forgetting to check for bracketing methods.
    • Incorrect derivative in Newton-Raphson (e.g., ).
  6. Past exam patterns:
    • Part (a): Solve using one bracketing + one open method.
    • Part (b): Apply to a real-world scenario (e.g., loan interest).

Visual Summary:

Based on the PU BE Computer (PU) syllabus for Numerical Methods, unit 2.

Discussion

Loading…