Newton's method is one example of the usefulness of the tangent line as an approximation to a curve. Here we explore another such application.

Recall that the tangent line to $f(x)$ at a point $x=a$ is given by
$L(x) = f'(a) (x-a) + f(a)$. The tangent line in this context is also
called the **linear approximation**
to $f$ at $a$.

If $f$ is differentiable at $a$ then $L$ is a good approximation of $f$ so long as $x$ is "not too far'' from $a$. Put another way, if $f$ is differentiable at $a$ then under a microscope $f$ will look very much like a straight line. Figure 6.4.1 shows a tangent line to $\ds y=x^2$ at three different magnifications.

If we want to approximate $f(b)$, because computing it exactly is difficult, we can approximate the value using a linear approximation, provided that we can compute the tangent line at some $a$ close to $b$.

Example 6.4.1 Let $\ds f(x)=\sqrt{x+4}$. Then $\ds f'(x)=1/(2\sqrt{x+4})$. The linear approximation to $f$ at $x=5$ is $\ds L(x)=1/(2\sqrt{5+4})(x-5)+\sqrt{5+4}=(x-5)/6+3$. As an immediate application we can approximate square roots of numbers near 9 by hand. To estimate $\ds\sqrt{10}$, we substitute 6 into the linear approximation instead of into $f(x)$, so $\ds \sqrt{6+4}\approx (6-5)/6+3 = 19/6\approx 3.1\overline{6}$. This rounds to $3.17$ while the square root of 10 is actually $3.16$ to two decimal places, so this estimate is only accurate to one decimal place. This is not too surprising, as 10 is really not very close to 9; on the other hand, for many calculations, $3.2$ would be accurate enough.

With modern calculators and computing software it may not appear necessary to use linear approximations. But in fact they are quite useful. In cases requiring an explicit numerical approximation, they allow us to get a quick rough estimate which can be used as a "reality check'' on a more complex calculation. In some complex calculations involving functions, the linear approximation makes an otherwise intractable calculation possible, without serious loss of accuracy.

Example 6.4.2 Consider the trigonometric function $\sin x$. Its linear approximation at $x=0$ is simply $L(x)=x$. When $x$ is small this is quite a good approximation and is used frequently by engineers and scientists to simplify some calculations.

Definition 6.4.3 Let $y=f(x)$ be a differentiable function. We define a new independent variable $dx$, and a new dependent variable $dy=f'(x)\,dx$. Notice that $dy$ is a function both of $x$ (since $f'(x)$ is a function of $x$) and of $dx$. We say that $dx$ and $dy$ are \dfont{differentials}.

Let $\Delta x =x-a$ and $\Delta y= f(x)-f(a)$. If $x$ is near $a$ then $\Delta x$ is small. If we set $dx=\Delta x$ then $$dy = f'(a)\,dx \approx {\Delta y\over\Delta x}\Delta x = \Delta y.$$ Thus, $dy$ can be used to approximate $\Delta y$, the actual change in the function $f$ between $a$ and $x$. This is exactly the approximation given by the tangent line: $$dy = f'(a)(x-a) = f'(a)(x-a)+f(a)-f(a)=L(x)-f(a).$$ While $L(x)$ approximates $f(x)$, $dy$ approximates how $f(x)$ has changed from $f(a)$. Figure 6.4.2 illustrates the relationships.

## Exercises 6.4

**Ex 6.4.1**
Let $\ds f(x) = x^4$. If $a=1$ and $dx= \Delta x =1/2$,
what are $\Delta y$ and $dy$?
(answer)

**Ex 6.4.2**
Let $\ds f(x) = \sqrt{x}$. If $a=1$ and $dx= \Delta x
=1/10$, what are $\Delta y$ and $dy$?
(answer)

**Ex 6.4.3**
Let $f(x) = \sin (2x)$. If $a=\pi$ and $dx= \Delta x
=\pi/100$, what are $\Delta y$ and $dy$?
(answer)

**Ex 6.4.4**
Use differentials to estimate the amount of paint needed to
apply a coat of paint 0.02 cm thick to a sphere with diameter $40$
meters. (Recall that the volume of a sphere of radius $r$ is $V
=(4/3)\pi r^3$. Notice that you are given that $dr=0.02$.)
(answer)

**Ex 6.4.5**
Show in detail that the linear approximation of
$\sin x$ at $x=0$ is $L(x)=x$ and the linear approximation of $\cos x$
at $x=0$ is $L(x)=1$.