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).
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:
- Start with where .
- Compute midpoint .
- Check :
- If , is the root.
- If , root is in .
- Else, root is in .
- Repeat until .
Example: Solve in (tolerance = 0.01).
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:
- Start with an initial guess .
- Iterate using:
- Stop when .
Example: Solve , . Start with .
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 , .
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:
- Absolute Error: .
- Relative Error: .
- Truncation Error: Error due to method approximation (e.g., stopping iterations early).
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:
Find initial bracket:
- → Root in .
Newton-Raphson:
- .
- Start with .
- Iterations:
2.0 -0.3980 1.1364 2.3529 2.3529 0.0001 1.1896 2.3529 - Root ≈ 2.3529.
Secant Method:
- Start with , .
- Iterations:
2.0 3.0 2.3529 - Root ≈ 2.3529.
8. Exam Tip
- Always check for sign change before applying bracketing methods.
- For Newton-Raphson/Secant:
- Show the formula and derivative (if applicable).
- Tabulate iterations with 4-5 decimal places.
- 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 ."
- Error analysis:
- State stopping criteria (e.g., ).
- Common pitfalls:
- Forgetting to check for bracketing methods.
- Incorrect derivative in Newton-Raphson (e.g., ).
- 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…