Back to All Subjects

Numerical Methods Simulations

A collection of interactive 3D visualizations and simulations to help you master concepts in numerical methods.

Roots of Equations - Theory & Concepts

Methods for finding roots of algebraic and transcendental equations.

Newton-Raphson Method Visualization

Finding the root of f(x)=x24f(x) = x^2 - 4 using the Newton-Raphson method with initial guess x0=4x_0 = 4.

x_ix_i+1
Step 0 (Initial)Step 5

Iteration 0 Calculations

Current Guess (x_i)
4.0000
f(x_i) = 12.0000
Derivative (Slope)
8.0000
f'(x_i) = 8.0000
Formula
xi+1=xif(xi)f(xi)x_{i+1} = x_i - \frac{f(x_i)}{f'(x_i)}
xi+1=4.000012.00008.0000x_{i+1} = 4.0000 - \frac{12.0000}{8.0000}
Next Estimate (x_i+1)
2.500000

Systems of Linear Equations - Theory & Concepts

Numerical techniques to solve simultaneous linear algebraic equations.

Gauss Elimination Process

Step-by-step visualization of solving a 3x3 system of linear equations using naive Gauss elimination.

Initial Augmented Matrix [A|B]

3.0000-0.1000-0.20007.8500
0.10007.0000-0.3000-19.3000
0.3000-0.200010.000071.4000

iCurrent Action

Identify pivot element a_11 (3).

Solution Vector x

x_1
?
x_2
?
x_3
?

Curve Fitting and Interpolation - Theory & Concepts

Techniques for approximating discrete data points with continuous functions.

Least-Squares Linear Regression

Drag the points or click on the graph to add new points. Observe how the best-fit line y=a0+a1xy = a_0 + a_1x minimizes the sum of squared residuals.

1122334455667788991010
Click to add points (max 15). Drag to move.

Regression Statistics

Equation of the Line
y = 0.329 + 1.032x
Intercept (a0a_0)
0.3286
Slope (a1a_1)
1.0321
R-squared (r2r^2)
0.9820
Sum of Squares (SrS_r)
0.5482
Pointxy
11.001.50
22.002.20
33.003.10
44.004.80
55.005.50
66.006.90
77.007.20

Numerical Integration - Theory & Concepts

Numerical methods for evaluating definite integrals.

Composite Trapezoidal Rule

Approximating the integral of f(x)f(x) from a=0a=0 to b=0.8b=0.8 using multiple segments.

00.8xf(x)
1 Segment20 Segments

Integration Results

Step Size (h)
0.4000
Exact Value
1.640533
Approximate Integral (Area)
1.068800
Formula
Ih2[f(x0)+2i=1n1f(xi)+f(xn)]I \approx \frac{h}{2} \left[ f(x_0) + 2 \sum_{i=1}^{n-1} f(x_i) + f(x_n) \right]
True Percent Relative Error:
34.8504%
As n increases, the error approaches zero.

Ordinary Differential Equations - Theory & Concepts

Numerical solutions for initial-value and boundary-value problems of ordinary differential equations.

Euler's Method Visualization

Solving the initial value problem dydx=2x3+12x220x+8.5\frac{dy}{dx} = -2x^3 + 12x^2 - 20x + 8.5, with y(0)=1y(0) = 1.

04xyTrueEuler
0.1 (More Accurate)2.0 (Less Accurate)

Results at x = 4

True y(4)
3.0000
Euler Approx y(4)
7.0000
True Percent Relative Error:
133.33%
Euler's Formula
yi+1=yi+f(xi,yi)hy_{i+1} = y_i + f(x_i, y_i)h
Euler's method truncates the Taylor series after the first derivative. Decreasing the step size hh reduces this truncation error and improves accuracy.