Chapter 3 | Applications of Differentiation

3.1 | Maximum and Minimum Values

An **extremum** (or extreme value) of a function is a point at which a **maximum** or **minimum** value of the function is obtained in some interval.

Consider Figure 3.1.1:

The extreme Value Theorem

The extreme Value Theorem

If \(f\) is continuous on a closed interval \([a, b]\), then \(f\) attains an absolute maximum value stem:[f(c)] and an absolute minimum value \(f(d)\) at some numbers \(c\) and \(d\) in \([a, b]\).

Functions continuous on a closed interval always attain extreme values.

Fermat’s Theorem

Fermat’s Theorem

If \(f\) has a local maximum or minimum at \(c\), and if \(f^\prime(c)\) exists, then \(f^\prime(c) = 0\).

In terms of critical numbers, Fermat’s Theorem can be rephrased as follows:

Fermat’s Theorem (in terms of critical numbers)

If f has a local maximum or minimum at c, then c is a critical number of f.

Critical Number

Critical numbers include when \(f^\prime(x) = \text{undefined}\), but, \(f(c)\) must be defined.

For example, consider the following function:

$$\begin{equation} \begin{split} f(x) &= \frac{x + 1}{x - 3} \\ f^\prime(x) &= -4 \cdot \frac{}{(x - 3)^2} \\ \end{split} \end{equation}$$

While \(f^\prime(x)\) is undefined at \(x = 3\), \(f(3)\) is likewise undefined, therefore, \(x = 3\) is not a critical number.

TODO: double check this...

Also points where \(f(x) = \text{undefined}\) and where \(f^\prime(x) = \text{undefined}\) is still useful for calculating other details such as intervals of increase or decrease.

A critical number of a function \(f\) is a number \(c\) in the domain of \(f\) such that either or \(f^\prime(c)\) does not exist.

To find an absolute maximum or minimum of a continuous function on a closed interval, we note that either it is local [in which case it occurs at a critical number by (7)] or it occurs at an endpoint of the interval, as we see from the examples in Figure 8. Thus the following three-step procedure always works. **See The Closed Interval Method.**

The Closed Interval Method

The Closed Interval Method

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

I.e. the maximum/minimum of \(f^\prime(c) = 0\), \(f(a)\), and \(f(b)\).

Using sudo code, the 'The Closed Interval Method' can be defined as the result of:

$$\begin{equation} \begin{split} \mathrm{maximum} &= \mathrm{max}\lbrack f(a), f^\prime(c) = 0, f(b)\rbrack \\ \mathrm{minimum} &= \mathrm{min}\lbrack f(a), f^\prime(c) = 0, f(b)\rbrack \end{split} \end{equation}$$

3.2 | The Mean Value Theorem

In mathematics, the mean value theorem states, roughly, that for a given planar arc between two endpoints, there is at least one point at which the tangent to the arc is parallel to the secant through its endpoints.

For any function that is continuous \([a, b]\) and differentiable on \((a,b)\), there exists some \(c\) in the interval \((a,b)\) such that the secant joining the endpoints of the \([a, b]\) is parallel to the tangent at \(c\):

The function f attains the slope of the secant between a and b as the derivative at the point \({\displaystyle \xi \in (a,b)}\):

It is also possible that there are multiple tangents parallel to the secant:

We will see that many of the results of this chapter depend on one central fact, which is called the Mean Value Theorem. But to arrive at the Mean Value Theorem we first need the following result.

Rolle’s Theorem

Let f be a function that satisfies the following three hypotheses:

  1. \(f\) is continuous on the closed interval \([a, b]\).
  2. \(f\) is differentiable on the open interval \((a, b)\).
  3. \(f(a) = f(b)\)
    I.e. the x_1 and x_2 map to the same y value.

Then there is a number \(c\) in \((a, b)\), such that \(f^\prime(c) = 0\)

The Mean Value Theorem

