Skip to content
OnlyProjects
B.Sc · MathematicsFor educational purposes only

Root-Finding Methods Compared: Convergence Analysis and the Colebrook-White Friction Factor

Bisection, Newton-Raphson and secant on one stubborn equation — convergence orders, error plots and a real pipe-flow payoff

Mapped to your syllabusBCU / Bangalore University SEP 2024 · Project Work · Semester 6

Overview

1 min read

Every numerical-methods textbook proves that Newton-Raphson converges quadratically near a simple root, while bisection grinds along at its guaranteed-but-slow linear rate. This project tests those theorems against an equation that practicing engineers actually need solved: the Colebrook-White equation for the Darcy friction factor f in turbulent pipe flow,

1/√f = -2 log₁₀(ε/3.7D + 2.51/(Re√f)),

which is implicit in f — the unknown appears on both sides — so a fixed number of arithmetic operations cannot extract it. The study implements bisection, Newton-Raphson (with the analytically derived derivative), the secant method and the fixed-point iteration of Swamee and Jain's explicit approximation family in Python, then subjects each to a declared experimental protocol: 1,000 randomly drawn (Re, ε/D) pairs spanning Re = 4×10³ to 10⁸ and relative roughness 10⁻⁶ to 5×10⁻², root accuracy 10⁻¹⁰, and a cap of 100 iterations. For every run the project records iterations-to-convergence, final error, and failure cases, estimates the observed convergence order p from three consecutive errors, and explains every divergence. The deliverable is a reproducible notebook, error-and-order plots, and a written analysis connecting the observed behaviour to the underlying assumptions of each theorem.

Relevant for
Karnataka
Level
Intermediate · 12 weeks · solo
Common at
Bengaluru City University / Bangalore University, University of Madras, University of Delhi
Updated
Nov 2026

Syllabus alignment

BCU / Bangalore University · SEP 2024

Project Work · Semester 6 · 4 credits · 100 (80 external + 20 internal)

Subjects this project applies
  • Python (DSCSC51)
  • Calculus and Numerical Methods
  • Linear Algebra and Applications
How it is evaluated

See your department's project guidelines.

Also fits: Delhi University UGCF 2022, Kerala University FYUGP 2024.

What's in the box

11 parts · 5 free · 3 previewed · 3 unlock for ₹2,000

Problem & synopsis

4 min read

Problem statement

The Colebrook-White equation defines the Darcy friction factor f for turbulent pipe flow, but because f appears inside its own logarithm, no closed-form rearrangement exists, so every evaluation of head loss in a real pipeline is secretly a root-finding problem. Undergraduate numerical-methods courses teach bisection, Newton-Raphson and secant almost exclusively on well-behaved polynomials, where convergence is quick and failure is rare; students rarely see how the same methods behave on an industrially important equation whose derivative is nearly flat at the root and whose parameters span five orders of magnitude. The result is a gap between theorem and practice: a student who can quote the quadratic convergence of Newton's method often cannot say how many iterations it will need on this equation, why a poor initial guess diverges, or which method a working engineer should trust in a spreadsheet. This project closes that gap for one equation with a measured, reproducible comparison, quantifying iterations, observed convergence order and failure rates across the physically meaningful range of Reynolds number and relative roughness.

Synopsis

Abstract. The Colebrook-White equation is the industry-standard correlation for turbulent friction in fully rough and transition pipes, adopted by codes and handbooks worldwide, yet it cannot be rearranged for the friction factor. This project compares four iterative root-finders — bisection, Newton-Raphson, secant and a fixed-point scheme — under a pre-declared protocol, quantifies their convergence orders empirically, and packages the analysis as a reproducible Python study.

Introduction. Iterative methods sit at the heart of applied mathematics, and the B.Sc syllabus meets them as theorems: the bisection convergence guarantee from the intermediate value theorem, Newton's quadratic order for simple roots with a good initial guess, the secant method's superlinear order (1+√5)/2. Textbook examples are polynomials where everything behaves. A famous implicit equation from fluid mechanics is a more honest opponent: extremely flat derivatives near the root, a logarithmic structure that punishes poor starting points, and physical parameter ranges that stretch over five orders of magnitude.

Existing work and the gap. Engineers sidestep the implicit equation with explicit approximations (Swamee-Jain, Haaland, and successors), and textbooks tabulate solutions. What standard treatment omits is a measured comparison: how many iterations each classic method really needs across the physical parameter space, where each fails, and whether the theoretical convergence orders survive contact with this equation. That measurement, with a stated protocol and reproducible code, is this project's contribution at the undergraduate level.

Proposed study. (1) Implement the four methods with careful attention to bracketing, derivative derivation and stopping rules. (2) Draw 1,000 random (Re, ε/D) points from the physical ranges by Latin-hypercube sampling. (3) Run each method to |Δf| < 10⁻¹⁰ or 100 iterations; record everything. (4) Estimate empirical convergence orders from error triples; compare against theory. (5) Analyse failures: Newton divergence from bad seeds, bisection bracket invalidity, fixed-point non-contraction. (6) Close with the engineering view — a worked example computing head loss for a campus water-supply line.

