3.1 Tangent Lines

Everyone knows that the Earth is not flat, but locally, e.g. in your immediate vicinity, isn’t the Earth effectively flat? In other words, “flat” is a fairly good approximation of the Earth’s surface “near” you, and it simplifies matters enough for you to do some useful things.

This idea of approximating curved shapes by straight shapes is a frequent theme in calculus. Recall from Chapter 1 that by the Microstraightness Property a differentiable curve \(y = f(x)\) actually is a straight line over an infinitesimal interval, having slope \(\dydx\). The extension of that line to all values of \(x\) is called the tangent line:

Definition 3.1

For a curve \(y = f(x)\) that is differentiable at \(x =a\), the tangent line to the curve at the point \(P = (a, f(a))\) is the unique line through \(P\) with slope \(m = f'(a)\). \(P\) is called the point of tangency. The equation of the tangent line is thus given by:

\begin{equation} y ~-~ f(a) ~=~ f'(a) \cdot (x - a) \tag{3.1}\end{equation}

tikzpicture[>=latex,every node/.style=font=] [<->,black!60,line width=1pt] (-0.5,2.3) node[above] y |- (4.5,-0.5) node[right] x; [linecolor,line width=1.5pt] (0,0) .. controls (2,3) and (3.5,-1) .. (4,2) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.05](A) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.22](B) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.70](C) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.80](s) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.92](D) ; [below] at (B) P; [below] at (4,0.8) y=f(x); [red,line width=0.6pt] (B) -- +(20:1.7) -- +(200:1.4); (B) circle (2.5pt); [left,align=left] at (1.26,1.25) tangent\ ; [black!60] (1.26,-0.59) -- (1.26,-0.41); [below] at (1.26,-0.59) a; [above] at (2.26,1.8) slope = f'(a); tikzpicture

Figure 3.1.1 Tangent line

