Derivatives: change right now

intro 14 mincalculus-basics

Builds on:Functions are machinesSlope measures change

The idea

A derivative is the slope you see when the change in xx shrinks to an instant. Average change uses two points on a curve; as those points move together, the secant line connecting them approaches the tangent line at a single point. In optimization, the sign of the derivative tells you which direction is uphill.

For nested functions, use the chain rule:

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

Differentiate the outside while leaving the inside in place, then multiply by the derivative of the inside. For example:

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

Real-world: reading a car's speedometer

Average speed uses a whole time interval, but a speedometer estimates the car's speed right now — the instantaneous rate at which position is changing. If position is s(t)=5t2s(t) = 5t^2 metres, then s′(t)=10ts'(t) = 10t, so at t=3t=3 seconds the car is going s′(3)=30s'(3) = 30 m/s: the derivative converts position into instantaneous velocity.

At x=2, the slope of x² is 2x = 4.

Worked example

  1. Let f(x)=x2f(x) = x^2
  2. At x=3x=3, use a nearby point x=3+hx = 3+h
  3. The change ratio is (3+h)2−9h=6+h\dfrac{(3+h)^2 - 9}{h} = 6+h
  4. As h→0h \to 0, the ratio →6\to 6; therefore f′(3)=6f'(3) = 6

Cheat sheet

f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x) = \lim_{h \to 0} \dfrac{f(x+h) - f(x)}{h}