James's Math Hub
Pre-Calc & Calculus

Lesson 3 / 5 · 14 min read

Derivatives

The slope of a curve at a point — and the rules to compute it.

What is a derivative?

The derivative of ff at xx is the slope of the tangent line to ff at that point. Formally:

f(x)=limh0f(x+h)f(x)hf'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}

You almost never compute it from this definition — there are shortcuts.

The power rule

For any real number nn:

ddx[xn]=nxn1\frac{d}{dx}\left[x^n\right] = n x^{n-1}

Examples.

  • ddx[x5]=5x4\frac{d}{dx}[x^5] = 5x^4
  • ddx[x]=1\frac{d}{dx}[x] = 1 (since n=1n = 1)
  • ddx[x]=ddx[x1/2]=12x1/2=12x\frac{d}{dx}[\sqrt{x}] = \frac{d}{dx}[x^{1/2}] = \frac{1}{2}x^{-1/2} = \frac{1}{2\sqrt{x}}
  • ddx[7]=0\frac{d}{dx}[7] = 0 (the derivative of any constant is 0)

Constant multiple & sum rules

You can pull constants out, and the derivative of a sum is the sum of derivatives:

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

Example. f(x)=3x42x2+5x9f(x) = 3x^4 - 2x^2 + 5x - 9.

f(x)=12x34x+5f'(x) = 12x^3 - 4x + 5

Product rule

If you have a product fgf \cdot g:

(fg)=fg+fg(fg)' = f'g + fg'

Example. h(x)=x2sin(x)h(x) = x^2 \sin(x). Then h(x)=2xsin(x)+x2cos(x)h'(x) = 2x \sin(x) + x^2 \cos(x).

Quotient rule

(fg)=fgfgg2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}

Chain rule

For composite functions f(g(x))f(g(x)):

ddxf(g(x))=f(g(x))g(x)\frac{d}{dx} f(g(x)) = f'(g(x)) \cdot g'(x)

Example. ddxsin(x2)=cos(x2)2x\frac{d}{dx} \sin(x^2) = \cos(x^2) \cdot 2x.

Derivatives of common functions

f(x)f(x)f(x)f'(x)
sinx\sin xcosx\cos x
cosx\cos xsinx-\sin x
exe^xexe^x
lnx\ln x1/x1/x
tanx\tan xsec2x\sec^2 x

Key takeaways

  • A derivative is an instantaneous rate of change (slope of the tangent).
  • The power rule covers most polynomial work.
  • Product, quotient, and chain rules handle combinations.
  • Memorize the table of common derivatives — they show up constantly.