Chapter 6.3 Rigidity and Local Linear Approximation
Extreme Values
The derivative can reveal a lot about a function’s extreme values.
Both of the above functions have either a local min or local max at \(x=2\). If we draw a tangent line at \(x=2\), we get the following graphs
The tangent line has a slope of zero, which would mean the derivative is zero. Is this always true? To answer the question, we need to explore derivatives more.
Left Derivative
For any real valued function \(f\), if there is a real number \(a\) that is less than \(x_0\) so that \(f\) is defined on \((a, x_0]\), then denote by \(f^\prime_-(x_0)\) the limit \[f^\prime_-(x_0) = \lim_{h\to 0^-} \frac{f(x_0 + h) - f(x_0)}{h},\] whenever this limit exists.
The value \(f^\prime_-(x_0)\) is the left derivative of \(f\) at \(x_0\).
Right Derivative
For any real valued function \(f\), if there is a real number \(b\) that is greater than \(x_0\) so that \(f\) is defined on \([x_0, b)\), then denote by \(f^\prime_+(x_0)\) the limit \[f^\prime_+(x_0) = \lim_{h\to 0^+} \frac{f(x_0 + h) - f(x_0)}{h},\] whenever this limit exists.
The value \(f^\prime_+(x_0)\) is the right derivative of \(f\) at \(x_0\).
Differentiable Theorem
The function \(f\) is differentiable at \(x_0\) if and only if both \(f^\prime_-(x_0)\) and \(f^\prime_+(x_0)\) exist and are equal.
Example 1
For each function \(f\) and each real number \(x_0\) given below, determine \(f^\prime_-(x_0)\) and \(f^\prime_+(x_0)\) respectively:
\(f(x) = |x|\), \(x_0 = 0\);
\(f(x) = \begin{cases}x^2 & \text{if } x< 1\\2-x^2 & \text{if } x\ge 1\end{cases}\), \(x_0 = 1\);
\(f(x) = |(x-5)^3|\), \(x_0 = 5\).
Determine which of the above functions are differentiable at \(x_0\).
- To find \(f'_-(0),\) calculate \(\displaystyle\lim_{h\to 0^-}\frac{f(0+h)-f(0)}{h}.\) Do it to get \[\displaystyle\lim_{h\to 0^-}\frac{f(0+h)-f(0)}{h}=\lim_{h\to 0^-}\frac{f(h)-f(0)}{h}=\lim_{h\to 0^-}\frac{-h-0}{h}=\lim_{h\to 0^-}\frac{-h}{h}=-1.\] So \(f'_-(0)=-1.\)
To find \(f'_+(0),\) calculate \(\displaystyle\lim_{h\to 0^+}\frac{f(0+h)-f(0)}{h}.\) Do it to get \[\displaystyle\lim_{h\to 0^+}\frac{f(0+h)-f(0)}{h}=\lim_{h\to 0^+}\frac{f(h)-f(0)}{h}=\lim_{h\to 0^+}\frac{h-0}{h}=\lim_{h\to 0^+}\frac{h}{h}=1.\] So \(f'_+(0)=1\).
Since the left and right derivative at \(0\) are not equal, \(f(x)=|x|\) is not differentiable at \(0\).
- To find \(f'_-(1),\) calculate \(\displaystyle\lim_{h\to 0^-}\frac{f(1+h)-f(1)}{h}.\) Do it to get \[\displaystyle\lim_{h\to 0^-}\frac{f(1+h)-f(1)}{h}=\lim_{h\to 0^-}\frac{(1+h)^2-f(1)}{h}=\lim_{h\to 0^-}\frac{1+2h+h^2-1}{h}=\lim_{h\to 0^-}\frac{2h+h^2}{h}=\lim_{h\to 0^-}(2+h)=2.\] So \(f'_-(1)=2.\)
To find \(f'_+(1),\) calculate \(\displaystyle\lim_{h\to 0^+}\frac{f(1+h)-f(1)}{h}.\) Do it to get \[\displaystyle\lim_{h\to 0^+}\frac{f(1+h)-f(1)}{h}=\lim_{h\to 0^+}\frac{2-(1+h)^2-1}{h}=\lim_{h\to 0^+}\frac{2-1-2h-h^2-1}{h}=\lim_{h\to 0^+}\frac{-2h-h^2}{h}=\lim_{h\to 0^+}(-2-h)=-2.\] So \(f'_+(1)=-2\).
Since the left and right derivative at \(1\) are not equal, \(f\) is not differentiable at \(1\).
- Note that \[f(x)=\begin{cases}-(x-5)^3&\text{ if } x <5\\ (x-5)^3 &\text{ if }x\geq 5.\end{cases}\] To find \(f'_-(5),\) calculate \(\displaystyle\lim_{h\to 0^-}\frac{f(5+h)-f(5)}{h}.\) Do it to get \[\displaystyle\lim_{h\to 0^-}\frac{f(5+h)-f(5)}{h}=\lim_{h\to 0^-}\frac{-(5+h-5)^3-0}{h}=\lim_{h\to 0^-}\frac{-h^3-0}{h}=\lim_{h\to 0^-}\frac{-h^3}{h}=\lim_{h\to 0^-}-h^2=0.\] So \(f'_-(5)=0.\)
To find \(f'_+(5),\) calculate \(\displaystyle\lim_{h\to 0^+}\frac{f(5+h)-f(5)}{h}.\) Do it to get \[\displaystyle\lim_{h\to 0^+}\frac{f(5+h)-f(5)}{h}=\lim_{h\to 0^+}\frac{(5+h-5)^3-0}{h}=\lim_{h\to 0^+}\frac{h^3-0}{h}=\lim_{h\to 0^+}\frac{h^3}{h}=\lim_{h\to 0^+}h^2=0.\] So \(f'_+(5)=0\).
Since the left and right derivative at \(5\) are equal, \(f\) is differentiable at \(0\).
Note that \(|x|\) is not differentiable at \(x=0\), but it still has a local minimum at \(x=0\). A function may still have a local min or local max even if the derivative is undefined. However, the following theorem says that if the function is differentiable and has a local max or min at \(x_0\), then it’s derivative must be zero.
Fermat’s Theorem
Fermat’s Theorem: For any real valued function \(f\) that is defined on an open interval \(I\), if
\(x_0\) is in \(I\),
\(f\) has a local maximum or minimum at \(x_0\),
and \(f\) is differentiable at \(x_0\),
then \(f^\prime(x_0)\) is equal to \(0\).
We will prove that theorem by assuming that \(x_0\) is a local minimum. If \(f\) has a local minimum at \(x_0\), then \(-f\) has a local maximum at \(x_0\), and \(-f(x_0)\) is equal to \(0\) if and only if \(f(x_0)\) is equal to \(0\).
For any \(f\) that is defined on \((a, x_0)\) and has a local maximum at \(x_0\), if \(h\) is negative, then \[\frac{f(x_0+h) - f(x_0)}{h} \ge 0\quad \text{and so}\quad f_-^\prime(x_0)\ge 0.\]
For any \(f\) that is defined on \([x_0, b)\) and has a local maximum at \(x_0\), if \(h\) is positive, then \[\frac{f(x_0+h) - f(x_0)}{h} \le 0\quad \text{and so}\quad f_+^\prime(x_0)\le 0.\]
Since \(f\) is differentiable at \(x_0\), \[f^\prime(x_0) = f_-^\prime(x_0) = f_+^\prime(x_0)\quad \text{and so}\quad f^\prime(x_0) = 0.\]
For any \(f\) that is defined on \(I\) and that has a local minimum at \(x_0\), \(-f\) is also differentiable and \(-f\) has a local maximum at \(x_0\).
The linearity of differentiation implies that \[f^\prime(x_0) = (-(-f)))^\prime(x_0) = -(-f)^\prime(x_0) = -0 =0.\]
Rolle’s Theorem
Rolle’s Theorem For any real values \(a\) and \(b\) with \(a\) less than \(b\) and for any real valued function \(f\) that is defined on an interval \([a,b]\), if
\(f\) is differentiable on \((a,b)\),
\(f\) is continuous on \([a,b]\),
and \(f(a)\) is equal to \(f(b)\),
then there is a \(c\) in \((a,b)\) so that \[f^\prime(c) = 0.\]
Here is why the theorem is true.
Continuous functions attain their maximum and minimum values on closed and bounded intervals, and so \(f\) attains its maximum value \(M\) and its minimum value \(m\) in \([a,b]\).
If \(f\) attains both values \(M\) and \(m\) on the set \(\{a,b\}\), then \(m\) is equal to \(M\), and so \(f\) is the constant function.
If \(f(a)\) is not equal to \(m\) (or \(M\)), then \(f\) attains \(m\) (or \(M\)) in \((a,b)\). Since \(f(a)\) and \(f(b)\) are equal, there is a point \(c\) in \((a,b)\) at which either \[f(c) = m \quad \text{or}\quad f(c) = M.\] Fermat’s theorem implies that \[f^\prime(c) = 0.\]
Fermat’s theorem is important for many reasons.
A practical use is for locating the points at which a differentiable function \(f\) on a closed interval \([a,b]\) attains its maximum and minimum values.
Determine the zero set \(Z\) of \(f^\prime\);
The function \(f\) must attain its maximum and minimum values on the set \(Z\cup \{a, b\}\);
Compare the values that \(f\) takes on in the set \(Z\cup \{a, b\}\) to determine the maximum and minimum values of \(f\) on \([a,b]\).
Note that if \(f\) is continuous on \([a,b]\) but fails to be differentiable at finitely many points \(Z^\prime\), then it is still possible to use Fermat’s theorem to locate the points at which \(f\) attains its maximum and minimum values on \([a,b]\).
To do so, compare the values that \(f\) takes on in the set \(Z\cup Z^\prime\cup \{a,b\}\).
The set \(Z\cup Z^\prime\) is the set of critical points of \(f\) in \([a,b]\).
Example 2
Determine all points at which each function \(f\) below can potentially attain a local maximum or a local minimum:
- \(f(x) = x^2 - 10x + 7\);
- \(f(x) = x{\rm e}^{-x^2}\).
- \(f(x) = |x(x-1)^2|\).
- The derivative of \(f\) is \(f'(x)=2x-10\). Find where \(f'(x)=0\) by solving \[0=2x-10.\] The solution is \(x=5.\) It is possible this is where the local max or local min of the function is. In fact, this is exactly where it is since \(f\) can be rewritten as \((x-5)^2-18\). Because the parabola opens up, the local minimum is at \((5,-18).\)
- The derivative of \(f\) is \(f'(x)=e^{-x^2}-2x^2e^{-x^2}\), Find where \(f'(x)=0\) by solving \[0=e^{-x^2}-2x^2e^{-x^2}.\] Do the work to get \[\begin{align*}0&=e^{-x^2}-2x^2e^{-x^2}\\0&=e^{-x^2}(1-2x^2)\\\end{align*}\] implies that \(0=e^{-x^2}\) or \(0=1-2x^2\). The first equation has no solution: the exponential function is never zero. The second equation has solution \(x=\pm \frac{1}{\sqrt{2}}\). So it is possible there is a local maximum or local minimum at \(x=\frac{1}{\sqrt{2}}\) and \(x=-\frac{1}{\sqrt{2}}\).
- The function \(f\) is actually a piecewise function \[f(x)=\begin{cases}-x(x-1)^2&\text{ if }x<0\\x(x-1)^2&\text{ if }x\ge 0\end{cases}.\] So when \(x<0\), \(f'(x)=-(x-1)^2-2x(x-1)=-3x^2+4x-1\). When \(x>0\), \(f'(x)=(x-1)^2+2x(x-1)=3x^2-4x+1\). Because \(f'_{-}(0)=-1\) and \(f'_{+}(0)=1\), the function is not differentiable at \(x=0.\) There may or may not be a local maximum or local minimum. The derivative is equal to zero when the equation \(-3x^2+4x-1=0\) on \((-\infty,0)\) and \(3x^2-4x+1=0\) are \((0,\infty)\) are satisfied. The derivative is therefore zero at \(x=\tfrac{1}{3}\) or \(x=1\).
The conclusion is that the function may have a local maximum or local minimum at \(x=0\), \(x=\tfrac{1}{3}\) or \(x=1\).
Mean Value Theorem
Mean Value Theorem
Mean Value Theorem
For any real values \(a\) and \(b\) with \(a\) less than \(b\), and for any real valued function \(f\), if
\(f\) is differentiable on \((a,b)\),
\(f\) is continuous on \([a,b]\),
then there is a \(c\) in \((a,b)\) so that \[f^\prime(c) = \frac{f(b)-f(a)}{b-a}.\]
Heuristic: If a particle moves along a line in a time interval \([a,b]\), then there is a \(c\) in \((a,b)\) at which the instantaneous velocity of the particle is equal to its average velocity on \([a,b]\).
Take \(L\) to be the line that passes through \((a,f(a))\) and \((b, f(b))\).
The function \(f-L\) is zero at \(a\) and \(b\), and \(f-L\) is differentiable on \((a,b)\) and continuous on \([a,b]\).
Rolle’s theorem implies that there is a \(c\) in \((a,b)\) such that
\[\begin{align*}(f-L)^\prime(c) &= f^\prime(c) - L^\prime(c) \\&= f^\prime(c) - \frac{f(b) - f(a)}{b-a}\\& = 0.\hspace{.41in}\end{align*}\]
The mean value theorem has many important consequences and the rest of this section is devoted to the study of these consequences.
Theorem on Differentiable Functions
For any function \(f\), if that is differentiable on \((a,b)\) and continuous on \([a,b]\),
if \(f\) is differentiable on \((a,b)\),
if \(f\) is continuous on \([a,b]\),
if there is a natural number \(M\) so that for any \(z\) in \([a,b]\), \[|f^\prime(z)|\leq M,\]
then for any \(x\) and \(y\) in \([a,b]\), \[|f(x) - f(y)| \leq M|x-y|.\]
Here is why the theorem is true.
The mean value theorem guarantees that for any \(x\) and \(y\) in \([a,b]\), there is a \(c\) between \(x\) and \(y\) so that \[f(x) - f(y) = f^\prime(c)(x-y),\]
and so \[|f(x) - f(y)| = |f^\prime(c)||x-y| \leq M|x-y|.\]
Example 3
Take \(f(x)=\tfrac{1}{4}x^2+\frac{1}{2}\). This to a differentiable function on \((-1, 2)\) and continuous on \([-1,2]\).
- Find a value \(M\) so that \(|f'(x)|\leq M\) for all \(x\) in \([-1,2]\).
- Given that \(f(-1)=\tfrac{3}{4}\), find the smallest range of values that is guaranteed to contain \(f([-1, 2])\) and sketch the smallest region that you can that is guaranteed to contain \(f\). Then compare it to the graph of \(f\).
- Given that \(f(-1)=\tfrac{3}{4}\) and \(f(2)=\tfrac{3}{2}\), find the smallest range of values that is guaranteed to contain \(f([-1, 2])\) and sketch the smallest region that you can that is guaranteed to contain \(f\). Then compare it to the graph of \(f\).
- The derivative is \(f'(x)=\frac{1}{2}x.\) This function is non-negative when \(1\leq x<2\) and negative when \(-1<x<1\). Therefore, the function \(|f'(x)|\) has its highest absolute value at \(f(2)=1.\) Therefore, \(|f'(x)|\leq 1\) on \((-1,2).\)
- Use Theorem on Differentiable Functions to conclude that for \(x\in(-1,2)\), \(|f(x)-f(-1)|\leq 1 |x-(-1)|\) or \(|f(x)-\tfrac{3}{4}|\leq |x+1|.\) Break up the absolute value of \(|f(x)-\tfrac{3}{4}|\) to get \[f(x)-\tfrac{3}{4}\leq |x+1|\] when \(f(x)\geq \tfrac{3}{4}\) and \[-\left(f(x)-\tfrac{3}{4}\right)\leq |x+1|\] when \(f(x)<\tfrac{3}{4}\). Rewrite the two inequalities to get \[f(x)\leq |x+1|+\tfrac{3}{4}\] and \[f(x)\geq -|x+1|+\tfrac{3}{4}.\] This gives us a bound on the function.
- Repeat the above process for \(x\in(-1,2)\) with \(|f(x)-f(2)|\leq 1 |x-2|\) to get that \[f(x)\leq |x-2|+\tfrac{3}{2}\] and \[f(x)\geq -|x-2|+\tfrac{3}{2}.\] Therefore \[f(x)\leq |x+1|+\tfrac{3}{4},\] \[f(x)\geq -|x+1|+\tfrac{3}{4},\] \[f(x)\leq |x-2|+\tfrac{3}{2},\] and \[f(x)\geq -|x-2|+\tfrac{3}{2}.\] The four bounds is some sort of 4 vertex polygon.
Antiderivatives and Fundamental Theorem of Calculus
Zero Derivative Theorem
For any interval \(I\) and for any real valued function \(f\) on \(I\), if \(f\) is differentiable on \(I\), and if for every \(x\) in \(I\), \[f^\prime(x) = 0,\] then \(f\) is a constant function.
This result is one of the most important consequences of the mean value theorem.
It may be thought of as a rigidity result that comes from the local linear approximation of a function: A function with the above condition on its derivative is entirely determined by its value at a single point.
Here is why this is true.
For any \(x\) and \(y\) in \(I\), the mean value theorem implies that there is a \(c\) between \(x\) and \(y\) so that \[f(x) - f(y) = f^\prime(c)(x-y) = 0\quad \text{and so}\quad f(x) = f(y).\]
Equal Derivative Theorem
For any interval \(I\), and for any real valued functions \(f\) and \(g\) on \(I\) that are differentiable on \(I\), if for every \(x\) in \(I\), \[f^\prime(x) = g^\prime(x),\] then \(f-g\) is a constant function.
Here is why this is true.
Linearity of the derivative implies that for any \(x\) in \(I\), \[(f-g)^\prime(x) = f^\prime(x) - g^\prime(x) = 0.\]
Since \((f-g)^\prime\) is equal to \(0\) on \(I\), the function \(f-g\) is a constant function.
Example 4
Take \(f\) and \(g\) to be differentiable functions on the interval \([0,3]\) so that \(f(1)=1\), \(g(1)=2\), and that for any \(x\) in \((0,3),\) \[f'(x)-g'(x)=0.\] Determine \(g(3)-f(3).\)
Because \[f'(x)-g'(x)=0\] for all \(x\) in \((0,3)\) the function \(h=f-g\) is constant.
That means for all \(x\) in \([0,3]\), \[f(x)-g(x)=c\] for some constant \(c\).
Because \(f(1)=1\) and \(g(1)=2\), \[\begin{align*} f(1)-g(1)&=c\\ 1-2&=c\\ -1&=c. \end{align*}\] Therefore, \[f(x)-g(x)=-1\] for all \(x\) in \([0,3]\) so \[g(3)-f(3)=1.\]
Antiderivative
For any interval \(I\) and any real valued function \(f\) that is defined on \(I\), if there is a function \(F\) that is also defined on \(I\), differentiable on \(I\), and \[F^\prime = f,\] then \(f\) has an antiderivative on \(I\) and \(F\) is an antiderivative of \(f\) on \(I\).
If \(F\) and \(G\) are both antiderivatives of \(f\), then \[(F-G)^\prime = F^\prime - G^\prime = f-f = 0\] and so there is a constant function \(C\) so that \[F = G + C.\]
Indefinite Integral
Define by the symbol \[\int f(x)\,{\rm d}x\] the indefinite integral of \(f\), the set of functions that are antiderivatives of \(f\) on \(I\).
For any given antiderivative \(F\) of \(f\), write \[\int f(x)\,{\rm d}x = F(x)+C\] to indicate that any two functions that are antiderivatives of \(f\) may differ only by a constant on the interval \(I\).
The notation for the indefinite integral of a function, like the Leibniz notation for differentiation, allows us to work with formulas for function and not have to explicitly name functions.
Antidifferentiation is the operation that takes a function to its indefinite integral, although we sometimes abuse the term and talk about antidifferentiation as taking a function to an antiderivative of the function.
The various formulas for differentiation imply certain helpful formulas for antidifferentiation that we will explore below.
Such formulas can be helpful for determining antiderivatives, but the most fundamental way of checking that \(F\) is an antiderivative for \(f\) is to differentiate \(F\).
Linearity of Antidifferentiation
Note that the linearity of differentiation also implies the linearity of antidifferentiation, that is: \[\int (af(x) +bg(x))\,{\rm d}x = a\int f(x)\,{\rm d}x + b\int g(x))\,{\rm d}x.\]
Example 5
For each function \(f\) that is given below, determine the antiderivative of \(f\):
- \(f(x) = 4x^2 + x + 5\);
- \(f(x) = \frac{5}{x} - 2\sqrt{x}\);
- \(f(x) = 2x + \sin(x)\);
- \(f(x) = \frac{7}{1+x^2}\);
First, if \(n\) and \(c\) are real numbers and \(n+1\not= 0\), then the following are true:
- \((x^{n+1})'=(n+1)x^{n}\),
- \((cx)'=c\),
- \((\cos(x))'=-\sin(x)\),
- \((\arctan(x))'=\frac{1}{x^2+1}\) and
- \((\ln(x))'=\frac{1}{x}.\)
This means
- \(x^{n+1}+C=\int (n+1)x^{n}\,\mathrm{d}x\),
- \(cx+C=\int c\,\mathrm{d}x\),
- \(\cos(x)+C=\int (-\sin(x))\, \mathrm{d}x\),
- \(\arctan(x)+C=\int \frac{1}{x^2+1}\,\mathrm{d}x\) and
- \(\ln|x|+C=\int \frac{1}{x}\,\mathrm{d}x.\)
Rewrite to get the following antiderivative formulas
- \(\int x^{n}\,\mathrm{d}x=\frac{x^{n+1}}{n+1}+C\) for \(n\not= -1\)
- \(\int c\,\mathrm{d}x=cx+C\)
- \(\int \sin(x)\, \mathrm{d}x=-\cos(x)+C\)
- \(\int \frac{1}{x^2+1}\,\mathrm{d}x=\arctan(x)+C\)
- \(\int \frac{1}{x}\,\mathrm{d}x=\ln|x|+C\) (so that \(\ln\) is defined)
Use linearity to get the following
- \[\begin{align*}\int(4x^2 + x + 5)\,dx=&4\int x^2\,\mathrm{d}x+\int x\,\mathrm{d}x+\int 5\,\mathrm{d}x\\ &=4\left[\frac{x^{2+1}}{2+1}\right]+\left[\frac{x^{1+1}}{1+1}\right]+5x+C\\ &=\tfrac{4}{3}x^3+\tfrac{1}{2}x^2+5x+C\\\end{align*}\]
- \[\begin{align*}\int\left(\frac{5}{x} - 2\sqrt{x}\right)\,dx=&5\int \frac{1}{x}\,\mathrm{d}x-2\int x^{\tfrac{1}{2}}\,\mathrm{d}x\\ &=5\ln(x)-2\left[\frac{x^{\frac{1}{2}+1}}{\frac{1}{2}+1}\right]+C\\ &=5\ln(x)-\tfrac{2}{\tfrac{3}{2}}x^{3/2}+C\\ &=5\ln(x)-\tfrac{4}{3}x^{3/2}+C\\\end{align*}\]
- \[\begin{align*}\int\left(2x + \sin(x)\right)\,dx=&2\int x\,\mathrm{d}x+\int \sin(x)\,\mathrm{d}x\\ &=2\left[\frac{x^{1+1}}{1+1}\right]+\left[-\cos(x)\right]+C\\ &=x^2-\cos(x)+C\end{align*}\]
- \[\begin{align*}\int\left(\frac{7}{1+x^2}\right)\,dx=&7\int \frac{1}{x^2+1}\,\mathrm{d}x\\ &=7\arctan(x)+C\end{align*}\]
Check these are valid by taking the derivative of the answer and confirming the original function is obtained.
We have the following theorem that allows us to calculate indefinite integrals:
Fundamental Theorem of Calculus I (FTC 1)
Fundamental Theorem of Calculus I (FTC 1) If \(F\) is differentiable on the interval \([a,b]\) and if for each \(x\) in \([a,b]\), \[F'(x)=f(x)\] and if \(f\) is integrable on \([a,b]\), then \[\int_a^bf(x)\,{\rm{d}}x=F(b)-F(a).\] Another notation for this is given by \[F(x)\biggr|^b_a=F(b)-F(a).\]
Example 6
Calculate the following:
- \(\int_{0}^1x^2\,\mathrm{d}x\)
- \(\int_{-2}^3 (4x^2 + x + 5)\,\mathrm{d}x\)
- First note that \(\int x^2\,\mathrm{d}x=\tfrac{1}{3}x^3+C\), so \(F(x)=\tfrac{1}{3}x^3+C\) is an antiderivative of \(f(x)=x^2\). By the Fundamental Theorem of Calculus I, \[\int_0^1x^2\,\mathrm{d}x=(\tfrac{1}{3}x^3+C)\biggr|^1_0=\tfrac{1}{3}(1)^3+C-\tfrac{1}{3}(0)^3-C=\tfrac{1}{3}\]
- First note that \(\int (4x^2 + x + 5)\,\mathrm{d}x=\tfrac{4}{3}x^3+\tfrac{1}{2}x^2+5x+C\), so \(F(x)=\tfrac{4}{3}x^3+\tfrac{1}{2}x^2+5x+C\) is an antiderivative of \(f(x)=4x^2 + x + 5\). By the Fundamental Theorem of Calculus I, \[\int_{-2}^3 (4x^2 + x + 5)\,\mathrm{d}x=(F(x))\biggr|^3_{-2}=F(3)-F(-2)=\tfrac{111}{2}+\tfrac{56}{3}\]
As we seen above, \(C\) won’t matter because of the cancellation. So for definite integrals, we usually let \(C=0\).
Fundamental Theorem of Calculus II (FTC 1I)
Fundamental Theorem of Calculus II (FTC 1I) If \(f\) is continuous on \([a,b]\), then \(F(x)=\int_a^xf(t)\,\mathrm{d}t\) is differentiable on \((a,b)\) and \[F'(x)=\left(\int_a^xf(t)\,\mathrm{d}t\right)'=f(x)\]
Example 7
- The derivative of \(F(x)=\int_3^x \sin(x)\,\mathrm{d}x\) is \(F'(x)=\sin(x)\).
- The derivative of \(F(x)=\int_3^{x^2} \ln(x)e^x\,\mathrm{d}x\) is \(F'(x)=\ln(x^2)e^{x^2}\cdot 2x\). (chain rule)
Reverse Chain Rule or U-Substitution
Reverse Chain Rule
For any differentiable functions \(F\) and \(G\), if for any \(x\) in an interval \(I\) and any \(z\) in \(g(I)\), \[F^\prime(z) = f(z)\quad\text{and}\quad G^\prime(x) = g(x),\] we have
\[\int f(G(x))g(x)\,{\rm d}x = F(G(x)) + C.\]
This formula is the reverse chain rule. Some call it \(u\)-substitution because if we let \(u(x)=G(x)\), then the theorem can be rewritten like this
\[\int f(u(x))u'(x)\,{\rm d}x = F(u(x)) + C.\]
This is why this is true.
The chain rule for differentiation implies that \[(F\circ G)^\prime(x) = f(G(x))g(x).\]
The mean value theorem implies that \[\int (F\circ G)^\prime(x) \,{\rm d}x = F(G(x)) + C\quad\text{and so}\quad \int f(G(x))g(x)\,{\rm d}x = F(G(x)) + C.\]
Example 8
Determine the following antiderivatives:
- \(\displaystyle \int 2x\sin(x^2)\,{\rm d}x\);
- \(\displaystyle \int^3_2 (4x^3 +3)(x^4 + 3x -5)^{\frac{2}{3}}\,{\rm d}x\);
- \(\displaystyle \int \frac{2x}{x^2 +3}\,{\rm d}x\);
- \(\displaystyle \int (3x^2+1)\cos(x^3+x+2)\,{\rm d}x\).
Notice that \((\sin(x))'=\cos(x)\) so \(\sin(x)+C=\int \cos(x)\,\mathrm{d}x.\)
- Let \(f(x)=\sin(x)\) and \(u(x)=x^2\). Then \(u'(x)=2x\). Notice that \(2x\sin(x^2)=2xf(x^2)=2xf(u)=f(u)2x=f(u)u'.\) So by the reverse chain rule \(\displaystyle \int 2x\sin(x^2)\,{\rm d}x=F(u)+C\) where \(F\) is an antiderivative of \(f(x)=\sin(x)\) and \(C\) is a constant. So in this case \(F(x)=-\cos(x)+C\). Thus \(\displaystyle \int 2x\sin(x^2)\,{\rm d}x=F(u)+C=-\cos(u)+C=-\cos(x^2)+C.\)
- Let \(f(x)=x^{2/3}\) and \(u(x)=x^4+3x-5\). Then \(u'(x)=4x^3+3\). Notice that \((4x^3 +3)(x^4 + 3x -5)^{\frac{2}{3}}=(4x^3+3)u^{2/3}=f(u)(4x^3+3)=f(u)u'.\) So by the reverse chain rule \(\displaystyle \int (4x^3 +3)(x^4 + 3x -5)^{\frac{2}{3}}\,{\rm d}x=F(u)+C\), where \(F\) is an antiderivative of \(f(x)=x^{2/3}\) and \(C\) is a constant. So in this case \(F(x)=\frac{3}{5}x^{5/3}+C\). Thus \(\displaystyle \int (4x^3 +3)(x^4 + 3x -5)^{\frac{2}{3}}\,{\rm d}x=F(u)+C=\tfrac{3}{5}(u)^{5/3}+C=\tfrac{3}{5}(x^4+3x-5)^{5/3}+C\). To compute \[\displaystyle \int^3_2 (4x^3 +3)(x^4 + 3x -5)^{\frac{2}{3}}\,{\rm d}x\] use the antiderivative \(G(x)=\tfrac{3}{5}(x^4+3x-5)^{5/3}+C\) and the fundamental theorem of calculus I to get \[\displaystyle \int^3_2 (4x^3 +3)(x^4 + 3x -5)^{\frac{2}{3}}\,{\rm d}x=G(3)-G(2)=\tfrac{3}{5}(85)^{5/3}-\tfrac{3}{5}(17)^{5/3}\]
- Let \(u(x)=x^2+3\). Notice that \(u'(x)=2x\). So \(\frac{2x}{x^2+3}=\frac{u'}{u}=(u)^{-1}u'\). Let \(f(x)=\frac{1}{x}\). Then we see that \(\frac{2x}{x^2+3}=f(u)u'.\) So by the reverse chain rule \(\displaystyle \int \frac{2x}{x^2 +3}\,{\rm d}x=F(u)+C\), where \(F\) is an antiderivative of \(f(x)=\frac{1}{x}\). In this case, \(F(x)=\ln|x|,\) The final answer is \(\displaystyle \int \frac{2x}{x^2 +3}\,{\rm d}x=\ln|x^2+3|+C\)
- Let \(f(x)=\cos(x)\) and \(u(x)=x^3+x+2\). Then \(u'(x)=3x^2+1\). Notice that \((3x^2+1)\cos(x^3+x+2)=(3x^2+1)f(x^3+x+2)=(3x^2+1)f(u)=f(u)(3x^2+1)=f(u)u'.\) So by the reverse chain rule \(\displaystyle \int (3x^2+1)\cos(x^3+x+2)\,{\rm d}x=F(u)+C\) where \(F\) is an antiderivative of \(f(x)=\cos(x)\) and \(C\) is a constant. So in this case \(F(x)=\sin(x)+C\). Thus \(\displaystyle\int (3x^2+1)\cos(x^3+x+2)\,{\rm d}x=F(u)+C=\sin(u)+C=\sin(x^3+x+2)+C.\)
When determining an antiderivative, it is helpful to pay attention to the form of the solution and attempt to find candidates that have a certain form.
Differentiating the form of the antiderivative can help us to determine the actual antiderivative.
The function \(f(x)\) is said to be the integrand in an indefinite integral \(\int f(x)\,{\rm d}x\)—To determine indefinite integral, study the form and structure of its integrand.
It may help to use linearity of antidifferentiation to simplify an indefinite integral.
L’Hoptial’s Rule
For any interval \(I\) that contains \(x_0\), and any functions \(f\) and \(g\) defined on \(I\setminus\{x_0\}\), the following limits are said to have an indeterminate form:
(\(\tfrac{0}{0}\) or \(\pm\tfrac{\infty}{\infty}\))
- \(\displaystyle \lim_{x\to x_0} \tfrac{f(x)}{g(x)}\) and either \(\displaystyle \lim_{x\to x_0} f(x) = \lim_{x\to x_0} g(x) = 0\) or \(\displaystyle \lim_{x\to x_0} f(x) = \pm\infty\) and \(\displaystyle\lim_{x\to x_0} g(x) = \pm\infty\)
(\(\infty - \infty\))
- \(\displaystyle \lim_{x\to x_0} (f(x) - g(x))\) and either \(\displaystyle \lim_{x\to x_0}f(x)=\lim_{x\to\infty}g(x)=\infty\) or \(\displaystyle \lim_{x\to x_0} f(x) = \lim_{x\to x_0} g(x) = -\infty\).
(\(\infty^0\), \(1^{\pm\infty}\),\(0^0\))
- \(\displaystyle \lim_{x\to x_0} (f(x))^{g(x)}\) and either \(\displaystyle \lim_{x\to x_0} f(x) = \infty\) and \(\displaystyle \lim_{x\to x_0} g(x) = 0\), or \(\displaystyle \lim_{x\to x_0} f(x) = 1\) and \(\displaystyle \lim_{x\to x_0} g(x) = \pm\infty\) or \(\displaystyle \lim_{x\to x_0} f(x) = 0\), \(f\) is non-negative, and \(\displaystyle \lim_{x\to x_0} g(x) = 0\).
Example 9
Identify which of these limits have indeterminate forms:
- \(\displaystyle \lim_{x \to 0} \tfrac{\sin(x^2)}{x}\);
- \(\displaystyle \lim_{x \to \frac{1}{2}} \tfrac{\cos(\pi x)}{(x-\frac{1}{2})}\);
- \(\displaystyle \lim_{x\to 1} \tfrac{x^2 +1}{{\rm e}^x}\);
- \(\displaystyle \lim_{x\to \infty} \left(\sqrt{x+1} - \sqrt{x}\right)\);
- \(\displaystyle \lim_{x\to 3} \tfrac{x}{(x-3)^2}\).
- \(\displaystyle \lim_{x\to 4} \left(\sqrt{x+1} - \sqrt{x}\right)\);
- \(\displaystyle \lim_{x\to \frac{1}{2}^+} \tfrac{\ln(x-\frac{1}{2})}{\tan(\pi x)}\);
- \(\displaystyle \lim_{x\to 0} x\ln(x^2)\);
- \(\displaystyle \lim_{x\to 0^+} x^x\);
- \(\displaystyle \lim_{x\to \infty} \tfrac{x^2}{{\rm e}^x}\);
- \(\displaystyle \lim_{x\to \infty} \tfrac{{\rm e}^{-x}}{\arctan(x)}\).
- 0/0
- 0/0
- Not indeterminant because limit of numerator and denominator are both non-zero.
- \(\infty -\infty\)
- Not indeterminant form because the numerator has a finite non-zero limit
- Not indeterminant because both limits are finite
- \(\infty/\infty\)
- Rewrite as \(\frac{x}{\frac{1}{\ln(x^2)}}\) then we have \(0/0\)
- \(0^0\)
- \(\infty/\infty\)
- Not indeterminant form since denominator has a non-zero limit.
L’Hoptial’s Rule
L’Hoptial’s Rule
For any interval \((a,b)\), any \(x_0\) in \((a,b)\) and any functions \(f\) and \(g\) that are continuous on \([a,x_0)\cup(x_0,b]\), differentiable on \((a,x_0)\cup(x_0,b)\) and either \[\lim_{x\to x_0}f(x)=\lim_{x\to x_0}g(x)=0,\] or \[\lim_{x\to x_0}f(x)=\pm\infty \text{ or }\lim_{x\to x_0}g(x)=\pm\infty,\] then if \[\lim_{x\to x_0}\frac{f'(x)}{g'(x)}\] exists, then so does \[\lim_{x\to x_0}\frac{f(x)}{g(x)}\] and both limits are equal.
Now we practice computing some of these.
Example 10
Verify that the following are indeterminate forms and use L’Hopital’s rule to determine the given limits:
- \(\displaystyle \lim_{x\to 3}\frac{x^2-x-6}{x-3}\);
- \(\displaystyle \lim_{x\to -2}\frac{2x^3+4x^2+x+2}{x+2}\);
- \(\displaystyle \lim_{x\to \infty}\left(\sqrt{x^2 +3x + 1} -x\right)\);
- \(\displaystyle\lim_{x\to 0^+} x\ln(x)\);
- \(\displaystyle \lim_{x\to 0^+} x^{x}\);
- \(\displaystyle \lim_{x\to \infty} \tfrac{x}{{\rm e}^x}\);
- \(\displaystyle \lim_{x\to \infty} \tfrac{x^2}{{\rm e}^x}\);
- \(\displaystyle\lim_{x\to 3}(x^2-x-6)=0\) and \(\displaystyle\lim_{x\to 3}(x-3)=0\) so indeterminant form \(0/0\). Use L’H rule to get \[\begin{align*}\displaystyle \lim_{x\to 3}\frac{x^2-x-6}{x-3}&=\lim_{x\to 3}\frac{(x^2-x-6)'}{(x-3)'}\\ &=\lim_{x\to 3}\frac{2x-1}{1-0}\\ &=\lim_{x\to 3}(2x-1)\\ &=6-1\\ &=5\end{align*}\]
- \(\displaystyle\lim_{x\to -2}(2x^3+4x^2+x+2)=0\) and \(\displaystyle\lim_{x\to -2}(x+2)=0\) so indeterminant form \(0/0\). Use L’H rule to get \[\begin{align*}\displaystyle \lim_{x\to -2}\frac{2x^3+4x^2+x+2}{x+2}&=\lim_{x\to -2}\frac{(2x^3+4x^2+x+2)'}{(x+2)'}\\ &=\lim_{x\to -2}\frac{6x^2+8x+1}{1}\\ &=\lim_{x\to -2}(6x^2+8x+1)\\ &=24-16+1\\ &=9\end{align*}\]
- \(\displaystyle\lim_{x\to \infty}\sqrt{x^2 +3x + 1}=\infty\) and \(\displaystyle\lim_{x\to \infty}x=\infty\) so indeterminant form of \(\infty-\infty\). Need to rewrite as a quotient. Use conjugate trick: \[\begin{align*}\displaystyle \lim_{x\to \infty}\left(\sqrt{x^2 +3x + 1} -x\right)&=\displaystyle \lim_{x\to \infty}\left(\sqrt{x^2 +3x + 1} -x\right)\cdot \frac{\sqrt{x^2+3x+1}+x}{\sqrt{x^2+3x+1}+x}\\ &=\displaystyle \lim_{x\to \infty}\frac{x^2+3x+1-x^2}{\sqrt{x^2+3x+1}+x}\\ &=\displaystyle \lim_{x\to \infty}\frac{3x+1}{\sqrt{x^2+3x+1}+x}\\ &=\displaystyle \lim_{x\to \infty}\frac{(3x+1)'}{(\sqrt{x^2+3x+1}+x)'}&\text{ L'H Rule}\\ &=\displaystyle \lim_{x\to \infty}\frac{3}{\frac{2x+3}{2\sqrt{x^2+3x+1}}+1}\\ \end{align*}\] The limit of \(\frac{2x+3}{2\sqrt{x^2+3x+1}}\) can computed by multiplying top and bottom by \(\frac{1}{x}\) or \(\frac{1}{\sqrt{x^2}}\). The limit will end up equaling \(1\). Thus \[\begin{align*}\displaystyle \lim_{x\to \infty}\left(\sqrt{x^2 +3x + 1} -x\right)&=\displaystyle \lim_{x\to \infty}\left(\sqrt{x^2 +3x + 1} -x\right)\cdot \frac{\sqrt{x^2+3x+1}+x}{\sqrt{x^2+3x+1}+x}\\ &=\displaystyle \lim_{x\to \infty}\frac{x^2+3x+1-x^2}{\sqrt{x^2+3x+1}+x}\\ &=\displaystyle \lim_{x\to \infty}\frac{3x+1}{\sqrt{x^2+3x+1}+x}\\ &=\displaystyle \lim_{x\to \infty}\frac{(3x+1)'}{(\sqrt{x^2+3x+1}+x)'}&\text{ L'H Rule}\\ &=\displaystyle \lim_{x\to \infty}\frac{3}{\frac{2x+3}{2\sqrt{x^2+3x+1}}+1}\\ &=\frac{3}{1+1}\\ &=\frac{3}{2}. \end{align*}\]
- Rewrite \(x\ln(x)=\frac{\ln(x)}{\frac{1}{x}}.\) Then the limit is of the form \(\infty/\infty\). Use L’H rule to get \[\begin{align*}\displaystyle \lim_{x\to 0^+} x\ln(x)&=\displaystyle \lim_{x\to 0^+}\frac{\ln(x)}{\frac{1}{x}}\\ &=\displaystyle \lim_{x\to 0^+}\frac{(\ln(x))'}{(\frac{1}{x})'}&\text{ L'H Rule}\\ &=\displaystyle \lim_{x\to 0^+}\frac{\frac{1}{x}}{-\frac{1}{x^2}}\\ &=\displaystyle \lim_{x\to 0^+}\frac{1}{x}\cdot(-2x^2)\\ &=\displaystyle \lim_{x\to 0^+}(-2x)\\ &=0. \end{align*}\]
- This is of the form \(0^0\). Rewrite the expression as a quotient: \(x^x=e^{\ln(x^x)}=e^{x\ln(x)}\). Use the continuity of exponential function, to conclude that to calculate the limit of \(x^x,\) calculate instead \(e^{\displaystyle\lim_{x\to 0^+}x\ln(x)}\). Thus \(\displaystyle \lim_{x\to 0^+}x^x=e^{\displaystyle\lim_{x\to 0^+}x\ln(x)}=e^0=1\).
- The form is \(\infty/\infty,\) so use L’H rule \[\begin{align*}\displaystyle \lim_{x\to \infty} \frac{x}{e^x}&=\displaystyle \lim_{x\to \infty}\frac{(x)'}{(e^x)'}\\ &=\displaystyle \lim_{x\to \infty}\frac{1}{e^x}\\ &=0. \end{align*}\]
- The form is \(\infty/\infty,\) so use L’H rule \[\begin{align*}\displaystyle \lim_{x\to \infty} \frac{x^2}{e^x}&=\displaystyle \lim_{x\to \infty}\frac{(x^2)'}{(e^x)'}&\text{L'H Rule}\\ &=\displaystyle \lim_{x\to \infty}\frac{2x}{e^x}\\ &=\displaystyle \lim_{x\to \infty}\frac{(2x)'}{(e^x)'}&\text{L'H Rule}\\ &=\displaystyle \lim_{x\to \infty}\frac{2}{e^x}\\ &=0. \end{align*}\]
L’Hopital’s Rule does not necessarily simplify the determination of a limit.
Example 11
Observe what happens if you attempt to use L’Hopital’s rule to calculate \[\lim_{x\to 0} \frac{\sqrt{x^2+1}}{x}\]
L’H rule does not apply because the numerator has a finite non-zero limit. Improper use of L’H rule results in \[\lim_{x\to 0} \frac{\sqrt{x^2+1}}{x}=\lim_{x\to 0}\frac{\frac{2x}{2\sqrt{x^2+1}}}{1}=\lim_{x\to 0}\frac{2x}{2\sqrt{x^2+1}}=\frac{0}{1}=0.\] This is false, see the graph.
Example 12
Determine what is incorrect about these statements:
- L’Hopital’s rule implies that \[\displaystyle \lim_{x\to \infty} \frac{1+3x}{2x+\sin(x)} = \lim_{x\to \infty} \frac{3}{2+\cos(x)}.\] Since the second limit does not exist, neither does the first.
- L’Hopital’s rule implies that \[\displaystyle \lim_{x\to \infty} \dfrac{{\rm e}^x - 1}{x^2} = \lim_{x\to \infty} \dfrac{{\rm e}^x}{2x}.\] Since the second limit does not exist, neither does the first.
- A conclusion can only be made if the new limit exist. If the limit does not exist, nothing can be said about the original limit.
- The newer limit does exist. Need to take L’H rule again.