Building the derivative from scratch
Before using shortcuts, it’s important to see where derivatives come from. Finding a derivative from first principles uses the limit definition:
f′(x) = lim (h→0) [f(x + h) − f(x)] / h
From secant to tangent
The difference quotient [f(x + h) − f(x)]/h is the slope of the secant line through (x, f(x)) and (x + h, f(x + h)).
As h shrinks to 0, the second point slides toward the first, and the secant becomes the tangent line.
Example 1: f(x) = x²
- f(x + h) = x² + 2xh + h²
- f(x + h) − f(x) = 2xh + h²
- Divide by h: 2x + h
- Let h → 0: f′(x) = 2x
Example 2: f(x) = 3x² − 5x
- f(x + h) = 3(x + h)² − 5(x + h) = 3x² + 6xh + 3h² − 5x − 5h
- Subtract f(x): 6xh + 3h² − 5h
- Divide by h: 6x + 3h − 5
- h → 0: f′(x) = 6x − 5
Example 3: f(x) = x³
- (x + h)³ = x³ + 3x²h + 3xh² + h³
- Subtract: 3x²h + 3xh² + h³
- Divide: 3x² + 3xh + h²
- h → 0: f′(x) = 3x²
Example 4: f(x) = 1/x
- 1/(x + h) − 1/x = [x − (x + h)]/[x(x + h)] = −h/[x(x + h)]
- Divide by h: −1/[x(x + h)]
- h → 0: f′(x) = −1/x²
Example 5: f(x) = √x
- [√(x + h) − √x]/h × [√(x + h) + √x]/[√(x + h) + √x]
- = h/{h[√(x + h) + √x]} = 1/[√(x + h) + √x]
- h → 0: f′(x) = 1/(2√x)
At a specific point
f′(a) = lim (h→0) [f(a + h) − f(a)]/h
Example: f(x) = x², a = 4: [(4 + h)² − 16]/h = 8 + h → 8.
Strategy
- Write f(x + h) carefully (brackets!).
- Subtract f(x) and simplify: the terms without h should cancel.
- Factor out h and cancel it.
- Take the limit as h → 0.
If the terms without h don’t cancel in step 2, there’s an algebra mistake.
Worked examples
Example 1: f(x) = 5x + 2 → [5(x + h) + 2 − 5x − 2]/h = 5 → 5.
Example 2: f(x) = 4 → (4 − 4)/h = 0 → 0.
Example 3: f(x) = x² + x → 2x + 1.
Common mistakes
- Writing f(x + h) as f(x) + h.
- Dropping brackets when expanding.
- Setting h = 0 before cancelling (gives 0/0).
Try it yourself
Use first principles:
- f(x) = 7x
- f(x) = x² − 3x
- f(x) = 2x²
- f′(1) for f(x) = x³
Answers: 1) 7 2) 2x − 3 3) 4x 4) 3
Quick recap
- First principles: f′(x) = lim (h→0) [f(x + h) − f(x)]/h.
- The difference quotient is a secant line slope; its limit is the tangent line slope.
- Expand, simplify, cancel h, then take the limit.