Newton-Raphson Root Finder
Iteratively solve f(x) = 0 using tangent-line updates
Parameters
Controls
Calculated Values
Examples
√2 from x² − 2
Classic demo with x₀ = 1.5.
- Root:
Transcendental root
sin(x) = x/2 near x ≈ 1.9.
- Root:
Visualization
Newton-Raphson in Physics
Equilibrium points, resonance conditions, and implicit relations in physics often reduce to f(x) = 0 with no closed-form solution. Newton-Raphson (Newton’s method) refines an initial guess using the local linear approximation of f.
Each iteration uses x_{n+1} = x_n − f(x_n)/f′(x_n). Geometrically, follow the tangent at (x_n, f(x_n)) to its intercept with the x-axis. Quadratic convergence near a simple root makes it very fast when started close enough.
Examples: solving Kepler’s equation for orbital position, finding wavelengths from dispersion relations, or locating zeros of overlap integrals. The animation shows successive iterates approaching the x-axis crossing.
Failure modes include zero derivative (horizontal tangent), oscillation, or divergence if x₀ is poor. Bisection is slower but only needs a sign-changing bracket.
Always verify |f(x)| is small and compare to a plot or independent method. Link numerical uncertainty to Error Propagation when f depends on measured inputs.
Key Concepts
- Requires differentiable f and f′(x) ≠ 0
- Quadratic convergence near a simple root
- Sensitive to initial guess x₀
- One root at a time — depends on starting point
- Combine with graphing to pick x₀
Real-World Applications
- Implicit time-step constraints in simulations
- Finding equilibrium angles in statics
- Solving transcendental lens or wave equations
- Calibration fits requiring nonlinear root conditions
Explore Further
- All Computational Physics Calculators
Browse every computational physics solver in this category.
- Statistical & Numerical Methods
Probability and ensemble ideas behind stochastic simulation.
- Statistics in Physics
Why averaging random samples recovers physical expectations.
- Bisection Method
Step in Numerical Methods.
- ODE Solver
Step in Numerical Methods.
- Monte Carlo Intro
Step in Numerical Methods.
- Physics Constants Reference
SI values for c, G, k_B, ε₀, and more used across solvers.
More computational physics tools
- Gradient Descent
Iteratively minimize f(x) by following the negative gradient with animated path visualization.
- 1D Heat Equation
Finite-difference FTCS solution to the diffusion equation with animated temperature profiles.
- 1D Wave Equation
Leapfrog finite-difference solution to the wave equation with animated wave propagation.
- Numerical Integration
Trapezoidal and Simpson rules to approximate definite integrals with error vs exact solutions.
- ODE Solver
Euler and Runge-Kutta 4 methods for first-order ODEs with comparison to analytic solutions.
- Monte Carlo Intro
Estimate π and integrals by random sampling — introduction to stochastic computational physics.
Physics Equations
Step-by-Step Solution
See how the main results are calculated.
Step 1: Nonlinear equation
Solve x² − 2 = 0 numerically.
Equation:
Result:
Step 2: Newton–Raphson update
Linearize f near the current iterate using the tangent slope f′(x).
Equation:
Explanation:
Requires f′(xₙ) ≠ 0 and a starting guess close enough to the root.
Step 3: First iteration
Evaluate f and f′ at x₀.
Calculation:
Result:
Step 4: Converged root
Stopped after 3 updates (max 12).
Calculation:
Result:
Explanation:
Reference root ≈ 1.41421356, error = 1.595e-12
Frequently Asked Questions (FAQ)
Why did Newton diverge?
Poor x₀, zero derivative, or a inflection point near the root. Try another guess or use bisection first.
How is this related to optimization?
Finding minima of g(x) uses Newton on g′(x) = 0 — same iteration structure.
Does it find all roots?
No — only the root in the basin of attraction of your starting guess.
Practice MCQs
- Newton-Raphson typically converges ______ near a simple root.
- The method fails outright when:
- x² − 2 = 0 with x₀ = 1.5 converges to:
- Compared to bisection, Newton usually needs:
- Each step uses:
Related Calculators
These tools connect to the same physics concepts used in this calculator.