Skip to content
ihateDesmos

Derivative rules

9 min read · Updated 6 November 2026

You rarely need the limit definition to find a derivative. Four rules, the power, product, quotient and chain rules, plus a short list of standard results, handle almost every function you will meet.

The rules at a glance

RuleIn symbolsExample
Constant(c)′ = 0(7)′ = 0
Power(xⁿ)′ = n xⁿ⁻¹(x⁵)′ = 5x⁴
Constant multiple(c f)′ = c f′(3x²)′ = 6x
Sum(f + g)′ = f′ + g′(x² + x)′ = 2x + 1
Product(fg)′ = f′g + fg′(x sin x)′ = sin x + x cos x
Quotient(f/g)′ = (f′g − fg′)/g²(sin x / x)′ = (x cos x − sin x)/x²
Chain(f(g))′ = f′(g) · g′(sin x²)′ = 2x cos x²

The power rule

Bring the exponent down as a multiplier, then reduce the exponent by one. It works for any constant power, including negatives and fractions, once you rewrite roots and fractions as powers:

  • x² → 2x
  • 1/x = x⁻¹ → −x⁻² = −1/x²
  • √x = x^(1/2) → (1/2)x^(−1/2) = 1/(2√x)

The product rule

For two functions multiplied together: the derivative of the first times the second, plus the first times the derivative of the second. The derivative of a product is not the product of the derivatives.

For x² eˣ: (2x)(eˣ) + (x²)(eˣ) = eˣ(x² + 2x).

A memory aid: “left dee right, plus right dee left”.

The quotient rule

For one function divided by another: bottom times the derivative of the top, minus top times the derivative of the bottom, all over the bottom squared. The order on top matters, because of the minus sign.

For x²/(x + 1): ((2x)(x + 1) − (x²)(1)) / (x + 1)² = (x² + 2x)/(x + 1)².

A memory aid: “low dee high, minus high dee low, over the square of what’s below”. If the bottom is a constant or a plain power, rewriting and using the power rule is usually quicker.

The chain rule

For a function inside another function: differentiate the outside, leaving the inside alone, then multiply by the derivative of the inside.

  • (x² + 1)³ → 3(x² + 1)² · 2x = 6x(x² + 1)²
  • sin 2x → cos(2x) · 2 = 2 cos 2x
  • e^(x²) → e^(x²) · 2x
  • ln(cos x) → (1/cos x)(−sin x) = −tan x

Forgetting the chain rule is the single most common calculus mistake. If there is something more complicated than plain x inside a function, you need it.

Standard derivatives

FunctionDerivativeFunctionDerivative
sin xcos xeˣeˣ
cos x−sin xaˣaˣ ln a
tan xsec²xln x1/x
sec xsec x tan xlog x1/(x ln 10)
csc x−csc x cot xarcsin x1/√(1 − x²)
cot x−csc²xarctan x1/(1 + x²)

There are many more in the table of derivatives, each with a proof.

The definition behind the rules

Every rule comes from one definition: the derivative is the slope of the tangent line, found as a limit:

f′(x) = limh→0 (f(x + h) − f(x)) / h

For f(x) = x²: ((x + h)² − x²)/h = (2xh + h²)/h = 2x + h, which approaches 2x as h approaches 0.

−2−1123−22460
Open in calculator
y=x2
in blue and its derivative
y=2x
in red. The green line is the tangent at x = 1, whose slope is 2, the height of the red line there.

Combining rules: a worked example

Differentiate y = x² sin(3x):

  1. It is a product, so use the product rule with f = x² and g = sin(3x).
  2. f′ = 2x, by the power rule.
  3. g′ = 3 cos(3x), by the chain rule.
  4. So y′ = 2x sin(3x) + 3x² cos(3x).

Ask “what is the last thing I would do to work this out?”. Here it is multiplying, so the product rule comes first. The derivative calculator shows these steps for any function.

Frequently asked questions

What are the basic derivative rules?
The power, constant multiple, sum, product, quotient and chain rules, plus the standard derivatives of trig, exponential and log functions.
When do I use the chain rule?
Whenever one function is inside another, like sin(2x), e^(x²) or (x + 1)³.
What is the difference between the product and chain rules?
The product rule is for functions multiplied together, like x sin x. The chain rule is for functions nested inside each other, like sin(x²).
Can I avoid the quotient rule?
Often. Rewrite f/g as f · g⁻¹ and use the product and chain rules. It gives the same answer.
What is the derivative of a constant?
0, because a constant’s graph is a flat line, with zero slope.

Keep going

Try it in the calculator

Every figure on this page opens in ihateDesmos, where you can drag sliders and watch the graph respond.

Open the calculator