First principle of calculus

A secant line is a straight line that connects two points on a curve. A tangent line is a straight line that “just touches” the curve at a single point.

xf(x)1123452345678secanttangent
A graph with a secant line on [2, 4] and a tangent line at 7

The slope of the secant line gives us the average rate of change of the function on the interval between the two points. The slope of the tangent line gives us the instantaneous rate of change.

Finding the slope of the secant line is easy:

msec=ΔyΔx=y2y1x2x1=3442=12.

We can generalize this to give us the average rate on the interval [x1,x2] for any function f with

msec=f(x2)f(x1)x2x1,

but what about the tangent line? We could draw it with a ruler and pick two points that is passes through, but this method is tedious and inaccurate. No, instead we can use our newly-acquired limit skills.

The key thing to realize here is that the secant line and the tangent line are related. A tangent line is just a secant line whose interval happens to be very, very small—infinitesimal, to be exact (this means indefinitely small). In other words, the slope of the tangent line at x=a is equal to the slope of the secant line on the interval [a,a+h] as h approaches zero:

mtan=limh0f(a+h)f(a)h.

This is the first principle of calculus. As with most other things, graphing will help us understand it:

xf(x)1123452345678(a, f(a))(a+h, f(a+h))h
A graph with a secant line on [a,a+h] and a tangent line at a

As we move the second point closer to the first point, thereby making h approach zero, the slope of the secant line will converge on the slope of the tangent line at a.

Suppose we want to find the slope of the tangent line at 3 on f(x)=x2. We simply plug it into our first principle of calculus, giving us

mtan=limh0f(3+h)f(3)h=limh0(3+h)232h,

which simplifies to

limh09+6h+h29h=limh06h+h2h=limh06+h=6+0=6,

therefore the instantaneous rate of change at x=3 is 6.