Let \(f\) be a function that satisfies the following hypotheses:

  1. \(f\) is continuous on the closed interval \([a, b]\).
  2. \(f\) is differentiable on the open interval \((a, b)\).

Then there is a number \(c\) in \((a, b)\), such that: \(\begin{equation} \begin{split} f^\prime(c) &= \frac{f(b) - f(a)}{b - a} \end{split} \end{equation}\) Or, equivalently: \(\begin{equation} \begin{split} f(b) - f(a) &= f^\prime(c)(b - a) \end{split} \end{equation}\) Where the tangent at \(c\) is parallel to the secant line through the endpoints \((a, f(a))\) and stem:[(b, f(b))].

The Mean Value Theorem is an example of what is called an existence theorem. Like the Intermediate Value Theorem, the Extreme Value Theorem, and Rolle’s Theorem, it guarantees that there exists a number with a certain property, but it doesn’t tell us how to find the number.

Miscellaneous

Theorem (§3.2.5)

If stem:[f^\prime(x) = 0] for all x in an interval \((a, b)\), then f is constant on \((a, b)\).

Corollary (§3.2.7)

if stem:[f^\prime(x) = g^\prime(x)] for all stem:[x] in an interval \((a, b)\), then stem:[f - g] is constant on \((a, b)\); that is, stem:[f(x) = g(x) + c] where \(c\) is a constant.

Corollary 7 says that if two functions have the same derivatives on an interval, then their graphs must be vertical translations of each other there. In other words, the graphs have the same shape, but could be shifted up or down.

3.3 | How Derivatives Affect the Shape of a Graph

Many of the applications of calculus depend on our ability to deduce facts about a function f from information concerning its derivatives.

Because stem:[f^\prime(x)] represents the slope of the curve stem:[y = f(x)] at the point stem:[(x, f(x))], it tells us the direction in which the curve proceeds at each point. So it is reasonable to expect that information about stem:[f^\prime(x)] will provide us with information about stem:[f(x)].

What Does stem:[f^\prime] Say about \(f\)?

Increasing/Decreasing (I/D) Test

The First Derivative Test

Suppose that c is a critical number of a continuous function f:

[†]: 'at \(c\)' means from the left and right of the given point.

What Does \(f^{\prime\prime}\) Say about \(f\)?

If the graph of f lies above all of its tangents on an interval I, then it is called concave upward on I. If the graph of f lies below all of its tangents on I, it is called concave downward on I.

Concavity Test

Concavity Test (Alternative)

For a function \(f(x)\) with derivatives \(f^\prime\) and \(f^{\prime\prime}\) on an interval the following holds:

Regarding Concavity and Extrema

The following three scenarios are possible:

The sign of \(f^{\prime\prime}\) is changing from negative to positive

This means that the function is concave down before \(c\), concave up after \(c\) and has an inflection point at \(x = c\).

For Example:

The sign of \(f^{\prime\prime}\) is changing from positive to negative.

This means that the function is concave up before \(c\), concave down after \(c\), and has an inflection point at \(x = c\).

For Example:

The sign of \(f^{\prime\prime}\) is not changing at \(x = c\)

(I.e. it is either positive both before or after \(c\) or negative both before or after \(c\))

In this case, f does not have an inflection point at \(x = c\).

For Example:

The existence of the third case demonstrates that a function does not necessarily have an inflection point at a critical point of \(f^\prime\).

Using the number line test for \(f^{\prime\prime}\) one can both determine the intervals on which \(f\) is concave up/down as well as classify the critical point of \(f^{\prime}\) into three categories matching the three cases above and determine the inflection points.

The Inflection Points Test

To determine the inflection points a differentiable function \(f(x)\)

  1. Find \(f^{\prime\prime}\).
  2. Set it to zero and find all the critical points of \(f^{\prime}(x)\)
  3. Use the number line to classify the critical points of \(f^{\prime}\) into the three cases
    • if \(f^{\prime\prime}\) changes sign at \(c\), \(f\) has an inflection point at c
    • if \(f^{\prime\prime}\) does not change the sign at \(c\), \(f\) does not have an inflection point at \(c\)

