Derivative Calculator

Compute derivatives with step-by-step solutions.

Calculus homework can be tough, and checking your derivative answers by hand is time-consuming. Our derivative calculator computes derivatives of common functions with step-by-step solutions, so you can see exactly how the answer is derived — including the power rule, product rule, quotient rule, and chain rule in action. Students use it to verify homework, understand the steps, and prepare for exams. Just enter your function, click calculate, and get an accurate result plus a clear explanation you can learn from.

Enter a Function

​

Derivatives, demystified: what the slope really tells you

A derivative answers one question with surprising depth: at this exact point, how fast is the function changing? Not on average, not over the next hour — right now. Geometrically, that answer is the slope of the tangent line touching the curve at a point. Physically, it is velocity when the function is position, acceleration when the function is velocity. Economically, it becomes marginal cost or marginal revenue, and in machine learning it literally steers how models learn. Few mathematical objects wear this many hats at once.

To compute one by hand, you take the limit of the average rate of change as the interval shrinks to zero — the definition lives behind the famous expression (f(x+h) − f(x))/h as h → 0. Pure math programs live comfortably there; everyone else needs the shortcut rules derived from it. That is precisely what this free derivative calculator automates: type a function in the box above, and the tool decomposes it term by term, applies the correct rule to each, and displays the assembly as readable steps. It is built to be a study instrument, not a black box — you should be able to reproduce the result on paper after a few sessions.

Five steps to a flawless derivative

  1. Write the function in standard syntax. Use 3x^2 + 2x + 1 style input: coefficients before the variable, powers marked with ^, terms separated by + or −. No missing multiplication signs.
  2. Treat each term independently. Differentiation is linear: the derivative of a sum is the sum of derivatives, and constants passing through multiplication just tag along. Decompose before differentiating.
  3. Apply the rule each term deserves. Powers obey the power rule; constants vanish; sin turns into cos; e^x stays e^x. Match the term to its rule before touching the exponent.
  4. Simplify and verify the sanity of the result. Regroup like powers, check the degree dropped by exactly one, and test a value: does f'(0) behave like the graph suggests?
  5. Use the steps as a feedback loop. Compare the calculator's step list with your own work line by line. Where they diverge is precisely the concept to review — that's how verification becomes learning.

Three worked examples

Example 1 — The classic quadratic. f(x) = 3x² + 2x + 1. Term by term: d/dx[3x²] = 6x by the power rule, d/dx[2x] = 2, and d/dx[1] = 0 since constants never change. Result: f'(x) = 6x + 2. At x = 2 the slope is 14 — the curve rises steeply there, which the tangent test confirms.

Example 2 — The cubic full workout. f(x) = 5x³ − 4x² + 7x − 3. Differentiating: 15x², then −8x, then 7, and the constant −3 dies silently. Result: f'(x) = 15x² − 8x + 7. Setting it equal to zero shows the curve levels off near x ≈ 0.37 and x ≈ 0.16 — the two places where the cubic's growth momentarily pauses.

Example 3 — Mixed functions, one line each. f(x) = 4sin(x) + 3e^x − 2x. Each term has its own reflex: d/dx[4sin(x)] = 4cos(x), d/dx[3e^x] = 3e^x (the immortal self-copier), d/dx[−2x] = −2. Result: f'(x) = 4cos(x) + 3e^x − 2. The calculator walks through each of these rules in order, so the student sees which trigger fired at each step.

Differentiation rules reference table

Rule Form Derivative Example
Power rule ax^n n·a·x^(n−1) 5x³ → 15x²
Constant c 0 7 → 0
Sum / difference f(x) ± g(x) f'(x) ± g'(x) x² + x → 2x + 1
Product rule f·g f'·g + g'·f x·sin(x) → sin(x) + x·cos(x)
Quotient rule f/g (f'·g − g'·f)/g² x²/x → (2x·x − x²)/x²
Chain rule f(g(x)) f'(g(x))·g'(x) sin(3x) → 3cos(3x)
Sine / cosine sin(x), cos(x) cos(x), −sin(x) 2sin(x) → 2cos(x)
Exponential e^x e^x 3e^x → 3e^x

The methodology: from the limit definition to your result

