How Differentiation Works
A derivative measures a function's instantaneous rate of change — the slope of its curve at any point. Differentiation follows a small set of rules, and nearly every problem is solved by recognizing which rules apply and applying them in the right order. Type a function of x above, press Find Derivative, and you get f′(x) together with a list of the rules that were applied, so the tool doubles as a checker while you learn to spot the patterns yourself. The example chips under the input — sin(x^2), x^2 * e^x, ln(x)/x, sqrt(x^3) — load a ready-made problem of each main structural type.
Notation and Symbols, Decoded
f′(x) — read “f prime of x” — is the derivative of f: the function that hands you the original curve's slope at every x. The notation d/dx means “differentiate what follows, with respect to x”. In the product and quotient rules, u and v are simply the two smaller functions being multiplied or divided, and u′ and v′ are their individual derivatives. In the chain rule, g(x) is the inner function — the part inside the brackets, like the x² in sin(x²) — while f is the outer function applied to it. And in the power rule, n is any real exponent, including fractions like ½ and negatives like −1.
The Core Rules
- Power Rule: d/dx[xⁿ] = n·xⁿ⁻¹. The workhorse — try it on x³ to get 3x².
- Sum Rule: differentiate term by term; constants vanish.
- Product Rule: (uv)′ = u′v + uv′ for multiplied functions.
- Quotient Rule: (u/v)′ = (u′v − uv′) / v² for divisions.
- Chain Rule: for nested functions like sin(x²) — outer derivative times inner derivative.
How to Use This Calculator
- Type your function into the Function f(x) box, using x as the variable, ^ for powers, and * for multiplication — for example x^3 + 2*x^2 - 5*x + 7.
- Or tap one of the example chips — x^3 + 2*x^2 - 5*x + 7, sin(x^2), x^2 * e^x, ln(x)/x, sqrt(x^3) — to load it and solve it immediately.
- Press Find Derivative.
- Read f′(x) in the dark result panel, then the Rules applied list beneath it, which names each rule your expression needed. If an expression cannot be parsed, the tool says so and suggests the expected format, rather than guessing.
Worked Example 1: The Tool's Default, f(x) = x³ + 2x² − 5x + 7
Differentiate term by term with the power rule, d/dx[xⁿ] = n·xⁿ⁻¹. The first term, x³, becomes 3x². The second, 2x², becomes 2 × 2x = 4x — the existing coefficient 2 stays in place and multiplies the new one. The third term, −5x, becomes −5, because x is really x¹ and differentiating leaves 1 × x⁰ = 1. The constant 7 becomes 0, since a constant never changes. Collecting everything: f′(x) = 3x² + 4x − 5. Spot-check at x = 2: f′(2) = 12 + 8 − 5 = 15, a steep positive slope — and indeed f itself climbs from f(1) = 5 to f(2) = 13, so a strongly rising tangent at x = 2 makes sense.
Worked Example 2: A Product, f(x) = x² · eˣ
The structure here is a product — u = x² multiplied by v = eˣ — so the product rule (uv)′ = u′v + uv′ is the tool for the job. Differentiate the pieces separately first: u′ = 2x by the power rule, and v′ = eˣ, because eˣ is famously its own derivative. Now assemble: f′(x) = (2x)(eˣ) + (x²)(eˣ). Both terms share a factor of eˣ, so the tidy final form is f′(x) = eˣ(x² + 2x). Notice the strategy, because it generalises to almost every problem: identify the structure first, then differentiate each piece with the simplest rule that fits it. For this input the calculator's Rules applied list names the Product Rule and the Exponential Rule — try the x^2 * e^x chip and compare.
When Derivatives Are the Real Question
A position function's derivative is velocity, and its derivative again is acceleration — the backbone of mechanics. A business differentiates its cost function to get marginal cost, the price of producing one more unit, and differentiates revenue to find the output where profit peaks. Optimisation in general — the strongest bridge beam, the cheapest container shape, the fastest chemical reaction conditions — usually reduces to setting a derivative to zero and solving. And in the classroom, the derivative is the fastest honesty check on graph sketching: its sign tells you where the original curve climbs and falls.
Three Differentiation Traps
- Differentiating a product as if it were a sum. (uv)′ is u′v + uv′, never u′v′ alone. Skipping the cross terms throws away half the answer — as the second worked example shows.
- Forgetting the inner derivative in the chain rule. The derivative of sin(x²) is cos(x²) × 2x, not just cos(x²). Whenever one function sits inside another, the inside must be differentiated too and multiplied on.
- Applying the power rule to exponentials. The power rule is for xⁿ, where the base varies. For 2ˣ the exponent varies instead, and the derivative is 2ˣ · ln 2. Mixing the two patterns up produces answers that fail every sanity check.
Need to evaluate the derivative at a point? Plug values into our scientific calculator.
Working through a full calculus problem set? Our online math solver also covers integrals, limits and series — each one with step-by-step working.
How to Differentiate in 4 Steps
Identify the structure first — a sum, a product, a quotient or a composition? — differentiate each piece with the simplest rule that fits it, multiply by the inner derivative in compositions, and simplify. Then check your derivative's sign against the graph at one point: where f′ is positive, f must be climbing.
Worked Example 3: A Second Derivative, f(x) = x⁴ − 3x² + 7
Differentiate once with the power rule: f′(x) = 4x³ − 6x. Differentiate again: f″(x) = 12x² − 6. At x = 1, f″(1) = 6 > 0, so the curve is concave up there; at x = 0, f″(0) = −6 < 0, concave down — matching the dip you would expect between the two rises of a quartic. Second derivatives answer "how is the slope itself changing?" and power optimisation and motion problems alike.
Worked Example 4: The Derivative of tan(x)
Write tan(x) as sin(x)/cos(x) and apply the quotient rule: (cos(x)·cos(x) − sin(x)·(−sin(x))) / cos²(x) = (cos²(x) + sin²(x)) / cos²(x). The Pythagorean identity collapses the numerator to 1, leaving sec²(x) — the reason this derivative is so clean is the identity doing the final step. The calculator's rule list names the Quotient Rule and Trig derivatives for this input.
Need the derivative at a point rather than the formula? Substitute the value into f′(x) with our scientific calculator. For functions of several variables, move to the partial derivative calculator — the same freeze-and-differentiate move, one variable at a time. All eight calculus tools are gathered on the calculus calculator hub.