Figure 3.1.1 on the right shows the tangent line to a curve \(y = f(x)\) at a point \(P\). If you were to look at the curve near \(P\) with a microscope, it would look almost identical to its tangent line through \(P\). Why is this line—of all possible lines through \(P\)—such a good approximation of the curve near \(P\)? It is because at the point \(P\) the tangent line and the curve both have the same rate of change, namely, \(f'(a)\). So the curve’s values and the line’s values change by roughly the same amount slightly away from \(P\) (where the line and curve have the same value), making their values nearly equal.

Example 3.1

tikzpicture[every node/.style=font=] [black!60,line width=1pt,-latex] (-1.5,0) -- (2.6,0) node [right] x; [black!60,line width=1pt,-latex] (0,-1.3) -- (0,3) node [above] y; [black!60] (1,0.09) -- (1,-0.09) node[black,below] 1; [black!60] (0.09,1) -- (-0.09,1) node[black,left] 1; [black!60] (0.09,-1) -- (-0.09,-1) node[black,left] -1; [below left] at (0,0) 0; [linecolor,line width=1.5pt] (-1,1) parabola bend (0,0) (1.7,2.89); [red,line width=0.6pt] (0,-1) -- (1.6,2.2); (1,1) circle (2.5pt); [above left] at (1,1) (1,1); [right] at (1.7,2.89) y = x^2; [below right] at (1.2,1.4) y = 2x - 1; tikzpicture

Figure 3.1.2

Find the tangent line to the curve \(y = x^2\) at \(x = 1\).

Solution: By formula (3.1), the equation of the tangent line is

\[y ~-~ f(a) ~=~ f'(a) \cdot (x - a)\]

with \(a = 1\) and \(f(x) = x^2\). So \(f(a) = f(1) = 1^2 = 1\). Both the curve \(y = x^2\) and the tangent line pass through the point \((1, f(1)) = (1,1)\). The derivative of \(f(x) = x^2\) is \(f'(x) = 2x\), so \(f'(a) = f'(1) = 2(1) = 2\), which is the slope of the tangent line at \((1,1)\). Hence, the equation of the tangent line is \(y - 1 = 2(x - 1)\), or (in slope-intercept form) \(y = 2x - 1\).

The curve and tangent line are shown in Figure 3.1.2. Near the point \((1,1)\) the curve and tangent line are close together, but the separation grows farther from that point, especially in the negative \(x\) direction.


[r]tikzpicture[every node/.style=font=] [linecolor,line width=1.5pt] (0,0) circle (0.707); [red,line width=0.6pt] (0,1) -- (1,0); (0.5,0.5) circle (2.2pt); tikzpicture In trigonometry you probably learned about tangent lines to circles, where a tangent line is defined as the unique line that touches the circle at only one point, as in the figure on the right. In this case the tangent line is always on one side of the circle, namely, the exterior of the circle; it does not cut through the interior of the circle. In fact, that definition is a special case of the calculus definition. In general, though, the tangent line to any other type of curve will not necessarily be on only one side of the curve, as it was in Example 3.1.

Example 3.2

tikzpicture[every node/.style=font=] [black!60,line width=1pt,-latex] (-2,0) -- (2,0) node [right] x; [black!60,line width=1pt,-latex] (0,-1.3) -- (0,1.3) node [above] y; [linecolor,line width=1.5pt] (0,0) parabola (1.7,1.1); [linecolor,line width=1.5pt] (-1.7,-1.1) parabola[bend at end] (0,0); [red,line width=0.6pt] (-1.5,0) -- (1.5,0); (0,0) circle (2.5pt); [below right] at (0,0) (0,0); [above left] at (1.7,1.1) y = x^3; [above] at (-1,0) y = 0; tikzpicture

Figure 3.1.3

Find the tangent line to the curve \(y = x^3\) at \(x = 0\).

Solution: Use formula (3.1) with \(a = 0\) and \(f(x) = x^3\). Then \(f(a) = f(0) = 0^3 = 0\). The derivative of \(f(x) = x^3\) is \(f'(x) = 3x^2\), so \(f'(a) = f'(0) = 3(0)^2 = 0\). Hence, the equation of the tangent line is \({y - 0 = 0(x - 0)}\), which is \(y = 0\). In other words, the tangent line is the \(x\)-axis itself.

As shown in Figure 3.1.3, the tangent line cuts through the curve. In general it is possible for a tangent line to intersect the curve at more than one point, depending on the function.

Example 3.3

tikzpicture[every node/.style=font=] scope[color=linecolor,line width=1.5pt,x=4cm/360] [black!60,line width=1pt,-latex] (-210,0) -- (210,0) node[right] x; [black!60,line width=1pt,-latex] (0,-1.2) -- (0,1.2) node[above] y; -180,-175,...,180 sin( ) stroke [red,line width=0.6pt] (45,1) -- (-45,-1); [black] (0,0) circle (2.5pt); [black,above right] at (90,1) y = \,x; [black,above] at (45,1) y = x; [black,below right] at (0,0) (0,0); scope tikzpicture

Figure 3.1.4

Find the tangent line to the curve \(y = \sin\,x\) at \(x = 0\).

Solution: Use formula (3.1) with \(a = 0\) and \(f(x) = \sin\,x\). Then \(f(a) = f(0) = \sin\,0 = 0\). The derivative of \(f(x) = \sin\,x\) is \(f'(x) = \cos\,x\), so \(f'(a) = f'(0) = \cos\,0 = 1\). Hence, the equation of the tangent line is \({y - 0 = 1(x - 0)}\), which is \(y = x\), as in Figure 3.1.4. Near \(x = 0\), the tangent line \(y = x\) is close to the line \(y = \sin\,x\), which was shown in Section 1.3 (namely, \(\sin\,\dx = \dx\), so that \(\sin\,x \approx x\) for \(x \ll 1\)).


There are several important things to note about tangent lines:


As a point moves along a smooth curve, the corresponding tangent lines to the curve make varying angles with the positive \(x\)-axis—the angle is thus a function of \(x\). Let \(\phi = \phi(x)\) be the smallest angle that the tangent line \(L\) to a curve \(y = f(x)\) makes with the positive \(x\)-axis, so that \(-90\Degrees < \phi(x) <90\Degrees\) for all \(x\) (see Figure 3.1.7).

tikzpicture[>=latex, every node/.style=font=] [->,shift=(2.246,0.55)] (0:1.3) arc (0:36.1:1.3); [black!60,line width=1pt,-latex] (-7.0,0.55) -- (6,0.55) node [right] x; [black!60] (-5,0.55) -- (-5,0.45) node [below] x_1; [black!60] (0,0.55) -- (0,0.45) node [below] x_2; [black!60] (3,0.55) -- (3,0.45) node [below] x_3; [black!60,line width=1pt,-latex] (-6.5,-0.74) -- (-6.5,1.3) node [above] y; [linecolor,line width=1.5pt] (-5.5,1.5) parabola[bend at end] (0,0); [linecolor,line width=1.5pt] (0,0) parabola (3.5,1.5); [->,shift=(-3.61,0.55)] (-0.5:2.23) arc (-0.5:-26.37:2.23); [left] at (3.0,1.5) y = f(x); [red,line width=0.6pt] (-1.05,0) -- (1.45,0); (0,0) circle (2.5pt); [below] at (1.45,0) L; [below] at (0.3,0) (x_2)=0 ; [red,line width=0.6pt] (3.5,1.46) -- (2,0.37); (3.0,1.1) circle (2.5pt); [below right] at (2,0.37) L; at (3.05,0.75) (x_3); [red,line width=0.6pt] (-5.5,1.487) -- (-1.0,-0.744); (-5,1.24) circle (2.5pt); [below left] at (-1.0,-0.744) L; at (-1.9,0) (x_1); tikzpicture

Figure 3.1.7The angle \(\phi(x)\) between the tangent line and positive \(x\)-axis

[r]tikzpicture[every node/.style=font=] (0:1.25) arc (0:26.5:1.25); [black!60] (0,0) -- (2,0) node[midway,below] run -- (2,1) node[midway,right] rise; [red,line width=0.6pt] (0,0) -- (2,1) node[black,pos=0.8,above left] L; [right] at (0.38,0.17) (x); [black!60] (1.8,0) -- (1.8,0.2) -- (2,0.2); tikzpicture As Figure 3.1.7 shows, \(-90\Degrees < \phi(x) < 0\Degrees\) when the tangent line \(L\) has negative slope, \(0\Degrees < \phi(x) < 90\Degrees\) when \(L\) has positive slope, and \(\phi(x)=0\Degrees\) when \(L\) is horizontal (i.e. has zero slope). The slope of a line is usually defined as the rise divided by the run in a right triangle, as shown in the figure on the right. The figure shows as well that by definition of the tangent of an angle, \(\tan\,\phi(x)\) also equals the rise (opposite) over run (adjacent). Thus, since the slope of \(L\) is \(f'(x)\), this means that \(\tan\,\phi(x) = f'(x)\). In other words:

Theorem 3.1

The tangent line to a curve \(y=f(x)\) makes an angle \(\phi(x)\) with the positive \(x\)-axis, given by

\begin{equation} \phi(x) ~=~ \tan^{-1} f'(x) ~. \tag{3.2}\end{equation}

Example 3.4

[r]tikzpicture[>=latex,every node/.style=font=,domain=-1.9:0.3] [->,black!60,line width=1pt] (0,0) -- (0,2) node[pos=1.0,above] y; [->,shift=(-1,0)] (0:1.05) arc (0:36.1:1.05); [->,black!60,line width=1pt] (-2,0) -- (1.2,0) node[pos=1.0,right] x; [linecolor,line width=1.5pt] plot ( ,exp(2.0* )); [above right] at (0.3,1.8) y = e^2x; (-0.5,0.3679) circle (2.5pt); [above left] at (-0.5,0.3679) (- 12, 1e ); [red,line width=0.6pt] (-1,0) -- (0.5,1.104); [right] at (0.5,1.104) L; at (-0.23,0.2) ; tikzpicture Find the angle \(\phi\) that the tangent line to the curve \(y=e^{2x}\) at \(x = -\frac{1}{2}\) makes with the positive \(x\)-axis, such that \(-90\Degrees < \phi < 90\Degrees\).

Solution: The angle is \(\phi = \phi(-1/2) = \tan^{-1} f`(-1/2)\), where \(f(x) = e^{2x}\). Since \(f'(x) = 2e^{2x}\), then

\[ \phi ~=~ \phi(-1/2) ~=~ \tan^{-1} f`(-1/2) ~=~ \tan^{-1} 2e^{-1} ~=~ \tan^{-1} 0.7358 ~=~ 36.3\Degrees ~. \]

The figure on the right shows the tangent line \(L\) to the curve at \(x = -\frac{1}{2}\) and the angle \(\phi\).


tikzpicture[>=latex,every node/.style=font=] [<->,black!60,line width=1pt] (-0.5,2.3) node[above] y |- (4,0) node[right] x; [linecolor,line width=1.5pt] (0.1,0.1) .. controls (2,3) and (3.5,0) .. (3.7,2) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.05](A) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.22](B) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.70](C) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.80](s) node[inner sep=0pt,outer sep=0pt,shape=coordinate,pos=0.92](D) ; [below] at (1.22,1) P; [below] at (3.45,1.28) y=f(x); [black!60,shift=(B),rotate=22] (0.2,0) -- (0.2,0.2) -- (0,0.2); [red,line width=0.6pt] (B) -- +(22:1.7) -- +(202:1.3) node[right,black,pos=0] L; [green!80,line width=0.6pt] (B) -- +(112:1.13) -- +(292:1.1) node[above,black,pos=0] N; (B) circle (2.5pt); [above,align=left] at (0.25,1.35) normal\ ; [black!60] (1.26,-0.09) -- (1.26,0.09); [below] at (1.26,-0.09) a; [above,align=left] at (2.76,1.8) tangent\ ; tikzpicture

Figure 3.1.8 Normal line \(N\)

You learned about perpendicular lines in elementary geometry. Figure 3.1.8 shows the natural way to define how a line \(N\) can be perpendicular to a curve \(y=f(x)\) at a point \(P\) on the curve: the line is perpendicular to the tangent line of the curve at \(P\). Call this line \(N\) the normal line to the curve at \(P\). Since \(N\) and \(L\) are perpendicular, their slopes are negative reciprocals of each other (provided neither slope is 0). The equation of the normal line follows easily:

Theorem 3.2

The equation of the normal line to a curve \(y=f(x)\) at a point \(P=(a,f(a))\) is

\begin{equation} y ~-~ f(a) ~=~ -\frac{1}{f'(a)} \cdot (x ~-~ a) \quad\text{if $f'(a) \ne 0$.} \tag{3.3}\end{equation}

If \(f'(a) = 0\), then the normal line is vertical and is given by \(x = a\).

Example 3.5

Find the normal line to the curve \(y = x^2\) at \(x = 1\). (Note: This is the curve from Example 3.1.)

Solution: The equation of the normal line is

\[y ~-~ f(a) ~=~ -\frac{1}{f'(a)} \cdot (x - a)\]

with \(a = 1\), \(f(x) = x^2\), and \(f'(x) = 2x\). So \(f(a) = 1\) and \(f'(a) = 2\). Hence, the equation of the normal line is \(y - 1 = -\frac{1}{2}(x - 1)\), or (in slope-intercept form) \(y = -\frac{1}{2}x + \frac{3}{2}\).


Exercises

A

For Exercises 1-12, find the equation of the tangent line to the curve \(y = f(x)\) at \(x = a\).

3

  1. \(f(x) ~=~ x^2 ~+~ 1\); at \(x = 2\)

  2. \(f(x) ~=~ x^2 ~-~ 1\); at \(x = 2\)

  3. \(f(x) ~=~ -x^2 ~+~ 1\); at \(x = 3\)

    3

  4. \(f(x) ~=~ 1\); at \(x = -1\)

  5. \(f(x) ~=~ 4x\); at \(x = 1\)

  6. \(f(x) ~=~ e^x\); at \(x = 0\)

    3

  7. \(f(x) ~=~ x^2 ~-~ 3x ~+~ 7\); at \(x = 2\vphantom{\dfrac{x ~+~ 1}{x ~-~ 1}}\)

  8. \(f(x) ~=~ \dfrac{x ~+~ 1}{x ~-~ 1}\); at \(x = 0\)

  9. \(f(x) ~=~ (x^3 ~+~ 2x ~-~ 1)^3\); at \(x = -1\vphantom{\dfrac{x ~+~ 1}{x ~-~ 1}}\)

    3

  10. \(f(x) ~=~ \tan\,x\); at \(x = 0\)

  11. \(f(x) ~=~ \sin\,2x\); at \(x = 0\)

  12. \(f(x) ~=~ \sqrt{1 ~-~ x^2}\); at \(x = 1/\sqrt{2}\)

  13. Find the equations of the tangent lines to the curve \(y = x^3 - 2x^2 + 4x + 1\) which are parallel to the line \(y = 3x - 5\).

  14. Draw an example of a curve having a tangent line that intersects the curve at more than one point.

For Exercises 15-17, find the angle \(\phi\) that the tangent line to the curve \(y=f(x)\) at \(x=a\) makes with the positive \(x\)-axis, such that \(-90\Degrees < \phi < 90\Degrees\).

3

  1. \(f(x) ~=~ x^2\); at \(x = 2\)

  2. \(f(x) ~=~ \cos\,2x\); at \(x = \pi/6\)

  3. \(f(x) ~=~ x^2 ~+~ 2x ~-~ 3\); at \(x = -1\)

  4. Show that if \(\phi(x)\) is the angle that the tangent line to a curve \(y = f(x)\) makes with the positive \(x\)-axis such that \(0\Degrees \le \phi(x) < 180\Degrees\), then

    \[ \phi(x) ~=~ \begin{cases} ~\cos^{-1} \left(\dfrac{1}{\sqrt{1 ~+~ (f'(x))^2}}\right) & \text{when $f'(x) \ge 0$}\\[12pt] ~\cos^{-1} \left(\dfrac{-1}{\sqrt{1 ~+~ (f'(x))^2}}\right) & \text{when $f'(x) < 0$.} \end{cases} \]

    (Hint: Draw a right triangle.)

For Exercises 19-21, find the angle \(\phi\) that the tangent line to the curve \(y=f(x)\) at \(x=a\) makes with the positive \(x\)-axis, such that \(0\Degrees \le \phi < 180\Degrees\).

3

  1. \(f(x) ~=~ x^2\); at \(x = -1\)

  2. \(f(x) ~=~ e^{-x}\); at \(x = 1\)

  3. \(f(x) ~=~ \ln 2x\); at \(x = 10\)

For Exercises 22-24, find the equation of the normal line to the curve \(y = f(x)\) at \(x = a\).

3

  1. \(f(x) ~=~ \sqrt{x}\); at \(x = 4\)

  2. \(f(x) ~=~ x^2 ~+~ 1\); at \(x = 2\)

  3. \(f(x) ~=~ x^2 ~-~ 7x ~+~ 4\); at \(x = 3\)

  4. Find the equations of the normal lines to the curve \(y = x^3 - 2x^2 - 11x + 3\) which have a slope of \(-\frac{1}{4}\).

B

  1. Show that the area of the triangle formed by the \(x\)-axis, the \(y\)-axis, and the tangent line to the curve \(y = 1/x\) at any point \(P\) is constant (i.e. the area is the same for all \(P\)).

  2. For a constant \(a > 0\), let \(P\) be a point on the curve \(y = ax^2\), and let \(Q\) be the point where the tangent line to the curve at \(P\) intersects the \(y\)-axis. Show that the \(x\)-axis bisects the line segment \(\overline{PQ}\).

  3. Let \(P\) be a point on the curve \(y = 1/x\) in the first quadrant, and let \(Q\) be the point where the tangent line to the curve at \(P\) intersects the \(x\)-axis. Show that the triangle \(\Delta\,POQ\) is isosceles, where \(O\) is the origin.