How to Use
Select a function:
- f(x): Function to differentiate
- x, h: Point and step size
- Output: Approximate f'(x)
Error Analysis
Forward/backward: error O(h) — truncation. Central: error O(h²). But round-off error grows as O(ε/h). Total error minimized at optimal h. Second derivative: [f(x+h)−2f(x)+f(x−h)]/h².
Higher Derivatives
- f''(x) ≈ [f(x+h)−2f(x)+f(x−h)]/h²
- f'''(x) ≈ [f(x+2h)−2f(x+h)+2f(x−h)−f(x−2h)]/(2h³)
Step-by-Step Instructions
- 1Select function.
- 2Set x and h.
- 3Choose method.
- 4Compare with exact.
- 5Analyze error.