The slope of a tangent

Motivation

Consider a function ff, and a point AA on the graph. Our goal is to find the slope of the to the graph of ff at AA.

Insight

Note that it is no trivial matter to find the slope of the tangent. For the secant, finding the slope is simple because we typically have the coordinates of two known points AA and BB through which the secant passes, and this makes finding the slope straight forward using the:

a=f(Bx)f(Ax)BxAxa=\frac{f(B_x)-f(A_x)}{B_x-A_x}

For the tangent (also a straight line), however, we only know one point, the touch point AA. So how are we supposed to find the slope of this straight line? We need some more information to do so. The only other bit of information we know is that the tangent is a straight line that not only contains AA, but also touches the curve ff at AA. And it turns out that this extra information is enough to find the slope.

Recipe 1: Tangent as limit of secants

Let ff be a function, and AA is a point on the graph of ff, where Ax=uA_x=u for some given value uu. The yy-coordinate of AA is therefore Ay=f(u)A_y=f(u). We want to find the slope of the tangent to the grpah of ff at AA. We denote this slope by aua_u. Here are the steps to find the slope:

  1. Determine the slope of a secant that passes through AA and some other point BB on the graph of ff. It does not really matter where point BB is, but let us assume that it is a little bit to the right of AA, horizontally displaced from AA by some distance hh (see picture below). The coordinates of BB are therefore

    Bx=u+hBy=f(Bx)=f(u+h)\begin{array}{lll} B_x&=&u+h\\ B_y&=& f(B_x)=f(u+h)\end{array}

    We already know from the previous section that the slope of the secant is given by the difference quotient

    ΔyΔx=f(Bx)f(Ax)BxAx=f(u+h)f(u)u+hu=f(u+h)f(u)h\begin{array}{lll} \frac{\Delta y}{\Delta x}&=&\frac{f(B_x)-f(A_x)}{B_x-A_x}\\[0.5em] &=&\frac{f(u+h)-f(u)}{u+h-u}\\[0.5em] &=&\frac{f(u+h)-f(u)}{h}\end{array}
  2. Now, note that for a smaller horizontal separation hh between the points AA and BB, point BB moves towards point AA and the new secant will be more parallel to the tangent. But the more parallel these two straight lines are, the more similar are also their slopes. Thus, if we let hh approach 00 (h0h\rightarrow 0), point BB will approach point AA, and the secant will approach the tangent, and thus the slope of the secant ΔyΔx\frac{\Delta y}{\Delta x} will approach the slope of the tangent aua_u.

Theorem 1: Differential quotient

Consider a function ff. The slope of the tangent to the graph of ff at x=ux=u (or at point A(uf(u))A(u|f(u))) is

Equation 1
au=limh0f(u+h)f(u)ha_u = \lim_{h\rightarrow 0} \frac{f(u+h)-f(u)}{h}

The differential quotient is used to determine the slope of the tangent.

The symbol lim\lim stands for limit, and the expression h0h\rightarrow 0 stands for "as hh approaches 00". Putting everything together, the notation above means the slope of the tangent is the limit of the difference quotient if hh approaches 00. The difference quotient with the limit symbol in front of it is called differential quotient.

To make things more clear, let's work through an example.

Example 1

Let us calculate the slope of the tangent for the picture above using the differential quotient. The function used was f(x)=x2f(x)=x^2, and AA has the xx-coordinate 0.50.5.

  1. It is u=0.5u=0.5. We want to find the slope of the tangent, a0.5a_{0.5}. We choose a BB on the graph of ff, horizontally displaced by some distance hh on the graph. The slope of the secant passing through AA and BB is

    ΔyΔx=f(0.5+h)f(0.5)h=(0.5+h)20.52h\frac{\Delta y}{\Delta x}=\frac{f(0.5+h)-f(0.5)}{h} = \frac{(0.5+h)^2-0.5^2}{h}

    The picture below shows the secants for h=1.4h=1.4, h=1.0h=1.0, h=0.5h=0.5 and h=0.1h=0.1. Observe how the secants (red) and the tangent (blue) get more parallel, and the slope of the secants approaches the slope of the tangent. For example, let us calculate the slope of the secant for h=0.1h=0.1 (bottom right): It is

    ΔyΔx=f(0.5+0.1)f(0.5)0.1=0.620.520.1=1.1\begin{array}{lll} \frac{\Delta y}{\Delta x}&=&\frac{f(0.5+0.1)-f(0.5)}{0.1}\\ &=&\frac{0.6^2-0.5^2}{0.1}\\ &=&1.1 \end{array}

    Clearly this forms a good approximation to the real slope of the tangent,

    a0.51.1a_{0.5}\approx 1.1

    but how do we get an accurate value? This is done in step 2.

  2. The slope of the tangent is obtained by letting hh approach 00:

    a0.5=limh0f(0.5+h)f(0.5)h=limh0(0.5+h)20.52h\begin{array}{lll} a_{0.5} &=& \lim_{h\rightarrow 0} \frac{f(0.5+h)-f(0.5)}{h}\\ &= &\lim_{h\rightarrow 0} \frac{(0.5+h)^2-0.5^2}{h}\end{array}

    For each value of hh do we get a number (the slope of the secant). Thus we have a sequence of numbers, and we want to know towards which number this sequence converges for h0h\rightarrow 0. This number (the limit), must then be the slope of the sequence a0.5a_{0.5}.

    We are tempted to insert h=0h=0 right away, but this will not work because we will get the expression

    f(0.5+h)f(0.5)h=(0.5+h)20.52h=00\begin{array}{lll} \frac{f(0.5+h)-f(0.5)}{h} &= & \frac{(0.5+h)^2-0.5^2}{h}\\ &=& \frac{0}{0}\end{array}

    and it is not clear at all what value this is. So let us first try to simplify the difference quotient, and hopefully we will then see better what happens if hh approaches 00. We have

    f(0.5+h)f(0.5)h=(0.5+h)20.52h=0.25+h+h20.25h=h+h2h=h(1+h)h=1+h\begin{array}{lll} \frac{f(0.5+h)-f(0.5)}{h}&=&\frac{(0.5+h)^2-0.5^2}{h}\\ &=& \frac{0.25+h+h^2-0.25}{h}\\ &=&\frac{h+h^2}{h}\\ &=&\frac{h(1+h)}{h}\\ &=&1+h\end{array}

    Indeed, now it is easy to see what happens for h0h\rightarrow 0: the slope of the secant approaches 11. The slope of the tangent is therefore

    a0.5=1a_{0.5}=1
Context

Algebraic simplification is often necessary to avoid the indeterminate form 0/00/0 when evaluating the limit as h0h \to 0.

Exercise 1

Consider the function f(x)=x2f(x)=x^2. Determine the slope of the tangent to the graph of ff

  1. at u=2u=2 (that is, determine a2a_2)

  2. for an arbitrary uu (that is, determine aua_u). This results in a formula for determining the slope to the graph at any point A(uf(u))A(u|f(u)).

  3. Use the formula found above to determine the slope of the tangent at A(10100)A(10\vert 100).

Solution
  1. a2=limh0f(2+h)f(2)ha_{2} = \lim_{h\rightarrow 0}\frac{f(2+h)-f(2)}{h}. With f(2+h)f(2)h=(2+h)222h=4+4h+h24h=h(4+h)h=4+h\begin{array}{lll} \frac{f(2+h)-f(2)}{h} &=& \frac{(2+h)^2-2^2}{h}\\ &=&\frac{4+4h+h^2-4}{h}\\ &=&\frac{h(4+h)}{h}\\ &=&4+h\end{array} we see that a2=4a_2=\underline{4}.
  2. au=limh0f(u+h)f(u)ha_{u} = \lim_{h\rightarrow 0}\frac{f(u+h)-f(u)}{h}. With f(u+h)f(u)h=(u+h)2u2h=u2+2uh+h2u2h=h(2u+h)h=2u+h\begin{array}{lll}\frac{f(u+h)-f(u)}{h}& = &\frac{(u+h)^2-u^2}{h}\\ &=&\frac{u^2+2uh+h^2-u^2}{h}\\ &=&\frac{h(2u+h)}{h}\\ &=&2u+h\end{array} we see that au=2ua_u=\underline{2u}.
  3. Because of u=10u=10, we get a10=210=20a_{10}=2\cdot 10=\underline{20}.
