Find the local (relative) extrema of the function \[f\left( x \right) = - {x^2} + 4x - 3.\]
Solution.
This function is differentiable everywhere on the set \(\mathbb{R}.\) Consequently, the extrema of the function are contained among its stationary points. Solve the equation \(f'\left( x \right) = 0:\)
\[f'\left( x \right) = 0,\;\; \Rightarrow - 2x + 4 = 0,\;\; \Rightarrow x = 2.\]
The function has one stationary point \(x = 2.\) Determine the sign of the derivative to the left and right of the point \(x = 2.\) The derivative is positive for \(x \lt 2\) and negative for \(x \gt 2\). Thus, when passing through the point \(x = 2\), the derivative changes sign from plus to minus. By the first derivative test, this means that \(x = 2\) is a maximum point.
The maximum value (that is the value of the function at the maximum point) is equal to
These two points are critical since the function is defined and continuous over all \(x.\) The derivative also exists for all \(x,\) so there are no other critical points.
Find the local extrema of the cubic function \[f\left( x \right) = {x^3} - 3{x^2} - 9x + 2.\]
Solution.
The function is differentiable on the whole set of real numbers. Therefore, the extremum points are contained among the stationary points (where the derivative is equal to zero).
Substituting test values of \(x\), we determine the sign of the derivative \(f'\left( x \right) = 3{x^2} - 6x - 9\) in the corresponding intervals (Figure \(5\)).
As seen, when passing through the point \(x = - 1\), the derivative changes sign from plus to minus. By the first derivative test, this point is a local maximum point. Similarly, we establish that \(x = 2\) is a local minimum point.
We now determine the maximum and minimum values of the function:
Find the local extrema of the function \[f\left( x \right) = {x^{\frac{1}{x}}}.\]
Solution.
This function belongs to the family of power-exponential functions. In general, they have the form of \(y = g{\left( x \right)^{h\left( x \right)}}.\) It is usually assumed that the domain of power-exponential functions satisfies the condition \(g\left( x \right) \gt 0.\) (In some special cases, the base \(g\left( x \right)\) can be negative − for example, if \(h = {\frac{1}{3}}.\)) In our case we suppose that \(x \gt 0.\) It follows from here that the function takes only positive values.
Note: The derivative of the function \(f\left( x \right) = {x^{\frac{1}{x}}}\) can also be found using logarithmic differentiation.
Calculate the critical points:
\[f'\left( x \right) = 0,\;\; \Rightarrow {x^{\frac{1}{x} - 2}}\left( {1 - \ln x} \right) = 0,\;\; \Rightarrow 1 - \ln x = 0,\;\; \Rightarrow \ln x = 1,\;\; \Rightarrow x = e.\]
In the left neighborhood of \(x = e,\) the derivative is positive, and in the right neighborhood it is negative. Consequently, the function attains a local maximum at the point \(x = e.\) The maximum value is equal
When passing through these points, the derivative changes sign as shown above in Figure \(6.\)
Hence, at the point \(x = 0,\) the function has a minimum, and at the point \(x = 0\) it has a maximum. The minimum and maximum values, respectively, are equal to:
For the first set of solutions \(\left( {2x = {\frac{\pi }{6}} + 2\pi n,\,n \in \mathbb{Z}} \right),\) the second derivative is negative. Therefore, this set corresponds to a maximum point. The second set of solutions \(\left( {2x = {\frac{5\pi }{6}} + 2\pi k,}\right.\) \(\left.{k \in \mathbb{Z}} \right)\) corresponds to a positive second derivative. Here we have a minimum point. Compute the values of the function at these maximum and minimum points:
This function is the sum of a linear function and a cosine function. Such a combination results in that the maxima and minima linearly increase with the numbers \(n\) and \(k\) as shown in Figure \(8\).
Example 10.
Determine the local extrema of the function \[f\left( x \right) = \sin x - \cos x\] on \(\left[ {0,2\pi } \right].\)
Solution.
We use the \(2\)nd Derivative Test. First we find the critical points on the given interval:
\[f^\prime\left( x \right) = \left( {\sin x - \cos x} \right)^\prime = \cos x + \sin x.\]
\[f^\prime\left( x \right) = 0,\;\; \Rightarrow \cos x + \sin x = 0,\;\; \Rightarrow \cot x + 1 = 0,\;\; \Rightarrow \cot x = - 1, \Rightarrow {x_1} = \frac{{3\pi }}{4},\;{x_2} = \frac{{7\pi }}{4}.\]
The function is continuous and differentiable over all \(x\), so it has no other singular or critical points.
Differentiate once more:
\[f^{\prime\prime}\left( x \right) = \left( {\cos x + \sin x} \right)^\prime = - \sin x + \cos x.\]
Determine the sign of the \(2\)nd derivative at the critical points we found above:
Determine the local extrema of the function \[f\left( x \right) = {x^2}\ln x.\]
Solution.
The given function is defined and differentiable for \(x \gt 0.\) Find the derivative and determine the stationary points of the function in the given interval of \(x:\)
\[f'\left( x \right) = {\left( {{x^2}\ln x} \right)^\prime } = {\left( {{x^2}} \right)^\prime }\ln x + {x^2}{\left( {\ln x} \right)^\prime } = 2x \cdot \ln x + {x^2} \cdot \frac{1}{x} = 2x\ln x + x = x\left( {2\ln x + 1} \right) = 0.\]
The root \(x = 0\) is outside of the domain. Therefore, we consider the second solution:
\[2\ln x + 1 = 0,\;\; \Rightarrow \ln x = - \frac{1}{2},\;\; \Rightarrow x = {e^{ -\frac{1}{2}}} = \frac{1}{{\sqrt e }}.\]
In the left neighborhood of the point \(x = {\frac{1}{{\sqrt e }}}\) the derivative is negative, and in the right neighborhood it is positive. Consequently, the function has a minimum at this point. Its value is equal to
\[{f_{\min }} = f\left( {\frac{1}{{\sqrt e }}} \right) = {\left( {\frac{1}{{\sqrt e }}} \right)^2}\ln \frac{1}{{\sqrt e }} = \frac{1}{e} \cdot \left( { - \frac{1}{2}} \right) = - \frac{1}{{2e}}.\]
Example 12.
Find the local extrema of the function \[f\left( x \right) = x\ln x.\]
Solution.
The domain of the function is \(x \gt 0.\) We start with the first derivative:
\[f^\prime\left( x \right) = \left( {x\ln x} \right)^\prime = x^\prime \cdot \ln x + x \cdot \left( {\ln x} \right)^\prime = 1 \cdot \ln x + x \cdot \frac{1}{x} = \ln x + 1.\]
Find the critical points:
\[f^\prime\left( x \right) = 0,\;\; \Rightarrow \ln x + 1 = 0,\;\; \Rightarrow \ln x = - 1,\;\; \Rightarrow x = {e^{ - 1}} = \frac{1}{e}.\]
A sign chart for \(f^\prime\left( x \right)\) is given above. Hence, by the first derivative test, the function has a local minimum at \( x = \frac{1}{e}.\) The minimum value is
The function is defined and differentiable on the whole set \(\mathbb{R}.\) Consequently, the local extrema of the function are contained among its stationary points. Calculate the first derivative:
So we have found three "candidates" for the extrema of the function. To check these points, we use the second derivative test. The second derivative is written as
It follows that \({x_1} = 1\) and \({x_3} = 3\) are local minimum points, and \({x_2} = 2\) is a local maximum point. The function has the following values at these points:
Determine the sign of the derivative by the interval method (Figure \(10\)).
According to the first derivative test, we have maximums at \(x = -2\) and \(x = 2.\) Since the function is even, the values of the function at these points are the same: