maths.freeCalculus › 4. Applications of Derivatives › Linear Approximations and Differentials

Linear Approximations and Differentials

Describe the linear approximation to a function at a point.

Linear Approximation of a Function at a Point

Consider a function \(f\) that is differentiable at a point \(x=a.\) Recall that the tangent line to the graph of \(f\) at \(a\) is given by the equation

\[y=f(a)+f'(a)(x-a).\]

For example, consider the function \(f(x)=\frac{1}{x}\) at \(a=2.\) Since \(f\) is differentiable at \(x=2\) and \(f'(x)=-\frac{1}{{x}^{2}},\) we see that \(f'(2)=-\frac{1}{4}.\) Therefore, the tangent line to the graph of \(f\) at \(a=2\) is given by the equation

\[y=\frac{1}{2}-\frac{1}{4}(x-2).\]

(a) shows a graph of \(f(x)=\frac{1}{x}\) along with the tangent line to \(f\) at \(x=2.\) Note that for \(x\) near 2, the graph of the tangent line is close to the graph of \(f.\) As a result, we can use the equation of the tangent line to approximate \(f(x)\) for \(x\) near 2. For example, if \(x=2.1,\) the \(y\) value of the corresponding point on the tangent line is

\[y=\frac{1}{2}-\frac{1}{4}(2.1-2)=0.475.\]

The actual value of \(f(2.1)\) is given by

\[f(2.1)=\frac{1}{2.1}\approx 0.47619.\]

Therefore, the tangent line gives us a fairly good approximation of \(f(2.1)\) ((b)). However, note that for values of \(x\) far from 2, the equation of the tangent line does not give us a good approximation. For example, if \(x=10,\) the \(y\)-value of the corresponding point on the tangent line is

\[y=\frac{1}{2}-\frac{1}{4}(10-2)=\frac{1}{2}-2=-1.5,\]

whereas the value of the function at \(x=10\) is \(f(10)=0.1.\)

In general, for a differentiable function \(f,\) the equation of the tangent line to \(f\) at \(x=a\) can be used to approximate \(f(x)\) for \(x\) near \(a.\) Therefore, we can write

\[f(x)\approx f(a)+f'(a)(x-a)\ \text{for}\ x\ \text{near}\ a.\]\[L(x)=f(a)+f'(a)(x-a)\]
Example

Try it.

Find the linear approximation of \(f(x)=\sqrt{x}\) at \(x=9\) and use the approximation to estimate \(\sqrt{9.1}.\)

Solution

Since we are looking for the linear approximation at \(x=9,\) using we know the linear approximation is given by

\[L(x)=f(9)+f'(9)(x-9).\]

We need to find \(f(9)\) and \(f'(9).\)

\[\begin{array}{lll}f(x)=\sqrt{x} & ⇒ & f(9)=\sqrt{9}=3 \\ f'(x)=\frac{1}{2\sqrt{x}} & ⇒ & f'(9)=\frac{1}{2\sqrt{9}}=\frac{1}{6}\end{array}\]

Therefore, the linear approximation is given by .

\[L(x)=3+\frac{1}{6}(x-9)\]

Using the linear approximation, we can estimate \(\sqrt{9.1}\) by writing

\[\sqrt{9.1}=f(9.1)\approx L(9.1)=3+\frac{1}{6}(9.1-9)\approx 3.0167.\]

Condensed — the full section is in OpenStax Calculus Volume 1.

Differentials

We have seen that linear approximations can be used to estimate function values. They can also be used to estimate the amount a function value changes as a result of a small change in the input. To discuss this more formally, we define a related concept: differentials. Differentials provide us with a way of estimating the amount a function changes as a result of a small change in input values.

When we first looked at derivatives, we used the Leibniz notation \(dy\text{/}dx\) to represent the derivative of \(y\) with respect to \(x.\) Although we used the expressions dy and dx in this notation, they did not have meaning on their own. Here we see a meaning to the expressions dy and dx. Suppose \(y=f(x)\) is a differentiable function. Let dx be an independent variable that can be assigned any nonzero real number, and define the dependent variable \(dy\) by

\[dy=f'(x)dx.\]

It is important to notice that \(dy\) is a function of both \(x\) and \(dx.\) The expressions dy and dx are called differentials. We can divide both sides of by \(dx,\) which yields

\[\frac{dy}{dx}=f'(x).\]

This is the familiar expression we have used to denote a derivative. is known as the differential form of .

Example

Try it.

For each of the following functions, find dy and evaluate when \(x=3\) and \(dx=0.1.\)

  1. \(y={x}^{2}+2x\)
  2. \(y=\text{cos}\ x\)
Solution

The key step is calculating the derivative. When we have that, we can obtain dy directly.

  1. Since \(f(x)={x}^{2}+2x,\) we know \(f'(x)=2x+2,\) and therefore
    \[dy=(2x+2)dx.\]
    When \(x=3\) and \(dx=0.1,\)
    \[dy=(2\cdot 3+2)(0.1)=0.8.\]
  2. Since \(f(x)=\text{cos}\ x,\) \(f'(x)=\text{-}\text{sin}(x).\) This gives us
    \[dy=\text{-}\text{sin}\ x\ dx.\]
    When \(x=3\) and \(dx=0.1,\)
    \[dy=\text{-}\text{sin}(3)(0.1)=-0.1\ \text{sin}(3).\]

We now connect differentials to linear approximations. Differentials can be used to estimate the change in the value of a function resulting from a small change in input values. Consider a function \(f\) that is differentiable at point \(a.\) Suppose the input \(x\) changes by a small amount. We are interested in how much the output \(y\) changes. If \(x\) changes from \(a\) to \(a+dx,\) then the change in \(x\) is \(dx\) (also denoted \(\text{\Delta }x),\) and the change in \(y\) is given by

\[\text{\Delta }y=f(a+dx)-f(a).\]

Instead of calculating the exact change in \(y,\) however, it is often easier to approximate the change in \(y\) by using a linear approximation. For \(x\) near \(a,\) \(f(x)\) can be approximated by the linear approximation

\[L(x)=f(a)+f'(a)(x-a).\]

Therefore, if \(dx\) is small,

\[f(a+dx)\approx L(a+dx)=f(a)+f'(a)(a+dx-a).\]\[f(a+dx)-f(a)\approx L(a+dx)-f(a)=f'(a)dx.\]\[\text{\Delta }y=f(a+dx)-f(a)\approx L(a+dx)-f(a)=f'(a)dx=dy.\]

Condensed — the full section is in OpenStax Calculus Volume 1.

Calculating the Amount of Error

Any type of measurement is prone to a certain amount of error. In many applications, certain quantities are calculated based on measurements. For example, the area of a circle is calculated by measuring the radius of the circle. An error in the measurement of the radius leads to an error in the computed value of the area. Here we examine this type of error and study how differentials can be used to estimate the error.

Consider a function \(f\) with an input that is a measured quantity. Suppose the exact value of the measured quantity is \(a,\) but the measured value is \(a+dx.\) We say the measurement error is dx (or \(\text{\Delta }x).\) As a result, an error occurs in the calculated quantity \(f(x).\) This type of error is known as a propagated error and is given by

\[\text{\Delta }y=f(a+dx)-f(a).\]

Since all measurements are prone to some degree of error, we do not know the exact value of a measured quantity, so we cannot calculate the propagated error exactly. However, given an estimate of the accuracy of a measurement, we can use differentials to approximate the propagated error \(\text{\Delta }y.\) Specifically, if \(f\) is a differentiable function at \(a,\) the propagated error is

\[\text{\Delta }y\approx dy=f'(a)dx.\]

Unfortunately, we do not know the exact value \(a.\) However, we can use the measured value \(a+dx,\) and estimate

\[\text{\Delta }y\approx dy\approx f'(a+dx)dx.\]

In the next example, we look at how differentials can be used to estimate the error in calculating the volume of a box if we assume the measurement of the side length is made with a certain amount of accuracy.

Condensed — the full section is in OpenStax Calculus Volume 1.

Key Concepts

  • A differentiable function \(y=f(x)\) can be approximated at \(a\) by the linear function
    \[L(x)=f(a)+f'(a)(x-a).\]
  • For a function \(y=f(x),\) if \(x\) changes from \(a\) to \(a+dx,\) then
    \[dy=f'(x)dx\]
    is an approximation for the change in \(y.\) The actual change in \(y\) is
    \[\text{\Delta }y=f(a+dx)-f(a).\]
  • A measurement error \(dx\) can lead to an error in a calculated quantity \(f(x).\) The error in the calculated quantity is known as the propagated error. The propagated error can be estimated by
    \[dy\approx f'(x)dx.\]
  • To estimate the relative error of a particular quantity \(q,\) we estimate \(\frac{\text{\Delta }q}{q}.\)

Linear Approximations and Differentials

For the following exercises, find the linear approximation \(L(x)\) to \(y=f(x)\) near \(x=a\) for the function.

For the following exercises, compute the values given within 0.01 by deciding on the appropriate \(f(x)\) and \(a,\) and evaluating \(L(x)=f(a)+{f}^{'}(a)(x-a).\) Check your answer using a calculator.

For the following exercises, determine the appropriate \(f(x)\) and \(a,\) and evaluate \(L(x)=f(a)+{f}^{'}(a)(x-a).\) Calculate the numerical error in the linear approximations that follow.

For the following exercises, find the differential of the function.

For the following exercises, find the differential and evaluate for the given \(x\) and \(dx.\)

For the following exercises, find the change in volume \(dV\) or in surface area \(dA.\)

For the following exercises, confirm the approximations by using the linear approximation at \(x=0.\)

Practice (40)

Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.

  1. Find the linear approximation of \(f(x)=\sqrt{x}\) at \(x=9\) and use the approximation to estimate \(\sqrt{9.1}.\)

    i

    Since we are looking for the linear approximation at \(x=9,\) using we know the linear approximation is given by

    \[L(x)=f(9)+f'(9)(x-9).\]

    We need to find \(f(9)\) and \(f'(9).\)

    \[\begin{array}{lll}f(x)=\sqrt{x} & ⇒ & f(9)=\sqrt{9}=3 \\ f'(x)=\frac{1}{2\sqrt{x}} & ⇒ & f'(9)=\frac{1}{2\sqrt{9}}=\frac{1}{6}\end{array}\]

    Therefore, the linear approximation is given by .

    \[L(x)=3+\frac{1}{6}(x-9)\]

    Using the linear approximation, we can estimate \(\sqrt{9.1}\) by writing

    \[\sqrt{9.1}=f(9.1)\approx L(9.1)=3+\frac{1}{6}(9.1-9)\approx 3.0167.\]
  2. Find the local linear approximation to \(f(x)=\sqrt[3]{x}\) at \(x=8.\) Use it to approximate \(\sqrt[3]{8.1}\) to five decimal places.

    i

    \(L(x)=2+\frac{1}{12}(x-8);\) 2.00833

  3. Find the linear approximation of \(f(x)=\text{sin}\ x\) at \(x=\frac{\pi }{3}\) and use it to approximate \(\text{sin}(62\text{^{\circ}}).\)

    i

    First we note that since \(\frac{\pi }{3}\) rad is equivalent to \(60\text{^{\circ}},\) using the linear approximation at \(x=\pi \text{/}3\) seems reasonable. The linear approximation is given by

    \[L(x)=f(\frac{\pi }{3})+f'(\frac{\pi }{3})(x-\frac{\pi }{3}).\]

    We see that

    \[\begin{array}{lll}f(x)=\text{sin}\ x & ⇒ & f(\frac{\pi }{3})=\text{sin}(\frac{\pi }{3})=\frac{\sqrt{3}}{2} \\ f'(x)=\text{cos}\ x & ⇒ & f'(\frac{\pi }{3})=\text{cos}(\frac{\pi }{3})=\frac{1}{2}\end{array}\]

    Therefore, the linear approximation of \(f\) at \(x=\pi \text{/}3\) is given by .

    \[L(x)=\frac{\sqrt{3}}{2}+\frac{1}{2}(x-\frac{\pi }{3})\]

    To estimate \(\text{sin}(62\text{^{\circ}})\) using \(L,\) we must first convert \(62\text{^{\circ}}\) to radians. We have \(62\text{^{\circ}}=\frac{62\pi }{180}\) radians, so the estimate for \(\text{sin}(62\text{^{\circ}})\) is given by

    \[\text{sin}(62\text{^{\circ}})=f(\frac{62\pi }{180})\approx L(\frac{62\pi }{180})=\frac{\sqrt{3}}{2}+\frac{1}{2}(\frac{62\pi }{180}-\frac{\pi }{3})=\frac{\sqrt{3}}{2}+\frac{1}{2}(\frac{2\pi }{180})=\frac{\sqrt{3}}{2}+\frac{\pi }{180}\approx 0.88348.\]
  4. Find the linear approximation for \(f(x)=\text{cos}\ x\) at \(x=\frac{\pi }{2}.\)

    i

    \(L(x)=\text{-}x+\frac{\pi }{2}\)

  5. Find the linear approximation of \(f(x)={(1+x)}^{n}\) at \(x=0.\) Use this approximation to estimate \({(1.01)}^{3}.\)

    i

    The linear approximation at \(x=0\) is given by

    \[L(x)=f(0)+f'(0)(x-0).\]

    Because

    \[\begin{array}{lll}f(x)={(1+x)}^{n} & ⇒ & f(0)=1 \\ f'(x)=n{(1+x)}^{n-1} & ⇒ & f'(0)=n,\end{array}\]

    the linear approximation is given by (a).

    \[L(x)=1+n(x-0)=1+nx\]

    We can approximate \({(1.01)}^{3}\) by evaluating \(L(0.01)\) when \(n=3.\) We conclude that

    \[{(1.01)}^{3}=f(1.01)\approx L(0.01)=1+3(0.01)=1.03.\]
  6. Find the linear approximation of \(f(x)={(1+x)}^{4}\) at \(x=0\) without using the result from the preceding example.

    i

    \(L(x)=1+4x\)

  7. For each of the following functions, find dy and evaluate when \(x=3\) and \(dx=0.1.\)

    1. \(y={x}^{2}+2x\)
    2. \(y=\text{cos}\ x\)
    i

    The key step is calculating the derivative. When we have that, we can obtain dy directly.

    1. Since \(f(x)={x}^{2}+2x,\) we know \(f'(x)=2x+2,\) and therefore
      \[dy=(2x+2)dx.\]
      When \(x=3\) and \(dx=0.1,\)
      \[dy=(2\cdot 3+2)(0.1)=0.8.\]
    2. Since \(f(x)=\text{cos}\ x,\) \(f'(x)=\text{-}\text{sin}(x).\) This gives us
      \[dy=\text{-}\text{sin}\ x\ dx.\]
      When \(x=3\) and \(dx=0.1,\)
      \[dy=\text{-}\text{sin}(3)(0.1)=-0.1\ \text{sin}(3).\]
  8. For \(y={e}^{{x}^{2}},\) find \(dy.\)

    i

    \(dy=2x{e}^{{x}^{2}}dx\)

  9. Let \(y={x}^{2}+2x.\) Compute \(\text{\Delta }y\) and dy at \(x=3\) if \(dx=0.1.\)

    i

    The actual change in \(y\) if \(x\) changes from \(x=3\) to \(x=3.1\) is given by

    \[\text{\Delta }y=f(3.1)-f(3)=[{(3.1)}^{2}+2(3.1)]-[{3}^{2}+2(3)]=0.81.\]

    The approximate change in \(y\) is given by \(dy=f'(3)dx.\) Since \(f'(x)=2x+2,\) we have

    \[dy=f'(3)dx=(2(3)+2)(0.1)=0.8.\]
  10. For \(y={x}^{2}+2x,\) find \(\text{\Delta }y\) and \(dy\) at \(x=3\) if \(dx=0.2.\)

    i

    \(dy=1.6,\) \(\text{\Delta }y=1.64\)

  11. Suppose the side length of a cube is measured to be 5 cm with an accuracy of 0.1 cm.

    1. Use differentials to estimate the error in the computed volume of the cube.
    2. Compute the volume of the cube if the side length is (i) 4.9 cm and (ii) 5.1 cm to compare the estimated error with the actual potential error.
    i
    1. The measurement of the side length is accurate to within \(\text{\pm }0.1\) cm. Therefore,
      \[-0.1\le dx\le 0.1.\]
      The volume of a cube is given by \(V={x}^{3},\) which leads to
      \[dV=3{x}^{2}dx.\]
      Using the measured side length of 5 cm, we can estimate that
      \[-3{(5)}^{2}(0.1)\le dV\le 3{(5)}^{2}(0.1).\]
      Therefore,
      \[-7.5\le dV\le 7.5.\]
    2. If the side length is actually 4.9 cm, then the volume of the cube is
      \[V(4.9)={(4.9)}^{3}=117.649{\ \text{cm}}^{3}.\]
      If the side length is actually 5.1 cm, then the volume of the cube is
      \[V(5.1)={(5.1)}^{3}=132.651{\ \text{cm}}^{3}.\]
      Therefore, the actual volume of the cube is between 117.649 and 132.651. Since the side length is measured to be 5 cm, the computed volume is \(V(5)={5}^{3}=125.\) Therefore, the error in the computed volume is
      \[117.649-125\le \text{\Delta }V\le 132.651-125.\]
      That is,
      \[-7.351\le \text{\Delta }V\le 7.651.\]
      We see the estimated error \(dV\) is relatively close to the actual potential error in the computed volume.
  12. Estimate the error in the computed volume of a cube if the side length is measured to be 6 cm with an accuracy of 0.2 cm.

    i

    The volume measurement is accurate to within \(21.6{\ \text{cm}}^{3}.\)

  13. An astronaut using a camera measures the radius of Earth as 4000 mi with an error of \(\text{\pm }80\) mi. Let’s use differentials to estimate the relative and percentage error of using this radius measurement to calculate the volume of Earth, assuming the planet is a perfect sphere.

    i

    If the measurement of the radius is accurate to within \(\text{\pm }80,\) we have

    \[-80\le dr\le 80.\]

    Since the volume of a sphere is given by \(V=(\frac{4}{3})\pi {r}^{3},\) we have

    \[dV=4\pi {r}^{2}dr.\]

    Using the measured radius of 4000 mi, we can estimate

    \[-4\pi {(4000)}^{2}(80)\le dV\le 4\pi {(4000)}^{2}(80).\]

    To estimate the relative error, consider \(\frac{dV}{V}.\) Since we do not know the exact value of the volume \(V,\) use the measured radius \(r=4000\ \text{mi}\) to estimate \(V.\) We obtain \(V\approx (\frac{4}{3})\pi {(4000)}^{3}.\) Therefore the relative error satisfies

    \[\frac{-4\pi {(4000)}^{2}(80)}{4\pi {(4000)}^{3}\text{/}3}\le \frac{dV}{V}\le \frac{4\pi {(4000)}^{2}(80)}{4\pi {(4000)}^{3}\text{/}3},\]

    which simplifies to

    \[-0.06\le \frac{dV}{V}\le 0.06.\]

    The relative error is 0.06 and the percentage error is \(6\text{\%}.\)

  14. Determine the percentage error if the radius of Earth is measured to be 3950 mi with an error of \(\text{\pm }100\) mi.

    i

    7.6%

  15. What is the linear approximation for any generic linear function \(y=mx+b?\)

  16. Determine the necessary conditions such that the linear approximation function is constant. Use a graph to prove your result.

    i

    \({f}^{'}(a)=0\)

  17. Explain why the linear approximation becomes less accurate as you increase the distance between \(x\) and \(a.\) Use a graph to prove your argument.

  18. When is the linear approximation exact?

    i

    The linear approximation exact when \(y=f(x)\) is linear or constant.

  19. \(f(x)=x+{x}^{4},a=0\)

  20. \(f(x)=\frac{1}{x},a=2\)

    i

    \(L(x)=\frac{1}{2}-\frac{1}{4}(x-2)\)

  21. \(f(x)=\text{tan}\ x,a=\frac{\pi }{4}\)

  22. \(f(x)=\text{sin}\ x,a=\frac{\pi }{2}\)

    i

    \(L(x)=1\)

  23. \(f(x)=x\ \text{sin}\ x,a=2\pi\)

  24. \(f(x)={\text{sin}}^{2}x,a=0\)

    i

    \(L(x)=0\)

  25. [T] \({(2.001)}^{6}\)

  26. [T] \(\text{sin}(0.02)\)

    i

    0.02

  27. [T] \(\text{cos}(0.03)\)

  28. [T] \({(15.99)}^{1\text{/}4}\)

    i

    \(1.9996875\)

  29. [T] \(\frac{1}{0.98}\)

  30. [T] \(\text{sin}(3.14)\)

    i

    \(0.001593\)

  31. [T] \({(1.01)}^{3}\)

  32. [T] \(\text{cos}(0.01)\)

    i

    \(1;\) error, \(\sim 0.00005\)

  33. [T] \({(\text{sin}(0.01))}^{2}\)

  34. [T] \({(1.01)}^{-3}\)

    i

    \(0.97;\) error, \(\sim 0.0006\)

  35. [T] \({(1+\frac{1}{10})}^{10}\)

  36. [T] \(\sqrt{8.99}\)

    i

    \(3-\frac{1}{600};\) error, \(\sim 4.632\ \times \ {10}^{-7}\)

  37. \(y=3{x}^{4}+{x}^{2}-2x+1\)

  38. \(y=x\ \text{cos}\ x\)

    i

    \(dy=(\text{cos}\ x-x\ \text{sin}\ x)dx\)

  39. \(y=\sqrt{1+x}\)

  40. \(y=\frac{{x}^{2}+2}{x-1}\)

    i

    \(dy=(\frac{{x}^{2}-2x-2}{{(x-1)}^{2}})dx\)

Symbols used here

\sqrt{x},\ \sqrt[n]{x}
square root, n-th root
The non-negative number whose square (n-th power) is x.
\pi
pi
Ratio of a circle's circumference to its diameter, 3.14159…
f'(x),\ \frac{dy}{dx}
derivative
Instantaneous rate of change; slope of the graph.
i
imaginary unit
i² = −1.
^\circ
degrees
1/360 of a full turn. 180° = π radians.
\approx
approximately equal
Equal to the precision shown, not exactly.
\pm
plus or minus
Both signs at once: x = 3 ± 2 means 5 and 1.
e
Euler's number
2.71828…, the base whose exponential is its own derivative.
\infty
infinity
Not a number: "grows without bound" in limits and intervals.
\sin,\ \cos,\ \tan
sine, cosine, tangent
Ratios of sides in a right triangle; coordinates on the unit circle.
\log_b x,\ \ln x
logarithm, natural log
The exponent b must be raised to for x; ln uses base e.
\sum_{k=1}^{n} a_k
summation
Add a_k for k = 1 up to n.
\lim_{x \to a} f(x)
limit
The value f(x) approaches as x approaches a.
\int f(x)\,dx,\ \int_a^b
integral
Antiderivative (indefinite) or signed area from a to b (definite).
y',\ y''
first and second derivative of y
Prime notation for derivatives with respect to x (or t).
C,\ C_1,\ C_2
arbitrary constants
Constants of integration fixed by initial conditions.

How to: Linear Approximations and Differentials

  1. Describe the linear approximation to a function at a point.
  2. Write the linearization of a given function.
  3. Draw a graph that illustrates the use of differentials to approximate the change in a quantity.
  4. Calculate the relative error and percentage error in using a differential approximation.
  5. Since
  6. Since
  7. Use differentials to estimate the error in the computed volume of the cube.
  8. Compute the volume of the cube if the side length is (i) 4.9 cm and (ii) 5.1 cm to compare the estimated error with the actual potential error.

Questions people ask

What is a derivative in one sentence?

The slope of the graph at a point — the rate at which the output is changing there. Speed is the derivative of position.

What is an integral in one sentence?

The accumulated total of a rate — the area under the curve. Distance travelled is the integral of speed.

Why are derivatives and integrals opposites?

That is the fundamental theorem of calculus: accumulating a rate and then measuring how fast the accumulation grows gets you back the rate. Integration undoes differentiation up to a constant.

When do I use substitution and when integration by parts?

Substitution when part of the integrand is the derivative of another part (u and du both present). Parts when the integrand is a product of two unrelated kinds of function — a polynomial times an exponential, log or trig function.

Kuri Gukoresha

Parts of this page are adapted from OpenStax Calculus Volume 1 (CC BY-NC-SA 4.0). Condensed and re-explained here; errors are ours.

in Calculus