About the Derivative Calculator
What is the Derivative Calculator?
The derivative f′(x) measures how fast a function is changing at a point — the slope of the tangent line to its graph there. It is the central idea of differential calculus and describes velocity, marginal cost, growth rates and rates of reaction.
Enter a function of x and the point you care about. The calculator evaluates the derivative numerically with a high-accuracy five-point central difference, and also returns the function's value, the second derivative f″(x) (the curvature), the equation of the tangent line and whether the function is increasing or decreasing there.
How to use the Derivative Calculator
- Function f(x) — use x as the variable, for example x^3 - 2x + sin(x). (sample: x^3 - 2x + sin(x))
- At x = — the point at which the derivative is evaluated. (sample: 1)
- Press Find Derivative (results also refresh as you type). The result card shows the f'(x) at the Point, along with f(x) at the point, Second derivative f''(x), Tangent line and Behaviour at the point.
Formula used
f′(x) ≈ [f(x − 2h) − 8f(x − h) + 8f(x + h) − f(x + 2h)] ÷ 12h
- h = a small step, 0.001 × max(1, |x|)
- f″(x) = [−f(x − 2h) + 16f(x − h) − 30f(x) + 16f(x + h) − f(x + 2h)] ÷ 12h²
This five-point formula is exact for polynomials up to degree 4 and very accurate for smooth functions. The tangent line at x₀ is y = f′(x₀)(x − x₀) + f(x₀).
Worked example
These are the sample values already filled in the calculator above, and the result it returns for them:
| Input | Sample value |
|---|---|
| Function f(x) | x^3 - 2x + sin(x) |
| At x = | 1 |
| Result | Value |
|---|---|
| f'(x) at x = 1 | 1.540302 |
| f(x) at the point | -0.158529 |
| Second derivative f''(x) | 5.1585 |
| Tangent line | y = 1.5403x − 1.6988 |
| Behaviour at the point | Increasing |
Common derivative rules
- d/dx (xⁿ) = n xⁿ⁻¹
- d/dx (sin x) = cos x and d/dx (cos x) = −sin x
- d/dx (eˣ) = eˣ and d/dx (ln x) = 1/x
- Product rule: (uv)′ = u′v + uv′
- Chain rule: d/dx f(g(x)) = f′(g(x)) × g′(x)
Tips for using the Derivative Calculator
- f′(x) = 0 marks a possible maximum, minimum or point of inflection; the sign of f″(x) tells you which (negative means maximum, positive means minimum).
- Trigonometric functions use radians, as everywhere in calculus.
- The answer is a number at one point; use the rules above when you need a formula for f′(x).