Feasibility. The mathematics needs only core calculus and numerical-methods course material; the coding is standard Python with NumPy and Matplotlib; no laboratory equipment is required. A personal laptop completes the full 4×1,000-run experiment in under a minute, and every figure and table regenerates from one notebook, making the study reproducible for the viva demonstration.

Objectives

  1. 01Derive the Newton-Raphson iteration for the Colebrook-White equation, including the analytic derivative of the residual function with respect to f
  2. 02Implement bisection, Newton-Raphson, secant and fixed-point iterations in a single documented Python module with a common stopping rule
  3. 03Generate a Latin-hypercube sample of 1,000 (Reynolds number, relative roughness) pairs covering the transition and fully rough turbulent regimes
  4. 04Run all four methods on every sample point and record iterations-to-convergence, final error and failure status
  5. 05Estimate the observed convergence order of each method from consecutive-error triples and compare with theoretical predictions
  6. 06Identify and explain every divergence or bracket failure, mapping failures to violated theorem assumptions
  7. 07Demonstrate the application on a worked campus pipeline example, computing friction factor and head loss

Scope

In scope. The single-equation root-finding problem for the Colebrook-White correlation: four iterative methods (bisection, Newton-Raphson with analytic derivative, secant, and one fixed-point form), a randomised parameter study over Re = 4×10³–10⁸ and ε/D = 10⁻⁶–5×10⁻², empirical convergence-order estimation, failure analysis, and one worked engineering example converting the computed friction factor into head loss for a water line. Implementation is Python with NumPy and Matplotlib; all experiments run from one notebook.

Out of scope. Systems of nonlinear equations, other pipe-flow correlations beyond comparison references (Haaland is cited for context only), non-turbulent (laminar) flow except as a boundary note, minor-loss and network calculations, and parallel or GPU acceleration. The study measures the mathematics, not fluid-dynamics instrumentation.

Methodology

The study follows a fixed experimental protocol declared before any run.

Phase 1 — formulation (weeks 1–2). Write the residual g(f) = 1/√f + 2 log₁₀(ε/3.7D + 2.51/(Re√f)); derive g′(f) analytically and verify it against a central-difference approximation on ten random points. Establish the physical bracket f ∈ [0.008, 0.10] from Moody-chart bounds.

Phase 2 — implementation (weeks 3–4). Implement the four methods with one interface: each takes (Re, eps_over_D), returns f, iterations and error history. Unit checks: a known textbook case (Re = 10⁵, ε/D = 0.0001 → f ≈ 0.018) must reproduce to six decimals.

Phase 3 — experiment (weeks 5–7). Draw 1,000 Latin-hypercube samples in the two parameters. Run every method on every point with tolerance |Δf| < 10⁻¹⁰ and a 100-iteration cap. Store the full error history per run.

Phase 4 — analysis (weeks 8–10). Compute iterations-to-convergence distributions; estimate observed order p from three consecutive errors via the standard log-ratio formula; plot error curves for representative runs; map every failure onto the violated assumption (bracket, seed, contraction).

Phase 5 — write-up (weeks 11–12). Draft the report chapters, regenerate every figure from the notebook, rehearse the viva demonstration, and freeze the final results tables.

Study design

1 diagram · 4 tools · 1 min read

  • Python 3 (DSCSC51)
  • NumPy
  • Matplotlib
  • Jupyter Notebook

The study is a data pipeline in five stages, and its architecture is the flow of numbers from parameter sample to conclusion.

flowchart TD
  A["Latin-hypercube sampler<br/>1000 (Re, eps/D) points"] --> B["Method runners<br/>bisection / Newton / secant / fixed-point"]
  B --> C["Run log<br/>iterations, error history, status"]
  C --> D["Analysis layer<br/>order estimates, failure map, plots"]
  D --> E["Report artefacts<br/>tables, figures, worked example"]
  F["Reference solutions<br/>mpmath 50-digit run"] --> B

A 50-digit-precision reference solution (via the mpmath library with the same bisection on a verified bracket) anchors the error measurements, so every method's error is measured against an exact yardstick rather than against another iterate. The method runners are pure functions with no shared state, which is what makes the whole 4,000-run experiment reproducible from one notebook cell. The analysis layer never modifies run logs; it only reads them, so figures can be restyled without rerunning experiments.

Work packages

