Numerical Differentiation Calculator
Approximate derivatives numerically.
Loading tool…
About this tool
Type a function and a point to estimate the slope there. The slope of x³ at x = 2 is 12, from 3 × 2².
How to use
1
Step 1
Type f(x).
2
Step 2
Enter the point x.
3
Step 3
Press Calculate.
How it works
The tool uses a central difference, (f(x+h) − f(x−h)) ÷ 2h with h = 0.00001, so it needs no symbolic formula. Use it for functions that are awkward to differentiate by hand and to check a symbolic answer.
f′(x) ≈ (f(x + h) − f(x − h)) ÷ (2h)
Worked example
Slope of a cubic
- Input
- x^3 at x = 2
- Output
- 12
- Walkthrough
- The exact derivative is 3x², and 3 × 4 = 12, so the numerical value agrees.
Limitations
- An estimate, not an exact formula.
- It is unreliable at corners, such as |x| at 0.
Questions
What is the derivative of sin x at 0?
The derivative of sin x at 0 is 1, because cos 0 = 1.
What is the derivative of x³ at 2?
The derivative of x³ at 2 is 12, since 3x² = 3 × 4.
What is the derivative of ln x at 1?
The derivative of ln x at 1 is 1, since 1/x = 1 when x = 1.
What is the derivative of cos x at π?
0, because the cosine is at a minimum there.
Features
- Central difference
- Any differentiable function
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Differentiating polynomials example
Khan Academy
Worked polynomial derivatives to compare with calculator output.
Watch on YouTubeVectors | Essence of linear algebra
3Blue1Brown
Linear algebra intuition for matrix and vector tools.
Watch on YouTube
- Introduction to Derivatives
Math is Fun
Slope-of-tangent framing for derivative calculators.
- OpenStax Math
OpenStax
Free textbooks for algebra through calculus.