Calculus · Grade 12 and undergraduate

Basic Derivative Rules: Power, Sum, Sine, Cosine and e^x

Quick answer

The derivative of x^n is n x^(n−1) for every real n — the power rule — and derivatives pass through sums and constant multiples, so any polynomial can be differentiated term by term. Roots and reciprocals become powers first: √x = x^(1/2) and 1/x² = x^(−2). The derivative of sin x is cos x and of cos x is −sin x, both resting on sin h / h → 1. The number e is defined so that e^x is its own derivative, and the derivative of ln x is 1/x.

What you'll learn

  • Apply the constant, power, constant-multiple and sum rules
  • Rewrite roots and reciprocals as powers before differentiating
  • Differentiate sin x, cos x, e^x and ln x
  • Explain why the power rule and the sine rule hold

The rules

Working from the definition every time would be slow. A handful of rules, each proved once from the definition, cover most functions:

RuleFormula
Constantddx c=0\tfrac{d}{dx}\,c = 0
Powerddx xn=nxn−1\tfrac{d}{dx}\,x^n = n x^{n - 1} for any real nn
Constant multipleddx (c f(x))=c f′(x)\tfrac{d}{dx}\,\big(c\,f(x)\big) = c\,f'(x)
Sum and differenceddx (f(x)±g(x))=f′(x)±g′(x)\tfrac{d}{dx}\,\big(f(x) \pm g(x)\big) = f'(x) \pm g'(x)

The last two come straight from the limit laws: a constant factor and a sum both pass through the limit in the definition. Together they mean a polynomial is differentiated term by term.

Why the power rule works

For a positive integer nn, expand (x+h)n(x + h)^n with the binomial theorem:

(x+h)n=xn+nxn−1h+(terms with h2,h3,…)(x + h)^n = x^n + n x^{n - 1} h + \big(\text{terms with } h^2, h^3, \dots\big)

Subtract xnx^n and divide by hh. Every term but one still carries a factor of hh:

(x+h)n−xnh=nxn−1+h(⋯)  ⟶  nxn−1\frac{(x + h)^n - x^n}{h} = n x^{n - 1} + h\big(\cdots\big) \;\longrightarrow\; n x^{n - 1}

Only the term that is linear in hh survives the limit, and its coefficient is nxn−1n x^{n - 1}. The rule holds for every real exponent — the previous lesson checked n=−1n = -1 and n=12n = \tfrac{1}{2} from the definition — with the general proof coming from logarithmic differentiation.

Roots and reciprocals are powers

Before differentiating, rewrite:

x=x1/2,x23=x2/3,1x3=x−3\sqrt{x} = x^{1/2}, \qquad \sqrt[3]{x^2} = x^{2/3}, \qquad \frac{1}{x^3} = x^{-3}

Then the power rule applies directly, and results can be rewritten back: ddxx=12x−1/2=12x\tfrac{d}{dx}\sqrt{x} = \tfrac{1}{2}x^{-1/2} = \tfrac{1}{2\sqrt{x}}.

Sine and cosine

Using sin⁡(x+h)=sin⁡xcos⁡h+cos⁡xsin⁡h\sin(x + h) = \sin x \cos h + \cos x \sin h,

sin⁡(x+h)−sin⁡xh=sin⁡x⋅cos⁡h−1h+cos⁡x⋅sin⁡hh\frac{\sin(x + h) - \sin x}{h} = \sin x \cdot \frac{\cos h - 1}{h} + \cos x \cdot \frac{\sin h}{h}

The limit lesson showed sin⁡hh→1\tfrac{\sin h}{h} \to 1 and cos⁡h−1h→0\tfrac{\cos h - 1}{h} \to 0. So

ddxsin⁡x=cos⁡x,ddxcos⁡x=−sin⁡x\frac{d}{dx} \sin x = \cos x, \qquad \frac{d}{dx} \cos x = -\sin x

the second by the same method. Both need xx in radians.

e^x and ln x

For any base b>0b > 0,

bx+h−bxh=bx⋅bh−1h\frac{b^{x + h} - b^x}{h} = b^x \cdot \frac{b^h - 1}{h}

so the derivative of bxb^x is bxb^x times the constant lim⁡h→0bh−1h\lim_{h \to 0} \tfrac{b^h - 1}{h}. That constant is about 0.690.69 for b=2b = 2 and about 1.101.10 for b=3b = 3. The number e≈2.71828e \approx 2.71828 is the base that makes it exactly 11. Therefore

ddxex=ex,ddxln⁡x=1x(x>0)\frac{d}{dx} e^x = e^x, \qquad \frac{d}{dx} \ln x = \frac{1}{x} \quad (x > 0)