What \(f^{\prime\prime}\) says about \(f^{\prime}\) (Alternative)

Concavity of the function can also be used to determine if there is an extreme value or not at a critical point of \(f\).

Remember:

Thus, if \(c\) is a critical point and the second derivative at \(c\) is positive, that means that the function is concave up around \(c\). Thus, there is a relative minimum at \(c\).

Conversely, if \(c\) is a critical point and the second derivative at \(c\) is negative, that means that the function is concave down around \(c\). Thus, there is a relative maximum at \(c\).

If \(f^{\prime\prime} = 0\) this test is inconclusive (i.e. probably an inflection point).

This procedure of determining the extreme values is known as the Second Derivative Test.

Inflection Points

When the second derivative is zero, it corresponds to a possible inflection point.

A point stem:[P] on a curve stem:[y = f(x)] is called an inflection point if \(f\) is continuous there and the curve changes from concave upward to concave downward or from concave downward to concave upward at stem:[P].

Inflection Points (Alternative)

If \(f(x)\) has an inflection point at \(x = c\), then \(f^{\prime\prime}(c) = 0\) or \(f^{\prime\prime}(c)\) does not exist.

Example: Determine the intervals on which the function with the graph on the right defined on interval (a, ∞) is concave up/down.

Solution: The function is concave up on the interval (a,b) and concave down on the interval (b, ∞).

Miscellaneous

Quadratic functions have no points of inflection:

The Second Derivative Test

Suppose \(f^{\prime\prime}\) is continuous near c:

The Second Derivative Test is inconclusive when stem:[f^{\prime\prime}(c) = 0]. In other words, at such a point there might be a maximum, there might be a minimum, or there might be neither (as in Example 6). This test also fails when stem:[f^{\prime\prime}(c)] does not exist. In such cases the First Derivative Test must be used. In fact, even when both tests apply, the First Derivative Test is often the easier one to use.

The second derivative may be used to determine local extrema of a function under certain conditions. If a function has a critical point for which \(f^\prime(x) = 0\) and the second derivative is positive at this point, then \(f\) has a local minimum here.

3.4 | Limits at Infinity; Horizontal Asymptotes

$$\begin{equation} \begin{split} \lim_{x \to \infty} f(x) &= \lim_{x \to \infty^{+}} f(x) = A \\ \lim_{x \to -\infty} f(x) &= B \end{split} \end{equation}$$

Which makes sense, because \(-\infty \not\equiv \infty\). Since, in the case of horizontal asymptotes:

Or rather is unbounded in the given direction.

**The professor said:** you can't just apply the limit laws, such as for:

$$\lim_{x \to \infty} \frac{x^2 + 3x + 5}{x^3 + 3x + 5}$$

Because we don't know if it is continuous.

Miscellaneous

\(\lim_{x \to \infty} \sin\left(\frac{1}{x}\right)\)

$$\begin{equation} \begin{split} -1 \leq \sin \left( \frac{1}{x} \right) \leq 1 \\ -\frac{1}{\frac{1}{|x|}} \leq \frac{\sin\left(\frac{1}{x}\right)}{\frac{1}{x}} \leq \frac{1}{\frac{1}{|x|}} \\ -|x| \leq \frac{\sin\left(\frac{1}{x}\right)}{\frac{1}{x}} \leq |x| \end{split} \end{equation}$$

\(\)

Theorem (3.4) #4

$$ \begin{equation} \begin{split} \lim_{x \to \infty} \left( \frac{1}{x^{\mathbb{R}}} \right) &= 0 &\;\; \text{if} &\; \mathbb{R} > 0 \\ \lim_{x \to -\infty} \left( \frac{1}{x^{\mathbb{R}}} \right) &= 0 &\;\; \text{if} &\; \mathbb{R} > 0 \end{split} \end{equation} $$

