2.2 Two Fundamental Problems Using Limits

Calculus is essentially the mathematics of limits applied to two fundamental geometric problems: finding tangents (derivatives) and finding areas (integrals).

2.2.1 The Tangent Line Problem

Given a function ff and a point PP on its graph, find an equation of the tangent line to the graph at point PP. Intuitively, the tangent line “touches the graph at PP” without crossing it abruptly.  
Key Idea: To find the equation of a line, we need a point and a slope. We already have the point PP. Our task reduces to finding the slope of the tangent line, which we shall call mtanm_{\tan}.

We approximate the slope of the tangent line by the slope of a secant line, see Figure 2.2. Choose a point P=(c,f⁢(c))P=(c,f(c)) and a nearby point Q=(c+Δ⁢x,f⁢(c+Δ⁢x))Q=(c+\Delta x,f(c+\Delta x)).

The graph of a function y = f(x) and a secant line through two points P and Q on the graph.
Figure 2.2: A secant line P⁢QPQ of y=f⁢(x)y=f(x).

The slope of the secant line passing through PP and QQ is standard rise over run:

equation (2.6) (2.6)
msec=riserun=f⁢(c+Δ⁢x)−f⁢(c)(c+Δ⁢x)−c=f⁢(c+Δ⁢x)−f⁢(c)Δ⁢x.m_{\sec}=\frac{\text{rise}}{\text{run}}=\frac{f(c+\Delta x)-f(c)}{(c+\Delta x)% -c}=\frac{f(c+\Delta x)-f(c)}{\Delta x}.

Now, invoke the magic of limits. If we let Δ⁢x→0\Delta x\to 0, the point QQ slides along the curve towards PP, and the secant line gradually converges to the tangent line:

equation (2.7) (2.7)
mtan≈msecif ⁢Δ⁢x→0.m_{\tan}\approx m_{\sec}\quad\text{if }\Delta x\to 0.

Thus, we formally define:

equation (2.8) (2.8)
mtan=limΔ⁢x→0msec=limΔ⁢x→0f⁢(c+Δ⁢x)−f⁢(c)Δ⁢x.m_{\tan}=\lim_{\Delta x\to 0}m_{\sec}=\lim_{\Delta x\to 0}\frac{f(c+\Delta x)-% f(c)}{\Delta x}.

This limits-based object is so foundational that we give it a special name.

Definition 2.2.1 (Difference Quotient and the Derivative).

Given a function ff and a point aa, for each h∈ℝh\in\mathbb{R}, the difference quotient of ff at aa is defined as

equation (2.9) (2.9)
DQ⁢(f,a)⁢(h)≔f⁢(a+h)−f⁢(a)h.\text{DQ}(f,a)(h)\coloneqq\frac{f(a+h)-f(a)}{h}.

The limit of this quotient as h→0h\to 0 is the derivative of ff at aa.

2.2.2 The Area Problem

Given a function f⁢(x)≥0f(x)\geq 0 for x∈[a,b]x\in[a,b], find the area AA bounded by the curve ff, the xx-axis, and the vertical lines x=ax=a and x=bx=b, see Figure 2.3.

Graph of a nonnegative function.
Figure 2.3: Graph of the function f⁢(x)f(x).

We approach this systematically by generalizing from simple shapes to complex ones.

  1. 1.
    ​

    Constant Function. If f⁢(x)=c>0f(x)=c>0, the region is a simple rectangle. The area is base times height:

    equation (2.10) (2.10)
    A=c⁢(b−a).A=c(b-a).
  2. 2.
    ​

    Piecewise Constant (Step) Function. Suppose ff is a step function, taking different constant values on different intervals:

    f⁢(x)={c1,x∈[a,t)c2,x∈[t,b]f(x)=\begin{cases}c_{1},&x\in[a,t)\\ c_{2},&x\in[t,b]\end{cases}

    The total area is simply the sum of the areas of the individual rectangles:

    equation (2.11) (2.11)
    A=c1⁢(t−a)+c2⁢(b−t).A=c_{1}(t-a)+c_{2}(b-t).
  3. 3.
    ​

    General Curve Approximation. For a general continuous curve, we approximate the area by slicing the interval [a,b][a,b] into many small rectangles. Let us define intermediate points a=t0<t1<⋯<tN=ba=t_{0}<t_{1}<\dots<t_{N}=b. We approximate the height of the curve over the interval [ti,ti+1][t_{i},t_{i+1}] by f⁢(ti)f(t_{i}).

    equation (2.12) (2.12)
    A≈f⁢(t0)⁢(t1−t0)+f⁢(t1)⁢(t2−t1)+⋯+f⁢(tN−1)⁢(tN−tN−1).A\approx f(t_{0})(t_{1}-t_{0})+f(t_{1})(t_{2}-t_{1})+\dots+f(t_{N-1})(t_{N}-t_% {N-1}).

If we assume the points are equidistant, then the width of each sub-interval is Δ⁢x=ti+1−ti\Delta x=t_{i+1}-t_{i}. The approximation neatly factors out:

equation (2.13) (2.13)
A≈Δ⁢x⁢(f⁢(t0)+f⁢(t1)+⋯+f⁢(tN−1)).A\approx\Delta x\Big{(}f(t_{0})+f(t_{1})+\dots+f(t_{N-1})\Big{)}.
Moral (From Discrete to Continuous).

The grand synthesis occurs when we let the number of rectangles go to infinity, which forces the width Δ⁢x→0\Delta x\to 0. We recover the exact area through a limit:

equation (2.14) (2.14)
A=limΔ⁢x→0Δ⁢x⁢(f⁢(t0)+f⁢(t1)+⋯+f⁢(tN−1)).A=\lim_{\Delta x\to 0}\Delta x\Big{(}f(t_{0})+f(t_{1})+\dots+f(t_{N-1})\Big{)}.

This profound limit of a sum is what we call the integral.