Calculus guide · 6 min read

Derivative Rules: Power, Product, Quotient, Chain

Finding derivatives from the limit definition every time would take forever, so calculus gives you a set of shortcut rules. Learn these six and you can differentiate almost any function you will see in a first calculus course. Each rule below comes with a worked example.

Power Rule and Constant Rule

ddx[xn]=nxn−1ddx[c]=0\frac{d}{dx}\left[x^n\right] = nx^{n-1} \qquad \frac{d}{dx}[c] = 0

Bring the exponent down in front, then subtract 1 from the exponent. The derivative of any constant is 0, because a constant never changes.

Example: Differentiate x5x^5, x\sqrt{x}, and 1x2\frac{1}{x^2}.

  1. ddx[x5]=5x4\frac{d}{dx}[x^5] = 5x^4.
  2. Rewrite x\sqrt{x} as x1/2x^{1/2}. Then the derivative is 12x−1/2=12x\frac{1}{2}x^{-1/2} = \frac{1}{2\sqrt{x}}.
  3. Rewrite 1x2\frac{1}{x^2} as x−2x^{-2}. Then the derivative is −2x−3=−2x3-2x^{-3} = -\frac{2}{x^3}.

The power rule works for any real exponent, as long as you rewrite roots and fractions as powers first.

Constant Multiple and Sum Rules

ddx[c⋅f(x)]=c⋅f′(x)ddx[f(x)+g(x)]=f′(x)+g′(x)\frac{d}{dx}[c \cdot f(x)] = c \cdot f'(x) \qquad \frac{d}{dx}[f(x) + g(x)] = f'(x) + g'(x)

Constants in front just come along for the ride, and you can differentiate a sum (or difference) one term at a time.

Example: Differentiate f(x)=4x3−5x2+2x−9f(x) = 4x^3 - 5x^2 + 2x - 9.

  1. 4x34x^3 becomes 4⋅3x2=12x24 \cdot 3x^2 = 12x^2.
  2. −5x2-5x^2 becomes −5⋅2x=−10x-5 \cdot 2x = -10x.
  3. 2x2x becomes 22.
  4. −9-9 is a constant, so it becomes 00.
  5. Put it together: f′(x)=12x2−10x+2f'(x) = 12x^2 - 10x + 2.

Product Rule

ddx[f(x)g(x)]=f′(x)g(x)+f(x)g′(x)\frac{d}{dx}[f(x)g(x)] = f'(x)g(x) + f(x)g'(x)

Say it as "derivative of the first times the second, plus the first times derivative of the second."

Example: Differentiate h(x)=(x2+1)(x3)h(x) = (x^2 + 1)(x^3).

  1. Let f=x2+1f = x^2 + 1 and g=x3g = x^3. Then f′=2xf' = 2x and g′=3x2g' = 3x^2.
  2. Apply the rule: h′(x)=2x⋅x3+(x2+1)⋅3x2h'(x) = 2x \cdot x^3 + (x^2 + 1) \cdot 3x^2.
  3. Simplify: 2x4+3x4+3x2=5x4+3x22x^4 + 3x^4 + 3x^2 = 5x^4 + 3x^2.

Check: expanding first gives h(x)=x5+x3h(x) = x^5 + x^3, and its derivative is 5x4+3x25x^4 + 3x^2. Same answer.

Another one: ddx[x2sin⁡x]=2xsin⁡x+x2cos⁡x\frac{d}{dx}[x^2 \sin x] = 2x \sin x + x^2 \cos x.

Quotient Rule

ddx[f(x)g(x)]=f′(x)g(x)−f(x)g′(x)[g(x)]2\frac{d}{dx}\left[\frac{f(x)}{g(x)}\right] = \frac{f'(x)g(x) - f(x)g'(x)}{[g(x)]^2}

A common memory trick is "low d-high minus high d-low, over low squared." The order in the numerator matters because of the minus sign.

Example: Differentiate h(x)=x2x+1h(x) = \frac{x^2}{x + 1}.

  1. Top: f=x2f = x^2, so f′=2xf' = 2x. Bottom: g=x+1g = x + 1, so g′=1g' = 1.
  2. Apply the rule: h′(x)=2x(x+1)−x2(1)(x+1)2h'(x) = \frac{2x(x + 1) - x^2(1)}{(x + 1)^2}.
  3. Expand the numerator: 2x2+2x−x2=x2+2x2x^2 + 2x - x^2 = x^2 + 2x.
  4. Final answer: h′(x)=x2+2x(x+1)2h'(x) = \frac{x^2 + 2x}{(x + 1)^2}.

Chain Rule

ddx[f(g(x))]=f′(g(x))⋅g′(x)\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)

Use the chain rule for a function inside another function. Differentiate the outside, leave the inside alone, then multiply by the derivative of the inside.

Example 1: Differentiate (3x2+1)4(3x^2 + 1)^4.

  1. Outside: u4u^4, with inside u=3x2+1u = 3x^2 + 1.
  2. Derivative of the outside: 4(3x2+1)34(3x^2 + 1)^3.
  3. Derivative of the inside: 6x6x.
  4. Multiply: 4(3x2+1)3⋅6x=24x(3x2+1)34(3x^2 + 1)^3 \cdot 6x = 24x(3x^2 + 1)^3.

Example 2: Differentiate x2+9\sqrt{x^2 + 9}.

  1. Rewrite as (x2+9)1/2(x^2 + 9)^{1/2}.
  2. Outside derivative: 12(x2+9)−1/2\frac{1}{2}(x^2 + 9)^{-1/2}.
  3. Inside derivative: 2x2x.
  4. Multiply and simplify: 2x2x2+9=xx2+9\frac{2x}{2\sqrt{x^2 + 9}} = \frac{x}{\sqrt{x^2 + 9}}.

Putting the Rules Together

Real problems often need more than one rule. Work from the outside structure in.

Example: Differentiate x3e2xx^3 e^{2x}.

  1. It is a product, so use the product rule with f=x3f = x^3 and g=e2xg = e^{2x}.
  2. f′=3x2f' = 3x^2. For g′g', use the chain rule: e2x⋅2=2e2xe^{2x} \cdot 2 = 2e^{2x}.
  3. Product rule: 3x2e2x+x3⋅2e2x3x^2 e^{2x} + x^3 \cdot 2e^{2x}.
  4. Factor out x2e2xx^2 e^{2x}: the answer is x2e2x(3+2x)x^2 e^{2x}(3 + 2x).

Paste it into the VeilGPT solver to check your steps on harder combinations.

Common mistakes

  • Treating the derivative of a product as the product of the derivatives. The derivative of f times g is not f' times g'.
  • Flipping the order in the quotient rule numerator, which flips the sign of your whole answer.
  • Forgetting to multiply by the derivative of the inside function when using the chain rule.
  • Using the power rule on exponential functions. The derivative of 2^x is not x times 2^(x-1).

Try one yourself

Find the derivative of f(x) = x^2 (4x - 1)^3

Work it out, then check every step with the VeilGPT calculus solver.

Check it with VeilGPT

Questions about this topic

How do I know when to use the chain rule?

Use it whenever something other than plain x is inside a function, such as (3x + 1)^5, sin(4x), or e^(x^2). If you could call the inside part u, you need the chain rule.

What are the derivatives of e^x and ln x?

The derivative of e^x is e^x, and the derivative of ln x is 1/x for x > 0.

Can I avoid the quotient rule?

Often, yes. You can rewrite f/g as f times g^(-1) and use the product rule with the chain rule, or simplify the fraction first if possible.

More study guides