The Derivative from First Principles

25 min
0/4 practice checks

The derivative measures how fast a function is changing at a single instant. Start with the average rate of change between two points — the slope of the line joining them:

f(x+h)f(x)h\frac{f(x+h)-f(x)}{h}

As the gap hh shrinks to zero, that joining line becomes the tangent, and the average rate becomes the instantaneous rate. That limit is the derivative:

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

Worked example (first principles). Find f(x)f'(x) for f(x)=x2f(x)=x^2.

f(x)=limh0(x+h)2x2h=limh0x2+2xh+h2x2h=limh02xh+h2hf'(x)=\lim_{h\to 0}\frac{(x+h)^2 - x^2}{h} = \lim_{h\to 0}\frac{x^2+2xh+h^2-x^2}{h} = \lim_{h\to 0}\frac{2xh+h^2}{h}
=limh0(2x+h)=2x=\lim_{h\to 0}(2x+h) = 2x

This is the power rule in miniature: ddxxn=nxn1\dfrac{d}{dx}x^n = nx^{n-1}. So ddxx2=2x\dfrac{d}{dx}x^2 = 2x, ddxx3=3x2\dfrac{d}{dx}x^3 = 3x^2, and a constant differentiates to 0.

The derivative f(a)f'(a) tells you:

Differentiate f(x)=4x23x+7f(x)=4x^2-3x+7. Give f(x)f'(x).

For f(x)=x2f(x)=x^2, find f(5)f'(5).

Use first principles to find f(1)f'(1) for f(x)=3x2f(x)=3x^2.