Math Preliminaries
Essential theorems from calculus that underpin numerical analysis methods.
1. Intermediate Value Theorem
Theorem Statement
In particular, if and have opposite signs, there exists a root where .
Interactive Visualization
Adjust the interval to see when opposite signs guarantee a root.
Practice Problem
Given , which interval contains a root?
2. Extreme Value Theorem
Theorem Statement
This guarantees that continuous functions on closed intervals have well-defined extrema.
Interactive Visualization
Function: on . The maximum and minimum are highlighted.
3. Rolle's Theorem & Mean Value Theorem
Theorem Statements
Rolle's Theorem
Mean Value Theorem
MVT states there exists a point where the tangent is parallel to the secant line through endpoints.
Custom Function
Supported: + - * / ^ sin cos tan sqrt abs exp log ln pi e ( )
Interval [a, b]
Interactive Visualization
Adjust to find where the tangent line is parallel to the secant. Derivative computed numerically via central difference: .
Example 1.3: Rolle's Theorem
Example 1.4: Mean Value Theorem
4. Taylor's Theorem
Theorem Statement
The Lagrange remainder is for some ξ between a and x.
Interactive Visualization
Function to approximate
Polynomial Formula
Taylor Error Bound
The Lagrange remainder gives an upper bound on the approximation error:
f(x) exact
0.8414709848
P5(x) approx.
0.8416666667
Actual error |f(x) - P5(x)|
1.9568e-4
Error bound M/(n+1)! · |x-a|^(n+1)
1.3889e-3
Max derivative bounds used per function:
- sin(x), cos(x): (all derivatives bounded by 1)
- e^x: where R = |x - a|
- ln(1+x):
- 1/(1-x):
Worked Example 1.6
5. MVT for Integrals
Theorem Statement
The value is the average value of on . The rectangle with height and width has the same area as the region under the curve.
Function
Supports: +, -, *, /, ^, sin, cos, tan, sqrt, exp, log, pi, e, parentheses
Interactive Visualization
Move c until the dashed rectangle matches the shaded area. The display turns green when they match (difference < 0.01).
Computed Values
Example 1.5: Worked Solution
6. Epsilon-Delta Limits
Formal Definition
ε (epsilon) is the tolerance in the output — how close must be to .
δ (delta) is the tolerance in the input — how close must stay to .
The game: your adversary picks any ; you must respond with a that keeps inside the -band whenever is inside the -band.
Preset Functions
Current:
Interactive Visualization
Controls
Output tolerance: |f(x) − L| < ε
Input tolerance: 0 < |x − a| < δ