The rule for ln⁡x\ln x is proved in the lesson on inverse functions.

Worked examples

Common mistakes

Practice problems

  1. Differentiate f(x)=6x4−5x3+2x−8f(x) = 6x^4 - 5x^3 + 2x - 8.

    Answer

    f′(x)=24x3−15x2+2f'(x) = 24x^3 - 15x^2 + 2

    Full solution

    Term by term: 6⋅4x3−5⋅3x2+2−06 \cdot 4x^3 - 5 \cdot 3x^2 + 2 - 0.

  2. Differentiate y=4x2y = \tfrac{4}{x^2}.

    Answer

    y′=−8x3y' = -\tfrac{8}{x^3}

    Full solution

    y=4x−2y = 4x^{-2}, so y′=4⋅(−2)x−3=−8x−3y' = 4 \cdot (-2)x^{-3} = -8x^{-3}.

  3. Differentiate y=xxy = x\sqrt{x}.

    Answer

    y′=32xy' = \tfrac{3}{2}\sqrt{x}

    Full solution

    xx=x3/2x\sqrt{x} = x^{3/2}, so y′=32x1/2y' = \tfrac{3}{2}x^{1/2}.

  4. Differentiate g(t)=5cos⁡t−3etg(t) = 5\cos t - 3e^t.

    Answer

    g′(t)=−5sin⁡t−3etg'(t) = -5\sin t - 3e^t

    Full solution

    ddtcos⁡t=−sin⁡t\tfrac{d}{dt}\cos t = -\sin t and ddtet=et\tfrac{d}{dt}e^t = e^t, each multiplied by its constant.

  5. Differentiate y=x2+3x−1xy = \tfrac{x^2 + 3x - 1}{x}.

    Answer

    y′=1+1x2y' = 1 + \tfrac{1}{x^2}

    Full solution

    Divide first: y=x+3−x−1y = x + 3 - x^{-1}. Then y′=1+x−2y' = 1 + x^{-2}.

  6. Find the tangent line to y=exy = e^x at x=0x = 0.

    Answer

    y=x+1y = x + 1

    Full solution

    The slope is e0=1e^0 = 1 and the point is (0,1)(0, 1), so y−1=1(x−0)y - 1 = 1(x - 0).

  7. Find the slope of y=4ln⁡xy = 4\ln x at x=2x = 2.

    Answer

    22

    Full solution

    y′=4xy' = \tfrac{4}{x}, and at x=2x = 2 that is 22.

  8. Where does y=x3−12x+5y = x^3 - 12x + 5 have horizontal tangents?

    Answer

    At x=2x = 2 and x=−2x = -2

    Full solution

    y′=3x2−12=0y' = 3x^2 - 12 = 0 gives x2=4x^2 = 4, so x=±2x = \pm 2.

  9. The position of a particle is s(t)=t3−6t2+9ts(t) = t^3 - 6t^2 + 9t. When is its velocity 00?

    Answer

    At t=1t = 1 and t=3t = 3

    Full solution

    v(t)=s′(t)=3t2−12t+9=3(t−1)(t−3)v(t) = s'(t) = 3t^2 - 12t + 9 = 3(t - 1)(t - 3), which is 00 at t=1t = 1 and t=3t = 3.

  10. A student differentiates y=1x2y = \tfrac{1}{x^2} as y′=12xy' = \tfrac{1}{2x}. What went wrong?

    Hint

    Write yy as a power of xx.

    Answer

    The reciprocal must become the power x−2x^{-2} before the rule applies. The derivative is −2x3-\tfrac{2}{x^3}.

    Full solution

    The student differentiated the denominator and kept the 11 on top, which is not a rule.

    y=x−2y = x^{-2}, so y′=−2x−3=−2x3y' = -2x^{-3} = -\tfrac{2}{x^3}.

Frequently asked questions

What is the power rule?

The derivative of x^n is n x^(n−1), for any real number n. For example, the derivative of x^5 is 5x^4 and of x^(1/2) is (1/2)x^(−1/2).

How do I differentiate a square root or 1/x?

Rewrite as a power first: √x = x^(1/2) has derivative (1/2)x^(−1/2), and 1/x = x^(−1) has derivative −x^(−2).

What is the derivative of sin x?

cos x, with x in radians. The derivative of cos x is −sin x.

Why is e^x its own derivative?

The derivative of any b^x is b^x times the limit of (b^h − 1)/h. The number e is the base that makes that limit exactly 1.

Can I differentiate a product factor by factor?

No. The derivative of a product is not the product of the derivatives; that needs the product rule.

What to learn next