Math Solver Free

Derivative Calculator

Differentiate any expression — with the rules behind each step identified.

Enter a function above — e.g. x^3, sin(x^2), x^2 * e^x.

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

  1. 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.
  2. 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.
  3. Press Find Derivative.
  4. 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

  1. 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.
  2. 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.
  3. 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.

Frequently Asked Questions

Which functions can this derivative calculator handle?

Polynomials such as x^3 + 2*x^2 - 5*x + 7, trigonometric functions, exponentials, natural logarithms, roots such as sqrt(x^3), and combinations built from them — products like x^2 * e^x, quotients like ln(x)/x, and compositions like sin(x^2). Use x as the variable, ^ for powers, and * wherever multiplication is meant; the example chips under the input box show the expected format.

What differentiation rules does it show?

Beneath every result, the calculator lists the rules your function actually needed, chosen from: the power rule, the sum and difference rule, the product rule, the quotient rule, the chain rule, and the standard derivatives for trigonometric, exponential, and logarithmic functions. Reading that list builds pattern recognition — before pressing the button, try predicting which rules a new function will trigger, then check your guess.

What is the chain rule, with an example?

The chain rule handles a function nested inside another: d/dx[f(g(x))] = f′(g(x)) × g′(x) — differentiate the outer function while leaving the inside untouched, then multiply by the derivative of the inside. For sin(x²), the outer function is sine and the inside is x²: the outer derivative gives cos(x²), the inner derivative is 2x, and the result is 2x·cos(x²). Forgetting that final multiplication is the commonest chain-rule error.

What is the difference between f′(x) and the slope at a point?

f′(x) is a function — a formula that returns the slope of f for any input you give it. The slope at one specific point is a single number, found by substituting that x-value into the derivative. For f(x) = x³, the derivative is f′(x) = 3x² everywhere, while the slope at x = 2 is 3 × 2² = 12. This calculator returns the formula; substitute your point into it afterwards.

Why is the derivative of a constant zero?

Because a derivative measures how fast something is changing, and a constant — say the 7 in x² + 7 — never changes at all. On a graph, y = 7 is a horizontal line, and a horizontal line has slope 0. The same logic explains why constant multipliers survive differentiation untouched: the derivative of 5x³ is 5 × 3x² = 15x², with the 5 carried along.

Is this derivative calculator free?

Yes. Every calculator on Math Solver Free is completely free, with no sign-up, no account, and no usage limits. All calculations run locally in your browser, so your functions are never uploaded or stored, and you can use the tool as many times as you like, on any device.

How do I find the second derivative?

Differentiate twice: the second derivative is the derivative of the first derivative. For x⁴ − 3x² + 7 the first derivative is 4x³ − 6x and the second is 12x² − 6. Its sign describes concavity — positive curves upward, negative curves downward.

What is the derivative of tan(x)?

sec²(x). It comes from writing tan(x) = sin(x)/cos(x), applying the quotient rule, and simplifying with sin²(x) + cos²(x) = 1 — the full computation is in the worked examples on this page.

How can I check my derivative?

Three quick checks: the sign — where your derivative is positive, the original curve should be climbing; a point — compare the slope at one simple x against the graph; and the inverse operation — integrating your answer should return the original function, plus a constant.

Related Tools & Guides

About the MathSolverFree Team

The MathSolverFree Team builds and maintains the calculators and step-by-step solvers on this site. Every tool is checked against worked textbook examples before it is published, and the method behind each solver is written out in full — in the worked examples on the page and in our guides — so you can see exactly how an answer is reached, not just the answer itself.

How we build and test our tools·More about the team