Study Atlas › Mathematics › Applied mathematics

Numerical methods

Algorithms to approximate solutions when exact answers are impractical.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Root finding: bisection, Newton–Raphson (x_{n+1} = x_n – f(x_n)/f′(x_n), quadratic convergence). Integration: trapezoidal and Simpson's rules. ODEs: Euler and Runge–Kutta (RK4). Linear systems: LU decomposition, Gauss–Seidel. Error and stability analysis decide reliability.

Example

Newton's method for √2 from x₀ = 1: 1.5, 1.41667, 1.414216 — six correct digits in three steps.

Code

def newton(f, df, x, tol=1e-12):
    for _ in range(50):
        step = f(x)/df(x)
        x -= step
        if abs(step) < tol: break
    return x
print(newton(lambda x: x*x-2, lambda x: 2*x, 1.0))

How it works, step by step

  1. Choose a method suited to the problem
  2. Pick a starting point or step size
  3. Iterate
  4. Estimate error and stop at tolerance

Open the interactive page with diagrams →

Numerical methods in exams

Numerical methods is part of Mathematics, which is tested in JEE Main, JEE Advanced, CUET-UG, CAT, SAT, ACT, GRE, GMAT. Practise it in the exam format:

People behind it

References

  1. R. L. Burden, J. D. Faires, Numerical Analysis, 10th ed., Cengage, 2016.

Textbooks

Related topics

Optimisation: linear programmingGame theory and Nash equilibriumVector spaces and linear transformationsPartial differential equations: heat, wave and LaplaceSingular value decomposition and PCALaplace transformRandom variables and distributionsMultivariable calculus: partial derivatives and multiple integralsRegression and correlationTechniques of integration