Derivative Calculator
A derivative measures how fast a function changes: the slope of its graph at each point. This derivative calculator differentiates functions of x using the power, product, quotient and chain rules, showing which rule is used at each step. It can also find the slope and tangent line at a chosen point.
How to use the derivative calculator
- Type the function using x, such as x^3 - 4x + 1 or sin(2x).
- Optionally, enter an x-value to get the slope and tangent line there.
- Press Calculate to see the derivative, every rule used, and the graph.
Formula
Worked example: x³ − 4x + 1
- f(x) =: x^3 - 4x + 1
- Evaluate at x = (optional): 2
✓ Answer checked
- f'(2)
- Tangent line
Step-by-step working (6 steps)
Read the function
This is how the input was understood.
Sum rule Sum/difference rule
Differentiate each term separately.
Sum rule Sum/difference rule
Differentiate each term separately.
Constant multiple Constant multiple rule
A constant factor stays in front.
Power rule (xⁿ)' = nxⁿ⁻¹
Bring the power down and reduce it by one.
Simplify
Tidy up the result.
Formulas used
How this was checked
- ✓ Compared with a numerical derivative at 6 points (0.37, 1.13, 2.71, -0.83, 1.9, 0.61); they agree.
Frequently asked questions
What is a derivative?
The derivative of f(x) gives the slope of the graph of f at every point. It tells you the instantaneous rate of change.
When do I use the chain rule?
When one function is inside another, such as sin(2x) or (x² + 1)⁵. Differentiate the outside, keep the inside, then multiply by the derivative of the inside.
How is the answer checked?
The derivative is compared with a numerical estimate of the slope at several points. If they disagree, the answer is not shown.
Related calculators
Integral Calculator
Find indefinite and definite integrals with steps: power rule, substitution and integration by parts.
Limit Calculator
Evaluate limits step by step: direct substitution, L'Hôpital's rule for 0/0, and limits at infinity.
Graphing Calculator
Plot up to three functions with an animated graph.
Slope Calculator
Find the slope (gradient) of a line through two points, plus its equation y = mx + c, angle and perpendicular slope.