3.5 | Summary Curve Sketching

For e.g. horizontal asymptotes, don't forgot to add \(y = x\), don't just say \(x\)

Curve Sketching Steps:

  1. Domain
  2. Intercepts
  3. Symmetry
  4. Asymptotes
  5. The First Derivative
  6. The Second Derivative
  7. Sketch the Curve

Domain

Check that there is no division with 0, or even roots of negative numbers.

Intercepts

  1. Find the y-intercepts
  2. Find the x-intercepts

Symmetry

If \(f(-x) = f(x)\) then \(f\) is even and will be symmetric about the y-axis.

If \(f(x) = f(x + p)\) where \(p\) is a positive constant, then \(f\) is a periodic function, and it's graph will be repeated every \(p\) units (i.e. the period).

\(p\) is the period I believe, such as \(\pi\)

Asymptotes

Asymptotes of e.g. rational functions can be found using the first and second derivatives, instead of using vertical and horizontal limits.

Steps:

  1. Horizontal Asymptotes
  2. Vertical Asymptotes
  3. Slant Asymptotes
Vertical Asymptotes

See §1.5 | The Limit of a Function.

Usually (but not always) this will involve checking to see where the denominator equals zero.

The vertical asymptotes occur only when the denominator is zero (If both the numerator and denominator are zero, the multiplicities of the zero are compared).

For example, the following function has vertical asymptotes at \(x = 0\), and \(x = 1\), but not at \(x = 2\).

Horizontal Asymptotes

See 3.4 | Limits at Infinity; Horizontal Asymptotes.

To find horizontal asymptotes
  • If the degree of the denominator is bigger than the degree of the numerator, the horizontal asymptote is the x-axis (i.e. \(y = 0\)).
  • If the degree of the numerator is bigger than the denominator, there is no horizontal asymptote.
Slant Asymptotes

A slant (oblique) asymptote occurs when the polynomial in the numerator is a higher degree than the polynomial in the denominator.

Can be found using polynomial long division, where the quotient \(mx + b\) is your slant asymptotes, then set \(y = mx + b\).

The above result can be confirmed using limits. Given some \(y = mx + b\), if:

$$\lim_{x \to \infty} \left( f(x) - (mx + b)\right) = 0$$

The First Derivative

Intervals of Increase or Decrease

Find the intervals where:

  • \(f^\prime(x)\) is positive (\(f\) is increasing)
  • \(f^\prime(x)\) is negative (\(f\) is decreasing)

Use the I/D Test.

Local Maximum and Minimum Values:
  1. Find all critical numbers (numbers \(c\) where \(f^\prime(c) = 0\) or \(f^\prime(c)\) does not exist)
  2. Then use the First Derivative Test to check if these are local maxima or local minima.

The Second Derivative

Concavity and Points of Inflection

Find the intervals where:

  • \(f^{\prime\prime}\) is positive (\(f\) is concave up)
  • \(f^{\prime\prime}\) is negative (f is concave down).

Check for points of inflection(points where \(f^{\prime\prime}\) changes sign).

In some cases you can also use Second Derivative Test to test for local maximum and minimum values.

Sketch the Curve

Sketch asymptotes as dashed lines. Plot intercepts, critical points, and inflection points. Draw a curve through these points which is consistent with the information found in the previous parts.

Miscellaneous

First and second derivative for curve shape

For instance, given \(y = x^3\), the number line for the first and second derivatives will look like:

On the negative (left) side, since \(f^\prime\) is positive, and \(f^{\prime\prime}\) is negative, it is increasing at a decreasing rate. So the curve will look like this

Whereas on the positive (right) side of x, since the first derivative is positive and the second derivative is likewise positive, it will be increasing at an increasing rate. So therefore, the curve will look like this:

Which matches the (compressed) curve of:

This process works for asymptotes as well, such as those from rational functions.

Are the following graphs a function of \(x^2\)?

