MH1810 Math

Chapter 5b: Differentiation

Imron Rosyadi

5.4 Problems on Rate of Change

The derivative \(f'(x)\) is the instantaneous rate of change of \(f(x)\) with respect to \(x\). This concept has vast applications in various fields.

Applications of Instantaneous Rates of Change:

  • Physics: velocity, acceleration, electricity, etc.
  • Chemistry: rate of reaction
  • Biology: population growth
  • Economics: concepts of marginalism (e.g., marginal cost, marginal revenue)
  • Engineering: many diverse applications

5.4 Problems on Rate of Change

Example 5.4.1: Volume of a Spherical Cell

The volume of a growing spherical cell is \(V = \frac{4}{3}\pi r^3\), where \(r\) is radius in micrometers.

  1. Find the average rate of change of \(V\) with respect to \(r\) when \(r\) changes from 5 to 8 \(\mu m\). \[ \frac {V (8) - V (5)}{8 - 5} = \frac {\frac{4}{3}\pi (8^3) - \frac{4}{3}\pi (5^3)}{3} = \frac {4 \pi}{3} \cdot \frac {512 - 125}{3} = \frac {4 \pi}{3} \cdot \frac {387}{3} = 4\pi \cdot 129 = 516 \pi \mu m^3/\mu m. \]
  2. Find the instantaneous rate of change of \(V\) with respect to \(r\) when \(r = 5\mu m\).

First, find \(V'(r) = \frac{d}{dr}(\frac{4}{3}\pi r^3) = 4\pi r^2\).

Then, \(V'(5) = 4\pi (5^2) = 100\pi \mu m^3/\mu m\).

Example: Motion of a Ball

Example 5.4.2: Ball Rolling Down an Inclined Plane

If a ball is given a push so that it has an initial velocity of \(5m/s\) down an inclined plane, then the distance it has rolled after \(t\) seconds is \(x = 5t + 3t^2\).

  1. Find the velocity after 2s.

Velocity is the first derivative of position:

\(x'(t) = \frac{dx}{dt} = \frac{d}{dt}(5t + 3t^2) = 5 + 6t\).

At \(t=2s\), velocity \(x'(2) = 5 + 6(2) = 17 \text{ m/s}\).

  1. How long does it take for the velocity to reach \(35m/s\)?

Set velocity equal to \(35\): \(5 + 6t = 35\).

\(6t = 30 \Rightarrow t = 5 \text{ s}\).

  1. What is the acceleration after 2s?

Acceleration is the second derivative of position (or first derivative of velocity): \(x''(t) = \frac{d^2x}{dt^2} = \frac{d}{dt}(5 + 6t) = 6\).

The acceleration is constant, \(6 \text{ m/s}^2\). So, after 2s, the acceleration is \(6 \text{ m/s}^2\).

5.5 Linearization

Linearization approximates a function \(f(x)\) near a point \(x=a\) using a linear function \(L(x)\).

Definition 5.5.1: Linearization of \(f\) at \(a\)

The linearization of \(f\) at \(a\) is the linear function:

\[ L (x) = f (a) + f ^ {\prime} (a) (x - a). \]

Remarks:

  1. The equation \(y = L(x)\) is the equation of the tangent line to the curve \(y = f(x)\) at \(x = a\).

  2. Linearization provides a local approximation: \(f(x) \approx L(x)\) for \(x\) near \(a\).

  3. Higher-order approximations exist, such as Taylor polynomials, which use higher derivatives to create more accurate approximations over larger intervals. \[ P _ {n} (x) = f (a) + (x - a) f ^ {\prime} (a) + \frac {(x - a) ^ {2}}{2 !} f ^ {\prime \prime} (a) + \dots + \frac {(x - a) ^ {n}}{n !} f ^ {(n)} (a). \\ \]

Examples of Linearization

Example 5.5.2: Approximate \(\ln(1.01)\)

Consider \(f(x) = \ln(1 + x)\). Use the linearization of \(f\) at \(a = 0\) to approximate \(\ln(1.01)\).

Solution:

  1. Find \(f(a)\): \(f(0) = \ln(1 + 0) = \ln 1 = 0\).

  2. Find \(f'(x)\): \(f'(x) = \frac{1}{1 + x}\).

  3. Find \(f'(a)\): \(f'(0) = \frac{1}{1 + 0} = 1\).

  4. Form the linearization \(L(x) = f(a) + f'(a)(x - a)\):

    \(L(x) = 0 + 1(x - 0) = x\).

  5. Approximate \(\ln(1.01)\):

    Since \(1.01 = 1 + 0.01\), we use \(x = 0.01\).

    \(\ln(1.01) \approx L(0.01) = 0.01\).

    (Actual value \(\ln(1.01) \approx 0.00995\))

Examples of Linearization

Example 5.5.3: Approximate \(\sqrt{4.001}\)

Use the linearization of \(f(x) = \sqrt{x}\) at \(a = 4\) to approximate \(\sqrt{4.001}\).

Solution:

  1. Find \(f(a)\): \(f(4) = \sqrt{4} = 2\).

  2. Find \(f'(x)\): \(f'(x) = \frac{1}{2\sqrt{x}}\).

  3. Find \(f'(a)\): \(f'(4) = \frac{1}{2\sqrt{4}} = \frac{1}{2 \cdot 2} = \frac{1}{4}\).

  4. Form the linearization \(L(x) = f(a) + f'(a)(x - a)\):

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

  5. Approximate \(\sqrt{4.001}\):

    Use \(x = 4.001\).

    \(\sqrt{4.001} \approx L(4.001) = 2 + \frac{1}{4}(4.001 - 4) = 2 + \frac{1}{4}(0.001) = 2 + 0.00025 = 2.00025\).

    (Actual value \(\sqrt{4.001} \approx 2.000249968...\))

Example: Approximating \(\sqrt[3]{7.99}\)

Example 5.5.4: Approximate \(\sqrt[3]{7.99}\) by linearization.

Question: Which function \(f(x)\) and at which point \(a\) would you choose?

Solution:

  1. Choose \(f(x)\): The value we want to approximate is a cube root, so let \(f(x) = \sqrt[3]{x} = x^{1/3}\).
  2. Choose \(a\): We need a point \(a\) near \(7.99\) for which \(f(a)\) and \(f'(a)\) are easy to calculate. The closest perfect cube to \(7.99\) is \(8\). So, we choose \(a = 8\).

Now, we follow the steps for linearization:

  1. Find \(f(a)\): \(f(8) = \sqrt[3]{8} = 2\).

  2. Find \(f'(x)\): \(f'(x) = \frac{d}{dx}(x^{1/3}) = \frac{1}{3}x^{(1/3) - 1} = \frac{1}{3}x^{-2/3} = \frac{1}{3x^{2/3}}\).

  3. Find \(f'(a)\): \(f'(8) = \frac{1}{3(8)^{2/3}} = \frac{1}{3(\sqrt[3]{8})^2} = \frac{1}{3(2)^2} = \frac{1}{3 \cdot 4} = \frac{1}{12}\).

  4. Form the linearization \(L(x) = f(a) + f'(a)(x - a)\):

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

  5. Approximate \(\sqrt[3]{7.99}\):

    Use \(x = 7.99\).

    \(\sqrt[3]{7.99} \approx L(7.99) = 2 + \frac{1}{12}(7.99 - 8) = 2 + \frac{1}{12}(-0.01)\).

    \(L(7.99) = 2 - \frac{0.01}{12} = 2 - \frac{1}{1200} \approx 2 - 0.0008333 = 1.9991667\).

    (Actual value \(\sqrt[3]{7.99} \approx 1.9991663...\))

Estimation of Change using Differentials

Differentials provide a way to estimate the change in a function \(\Delta f\) based on a small change in its input \(dx\).

Suppose \(x\) changes from \(x = a\) to \(x = a + dx\) (i.e., \(\Delta x = dx\)).

The actual change in \(f\) is: \[ \Delta f = f (a + d x) - f (a). \]

Differentials (\(df\))

When the change \(dx\) is small, we approximate \(\Delta f\) using the change in the linearization (tangent line).

The differential of \(f\), denoted \(df\), is defined as: \[ d f = f ^ {\prime} (a) d x. \] For small \(dx\), we have the approximation: \[ \Delta f \approx d f, \quad \text{or} \quad \Delta f \approx \frac {d f}{d x} d x. \]

Estimation of Change using Differentials

Remarks on Changes:

Type of Change Actual Change Estimated Change
Absolute Change \(\Delta f = f(a+dx) - f(a)\) \(df = f'(a)dx\)
Relative Change \(\frac{\Delta f}{f(a)}\) \(\frac{df}{f(a)}\)
Percentage Change \(100 \frac{\Delta f}{f(a)}\) \(100 \frac{df}{f(a)}\)

Warning

The derivative \(\frac{df}{dx}\) is NOT the quotient of the differential \(df\) and the change \(dx\) in the strict sense, but \(df = \frac{df}{dx}dx\) is a very useful formula for approximations.

Example: Error Estimation with Differentials

Example 5.5.5: Error in Circular Disk Area

The radius of a circular disk is \(24~\mathrm{cm}\) with a maximum error in measurement of \(0.2~\mathrm{cm}\).

  1. Use differentials to estimate the maximum error in the calculated area of the disk.
  2. What is the relative error? What is the percentage error?

Solution:

Let the radius be \(r\). The area is \(A(r) = \pi r^2\).

The derivative is \(A'(r) = 2\pi r\).

The differential of \(A\) is \(dA = A'(r) dr\).

Given values: \(r = 24~\mathrm{cm}\) and \(dr = \pm 0.2~\mathrm{cm}\) (maximum error).

  1. Maximum error in calculated area (\(dA\)):

    \(dA = A'(24)dr = 2\pi (24)(0.2) = 48\pi (0.2) = 9.6\pi~\mathrm{cm}^2\).

    This is approximately \(9.6 \times 3.14159 \approx 30.16 \mathrm{cm}^2\).

  2. Relative error and Percentage error:

    First, calculate the area at \(r=24\): \(A(24) = \pi (24)^2 = 576\pi~\mathrm{cm}^2\).

    Relative error: \(\frac{dA}{A(r)} = \frac{9.6\pi}{576\pi} = \frac{9.6}{576} = \frac{1}{60} \approx 0.01667\).

    Percentage error: \((0.01667) \times 100\% \approx 1.667\%\).

5.6 Newton’s Method

Newton’s Method (also Newton-Raphson method) is a numerical technique to approximate solutions to an equation \(f(x) = 0\).

It’s an iterative method that uses the tangent line to refine an initial guess.

Idea of Newton’s Method:

  1. Start with an initial guess \(x_0\) close to the root.
  2. Draw the tangent line to \(f(x)\) at \((x_0, f(x_0))\).
  3. The \(x\)-intercept of this tangent line becomes the next approximation, \(x_1\).
  4. Repeat the process.

Figure: Illustration of Newton’s Method, showing how tangent lines are used to iteratively approximate a root of a function.

5.6 Newton’s Method

Iteration Formula:

The equation of the tangent at \((x_n, f(x_n))\) is \(y - f(x_n) = f'(x_n)(x - x_n)\).

To find the \(x\)-intercept \(x_{n+1}\), set \(y=0\):

\(0 - f(x_n) = f'(x_n)(x_{n+1} - x_n)\).

Solving for \(x_{n+1}\): \[ x _ {n + 1} = x _ {n} - \frac {f (x _ {n})}{f ^ {\prime} (x _ {n})}. \]

Example: Applying Newton’s Method

Example 5.6.1: Use Newton’s method to solve \(x^{3} - x + 1 = 0\).

Solution:

Let \(f(x) = x^3 - x + 1\).

Then \(f'(x) = 3x^2 - 1\).

First, find an initial guess:

\(f(-1) = (-1)^3 - (-1) + 1 = -1 + 1 + 1 = 1\).

\(f(-2) = (-2)^3 - (-2) + 1 = -8 + 2 + 1 = -5\).

Since \(f(-1)\) is positive and \(f(-2)\) is negative, a root lies between -2 and -1 (by IVT). Let’s choose \(x_0 = -1\).

Newton’s iteration formula: \[ x _ {n + 1} = x _ {n} - \frac {x _ {n} ^ {3} - x _ {n} + 1}{3 x _ {n} ^ {2} - 1}. \]

Example: Applying Newton’s Method (cont.)

Let’s compute the first few iterates:

  • \(x_0 = -1\)
  • \(x_1 = -1 - \frac{(-1)^3 - (-1) + 1}{3(-1)^2 - 1} = -1 - \frac{1}{2} = -1.5\).
  • \(x_2 = -1.5 - \frac{(-1.5)^3 - (-1.5) + 1}{3(-1.5)^2 - 1} = -1.5 - \frac{-0.875}{5.75} \approx -1.5 + 0.15217 = -1.34783\).
  • \(x_3 = -1.34783 - \frac{f(-1.34783)}{f'(-1.34783)} \approx -1.34783 - \frac{-0.10068}{4.449905} \approx -1.32520\).
  • \(x_4 = -1.32520 - \frac{f(-1.32520)}{f'(-1.32520)} \approx -1.32520 - \frac{-0.002058}{4.264635} \approx -1.324718\).
  • \(x_5 = -1.324718 - \frac{f(-1.324718)}{f'(-1.324718)} \approx -1.324718 - \frac{-9.2 \times 10^{-7}}{4.264633} \approx -1.324718\).

Approximated root (to five decimal places): \(x \approx -1.32472\).

Other Uses of Newton’s Method

Newton’s method isn’t just for polynomial roots; it’s used for various numerical approximations.

Example 5.6.2: Approximating Reciprocals (\(\frac{1}{\alpha}\))

Given \(\alpha \neq 0\), estimate \(x = \frac{1}{\alpha}\).

Solution:

The equation is \(x = \frac{1}{\alpha}\), which can be rewritten as \(\frac{1}{x} - \alpha = 0\).

Let \(f(x) = \frac{1}{x} - \alpha\).

Then \(f'(x) = -\frac{1}{x^2}\).

Apply Newton’s iteration formula: \[ \begin{array}{l} x _ {n + 1} = x _ {n} - \frac {f (x _ {n})}{f ^ {\prime} (x _ {n})} = x _ {n} - \frac {\frac {1}{x _ {n}} - \alpha}{- \frac {1}{x _ {n} ^ {2}}} \\ = x _ {n} + x _ {n} ^ {2} \left(\frac {1}{x _ {n}} - \alpha\right) \\ = x _ {n} + x _ {n} - \alpha x _ {n} ^ {2} = 2x_n - \alpha x_n^2 \\ = x _ {n} \left(2 - \alpha x _ {n}\right). \\ \end{array} \] This iterative formula only involves multiplication and subtraction, which were computationally faster than division on early computers.

Example 5.6.3: Approximating Square Roots (\(\sqrt{\alpha}\))

Estimate \(x = \sqrt{\alpha}\) for \(\alpha > 0\).

Solution:

The equation is \(x = \sqrt{\alpha}\), which can be rewritten as \(x^2 = \alpha\), or \(x^2 - \alpha = 0\).

Let \(f(x) = x^2 - \alpha\).

Then \(f'(x) = 2x\).

Apply Newton’s iteration formula:

\[ \begin{array}{l} x _ {n + 1} = x _ {n} - \frac {f (x _ {n})}{f ^ {\prime} (x _ {n})} = x _ {n} - \frac {x _ {n} ^ {2} - \alpha}{2 x _ {n}} \\ = \frac {2 x _ {n} ^ {2} - (x _ {n} ^ {2} - \alpha)}{2 x _ {n}} = \frac {x _ {n} ^ {2} + \alpha}{2 x _ {n}} \\ = \frac {x _ {n}}{2} + \frac {\alpha}{2 x _ {n}} = \frac{1}{2}\left(x_n + \frac{\alpha}{x_n}\right). \\ \end{array} \] This is also known as the Babylonian method for square roots.

Example: Approximating \(\sqrt{3}\)

Example 5.6.4: Approximate the value of \(\sqrt{3}\).

Solution:

We use the iteration formula for square roots: \(x _ {n + 1} = \frac {1}{2} \left(x _ {n} + \frac {\alpha}{x _ {n}}\right)\).

Let \(\alpha = 3\). We need an initial guess \(x_0\).

Since \(1^2 = 1\) and \(2^2 = 4\), \(\sqrt{3}\) is between 1 and 2. Let’s choose \(x_0 = 2\).

Iterates:

  • \(x_0 = 2\).
  • \(x_1 = \frac{1}{2}\left(2 + \frac{3}{2}\right) = \frac{1}{2}\left(\frac{4+3}{2}\right) = \frac{1}{2}\left(\frac{7}{2}\right) = \frac{7}{4} = 1.75\).
  • \(x_2 = \frac{1}{2}\left(\frac{7}{4} + \frac{3}{7/4}\right) = \frac{1}{2}\left(\frac{7}{4} + \frac{12}{7}\right) = \frac{1}{2}\left(\frac{49+48}{28}\right) = \frac{97}{56} \approx 1.732142857\).
  • \(x_3 = \frac{1}{2}\left(\frac{97}{56} + \frac{3}{97/56}\right) = \frac{1}{2}\left(\frac{97}{56} + \frac{168}{97}\right) = \frac{1}{2}\left(\frac{97^2 + 56 \cdot 168}{56 \cdot 97}\right) = \frac{9409 + 9408}{10832} = \frac{18817}{10832} \approx 1.73205081\).

(Actual value \(\sqrt{3} \approx 1.73205081\))

In just 3 iterations, we achieved high accuracy!

5.7 Closed Interval Method for Optimization

Optimization problems involve finding the best possible solution(s), often by maximizing or minimizing a function.

Critical Points:

Critical points are points \(c\) where:

  1. \(f'(c) = 0\) (these are called stationary points).
  2. \(f'(c)\) fails to exist (these are called singular points).

Extreme Value Theorem Review:

A continuous function \(f\) on a closed and bounded interval \([a, b]\) always attains its global maximum and global minimum values within that interval.

Closed Interval Method (3-Step Procedure):

To find the global maximum and absolute minimum of a continuous function \(f\) on \([a, b]\):

  1. Find Critical Points: Determine all critical points of \(f\) in the open interval \((a, b)\) and find the corresponding \(f\)-values.
  2. Evaluate Endpoints: Compute \(f(a)\) and \(f(b)\).
  3. Compare Values: The largest value of \(f\) from Steps 1 and 2 is the global maximum. The smallest value is the global minimum.

Example: Optimization on a Closed Interval

Example 5.7.1: Find the global maximum and global minimum of \(f(t) = \sqrt[3]{t} (8 - t)\) on \([-1, 8]\).

Solution:

The function \(f(t) = t^{1/3}(8-t) = 8t^{1/3} - t^{4/3}\) is continuous on \([-1, 8]\).

Thus, by the Extreme Value Theorem, global extrema exist.

  1. Find Critical Points in \((-1, 8)\):

    First, find \(f'(t)\):

    \(f'(t) = \frac{d}{dt}(8t^{1/3} - t^{4/3}) = 8 \cdot \frac{1}{3}t^{-2/3} - \frac{4}{3}t^{1/3}\)

    \(f'(t) = \frac{8}{3t^{2/3}} - \frac{4t^{1/3}}{3} = \frac{8 - 4t}{3t^{2/3}} = \frac{8 - 4t}{3(\sqrt[3]{t})^2}\).

    • Singular Points: \(f'(t)\) is undefined when the denominator is zero, so \(3t^{2/3} = 0 \Rightarrow t = 0\). \(t=0\) is in \((-1, 8)\). This is a critical point.
    • Stationary Points: \(f'(t) = 0\) when the numerator is zero, so \(8 - 4t = 0 \Rightarrow 4t = 8 \Rightarrow t = 2\). \(t=2\) is in \((-1, 8)\). This is a critical point.

Example: Optimization on a Closed Interval (cont.)

  1. Evaluate Endpoints:

    • \(f(-1) = \sqrt[3]{-1}(8 - (-1)) = (-1)(9) = -9\).
    • \(f(8) = \sqrt[3]{8}(8 - 8) = (2)(0) = 0\).
  2. Compare Values:

    • \(f(0) = \sqrt[3]{0}(8 - 0) = 0\).
    • \(f(2) = \sqrt[3]{2}(8 - 2) = 6\sqrt[3]{2} \approx 6 \times 1.26 = 7.56\).
    • \(f(-1) = -9\).
    • \(f(8) = 0\).

Conclusion:

  • Global Maximum: \(f(2) = 6\sqrt[3]{2}\).
  • Global Minimum: \(f(-1) = -9\).

Example: More Optimization on a Closed Interval

Example 5.7.2: Let \(f(x) = (x^{2} - 1)^{2 / 3}\). Find the global maximum and global minimum values of \(f\) on the interval \([-3, 3]\).

Solution:

The function \(f(x) = ((x^2 - 1)^{1/3})^2\) is continuous on \([-3, 3]\).

By the Extreme Value Theorem, global extrema exist.

  1. Find Critical Points:

    First, find \(f'(x)\) using the Chain Rule:

    \(f'(x) = \frac{2}{3}(x^2 - 1)^{-1/3} \cdot (2x) = \frac{4x}{3(x^2 - 1)^{1/3}}\).

    • Stationary Point: \(f'(x) = 0\) when the numerator is zero.

      \(4x = 0 \Rightarrow x = 0\).

      \(x=0\) is in \((-3, 3)\).

    • Singular Points: \(f'(x)\) fails to exist when the denominator is zero.

      \(3(x^2 - 1)^{1/3} = 0 \Rightarrow x^2 - 1 = 0 \Rightarrow (x - 1)(x + 1) = 0\).

      So, \(x = 1\) and \(x = -1\).

      Both \(x=1\) and \(x=-1\) are in \((-3, 3)\).

  2. Evaluate Endpoints:

    • \(f(-3) = ((-3)^2 - 1)^{2/3} = (9 - 1)^{2/3} = (8)^{2/3} = (\sqrt[3]{8})^2 = 2^2 = 4\).
    • \(f(3) = (3^2 - 1)^{2/3} = (9 - 1)^{2/3} = (8)^{2/3} = 2^2 = 4\).
  3. Compare Values:

    • \(f(0) = (0^2 - 1)^{2/3} = (-1)^{2/3} = (\sqrt[3]{-1})^2 = (-1)^2 = 1\).
    • \(f(-1) = ((-1)^2 - 1)^{2/3} = (1 - 1)^{2/3} = 0^{2/3} = 0\).
    • \(f(1) = (1^2 - 1)^{2/3} = (1 - 1)^{2/3} = 0^{2/3} = 0\).
    • \(f(-3) = 4\).
    • \(f(3) = 4\).

Conclusion:

  • Global Maximum: The largest value is \(4\), which occurs at \(x = -3\) and \(x = 3\).
  • Global Minimum: The smallest value is \(0\), which occurs at \(x = -1\) and \(x = 1\).