The Derivative from First Principles

LESSON 1 OF 12See the unit map ↗

Build a derivative from average rates and interpret its units and tangent line.

Builds on Factoring, Rationalizing and Squeezing Limits

The bigger question: How can we measure change at a single instant?

On this page

From a time interval to an instant

If a position changes from s(a)s(a) to s(a+h)s(a+h) over a nonzero time interval hh, its average velocity is the displacement divided by elapsed time. The derivative is the limiting average rate as that interval shrinks:

f′(a)=lim⁡h→0f(a+h)−f(a)h.f'(a)=\lim_{h\to0}\frac{f(a+h)-f(a)}h.

A finite two-sided limit is required at an interior point. A derivative has units of output per input: meters per second for position against time, or amperes per volt for a current-voltage relationship.

The quotient is the slope of a secant through two graph points. Its limit, when it exists, is the tangent slope at the base point. A tangent is a local linear model, not necessarily a line that touches the graph only once.

Worked example: derive rather than memorize

For f(x)=x2f(x)=x^2,

(a+h)2−a2h=2ah+h2h=2a+h(h≠0).\frac{(a+h)^2-a^2}{h}=\frac{2ah+h^2}{h}=2a+h\quad(h\ne0).

Taking the limit gives f′(a)=2af'(a)=2a. At a=3a=3, the point is (3,9)(3,9) and the tangent slope is 66, so the tangent line is y−9=6(x−3)y-9=6(x-3). This calculation distinguishes the function value 99 from its local rate 66.

If s(t)=t2s(t)=t^2 meters for time in seconds, s′(3)=6s'(3)=6 m/s. It is not a distance and does not mean the position increases by exactly six meters over every following second. The rate changes with time.

Worked example: a corner

For f(x)=∣x∣f(x)=|x| at zero, the quotient is ∣h∣/h|h|/h. It equals 11 for positive hh and −1-1 for negative hh, so the derivative does not exist. The function is nevertheless continuous. An infinite limiting slope, as with x1/3x^{1/3} at zero, is also not a finite derivative.

Differentiability implies continuity. Indeed, f(a+h)−f(a)f(a+h)-f(a) is hh times the difference quotient; if the quotient has a finite limit, this product tends to zero. This gives a useful preliminary check: a discontinuous function cannot be differentiable at that point.

Read derivative notation carefully

f′(a)f'(a) is a number at one input; f′(x)f'(x) describes the derivative function. The notation dy/dxdy/dx records which variables supply the rate. A second derivative measures how the first rate changes and has units of output per input squared.

Practice

  1. Use the definition to differentiate f(x)=4x+1f(x)=4x+1.
  2. Find the tangent to x2x^2 at x=−1x=-1.
  3. Does a finite difference quotient with h=0.01h=0.01 always equal the derivative?
Show worked solutions
  1. The numerator becomes 4h4h, so the quotient and its limit are 44.
  2. The point is (−1,1)(-1,1) and slope is −2-2. Thus y−1=−2(x+1)y-1=-2(x+1), or y=−2x−1y=-2x-1.
  3. No. It is an average rate over a finite interval. For x2x^2 its error from the derivative is exactly hh.

Explore

From secant to tangent

Try this. Hold x fixed and shrink h: the orange secant approaches the green tangent. Then change x to compare local rates.

From secant to tangent-6-6-4-4-2-2224466xyAB
f(x) = x². Secant slope = ((x+h)² − x²)/h = 2x+h = 1.5. Tangent slope 2x = 1. Difference = h = 0.5. Orange: secant; green: tangent.
PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

For f(x)=x², which expression is the difference quotient at x=a?

Hint 1 · Find a starting point

Expand f(a+h)−f(a), then divide by h.

Hint 2 · Take the next step

(a+h)²−a² = 2ah+h².

Show the reasoning

Answer: 2a+h

For h≠0 the quotient is 2a+h. Its limit as h→0 is the derivative 2a.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →