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)=lim⁡h→0f(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]=nxn−1\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]=12x−1/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[c⋅f(x)]=c⋅f′(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)=3x4−2x2+5x−9f(x) = 3x^4 - 2x^2 + 5x - 9.

f′(x)=12x3−4x+5f'(x) = 12x^3 - 4x + 5

Product rule

If you have a product f⋅gf \cdot g:

(fg)′=f′g+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)′=f′g−fg′g2\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)
sin⁡x\sin xcos⁡x\cos x
cos⁡x\cos x−sin⁡x-\sin x
exe^xexe^x
ln⁡x\ln x1/x1/x
tan⁡x\tan xsec⁡2x\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.