Derivative Calculator
Type a function of x and the calculator finds its derivative symbolically using the power, product, quotient and chain rules, then simplifies the result. It shows the derivative of each term, the second derivative, the slope at any point and the equation of the tangent line there, and plots the function, its derivative and the tangent together. Every answer is checked numerically.
Derivative calculator
Use x, + − * / ^, parentheses and sin, cos, tan, asin, acos, atan, exp, ln, sqrt, abs, pi, e. 3x and 2sin(x) are fine.
Differentiation Practice Pack
Differentiation rules reference sheet, a table of standard derivatives, and four worksheets (power rule, product and quotient rules, chain rule, tangent lines) with answer keys.
- Rules sheet (PDF/DOCX)
- Power rule (PDF, DOCX)
- Product & quotient (PDF, DOCX)
- Chain rule (PDF, DOCX)
- Tangent lines (PDF, DOCX)
Formats: PDF, DOCX. Instant download after payment (link valid 72 hours, up to 5 downloads). AI-assisted: the templates were drafted with AI help and reviewed and laid out by Kedop.
$3.00 USD, one-time
Secure card checkout by Stripe. Full refund within 7 days — see the refund policy and license.
What a derivative tells you
The derivative f′(x) measures how fast a function changes: the slope of its graph at each point. Where f′(x) is positive the function is increasing, where it is negative the function is decreasing, and where it is zero the graph has a flat tangent — often a maximum or minimum. In physics the derivative of position is velocity; in economics the derivative of cost is marginal cost. The second derivative f″(x) measures how the slope itself changes, telling you about curvature (concave up or down).
Differentiation rules
| Rule | Formula |
|---|---|
| Constant | d/dx (c) = 0 |
| Power | d/dx (xⁿ) = n·xⁿ⁻¹ |
| Constant multiple | d/dx (c·f) = c·f′ |
| Sum and difference | (f ± g)′ = f′ ± g′ |
| Product | (f·g)′ = f′g + fg′ |
| Quotient | (f/g)′ = (f′g − fg′)/g² |
| Chain | d/dx f(g(x)) = f′(g(x))·g′(x) |
| Exponential | d/dx eˣ = eˣ; d/dx aˣ = aˣ ln a |
| Logarithm | d/dx ln x = 1/x |
| Trigonometric | sin → cos; cos → −sin; tan → 1/cos² x |
How to use the calculator
- Type the function using x as the variable, for example x^3 − 4x + 2sin(x).
- Read the derivative, the second derivative and the table showing each term, the rule used and its derivative.
- Enter a value of x to get the slope at that point and the tangent line equation.
- Set the graph range to see f(x) (solid), f′(x) (dotted) and the tangent (dashed red).
- Check the verification line — every derivative is compared with a numerical estimate.
Worked example
For f(x) = x³ − 4x + 2 sin x, differentiate term by term: the power rule gives 3x² for x³, the constant multiple rule gives −4 for −4x, and 2 sin x becomes 2 cos x. So f′(x) = 3x² − 4 + 2 cos x and f″(x) = 6x − 2 sin x. At x = 1: f(1) = 1 − 4 + 2 sin 1 ≈ −1.3171, and f′(1) = 3 − 4 + 2 cos 1 ≈ 0.0806, so the tangent line is almost flat: y ≈ 0.0806x − 1.3977.
The chain rule in practice
The chain rule handles a function inside another function: differentiate the outside, keeping the inside unchanged, then multiply by the derivative of the inside. For sin(x²), the outside is sin and the inside is x², so the derivative is cos(x²)·2x. For (3x + 1)⁵ it is 5(3x + 1)⁴·3 = 15(3x + 1)⁴. The calculator applies the chain rule automatically wherever a function contains more than plain x.
Finding maxima and minima
- Find f′(x) and set it equal to zero.
- Solve for x — these are the critical points.
- Use f″(x): positive means a local minimum, negative a local maximum.
- Check the endpoints if the domain is limited.
- Use the graph to confirm: the dotted derivative crosses zero exactly where the function turns.
Derivatives in the real world
| Quantity | Its derivative | Meaning |
|---|---|---|
| Position s(t) | Velocity v(t) = s′(t) | How fast position changes |
| Velocity v(t) | Acceleration a(t) = v′(t) | How fast speed changes |
| Cost C(q) | Marginal cost C′(q) | Cost of one more unit |
| Revenue R(q) | Marginal revenue R′(q) | Extra revenue from one more unit |
| Population P(t) | Growth rate P′(t) | Individuals added per unit time |
| Volume V(r) | V′(r) | Rate volume grows as the radius grows |
Common mistakes
- Forgetting the chain rule: the derivative of sin(3x) is 3cos(3x), not cos(3x).
- Treating the product rule as “multiply the derivatives”: (fg)′ is f′g + fg′, not f′g′.
- Mixing up the order in the quotient rule — it is f′g − fg′ on top.
- Differentiating constants as if they were variables: the derivative of π² or e³ is 0.
- Dropping negative signs from the derivative of cos x.
Higher derivatives
Differentiating again gives the second derivative f″(x), and then the third, and so on. The second derivative describes concavity: where f″(x) > 0 the graph curves upward like a cup, and where f″(x) < 0 it curves downward like a cap. A point where f″ changes sign is an inflection point. In physics, the second derivative of position is acceleration. The calculator shows f″(x) automatically; paste it back in to find the third derivative.
About the simplified form
Computer algebra can write the same derivative in many equivalent ways. This calculator applies common simplifications — combining constants, removing zeros and ones and cancelling simple factors — but it does not expand or factor everything, so your textbook answer may look different while being equal. To compare, evaluate both at a couple of values of x: equal values mean equal derivatives.
Privacy
Everything runs in your browser; nothing is uploaded.
Frequently asked questions
How do I find the derivative of a function?
Apply the rules term by term — power, product, quotient and chain rules — or type the function into the calculator.
What is the derivative of x^2?
2x.
What is the derivative of sin(x)?
cos(x).
What is the derivative of e^x?
eˣ — it is its own derivative.
What is the derivative of ln(x)?
1/x.
Can it find the second derivative?
Yes, it shows f″(x) as well.
How do I get the tangent line?
Enter an x value; the calculator gives y = mx + c at that point.
What is the derivative of a constant?
Zero — constants do not change.
Can it differentiate x^x?
Yes, using logarithmic differentiation: the derivative is x^x(ln x + 1).
Is anything uploaded?
No, it runs in your browser.