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 f at x is the slope of the tangent line to f at that point. Formally:
f′(x)=limh→0hf(x+h)−f(x)
You almost never compute it from this definition — there are shortcuts.
The power rule
For any real number n:
dxd[xn]=nxn−1
Examples.
- dxd[x5]=5x4
- dxd[x]=1 (since n=1)
- dxd[x]=dxd[x1/2]=21x−1/2=2x1
- dxd[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:
dxd[c⋅f(x)]=c⋅f′(x) dxd[f(x)+g(x)]=f′(x)+g′(x)
Example. f(x)=3x4−2x2+5x−9.
f′(x)=12x3−4x+5
Product rule
If you have a product f⋅g:
(fg)′=f′g+fg′
Example. h(x)=x2sin(x). Then h′(x)=2xsin(x)+x2cos(x).
Quotient rule
(gf)′=g2f′g−fg′
Chain rule
For composite functions f(g(x)):
dxdf(g(x))=f′(g(x))⋅g′(x)
Example. dxdsin(x2)=cos(x2)⋅2x.
Derivatives of common functions
| f(x) | f′(x) |
|---|---|
| sinx | cosx |
| cosx | −sinx |
| ex | ex |
| lnx | 1/x |
| tanx | sec2x |
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.