Basis Lab

Answers · The mathematics underneath

How can there be a slope at a single point if slope needs two points?

In shortA slope at one point is the single value that slopes between nearby pairs of points settle on as the pair closes up; it is not a slope measured between two identical points.

There can be a slope at a single point because the slope at a point is not computed from one point alone. It is the number that the slopes between two nearby points settle on as the second point is moved towards the first. Write the rule as ff, the fixed input as xx, and the gap to a second input as hh. Across the interval from xx to x+hx+h the average slope is the rise divided by the run, and the run is hh. The instantaneous slope is the value that these averages approach as hh approaches zero.

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

What the limit is doing

The hh in the fraction is never zero. That matters because division by zero is undefined: if hh were zero, both the rise f(x+h)−f(x)f(x+h)-f(x) and the run hh would be zero, and the expression would be 0/00/0. The limit is not a command to put h=0h=0 into that fraction. It is a statement about the numbers the fraction produces for small nonzero hh: they can be made as close as anybody likes to one fixed value, and they stay close. When that happens, the fixed value is called f′(x)f'(x).

FIG 1The slope of the squaring rule near an input of two
stepwidth of the intervalrise across itrise divided by widthwhat happened
1155From two to three, the answer rose by five.
20.52.254.5Half the interval, and the quotient has dropped to 4.5.
30.251.06254.25A quarter of the interval gives 4.25.
40.10.414.1The quotient is four plus the width.
50.010.04014.01Still four plus the width; the settling is calm.
5 steps
At an input of two the squaring rule gives four. Each row takes a second input at a distance to the right, forms the rise, and divides by . The quotient is at every row, so the values are heading for four.

Take f(x)=x2f(x)=x^2 and ask for the slope at x=2x=2. At a gap of hh the second input is 2+h2+h, and the second answer is (2+h)2(2+h)^2. The rise is (2+h)2−4(2+h)^2-4. Multiply out: (2+h)2=4+4h+h2(2+h)^2=4+4h+h^2, so the rise is 4h+h24h+h^2. Divide by the run hh: the average slope is (4h+h2)/h=4+h(4h+h^2)/h=4+h.

(2+h)2−22h=4+4h+h2−4h=4h+h2h=4+h→4as h→0.\frac{(2+h)^2-2^2}{h} = \frac{4+4h+h^2-4}{h} = \frac{4h+h^2}{h} = 4+h \to 4 \quad \text{as } h\to0.

Geometrically, the fraction is the slope of a straight line through two points on the curve: (x,f(x))(x,f(x)) and (x+h,f(x+h))(x+h,f(x+h)). As hh shrinks, the second point slides towards the first, and the line pivots about the fixed point. The limiting line is the tangent, and the tangent's slope is f′(x)f'(x). Every intermediate calculation used two points; the answer is still the slope at one point because it is the value those two-point slopes settle on.

Why the obvious calculation fails

The natural guess is to make the two points identical and compute rise over run directly. Then the rise is f(x)−f(x)=0f(x)-f(x)=0 and the run is x−x=0x-x=0, so the formula gives 0/00/0. That is not a slope; it is the failure of the direct formula. The definition avoids the failure by doing the division while hh is still nonzero. In the squaring example the division gives 4+h4+h exactly, and only after that cancellation is it safe to let hh go to zero. Setting h=0h=0 before cancelling would leave 0/00/0 and say nothing. Setting it after cancelling gives 44.

For a car, average speed over an interval is distance divided by time. The instantaneous speed is the value those averages settle on as the interval shrinks. The speedometer is reporting that settling value, not a distance travelled in zero time.

The definition is local. It uses inputs arbitrarily close to xx, but it never uses an input equal to xx on both sides of the division. That is why a rule can have a perfectly definite slope at one input and a different slope at another, and why no knowledge of the rule far away is needed.

Where there is no slope

The settling is not guaranteed. Take f(x)=∣x∣f(x)=|x| at x=0x=0. From the right, with h>0h>0, the quotient is (∣h∣−0)/h=h/h=1(|h|-0)/h=h/h=1. From the left, with h<0h<0, it is (∣h∣−0)/h=(−h)/h=−1(|h|-0)/h=(-h)/h=-1. The two one-sided values stay one apart no matter how small ∣h∣|h| is, so there is no single number for the quotients to settle on, and no slope exists at the corner. A sharp bend in a graph, a switch in a signal, or a change of band in a cost can produce the same failure. Where the left and right quotients disagree, or where they grow without bound, the instantaneous slope is not defined.

Worth keeping

  • A slope at a point is defined as the limit of average slopes over shrinking intervals, not as a division at a single isolated input.
  • Before setting the interval width to zero, the algebra must cancel it; otherwise the expression is zero divided by zero.
  • At a corner the slopes from the left and right disagree, so no single instantaneous slope exists there.

Where this goes next

This question is one step of Change and Accumulation, a course that works through its subject from the beginning. The page that teaches this part of it is How Fast, Exactly Here, and it reads the whole way through whether or not you have an account.

What an account changes is the practice: problems standing under every idea, marked with a reason rather than a tick, in a copy of the course that is yours.

Read that pageThe whole course

Other questions people ask about this

  1. How do you find the parabola that best fits a function near a point?Match the function's height, slope and bending at the chosen point; those three conditions single out exactly one parabola.
  2. How can you add up infinitely many infinitely thin slices and get a finite number?You add small positive pieces, then take the finite total they approach as the pieces shrink; the pieces never all become zero before the adding.
  3. Why is a function thought of as a rule rather than just a formula?A function is the rule that gives exactly one output for each input; a formula is only one way of writing that rule down.
  4. Why do you multiply derivatives when functions are composed?Because a small change at the input is scaled once by the inner function and again by the outer function, so the two scale factors multiply.
  5. What is the difference between variance and standard deviation?They measure the same spread: variance is the average squared distance from the mean, standard deviation is its square root, so you report the standard deviation and calculate with the variance.
  6. How do you make a vague claim precise enough to tell whether it's true?Fix what is being talked about, what is asserted, which cases are covered and the cut-off, then name an observation that would prove it false.

Read alongside