Well we know that the derivative of \(x^2\) is \(2x\), so therefore:

So therefore, the above graph is not a function of \(x^2\).

This graph satisfies the aforementioned constraints of:

But for the same reasons, it is not a function of \(x^2\).

Summary to the 'Summary of Curve Sketching'

Functions

\(f(x)\)
Defines: position
\(\pm\) signs denote negative/positive y values.
Zeros (or roots) denote intercepts (on the x-axis).
If \(f(x)\) is positive, we are above the x axis
If \(f(x)\) is negative, we are below the x axis
\(f^{\prime}(x)\)
Defines: gradient or speed
\(\pm\) signs denote negative/positive slope.
Zeros (or roots) denote stationary points.
If \(f^{\prime}(x)\) is positive, the slope of \(f(x)\) is positive (i.e. upward)
If \(f^{\prime}(x)\) is negative, the slope of \(f(x)\) is negative (i.e. downward)
If \(x = a\) is a root of \(f^\prime\)

See The First Derivative Test

Given two additional points left of \(a\), and right of \(a\)

  • \(a_{l}\) is left of \(a\)
  • \(a_{r}\) is right of \(a\)
\(f^\prime(a_{l})\) is negative
\(f^\prime(a_{r})\) is positive
\(f(a)\) is a local minima
\(f^\prime(a_{l})\) is positive
\(f^\prime(a_{r})\) is negative
\(f(a)\) is a local maxima

It's easier to use \(f^{\prime\prime}(a)\) instead.

Use the first derivative to find increasing & decreasing intervals (by testing the left and right sides of \(f^\prime(a)\)).

The first derivative can yield concavity information (by testing the left and right points of \(f^\prime(a)\)), but only for extrema points.

\(f^{\prime\prime}(x)\)
Defines: concavity
\(\pm\) signs denote concavity.
Zeros (or roots) denote inflection points.
If \(f^{\prime\prime}\) is positive, \(f\) is concave up
If \(f^{\prime\prime}\) is negative, \(f\) is concave down
If \(x = a\) is a root of \(f^\prime\):
\(f^{\prime\prime}(a)\) is positive
\(a\) is a local minima of \(f(x)\)
concave up on an interval around it
\(f^{\prime\prime}(a)\) is negative
\(a\) is a local maxima of \(f(x)\)
concave down on an interval around it

General

3.6 | Calculus with Graphing Calculators (Skipped)

3.7 | Optimization Problems

First Derivative Test for Absolute Extreme Values

Can also use the The Closed Interval Method

Suppose that \(c\) is a critical number of a continuous function \(f\) defined on an interval.

If:

Then \(f(x)\) is the absolute maximum value of \(f\).

If:

Then \(f(x)\) is the absolute minimum value of \(f\).

An alternative method for solving optimization problems is to use implicit differentiation.

3.8 | Newtons Method

3.9 | Anti-Derivatives

Position Function
The position function is the antiderivative of the velocity function.
The position function can be found by anti-differentiating twice.
If the acceleration and the initial values \(s(0)\) and \(v(0)\) are known, then the position function can be found by anti-differentiating twice.
Velocity Function
The velocity function is an antiderivative of the acceleration

Remember:

First Derivative
Denotes velocity
Second Derivative
Denotes acceleration


Formulas

$$\begin{equation} \begin{split} \int c f(x) &= c \int f(x) + C \\ \int f(x) + g(x) &= \int f(x) + \int g(x) + C \\ \int x^n \; \text{if}\; x \neq -1 &= \frac{x^{n + 1}}{n + 1} + C \\ \int \cos(x) &= \sin(x) + C \\ \int \sin(x) &= -\cos(x) + C \\ \int \sec^2(x) &= \tan(x) + C \\ \int \tan(x) \cdot \sec(x) &= \sec(x) + C \\ \int \csc^2(x) &= -\cot(x) + C \\ \int \cot(x) \csc(x) &= -\csc(x) + C \end{split} \end{equation}$$