Derivative Calculator
Enter a function of x to get its 1st, 2nd and 3rd derivative, symbolically — plus a step-by-step trace naming the exact rule (power, product, quotient, chain) applied at every sub-expression. For f(x) = x³, f'(x) = 3x² by the power rule. Covers polynomials, trig, logs, exponentials and roots — not integrals or limits.
Examples:
3x^2 + 4x - 5
f’(x) for f(x) = x^3 + 2x^2 - 5x
1st derivative: f'(x) = 3x^2 + 4x - 5
2nd derivative: f''(x) = 6x + 4
3rd derivative: f'''(x) = 6
Show the step-by-step differentiation (rule applied at every node)
| Sub-expression | Rule applied | d/dx result |
|---|---|---|
| x | Variable rule (d/dx[x] = 1) | 1 |
| 3 | Constant rule (d/dx[c] = 0) | 0 |
| x^3 | Power rule (d/dx[uⁿ] = n·uⁿ⁻¹·u′) | 3x^2 |
| 2 | Constant rule (d/dx[c] = 0) | 0 |
| x | Variable rule (d/dx[x] = 1) | 1 |
| 2 | Constant rule (d/dx[c] = 0) | 0 |
| x^2 | Power rule (d/dx[uⁿ] = n·uⁿ⁻¹·u′) | 2x |
| 2x^2 | Product rule (d/dx[uv] = u′v+uv′) | 4x |
| x^3 + 2x^2 | Sum rule (d/dx[u+v] = u′+v′) | 3x^2 + 4x |
| 5 | Constant rule (d/dx[c] = 0) | 0 |
| x | Variable rule (d/dx[x] = 1) | 1 |
| 5x | Product rule (d/dx[uv] = u′v+uv′) | 5 |
| x^3 + 2x^2 - 5x | Difference rule (d/dx[u−v] = u′−v′) | 3x^2 + 4x - 5 |
Single-variable elementary functions only — no integrals, no limits. How we calculate →
What this derivative calculator does — and what it doesn't
Type any single-variable expression in x — polynomials, trig functions, logs, exponentials, roots, or a mix — and this tool differentiates it symbolically using the same rules you'd apply by hand: power rule, product rule, quotient rule and chain rule. It returns the 1st, 2nd and 3rd derivative, plus a full step-by-step trace showing which rule fired at every sub-expression.
Honest scope: this is a single-variable elementary-function differentiator. It does not compute integrals, limits, partial derivatives, or solve differential equations — those need a different kind of tool entirely. If you need f'(x) or f''(x) for a function built from +, −, *, /, ^, and standard functions (sin, cos, tan, sec, csc, cot, ln, log, exp, sqrt, asin, acos, atan), this covers it.
The four core differentiation rules, with a worked example each
Power rule — d/dx[xⁿ] = n·xⁿ⁻¹. For f(x) = x³: f'(x) = 3x^2.
Product rule — d/dx[u·v] = u'v + uv'. For f(x) = x²sin(x) (u = x², v = sin(x)): f'(x) = 2x * sin(x) + x^2 * cos(x).
Quotient rule — d/dx[u/v] = (u'v − uv')/v². For f(x) = (x+1)/(x−3): f'(x) = (x - 3 - (x + 1)) / (x - 3)^2.
Chain rule — d/dx[f(g(x))] = f'(g(x))·g'(x). For f(x) = sin(x²) (outer sin, inner x²): f'(x) = 2x * cos(x^2). The chain rule is also what handles compound cases like f(x) = e^(2x)·cos(x): f'(x) = 2e^(2x) * cos(x) - e^(2x) * sin(x) (product rule on the outside, chain rule inside e^(2x)).
Higher-order derivatives: what f''(x) and f'''(x) actually tell you
The second derivative f''(x) is the derivative of the derivative — it measures how the slope itself is changing, which is why it's the standard tool for concavity (f'' > 0 means the curve bends upward) and, in physics, for acceleration when f(x) is a position function. The third derivative f'''(x) measures how the concavity is changing (jerk, in a physical motion context).
Worked example: for f(x) = x⁴ − 3x², f''(x) = 12x^2 - 6, so f''(2) = 42 — a positive value, meaning the graph is concave up at x = 2.
Common mistakes this tool helps you catch
The most common error is applying the power rule where the chain rule is needed — e.g. treating d/dx[sin(x²)] as cos(x²) instead of 2x·cos(x²) (forgetting to multiply by the derivative of the inner function x²). Another frequent mix-up is the product rule vs. the chain rule: x²sin(x) is a product of two functions of x (needs the product rule), while sin(x²) is one function nested inside another (needs the chain rule) — they look superficially similar but require different rules entirely.
A third common mistake: forgetting that the quotient rule's numerator is not symmetric — it's u'v − uv', not u'v + uv' and not uv' − u'v. Getting the order or sign wrong flips the result. Type your function in and compare the step-by-step trace against your own working to catch exactly where a rule was mis-applied.
Frequently asked questions
What is a derivative, in plain terms?
The derivative f'(x) of a function f(x) measures the instantaneous rate of change (the slope of the tangent line) at each point x. For f(x) = x³, f'(x) = 3x² — at x = 2 the slope of the curve is 3·(2)² = 12.
What is the power rule for derivatives?
The power rule says d/dx[xⁿ] = n·xⁿ⁻¹ — bring the exponent down as a multiplying coefficient, then reduce the exponent by 1. It only applies directly to xⁿ; for a compound base like (2x+1)ⁿ you need the generalized power/chain rule: n·(2x+1)ⁿ⁻¹ times the derivative of the inside (2).
When do I use the product rule vs. the chain rule?
Use the product rule when your function is one expression MULTIPLIED by another, both depending on x (e.g. x²·sin(x)). Use the chain rule when one function is NESTED inside another (e.g. sin(x²), where x² is inside sin). Some functions need both at once, like e^(2x)·cos(x).
How do you find the second derivative of a function?
Differentiate the function once to get f'(x), then differentiate that result again. For f(x) = x⁴ − 3x², f'(x) = 4x³ − 6x, and f''(x) is the derivative of that: 12x² − 6.
Does this calculator handle trigonometric and logarithmic functions?
Yes — sin, cos, tan, sec, csc, cot, natural log (ln), base-10 log (log), the exponential function (exp / e^x), square root, and the inverse trig functions asin, acos, atan, combined with any polynomial or product/quotient structure.
Can this tool compute integrals or limits?
No. This is a differentiation-only tool built around a single-variable symbolic engine — it does not evaluate integrals, limits, or differential equations. It's scoped to derivatives so every rule and step can be shown clearly.
Why does my answer look different from what I calculated by hand?
Two algebraically equivalent expressions can look different (e.g. 6x vs. 2·3x) because a symbolic simplifier doesn't always reach the exact same canonical form a textbook uses. Check the step-by-step trace — if every individual rule and sub-result matches your working, the final answers are equivalent even if the surface form differs slightly.
Researched & verified by the Calcuris Data & Research Team. How we build and check our tools →