Every differentiable function owes its derivative to the same origin: the limit of (f(x+h) − f(x))/h as h approaches 0. Differentiating a quadratic by that definition is instructive once, tedious forever after — which is why Newton and Leibniz found the general rules. The calculator mirrors that history in reverse: it applies the rules first, attaches the rule name to each operation, and lets the identifier which rule fired be the connective tissue back to the limit definition. When the tool differentiates terms separately, that isn't cosmetic — it is the linearity property of differentiation, provable directly from the limit, doing the working out in public.

What the tool deliberately does not do: handle arbitrary composite functions, implicit differentiation, or symbolic integration. It targets the ground floor of a calculus course with full transparency. The purpose is mastery of the power rule and the handful of standard derivatives that every first-derivative test, every optimization problem, and every related-rates exercise silently assumes.

Where derivatives earn their keep

In physics, velocity is the derivative of position and acceleration is the derivative of velocity. A car's speedometer is a position derivative in disguise. In economics, marginal cost C'(q) tells a firm whether producing one more unit pays off; marginal revenue R'(q) is the pricing engine of every strategy course. In biology, population growth rates dP/dt decide when a colony slows down against a ceiling. In machine learning, gradient descent is nothing more than walking downhill along derivatives — the direction that reduces error fastest. In everyday engineering, when a bridge flexes under load, calculus predicts the response. One notation, one idea, unbounded reach.

Four mistakes that lose the most exam points

The first killer is misreading powers on negative terms: differentiating −4x² gives −8x, not 8x — the sign rides along with the derivative. Students who strip the minus "for simplicity" tank half the question. The second is applying the power rule to constants: the reflex n·x^(n−1) feels universal, but a lone 7 has no exponent to lower; its derivative is simply 0, not 7 or 7x⁰. Forgetting to kill the constant is the most frequent flaw in term-by-term work.

The third is confusing the chain rule's undoing with the product rule: sin(x)·cos(x) and sin(3x) are structurally different problems, and swapping their rules produces answers that look plausible and grade at zero. Ask the one diagnostic question: is there a function nested inside another? Nested → chain; multiplied side by side → product. The fourth is trusting the derivative at the edge: a maximum found by f'(x) = 0 is only "local" — endpoints of the domain can beat it. Sketching a rough curve after every symbolic result costs thirty seconds and catches precisely the answers that are mathematically legal yet contextually wrong. The calculator's step list is the fastest mirror for catching all four mistakes in your own work.

Frequently Asked Questions

How do I use the Derivative Calculator?
Type an expression such as 3x^2 + 2x + 1 in the input box and press Calculate Derivative. The result and a line-by-line step list appear instantly — no account, no limits, nothing sent to a server.
What types of functions does it support?
Polynomials of any degree plus the household names of calculus: sine, cosine, tangent, e^x, and natural logarithm. Terms can be combined, negated, and interleaved freely.
Does it show step-by-step solutions?
Yes, one step per term, naming the applicable rule each time so students can audit and reproduce the reasoning on paper.
What is the derivative of e^x?
e^x itself — the unique function that is its own derivative. That is why e shows up anywhere growth is proportional to size: populations, interest, radioactive decay.
How do I find the derivative of a fraction?
Apply the quotient rule (f/g)' = (f'g − g'f)/g². The negative sign on the second term is where most errors happen — keep f' on top of f, g' on top of g.
How do I verify my answer is correct?
Three reflexes: the degree of a polynomial drops by one; the derivative of sin should be cos (never tan by reflex); and evaluating f'(x) at a couple of points with the limit definition should agree with the symbolic result.
What does the derivative actually represent?
The instantaneous rate of change — the slope of the tangent line at each point. Speed is the derivative of distance; a phone's battery percentage falling 1% per minute is a derivative in everyday clothing.
How do I find maxima and minima with derivatives?
Solve f'(x) = 0 to locate critical points, then classify each with the second derivative: positive means a local minimum, negative a maximum. The logic sits behind every optimization problem on every exam.
Why is the derivative of a constant zero?
A constant changes by nothing, so its rate of change is zero. Geometric reading: a horizontal line has slope 0 at every point.
Is the derivative calculator free to use?
Yes — completely free, unlimited, and local: the computation happens inside your browser and no input is transmitted anywhere.

Perfect for students. Also check out our Grade Calculator, our companion guide on differentiation rules, and the Age Calculator.