5 packages

  1. Package 01

    Formulation and derivative verification

    Defines the residual function and its analytic derivative, and proves the derivative correct against central differences before any experiment is trusted.

  2. Package 02

    Method implementations

    Implements bisection, Newton-Raphson, secant and fixed-point iteration behind one common interface with identical stopping rules and iteration caps.

  3. Package 03

    Sampling harness

    Generates the Latin-hypercube sample of Reynolds numbers and relative roughness values, and computes 50-digit reference roots for every sample point.

  4. Package 04

    Experiment runner and log

    Executes all method-sample combinations, records iterations, error histories and failure status, and writes an immutable run log for analysis.

  5. Package 05

    Analysis and reporting

    Estimates observed convergence orders, produces distributions and error plots, maps failures to theorem assumptions, and renders the worked pipeline example.

Slides

12 slides · titles free · bullets, notes and the .pptx unlock

  1. Slide 1

    Title and Question

  2. Slide 2

    The Equation and Where It Comes From

  3. Slide 3

    The Four Contenders

  4. Slide 4

    Newton for This Equation

  5. Slide 5

    Experimental Protocol

  6. Slide 6

    Headline Results

  7. Slide 7

    Observed Convergence Orders

  8. Slide 8

    Why Newton Diverges

  9. Slide 9

    The Engineering Payoff

  10. Slide 10

    Reproducibility

  11. Slide 11

    Limitations

  12. Slide 12

    Conclusions and Extensions

Bullets, speaker notes and the .pptx · ₹2,000

The titles above are the real outline. The rest is what you present from.

Unlock for ₹2,000

Viva questions & answers

3 of 15 answered free · 12 unlock

Read each answer, close it, and say it in your own words. Your viva will ask. Now you'll know.

  1. 01Concept

    Why can the Colebrook-White equation not be solved for f in closed form?

    The unknown f appears both outside and inside a base-10 logarithm, as Re and roughness terms divide by the square root of f. Rearranging would require inverting a logarithm that itself contains the unknown, which elementary algebra cannot do; the equation is implicit, and iterative numerical solution is the standard route.

  2. 02Concept

    State the assumptions behind Newton-Raphson's quadratic convergence.

    The function must be twice continuously differentiable near the root, the root must be simple with a nonzero first derivative, and the initial guess must lie close enough that the second-order Taylor remainder stays controlled. In this project every divergent Newton run is traceable to a seed violating exactly that closeness condition.

  3. 03Concept

    What convergence order does the secant method have, and why is it not exactly two?

    The secant method's order is the golden ratio, about 1.618. It replaces the analytic derivative with a difference quotient built from the previous two iterates, so each step's error depends on two earlier errors rather than one, which lowers the order below Newton's quadratic two but avoids the cost of differentiation.

+12 more questions, with answers

Try the free ones out loud first. Your examiner will not accept “it's in the PPT”.

How to reproduce the study

6 steps · unlocks with the project

Unlocks with the project · ₹2,000

6 steps

Every step to carry the project out with the tools in the tech stack, in order.

Unlock for ₹2,000

READMEFIRST

168 words · unlocks with the project

What to change before it goes anywhere near a submission. Skipping it is how the demo fails live.

Unlocks with the project · ₹2,000

168 words · ~1 min read

The checklist of things to rename, re-seed and re-think so the project reads as yours.

Unlock for ₹2,000

Instructions

208 words · unlocks with the project

How to study it, adapt it and walk your examiner through it, step by step.

Unlocks with the project · ₹2,000

208 words · ~1 min read

Report structure, formatting rules and the submission checklist your department will grade.

Unlock for ₹2,000

References

6 sources

  1. NumPy documentation
  2. Matplotlib documentation
  3. mpmath: arbitrary-precision arithmetic for Python
  4. Colebrook, C. F. and White, C. M. (1937–39). Experiments with fluid friction in roughened pipes. Proceedings of the Royal Society A.
  5. Swamee, P. K. and Jain, A. K. (1976). Explicit equations for pipe-flow problems. Journal of the Hydraulics Division, ASCE.
  6. Burden, R. L. and Faires, J. D. Numerical Analysis (9th ed.). Brooks/Cole.

Cite this bundle

OnlyProjects. (2026). Root-Finding Methods Compared: Convergence Analysis and the Colebrook-White Friction Factor: B.Sc Mathematics project bundle [Educational resource]. https://onlyprojects.online/projects/bsc-maths-root-finding-convergence-colebrook-study

Future scope

1 min read

Three natural extensions follow. First, the same protocol can rank the modern explicit approximations (Haaland, Romeo, and successors) for absolute error against the 50-digit reference across the same parameter space — an accuracy-per-arithmetic-operation study with genuine engineering value. Second, the single-equation framework extends to systems: the two-equation pipeline network problem introduces Jacobians and raises the question of whether Newton's advantage grows or shrinks in higher dimensions. Third, the run log invites statistical treatment — bootstrap confidence intervals on median iteration counts — connecting numerical analysis to the inference tools of the data-science electives.

Keep browsing

Same degree, same syllabus slot, different idea. Pick the one your guide will actually approve.