Tangent Line

Basis
Last updated: Tags: Calculus, Differentiation

How do you draw the line that just touches a curve at a single point without crossing it? This intuitive question is surprisingly deep — the answer requires a limit, and that limit is the seed from which the entire theory of differential calculus grows.

The secant slope

Pick a point (x0,f(x0))(x_0, f(x_0)) on the graph of ff. A secant line through that point and a nearby point (x0+h,f(x0+h))(x_0 + h, f(x_0 + h)) has slope

mh  =  f(x0+h)f(x0)h.m_h \;=\; \frac{f(x_0 + h) - f(x_0)}{h}.

The expression f(x0+h)f(x0)h\dfrac{f(x_0 + h) - f(x_0)}{h} is called the difference quotient of ff at x0x_0 with increment hh.

As you take hh closer and closer to zero, the second point slides along the curve toward the first, and the secant line rotates. If this process converges to a unique limiting line, that limiting line is the tangent line at (x0,f(x0))(x_0, f(x_0)).

The tangent line as a limit

Definition. If the limit

m  =  limh0f(x0+h)f(x0)h(1)m \;=\; \lim_{h \to 0} \frac{f(x_0 + h) - f(x_0)}{h} \tag{1}

exists and is finite, the tangent line to the graph of ff at x0x_0 is the line through (x0,f(x0))(x_0, f(x_0)) with slope mm:

y  =  f(x0)+m(xx0).y \;=\; f(x_0) + m(x - x_0).

When the limit (1)(1) does not exist (or is infinite), the curve has no tangent line at that point in the usual sense.

Example: the parabola f(x)=x2f(x) = x^2

At x0=2x_0 = 2:

mh  =  (2+h)24h  =  4+4h+h24h  =  4+h.m_h \;=\; \frac{(2+h)^2 - 4}{h} \;=\; \frac{4 + 4h + h^2 - 4}{h} \;=\; 4 + h.

As h0h \to 0, mh4m_h \to 4. The tangent line at (2,4)(2, 4) is y=4x4y = 4x - 4.

Example: the square root f(x)=xf(x) = \sqrt{x}

At x0>0x_0 > 0, rationalise the numerator:

mh  =  x0+hx0h  =  1x0+h+x0.m_h \;=\; \frac{\sqrt{x_0 + h} - \sqrt{x_0}}{h} \;=\; \frac{1}{\sqrt{x_0 + h} + \sqrt{x_0}}.

As h0h \to 0, mh12x0m_h \to \dfrac{1}{2\sqrt{x_0}}.

Corners and vertical tangents

Not every curve has a tangent line at every point. The function f(x)=xf(x) = |x| has a corner at x0=0x_0 = 0: the secant slope from the left approaches 1-1 and from the right approaches +1+1, so the limit (1)(1) does not exist. The function f(x)=x1/3f(x) = x^{1/3} has a vertical tangent at 00: the difference quotient grows without bound.

These failure modes motivate the formal definition of the derivative in the next checkpoint.

Summary

  • The secant slope through (x0,f(x0))(x_0, f(x_0)) and (x0+h,f(x0+h))(x_0+h, f(x_0+h)) is f(x0+h)f(x0)h\dfrac{f(x_0+h)-f(x_0)}{h}.
  • The tangent line at x0x_0 exists when this limit converges to a finite number mm, and its equation is y=f(x0)+m(xx0)y = f(x_0) + m(x - x_0).
  • A corner or vertical tangent prevents the limit from existing in the usual sense.