Category

Derivative Calculator

Formula

Enter your values

Enter your values and press Calculate — your answer, visual and step-by-step solution appear here.

What Is a Derivative?

A derivative measures the instantaneous rate of change of a function — the slope of the tangent line at any given point on a curve. If you know how a quantity is changing at every moment, you know its derivative.

Concrete example: If f(x) = x², then f′(x) = 2x. At the point x = 3, the slope of the curve is 2(3) = 6. The tangent line at that point rises 6 units for every 1 unit of run.

Formally, the derivative is defined as the limit of the difference quotient:

f′(x) = lim(h→0) [ f(x + h) − f(x) ] / h

In practice, you don't use this limit every time — you apply derivative rules instead. The calculator above applies these rules automatically and shows every step.

Derivative Rules — Quick-Reference Table

Memorising these rules lets you differentiate any standard function quickly.

RuleFormulaExample
Constantd/dx(c) = 0d/dx(7) = 0
Powerd/dx(xⁿ) = nxⁿ⁻¹d/dx(x⁵) = 5x⁴
Constant Multipled/dx(cf) = c · f′d/dx(3x²) = 6x
Sum / Difference(f ± g)′ = f′ ± g′d/dx(x³ + x) = 3x² + 1
Product(fg)′ = f′g + fg′d/dx(x · sin x) = sin x + x cos x
Quotient(f/g)′ = (f′g − fg′) / g²d/dx(x/eˣ) = (eˣ − xeˣ) / e²ˣ
Chaind/dx[f(g(x))] = f′(g(x)) · g′(x)d/dx(sin(3x)) = cos(3x) · 3
Exponential (eˣ)d/dx(eˣ) = eˣd/dx(e²ˣ) = 2e²ˣ (chain rule)
Natural Logd/dx(ln x) = 1/xd/dx(ln(5x)) = 1/x (chain rule)
Sined/dx(sin x) = cos xd/dx(sin(x²)) = cos(x²) · 2x
Cosined/dx(cos x) = −sin xd/dx(cos(3x)) = −sin(3x) · 3
Tangentd/dx(tan x) = sec²xd/dx(tan(2x)) = 2sec²(2x)

Worked Examples — Step by Step

Power Rule: f(x) = 3x⁴ − 5x + 2

Differentiate each term separately using the power rule, then combine:

  1. Differentiate 3x⁴. Bring the exponent down and reduce it by 1: 4 × 3x³ = 12x³.
  2. Differentiate −5x. The exponent on x is 1, so: 1 × (−5)x⁰ = −5.
  3. Differentiate the constant 2. The derivative of any constant is 0.
  4. Combine. f′(x) = 12x³ − 5.

Chain Rule: f(x) = sin(3x²)

The chain rule applies whenever you have a function inside another function. Identify the outer and inner functions first:

  1. Identify the outer function. sin(u) — where u = 3x².
  2. Differentiate the outer function. d/du(sin u) = cos u.
  3. Differentiate the inner function. d/dx(3x²) = 6x.
  4. Multiply outer by inner derivative (chain rule). f′(x) = cos(3x²) · 6x.
  5. Simplify. f′(x) = 6x cos(3x²).
Why multiply? The chain rule says the rate of change of the composite function equals the rate of the outer function (evaluated at the inner) times the rate of the inner function. You're chaining the rates together.

Quotient Rule: f(x) = (x² + 1) / (x − 3)

Label the numerator f and denominator g, then apply the formula (f′g − fg′) / g²:

  1. Identify f and g. f = x² + 1, g = x − 3.
  2. Differentiate each. f′ = 2x, g′ = 1.
  3. Apply the formula. (f′g − fg′) / g² = [ 2x(x − 3) − (x² + 1)(1) ] / (x − 3)².
  4. Expand the numerator. 2x² − 6x − x² − 1 = x² − 6x − 1.
  5. Final answer. f′(x) = (x² − 6x − 1) / (x − 3)².
Common sign error: In the numerator of the quotient rule, the second term is subtracted: f′g minus fg′. Students frequently add instead of subtract, changing the sign of the entire numerator.

Common Mistakes to Avoid

Mistake 1 — Forgetting the chain rule inside trig functionsd/dx(sin(2x)) = cos(2x) · 2, not just cos(2x). Whenever the argument is not simply x, the chain rule must be applied.
Mistake 2 — Sign error in the quotient rule numeratorThe formula is (f′g − fg′) / g². The second term is subtracted, not added. Write out both terms before substituting to keep the signs clear.
Mistake 3 — Applying the power rule to eˣThe derivative of eˣ is eˣ — it does not follow the power rule. The power rule applies to xⁿ where the base is the variable. In eˣ, the exponent is the variable.
Mistake 4 — Dropping constants before differentiatingDifferentiate the full expression first, then simplify. Do not remove constant coefficients partway through a product or quotient rule application.
Mistake 5 — Not simplifying after the product or quotient ruleAlways expand and simplify the numerator (or terms) after applying these rules. An unsimplified answer is considered incomplete on most exams.

Frequently Asked Questions