Exercise 2

Determine a formula for the slope of the tangent to the graph of ff (at an arbitrary value uu).

  1. f(x)=3f(x)=3 for all xx

  2. f(x)=xf(x)=x

  3. f(x)=2x2+1f(x)=2x^2+1

  4. f(x)=x3f(x)=x^3

  5. f(x)=xf(x)=\sqrt{x}

  6. f(x)=1xf(x)=\frac{1}{x}

Solution

The slope of the tangent at any point AA with Ax=uA_x=u is au=limh0f(u+h)f(u)ha_{u} = \lim_{h\rightarrow 0}\frac{f(u+h)-f(u)}{h}.

  1. f(u+h)f(u)h=33h=0h=0\frac{f(u+h)-f(u)}{h}=\frac{3-3}{h}=\frac{0}{h}=0. So the slope is always au=0a_u=0. Looking at the graph of ff (a horizontal line), this result is obviously correct.
  2. f(u+h)f(u)h=u+huh=hh=1\frac{f(u+h)-f(u)}{h}=\frac{u+h-u}{h}=\frac{h}{h}=1. So the slope is always au=1a_u=1. Looking at the graph of ff (a straight line of slope 11), this result is obviously correct.
  3. It is f(u+h)f(u)h=2(u+h)2+1(2u2+1)h=2u2+4uh+2h2+12u21h=h(4u+2h)h=4u+2h\begin{array}{lll}\frac{f(u+h)-f(u)}{h}&=&\frac{2(u+h)^2+1-(2u^2+1)}{h}\\&=&\frac{2u^2+4uh+2h^2+1-2u^2-1}{h}\\&=&\frac{h(4u+2h)}{h}\\&=&4u+2h\end{array} So the slope is au=4ua_u = 4u.
  4. It is f(u+h)f(u)h=(u+h)3u3h=u3+3u2h+3uh2+h3u3h=h(3u2+3uh+h2)h=3u2+3uh+h2\begin{array}{lll}\frac{f(u+h)-f(u)}{h}&=&\frac{(u+h)^3-u^3}{h}\\&=&\frac{u^3+3u^2h+3u h^2+h^3-u^3}{h}\\&=&\frac{h(3u^2+3uh+h^2)}{h}\\&=&3u^2+3uh+h^2\end{array} So the slope is au=3u2a_u = 3u^2.
  5. It is f(u+h)f(u)h=u+huh=(u+hu)(u+h+u)h(u+h+u)=u+huh(u+h+u)=1u+h+u\begin{array}{lll}\frac{f(u+h)-f(u)}{h}&=&\frac{\sqrt{u+h}-\sqrt{u}}{h}\\&=&\frac{(\sqrt{u+h}-\sqrt{u})\cdot (\sqrt{u+h}+\sqrt{u})}{h\cdot (\sqrt{u+h}+\sqrt{u})}\\&=&\frac{u+h-u}{h\cdot (\sqrt{u+h}+\sqrt{u})}\\&=&\frac{1}{\sqrt{u+h}+\sqrt{u}}\end{array} So the slope is au=12ua_u = \frac{1}{2\sqrt{u}}.
  6. It is f(u+h)f(u)h=1u+h1uh=uu(u+h)u+hu(u+h)h=u(u+h)u(u+h)h=hu(u+h)h=hu(u+h)1h=1u2+uh\begin{array}{lll}\frac{f(u+h)-f(u)}{h}&=&\frac{\frac{1}{u+h}-\frac{1}{u}}{h}\\&=&\frac{\frac{u}{u\cdot(u+h)}-\frac{u+h}{u\cdot (u+h)}}{h}\\&=&\frac{\frac{u-(u+h)}{u\cdot(u+h)}}{h}\\&=&\frac{\frac{-h}{u\cdot(u+h)}}{h}\\ &=& \frac{-h}{u\cdot(u+h)}\cdot \frac{1}{h}\\&=&-\frac{1}{u^2+uh}\end{array} So the slope is au=1u2a_u = -\frac{1}{u^2}.