Maxima and Minima
One of the principal uses of the process of differentiating is to find out under what conditions the value of the thing differentiated becomes a maximum, or a minimum. This is often exceedingly important in engineering questions, where it is most desirable to know what conditions will make the cost of working a minimum, or will make the efficiency a maximum.
Now, to begin with a concrete case, let us take the equation \[y = x^2 - 4x + 7.\]
By assigning a number of successive values to \(x\), and finding the corresponding values of \(y\), we can readily see that the equation represents a curve with a minimum.
| \(x\) | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| \(y\) | 7 | 4 | 3 | 4 | 7 | 12 |
These values are plotted in the following figure, which shows that \(y\) has apparently a minimum value of \(3\), when \(x\) is made equal to \(2\). But are you sure that the minimum occurs at \(2\), and not at \(2 \frac{1}{4}\) or at \(1 \frac{3}{4}\)?
Of course it would be possible with any algebraic expression to work out a lot of values, and in this way arrive gradually at the particular value that may be a maximum or a minimum.
Here is another example:
Let \(y = 3x - x^2\).
Calculate a few values thus:
| \(x\) | \(-1\) | \(0\) | \(1\) | \(2\) | \(3\) | \(4\) | 5 |
|---|---|---|---|---|---|---|---|
| \(y\) | \(-4\) | \(0\) | \(2\) | \(2\) | 0 | \(-4\) | \(-10\) |
Plot these values as in the following figure.
It will be evident that there will be a maximum somewhere between \(x = 1\) and \(x = 2\); and the thing looks as if the maximum value of \(y\) ought to be about \(2 \frac{1}{4}\). Try some intermediate values. If \(x = 1 \frac{1}{4}\), \(y = 2.187\); if \(x = 1 \frac{1}{2}\), \(y = 2.25\); if \(x = 1.6\), \(y = 2.24\). How can we be sure that \(2.25\) is the real maximum, or that it occurs exactly when \(x = 1 \frac{1}{2}\)?
Now it may sound like juggling to be assured that there is a way by which one can arrive straight at a maximum (or minimum) value without making a lot of preliminary trials or guesses. And that way depends on differentiating. Look back to the previous chapter for the remarks about Fig. 10.8 and Fig. 10.9, and you will see that whenever a curve gets either to its maximum or to its minimum height, at that point its \(\dfrac{dy}{dx} = 0\). Now this gives us the clue to the dodge that is wanted. When there is put before you an equation, and you want to find that value of \(x\) that will make its \(y\) a minimum (or a maximum), first differentiate it, and having done so, write its \(\dfrac{dy}{dx}\) as equal to zero, and then solve for \(x\). Put this particular value of \(x\) into the original equation, and you will then get the required value of \(y\). This process is commonly called “equating to zero.”
Process of finding the maxima or minima of a function
Differentiate \(y\) with respect to \(x\) (find \(\dfrac{dy}{dx}\)).
Equate \(\dfrac{dy}{dx}\) to zero, and then solve for \(x\).
Putting the particular value of \(x\) found in Step 2 into the original equation gives the value of \(y\) that you are looking for.
To see how simply it works, take the example with which this chapter opens.
Example 11.1. Find the minimum value of \(y\) if \[y = x^2 - 4x + 7.\]
Solution. Differentiating, we get: \[\dfrac{dy}{dx} = 2x - 4.\] Now equate this to zero, thus: \[2x - 4 = 0.\] Solving this equation for \(x\), we get: \[\begin{align} 2x &= 4, \\ x &= 2. \end{align}\]
Now, we know that the maximum (or minimum) will occur exactly when \(x=2\).
Putting the value \(x=2\) into the original equation, we get \[\begin{align} y &= 2^2 - (4\times2) + 7 \\ &= 4 - 8 + 7 \\ &= 3. \end{align}\]
Now look back at Fig. 11.1, and you will see that the minimum occurs when \(x = 2\), and that this minimum of \(y = 3\).
Try the second example (Fig. 11.2).
Example 11.2. Find the maximum value of \(y\) if \[y = 3x - x^2.\]
Solution. Differentiating, \[\frac{dy}{dx} = 3 - 2x.\] Equating to zero, \[3 - 2x = 0,\] whence \[x = 1 \frac{1}{2};\] and putting this value of \(x\) into the original equation, we find: \[\begin{align} y &= 4 \frac{1}{2} - \left(1 \frac{1}{2} \times 1 \frac{1}{2}\right), \\ y &= 2 \frac{1}{4}. \end{align}\] This gives us exactly the information as to which the method of trying a lot of values left us uncertain.
Now, before we go on to any further cases, we have two remarks to make. When you are told to equate \(\dfrac{dy}{dx}\) to zero, you feel at first (that is if you have any wits of your own) a kind of resentment, because you know that \(\dfrac{dy}{dx}\) has all sorts of different values at different parts of the curve, according to whether it is sloping up or down. So, when you are suddenly told to write \[\frac{dy}{dx} = 0,\] you resent it, and feel inclined to say that it can’t be true. Now you will have to understand the essential difference between “an equation,” and “an equation of condition.” Ordinarily you are dealing with equations that are true in themselves, but, on occasions, of which the present are examples, you have to write down equations that are not necessarily true, but are only true if certain conditions are to be fulfilled; and you write them down in order, by solving them, to find the conditions which make them true. Now we want to find the particular value that \(x\) has when the curve is neither sloping up nor sloping down, that is, at the particular place where \(\dfrac{dy}{dx} = 0\). So, writing \(\dfrac{dy}{dx} = 0\) does not mean that it always is \(=0\); but you write it down as a condition in order to see how much \(x\) will come out if \(\dfrac{dy}{dx}\) is to be zero.
The second remark is one which (if you have any wits of your own) you will probably have already made: namely, that this much-belauded process of equating to zero entirely fails to tell you whether the \(x\) that you thereby find is going to give you a maximum value of \(y\) or a minimum value of \(y\). Quite so. It does not of itself discriminate; it finds for you the right value of \(x\) but leaves you to find out for yourselves whether the corresponding \(y\) is a maximum or a minimum. Of course, if you have plotted the curve, you know already which it will be.
For instance, take the equation: \[y = 4x + \frac{1}{x}.\]
Without stopping to think what curve it corresponds to, differentiate it, and equate to zero: \[\frac{dy}{dx} = 4 - x^{-2} = 4 - \frac{1}{x^2} = 0;\] whence \[x = \frac{1}{2};\] and, inserting this value, \[y = 4\]
will be either a maximum or else a minimum. But which? You will hereafter be told a way, depending upon a second differentiation (see Chapter [Ch:Curvature]). At the end of this chapter, an alternative method will be presented, which explains how to distinguish between a maximum and a minimum based on the sign of the derivative. But at present it is enough if you will simply try any other value of \(x\) differing a little from the one found, and see whether with this altered value the corresponding value of \(y\) is less or greater than that already found.
Try another simple problem in maxima and minima. Suppose you were asked to divide any number into two parts, such that the product was a maximum? How would you set about it if you did not know the trick of equating to zero? I suppose you could worry it out by the rule of try, try, try again. Let \(60\) be the number. You can try cutting it into two parts, and multiplying them together. Thus, \(50\) times \(10\) is \(500\); \(52\) times \(8\) is \(416\); \(40\) times \(20\) is \(800\); \(45\) times \(15\) is \(675\); \(30\) times \(30\) is \(900\). This looks like a maximum: try varying it. \(31\) times \(29\) is \(899\), which is not so good; and \(32\) times \(28\) is \(896\), which is worse. So it seems that the biggest product will be got by dividing into two equal halves.
Now see what the calculus tells you. Let the number to be cut into two parts be called \(n\). Then if \(x\) is one part, the other will be \(n-x\), and the product will be \(x(n-x)\) or \(nx-x^2\). So we write \(y=nx-x^2\). Now differentiate and equate to zero; \[\begin{align} \dfrac{dy}{dx} = n - 2x = 0 \end{align}\] Solving for \(x\), we get \[\begin{align} \dfrac{n}{2} = x. \end{align}\] So now we know that whatever number \(n\) may be, we must divide it into two equal parts if the product of the parts is to be a maximum; and the value of that maximum product will always be \(= \frac{1}{4} n^2\).
This is a very useful rule, and applies to any number of factors, so that if \(\boldsymbol{m+n+p=}\) a constant number, \(\boldsymbol{m\times n\times p}\) is a maximum when \(\boldsymbol{m=n=p}\).
Test Case
Let us at once apply our knowledge to a case that we can test.
Example 11.3. Let \[\begin{align} y &= x^2 - x; \end{align}\] and let us find whether this function has a maximum or minimum; and if so, test whether it is a maximum or a minimum.
Solution. Differentiating, we get \[\frac{dy}{dx} = 2x - 1.\] Equating to zero, we get \[2x - 1 = 0,\] whence \[2x = 1,\] or \[x = \frac{1}{2}.\]
That is to say, when \(x\) is made \(=\frac{1}{2}\), the corresponding value of \(y\) will be either a maximum or a minimum. Accordingly, putting \(x=\frac{1}{2}\) in the original equation, we get \[\begin{align} y &= \left(\frac{1}{2}\right)^2 - \frac{1}{2}, \\ \end{align}\] or \[\begin{align} y &= -\frac{1}{4}. \end{align}\]
Is this a maximum or a minimum? To test it, try putting \(x\) a little bigger than \(\frac{1}{2}\),—say make \(x=0.6\). Then \[y = (0.6)^2 - 0.6 = 0.36 - 0.6 = -0.24,\] which is higher up than \(-0.25\); showing that \(y = -0.25\) is a minimum.
The curve is plotted below. As we can see, the minimum of \(y\) is \(-\frac{1}{4}\), which occurs when \(x=\frac{1}{2}\).
Further Examples
A most interesting example is afforded by a curve that has both a maximum and a minimum.
Example 11.4. Consider a curve whose equation is: \[y =\frac{1}{3} x^3 - 2x^2 + 3x + 1.\] Now \[\dfrac{dy}{dx} = x^2 - 4x +3.\]
Equating to zero, we get the quadratic, \[x^2 - 4x +3 = 0;\] and solving the quadratic gives us two roots, viz. \[\left\{\begin{align} x &= 3 \\ x &= 1. \end{align}\right.\]
Now, when \(x=3\), \(y=1\); and when \(x=1\), \(y=2\frac{1}{3}\). The first of these is a minimum, the second a maximum.
The curve itself may be plotted (as in the following figure) from the values calculated, as below, from the original equation.
| \(x\) | \(-1\) | \(0\) | \(1\) | \(2\) | \(3\) | \(4\) | \(5\) | \(6\) |
|---|---|---|---|---|---|---|---|---|
| \(y\) | \(-4\frac{1}{3}\) | \(1\) | \(2\frac{1}{3}\) | \(1\frac{2}{3}\) | 1 | \(2\frac{1}{3}\) | \(7\frac{2}{3}\) | \(19\) |
A further exercise in maxima and minima is afforded by the following example:
Example 11.5. The equation to a circle of radius \(r\) (\(r\geq 0\)), having its centre \(C\) at the point whose coordinates are \(x=a\), \(y=b\), as depicted below, is: \[(y-b)^2 + (x-a)^2 = r^2.\]
This may be transformed into \[y = \pm\sqrt{r^2-(x-a)^2} + b.\]
Now we know beforehand, by mere inspection of the figure, that when \(x=a\), \(y\) will be either at its maximum value, \(b+r\), or else at its minimum value, \(b-r\). But let us not take advantage of this knowledge; let us set about finding what value of \(x\) will make \(y\) a maximum or a minimum, by the process of differentiating and equating to zero. \[\begin{align} \frac{dy}{dx} &=\pm \frac{1}{2} \frac{1}{\sqrt{r^2-(x-a)^2}} \times (2a-2x), \end{align}\] which reduces to \[\begin{align} \frac{dy}{dx} &=\pm \frac{a-x}{\sqrt{r^2-(x-a)^2}}. \end{align}\]
Then the condition for \(y\) being maximum or minimum is: \[\frac{a-x}{\sqrt{r^2-(x-a)^2}} = 0.\]
Since no value whatever of \(x\) will make the denominator infinite, the only condition to give zero is \[x = a.\] Inserting this value in the original equation for the circle, we find \[y = \pm \sqrt{r^2}+b;\] and as \(\sqrt{r^2}=|r|=r\), we have two resulting values of \(y\), \[\begin{cases} y=b+r \\ y=b-r. \end{cases}\]
The first of these is the maximum, at the top; the second the minimum, at the bottom.
If the curve is such that there is no place that is a maximum or minimum, the process of equating to zero will yield an impossible result. For instance:
Example 11.6. Let \[y = ax^3 + bx + c.\qquad(a,b>0)\]
Then \[\frac{dy}{dx} = 3ax^2 + b.\]
Equating this to zero, we get \(3ax^2 + b = 0\), \[x^2 = \frac{-b}{3a},\] and \[x = \sqrt{\frac{-b}{3a}}\quad \text{ or }\quad x=-\sqrt{\frac{-b}{3a}}\]
which is impossible.1 Therefore \(y\) has no maximum nor minimum.
The following figure depicts the graph of \(y=ax^3+bx+c\) with specific values for \(a=\frac{1}{5}\), \(b=\frac{1}{7}\), and \(c=-1\). It is evident from the figure that the function \(y\) does not possess any maximum or minimum points.
A few more worked examples will enable you to thoroughly master this most interesting and useful application of the calculus.
Example 11.7. What are the sides of the rectangle of maximum area inscribed in a circle of radius \(R\)?
Solution. If one side is called \(x\), \[\text{the other side} = \sqrt{(\text{diagonal})^2 - x^2};\] and as the diagonal of the rectangle is necessarily a diameter, the other side \(= \sqrt{4R^2 - x^2}\) (see the following figure).
Then, area of rectangle \(S = x\sqrt{4R^2 - x^2}\), \[\frac{dS}{dx} = x \times \dfrac{d\left(\sqrt{4R^2 - x^2}\,\right)}{dx} + \sqrt{4R^2 - x^2} \times \dfrac{d(x)}{dx}.\tag{Use Product Rule}\]
If you have forgotten how to differentiate \(\sqrt{4R^2-x^2}\), here is a hint: write \(4R^2-x^2=w\) and \(y=\sqrt{w}\), and seek \(\dfrac{dy}{dw}\) and \(\dfrac{dw}{dx}\); fight it out, and only if you can’t get on refer to the Chain Rule on page .
You will get \[\begin{align} \dfrac{dS}{dx} &= x \times \left( -\dfrac{x}{\sqrt{4R^2 - x^2}} \right)+ \sqrt{4R^2 - x^2}\\ &= \dfrac{4R^2 - 2x^2}{\sqrt{4R^2 - x^2}}. \end{align}\]
For maximum or minimum we must have \[\dfrac{4R^2 - 2x^2}{\sqrt{4R^2 - x^2}} = 0;\] that is, \(4R^2 - 2x^2 = 0\) and \(x = R\sqrt{2}\).
The other side \({} = \sqrt{4R^2 - 2R^2} = R\sqrt{2}\); the two sides are equal; the figure is a square the side of which is equal to the diagonal of the square constructed on the radius. In this case it is, of course, a maximum with which we are dealing.
Example 11.8. What is the radius of the opening of a conical vessel the sloping side of which has a length \(l\) when the capacity of the vessel is greatest?
.
Solution. If \(R\) be the radius and \(H\) the corresponding height, \(H = \sqrt{l^2 - R^2}\) (see the following figure). \[\text{Volume } V = \pi R^2 \times \dfrac{H}{3} = \pi R^2 \times \dfrac{\sqrt{l^2 - R^2}}{3}.\]
Proceeding as in the previous problem, we get \[\begin{align} \dfrac{dV}{dR} &= \pi R^2 \times \left(-\dfrac{R}{3\sqrt{l^2 - R^2}}\right) + \dfrac{2\pi R}{3} \sqrt{l^2 - R^2} \\ &= \dfrac{2\pi R(l^2 - R^2) - \pi R^3}{3\sqrt{l^2 - R^2}} = 0 \end{align}\] for maximum or minimum.
Or, \(2\pi R(l^2 - R^2) - \pi R^2 = 0\), and \(R = l\sqrt{\dfrac{2}{3}}\), for a maximum, obviously.
Example 11.9. Find the maxima and minima of the function \[y = \dfrac{x}{4-x} + \dfrac{4-x}{x}.\] Solution. We get \[\dfrac{dy}{dx} = \dfrac{(4-x)-(-x)}{(4-x)^2} + \dfrac{-x - (4-x)}{x^2} = 0\] for maximum or minimum; or \[\dfrac{4}{(4-x)^2} - \dfrac{4}{x^2} = 0 \quad\text{and}\quad x = 2.\]
There is only one value, hence only one maximum or minimum. \[\begin{align} \text{For}\quad x &= 2,\phantom{.5}\quad y = 2, \\ \text{for}\quad x &= 1.5,\quad y = 2.27, \\ \text{for}\quad x &= 2.5,\quad y = 2.27; \end{align}\] it is therefore a minimum.
The graph of \(y=\dfrac{x}{4-x} + \dfrac{4-x}{x}\) is shown below.
Example 11.10. Find the maxima and minima of the function \(y = \sqrt{1+x} + \sqrt{1-x}\).
Solution. Differentiating gives at once (see example 9.1) \[\dfrac{dy}{dx} = \dfrac{1}{2\sqrt{1+x}} - \dfrac{1}{2\sqrt{1-x}} = 0\] for maximum or minimum.
Hence \(\sqrt{1+x} = \sqrt{1-x}\) and \(x = 0\), the only solution
For \(x=0\),\(y=2\).
For \(x=\pm0.5\), \(y= \sqrt{1.5}+\sqrt{0.5}\approx1.932\), so this is a maximum.
The graph of \(y=\sqrt{1+x} + \sqrt{1-x}\) is shown below.
Example 11.11. Find the maxima and minima of the function \[y = \dfrac{x^2-5}{2x-4}.\]
Solution. We have \[\dfrac{dy}{dx} = \dfrac{(2x-4) \times 2x - (x^2-5)2}{(2x-4)^2} = 0\] for maximum or minimum; or \[\dfrac{2x^2 - 8x + 10}{{(2x - 4)^2}} = 0;\] or \(x^2 - 4x + 5 = 0\); which has for solutions \[x = \frac{5}{2} \pm \sqrt{-1}.\]
These being imaginary, there is no real value of \(x\) for which \(\dfrac{dy}{dx} = 0\); hence there is neither maximum nor minimum.
The following figure shows the graph of \(y=\dfrac{x^2-5}{2x-4}\).
Example 11.12. Find the maxima and minima of the function \[(y-x^2)^2 = x^5.\]
Solution. This may be written \(y = x^2 \pm x^{\frac{5}{2}}\). \[\dfrac{dy}{dx} = 2x \pm \frac{5}{2} x^{\frac{3}{2}} = 0 \quad\text{for maximum or minimum};\] that is, \(x(2 \pm \frac{5}{2} x^{\frac{1}{2}}) = 0\), which is satisfied for \(x = 0\), and for \(2 \pm \frac{5}{2} x^{\frac{1}{2}} = 0\), that is for \(x=\frac{16}{25}\). So there are two solutions.
Taking first \(x = 0\). If \(x = -0.5\), \(y = 0.25 \pm \sqrt{-(0.5)^5}\), and if \(x = +0.5\), \(y = 0.25 \pm \sqrt{{(0.5)^5}}\). On one side \(y\) is imaginary; that is, there is no value of \(y\) that can be represented by a graph; the latter is therefore entirely on the right side of the axis of \(y\) (see the following figure).
On plotting the graph it will be found that the curve goes to the origin, as if there were a minimum there; but instead of continuing beyond, as it should do for a minimum, it retraces its steps (forming what is called a “cusp”). There is no minimum, therefore, although the condition for a minimum is satisfied, namely \(\dfrac{dy}{dx} = 0\). It is necessary therefore always to check by taking one value on either side.
Now, if we take \(x = \frac{16}{25} = 0.64\). If \(x = 0.64\), \(y = 0.7373\) and \(y = 0.0819\); if \(x = 0.6\), \(y\) becomes \(0.6389\) and \(0.0811\); and if \(x = 0.7\), \(y\) becomes \(0.8996\) and \(0.0804\).
This shows that there are two branches of the curve; the upper one does not pass through a maximum, but the lower one does.
Make other examples for yourself. There are few subjects which offer such a wealth for interesting examples.
Exercises
Exercise 11.1. What values of \(x\) will make \(y\) a maximum and a minimum, if \(y=\dfrac{x^2}{x+1}\)?
Answer
Min.: \(x = 0\), \(y = 0\); max.: \(x = -2\), \(y = -4\).
Solution
\[\begin{align} \frac{dy}{dx}&=\frac{\dfrac{d(x^2)}{dx}(x+1)-x^2\dfrac{d(x+1)}{dx}}{(x+1)^2}\\ &=\frac{2x(x+1)-x^2(1)}{(x+1)^2}\\ &=\frac{x^2+2x}{(x+1)^2}\\ &=\frac{x(x+2)}{(x+1)^2} \end{align}\]
\[\frac{dy}{dx}=0\quad \Leftrightarrow\quad x=0\ \ \text{or}\ \ x=-2.\]
When \(x=0\), \(y=0\).
When \(x=-0.1\), \(y\approx 0.009\).
When \(x=0.1\), \(y\approx 0.011\).
Therefore \(y=0\) is a minimum occurring when \(x=0\).
When \(x=-2\), \(y=-4\).
When \(x=-1.9\), \(y\approx -4.011\).
When \(x=-2.1\), \(y\approx -4.009\).
Therefore, \(y=-4\) is a maximum occurring when \(x=-2\).
The graph of \(y=\dfrac{x^2}{x+1}\) is shown below.
Exercise 11.2. What value of \(x\) will make \(y\) a maximum in the equation \(y=\dfrac{x}{a^2+x^2}\)?
Answer
\(x = a\).
Solution
\[y=\frac{x}{a^{2}+x^{2}}\quad \text{where}\quad a>0\] Then \[\begin{align} \frac{d y}{d x}&=\frac{a^{2}+x^{2}-2 x \cdot x}{a^{2}+x^{2}}\\ &=\frac{a^{2}-x^{2}}{a^{2}+x^{2}} \end{align}\] \[\frac{d y}{d x}=0\ \Leftrightarrow\ x=a \text { or } x=-a\]
To see which value of \(x\) makes \(y\) a maximum and which value of \(x\) makes \(y\) a minimum, it would be the best if we use the first derivative test:
If \(x>a\), then \(a^{2}-x^{2}<0\) and hence \(\frac{d y}{d x}<0\) If \(x, then \(a^{2}-x^{2}>0\) and hence \(\frac{d y}{d x}>0\)
It follows from the First Derivative Test that \(x=a\) correspondent to a maximum \(y=a/2\).
Similarly, if \(x>-a\), then \(a^{2}-x^{2}>0\) and hence \(\frac{d y}{d x}>0\) If \(x<-a\), then \(a^{2}-x^{2}<0\) and hence \(\frac{d y}{d x}<0\). Therefore \(x=-a\) makes \(y\) a minimum of \(-a/2\).
We can rewrite the given equation as \[y=\frac{x}{a^2\left(1+\left(\dfrac{x}{a}\right)^2\right)}\] or \[\frac{y}{a}=\frac{\dfrac{x}{a}}{1+\left(\dfrac{x}{a}\right)^2}\]
Now we can easily plot \(\dfrac{y}{a}\) versus \(\dfrac{x}{a}\) (see the following figure). As we can see, the graph reaches a maximum at \(\dfrac{x}{a}=1\) and a minimum at \(\dfrac{x}{a}=-1\). The maximum value of \(\dfrac{y}{a}=0.5\) is and the minimum value of \(\dfrac{y}{a}\) is \(-0.5\).
Exercise 11.3. A line of length \(p\) is to be cut up into \(4\) parts and put together as a rectangle. Show that the area of the rectangle will be a maximum if each of its sides is equal to \(\frac{1}{4}p\).
Solution
Let:
\(y=\) length of rectangle
\(x=\) width of rectangle
We want to maximize the area \(A=x y\) while
\[2 x+2 y=p\]
We can express \(A\) in terms of \(x\) alone
\[\begin{align} & 2 x+2 y=p \Rightarrow y=\frac{p}{2}-x \\ & A=x y=x\left(\frac{p}{2}-x\right)=\frac{p}{2} x-x^{2} \end{align}\]
To find the maximum of \(A\)
\[\frac{d A}{d x}=\frac{p}{2}-2 x=0 \Leftrightarrow x=\frac{p}{4}\]
when \(x=\frac{p}{4}, y=\frac{p}{2}-\frac{p}{4}=\frac{p}{4}\).
Hence the area of the rectangle \(A\) will be a maximum if the length of each side is \(\frac{P}{4}\).
Exercise 11.4. A piece of string \(30\) inches long has its two ends joined together and is stretched by \(3\) pegs so as to form a triangle. What is the largest triangular area that can be enclosed by the string?
[Hint: Use apply the rule you learned here for dividing a number into three parts such that the product is a maximum]
Answer
\(25 \sqrt{3}\) square inches.
Solution
Let \(a, b, c\) be the lengths of the sides. of a triangle. The area is given by
\[\text { Area }=\sqrt{s(s-a)(s-b)(s-c)}\]
Where \(s\) is half the perimeter or \(s=\dfrac{a+b+c}{3}\). In this problem
\[A=\sqrt{15(15-a)(15-b)(15-c)}\]
\(A\) is a maximum if \(15-a=15-b=15-c\) or \(a=b=c\)
\[\begin{align} & a+b+c=3 a=30 \\ \Rightarrow & a=b=c=10 . \end{align}\]
The maximum area is thus \[A=\sqrt{15(15-10)(15-10)(15-10)}=\sqrt{15\times 5^3}=25\sqrt{3}.\]
Exercise 11.5. Plot the curve corresponding to the equation \[y = \frac{10}{x} + \frac{10}{8-x};\] also find \(\dfrac{dy}{dx}\), and deduce the value of \(x\) that will make \(y\) a minimum; and find that minimum value of \(y\).
Answer
\(\dfrac{dy}{dx} = - \dfrac{10}{x^2} + \dfrac{10}{(8 - x)^2}\); \(x = 4\); \(y = 5\).
Solution
\[y=\frac{10}{x}+\frac{10}{8-x}=10 x^{-1}+10(8-x)^{-1}\]
\[\begin{align} \frac{d y}{d x} & =-10 x^{-2}+10(8-x)^{-2}=\frac{10}{(8-x)^{2}}-\frac{10}{x^{2}} \\ & =\frac{10 x^{2}-10(8-x)^{2}}{x^{2}(8-x)^{2}} \\ & =\frac{10 x^{2}-10\left(64-16 x+x^{2}\right)}{x^{2}(8-x)^{2}} \\ & =\frac{160 x-640}{x^{2}(8-x)^{2}}=\frac{160(x-4)}{x^{2}\left(8-x^{2}\right)} \\ \frac{d y}{dx} & =0 \Leftrightarrow x=4 \end{align}\]
From the graph, it is clear that \(x=4\) makes \(y\) a minimum
When \(x=4, y=\frac{10}{4}+\frac{10}{4}=5\).
Exercise 11.6. If \(y = x^5-5x\), find what values of \(x\) will make \(y\) a maximum or a minimum.
Answer
Max. for \(x = -1\); min. for \(x = 1\).
Solution
\[y=x^{5}-5 x\]
\[\frac{d y}{d x}=5 x^{4}-5=5\left(x^{4}-1\right)=0 \Leftrightarrow x= \pm 1\]
when \(x=2, \quad y=22\)
when \(x=1, \quad y=-4\)
when \(x=0, \quad y=0\)
when \(x=-1, \quad y=4\)
when \(x=-2, \quad y=-22\)
Hence \(y=4\) is a maximum occurring when \(x=-1\) and \(y=-4\) is minimum occurring when \(x=1\).
The graph of \(y=x^5-5x\) is shown below.
Exercise 11.7. What is the smallest square that can be inscribed in a given square?
Answer
Join the middle points of the four sides.
Solution
Let the length of a side of the given square be \(L\)
The area of the inscribed square is \(A=c^{2}\) but \(a^{2}+b^{2}=c^{2}\). Therefore
\[A=a^{2}+b^{2}\]
Since \(a+b=L\), we have
\[A=a^{2}+(L-a)^{2}\]
To minimize \(A\),
\[\begin{align} \frac{d A}{d a} & =2 a+2(-1)(L-a) \\ & =2 a+2(a-L)=4 a-2 L \\ \end{align}\]
\[\frac{d A}{d a}=0 \Leftrightarrow a=\frac{L}{2}\]
The area of the inscribed square is minimum if \(a=\frac{L}{2}\) or if we join the middle points of the four sides.
Exercise 11.8. Inscribe in a given cone, the height of which is equal to the radius of the base, a cylinder (a) whose volume is a maximum; (b) whose lateral area is a maximum; (c) whose total area is a maximum.
Answer
\(r = \frac{2}{3} R\), \(r = \dfrac{R}{2}\), no max.
Solution
Let
\(R =\) radius of the base and height of the cone
\(r=\) radius of the cylinder
\(h=\) height of the cylinder
\[\frac{r}{R}=\frac{R-h}{R}\quad \text {or}\quad r=R-h\]
(a)
\[\begin{align} V & =\pi r^{2} \cdot h=\pi r^{2}(R-r) \\ & =\pi R r^{2}-\pi r^{3} \\ \frac{d V}{d r} & =2 \pi R r-3 \pi r^{2}=\pi r(2 R-3 r)=0 \\ & \Leftrightarrow r=\frac{2}{3} R \text { or } r=0 \end{align}\]
The volume is a maximum if \(r=\frac{2}{3} R\)
(b) Lateral area \(A=2 \pi r h\)
\[\begin{align} & A=2 \pi r(R-r)=2 \pi R r-2 \pi r^{2} \\ & \frac{d A}{d r}=2 \pi R-4 \pi r=0 \Leftrightarrow r=\frac{R}{2} \end{align}\]
The maximum lateral area is obtained if \(r=\frac{R}{2}\).
(c) Total area
\[\begin{align} S&=2 \pi r h+2 \pi r^{2}\\ & =2 \pi r(R-r)+2 \pi r^{2} \\ & =2 \pi r R \end{align}\]
The graph of \(S\) versus \(r\) is a straight line with slope \(2 \pi R\), where \(r\) varies between \(0
From the above figure, it is clear that the total area, \(S\), has no maximum.
Exercise 11.9. Inscribe in a sphere, a cylinder () whose volume is a maximum; () whose lateral area is a maximum; () whose total area is a maximum.
Answer
\(r = R \sqrt{\dfrac{2}{3}}\), \(r = \dfrac{R}{\sqrt{2}}\), \(r \approx 0.8506R\).
Solution
From geometry (see the above figure)
\[r^{2}+\left(\frac{h}{2}\right)^2=R^{2}\] or \[h=2 \sqrt{R^{2}-r^{2}}\]
(a) \[\text { Volume } V=\pi r^{2} h=2 \pi r^{2} \sqrt{R^{2}-r^{2}}\] \[\frac{d V}{d r} =4 \pi r \sqrt{R^{2}-r^{2}}+2 \pi r^{2} \frac{-2 r}{2 \sqrt{R^{2}-r^{2}}}\] or \[\begin{align} \frac{d V}{d r}& =4 \pi r \sqrt{R^{2}-r^{2}}-\frac{2 \pi r^{3}}{\sqrt{R^{2}-r^{2}}}\\ & =\frac{4 \pi r\left(R^{2}-r^{2}\right)-2 \pi r^{3}}{\sqrt{R^{2}-r^{2}}} \\ & =\frac{2 \pi r\left[2 R^{2}-3 r^{2}\right]}{\sqrt{R^{2}-r^{2}}} & \end{align}\] Hence, \[\frac{d V}{d r}=0 \Leftrightarrow r=0\quad \text { or }\quad r=\sqrt{\frac{2}{3}}\, R\]
\(V\) is a maximum when \(r=\sqrt{\dfrac{2}{3}}\, R\)
(b) Lateral area \(A=2 \pi r h\) or \[A=4 \pi r \sqrt{R^{2}-r^{2}}\]
\[\begin{align} \frac{d A}{d r} & =4 \pi \sqrt{R^{2}-r^{2}}+4 \pi r \frac{-2 r}{2 \sqrt{R^{2}-r^{2}}} \\ & =4 \pi\left[\sqrt{R^{2}-r^{2}}-\frac{r^{2}}{\sqrt{R^{2}-r^{2}}}\right] \\ & =4 \pi\left[\frac{R^{2}-r^{2}-r^{2}}{\sqrt{R^{2}-r^{2}}}\right] \end{align}\] Hence, \[\frac{d A}{d r} =0 \Leftrightarrow r=\frac{R}{\sqrt{2}}\]
\(A\) is a maximum for \(r=\frac{R}{\sqrt{2}}\).
(c) Total area
\[\begin{align} S & =2 \pi r h+2 \pi r^{2} \\ & =4 \pi r \sqrt{R^{2}-r^{2}}+2 \pi r^{2} \end{align}\]
\[\begin{align} \frac{d S}{d r}& =\frac{d A}{d r}+4 \pi r \\ &=4 \pi \frac{R^{2}-2 r^{2}}{\sqrt{R^{2}-r^{2}}}+4 \pi r \\ &=4 \pi\left[\frac{R^{2}-2 r^{2}}{\sqrt{R^{2}-r^{2}}}+r\right] \\ &= 4 \pi\left[\frac{R^{2}-2 r^{2}+r \sqrt{R^{2}-r^{2}}}{\sqrt{R^{2}-r^{2}}}\right] \end{align}\] \[\begin{align} \frac{d s}{d r}=0\quad \Leftrightarrow\quad &R^{2}-2 r^{2}+r \sqrt{R^{2}-r^{2}}=0 \\ & r \sqrt{R^{2}-r^{2}}=2 r^{2}-R^{2} \\ & r^{2}\left(R^{2}-r^{2}\right)=\left(2 r^{2}-R^{2}\right)^{2} \\ & r^{2} R^{2}-r^{4}=4 r^{4}-4 R^{2} r^{2}+R^{4} \end{align}\] or \[5 r^{4}-5 R^{2} r^{2}+R^{4}=0\] This is a quadratic equation is terms of \(r\)
\[\begin{gathered} r^{2}=\frac{5 R^{2} \pm \sqrt{25 R^{4}-20 R^{4}}}{10}=\frac{5 R^{2} \pm \sqrt{5} R^{2}}{10} \\ r=R \sqrt{\frac{5 \pm \sqrt{5}}{10}} \end{gathered}\]
Now let’s check if both values of \(r\) satisfy the onginal equation
\[R^{2}-2 r^{2}+r \sqrt{R^{2}-r^{2}}=0\]
It turns out that only \(r=R \sqrt{\frac{5+\sqrt{5}}{10}}\) satisfy this equation.
Therefore, the total area is a maximum for
\[r=R \sqrt{\frac{5+\sqrt{5}}{10}} \approx 0.8507 R\]
Exercise 11.10. Inscribe in a given sphere a cone whose volume is a maximum.
Answer
\(r = \dfrac{R \sqrt{8}}{3}\) where \(R\) is the radius of the sphere. The maximum volume is \(\frac{ 32}{81}R^3\).
Solution
\[\begin{align} & r^{2}+(h-R)^{2}=R^{2} \\ & h-R=\sqrt{R^{2}-r^{2}} \\ & h=R+\sqrt{R^{2}-r^{2}} \end{align}\]
\[\begin{align} V & =\frac{1}{3} \pi r^{2} h=\frac{2}{3} \pi r^{2}\left(\sqrt{R^{2}-r^{2}}+R\right) \\ \frac{d V}{d r} & =\frac{2 \pi}{3}\left[2 r\left(\sqrt{R^{2}-r^{2}}+R\right)-r \frac{r}{\sqrt{R^{2}-r^{2}}}\right] \\ & =\frac{2 \pi r}{3}\left[2 \sqrt{R^{2}-r^{2}}+2 R-\frac{r^{2}}{\sqrt{R^{2}-r^{2}}}\right] \\ & =\frac{2 \pi r}{3 \sqrt{R^{2}-r^{2}}}\left[2\left(R^{2}-r^{2}\right)+2 R \sqrt{R^{2}-r^{2}}-r^{2}\right] \end{align}\]
\[\begin{align} \frac{d v}{d r}=0 \Rightarrow & r=0 \text { or } 2 R^{2}-3 r^{2}+2 R \sqrt{R^{2}-r^{2}}=0 \\ & 2 R \sqrt{R^{2}-r^{2}}=3 r^{2}-2 R^{2} \\ & 4 R\left(R^{2}-r^{2}\right)=9 r^{4}-12 R^{2} r^{2}+4 R^{2} \\ & 9 r^{4}-8 R^{2} r^{2}=0 \\ & r^{2}\left[9 r^{2}-8 R^{2}\right]=0 \\ & r= \pm \sqrt{\frac{8}{9} R^{2}}= \pm \frac{\sqrt{8}}{3} R \end{align}\]
Therefore
\[\frac{d V}{d r}=0 \Leftrightarrow r=0 \text { or } r= \pm \frac{\sqrt{8}}{3} R\]
\(r=0\) and \(r=-\frac{\sqrt{8}}{3} R\) are not acceptable
\(r=\frac{\sqrt{8}}{3} R\) makes \(V\) a maximum
Exercise 11.11. The current \(C\) given by a battery of \(N\) similar voltaic cells is \(C=\dfrac{n\times E}{R+\dfrac{rn^2}{N}}\), where \(E\), \(R\), \(r\), are constants and \(n\) is the number of cells coupled in series. Find the proportion of \(n\) to \(N\) for which the current is greatest.
Answer
\(n = \sqrt{\dfrac{NR}{r}}\).
Solution
\[\begin{align} & C=\frac{E n}{R+\frac{r}{N} n^{2}} \\ & \frac{d C}{d n}=\frac{E\left(R+\frac{r}{N} n^{2}\right)-E n\left(\frac{2 r}{N}\right) n}{\left(R+\frac{r}{N} n^{2}\right)} \end{align}\]
Quotient Rule To maximize the current, let \(\dfrac{d C}{d n}=0\)
or
\[\begin{gathered} E\left(R+\frac{r}{N} n^{2}\right)-\frac{2 E r}{N} n^{2}=0 \\ \frac{E r}{N} n^{2}=E R \\ \Rightarrow n=\sqrt{\frac{R}{r} N} \end{gathered}\]
or
\[\frac{n}{\sqrt{N}}=\sqrt{\frac{R}{r}}\]
\(C\) is a maximum if \(\frac{n}{\sqrt{N}}=\sqrt{\frac{R}{r}}\).
More About Maxima and Minima
We saw that wherever a “smooth” curve gets either to its maximum or its minimum height, \(\dfrac{dy}{dx}\) is zero. However, the converse is not true. That is, if the derivative at a point is zero, the curve does not necessarily gets to its maximum or minimum height. For example, consider \(y=x^3\). Then \[\dfrac{dy}{dx}=3x^2\] is zero for \(x=0\), but \(y\) has no maximum or minimum when \(x=0\) (see the following figure).
Now consider the function \[y=|x|=\left\{\begin{align} &x, && \text{if }x\geq 0\\ &-x, &&\text{if }x<0 \end{align}\right.\] The graph of this function is shown below.
It is clear that this “curve” has a minimum at the origin; however, at the origin \(\dfrac{dy}{dx}\) does not exist because just a little bit to the right of the origin \(\dfrac{dy}{dx}=1\) and just a little but to the left of the origin \(\dfrac{dy}{dx}=-1\).
Hence, in a more general case, we can say that if a curve has a maximum or minimum then at that point either \(\boldsymbol{\dfrac{dy}{dx}}\) is zero or \(\boldsymbol{\dfrac{dy}{dx}}\) does not exist. If at some points \(\dfrac{dy}{dx}\) does not exist, we must also examine those points for being a maximum or a minimum.
The First Derivative Test
In the previous chapter, we learned that if \(\dfrac{dy}{dx}>0\), the curve is ascending and if \(\dfrac{dy}{dx}<0\), the curve is descending. Now notice that if the curve stops ascending and begins to descend at a point, then \(y\) has a maximum at that point (for example, point \(A\) in the following figure). Conversely, if the curve changes from descending to ascending, then \(y\) has a minimum (for example, point \(B\) in the following figure). However, if the sign of \(\dfrac{dy}{dx}\) is the same on both sides of a point, the curve will continue to ascend or descend, and hence cannot have a maximum or minimum at that point (for example, point \(C\) in the following figure).
Therefore,
The First Derivative Test
If \(\dfrac{dy}{dx}>0\) immediately at the left of a point and \(\dfrac{dy}{dx}<0\) immediately at its right, then \(y\) at this point is a maximum.
If \(\dfrac{dy}{dx}<0\) immediately at the left of a point and \(\dfrac{dy}{dx}>0\) immediately at its right, then \(y\) at this point is a minimum.
If the sign of the derivative is the same on both sides of a point, then \(y\) at that point is neither a maximum nor a minimum.
This is called the First Derivative Test. It provides us with a method to figure out whether the value of \(x\) we find by equating \(\dfrac{dy}{dx}\) to zero gives a maximum or a minimum. In the next chapter, we will learn how to use the second derivative to distinguish between a maximum and a minimum.
Example 11.13. Find the maxima and minima of the function \[y=\dfrac{(x-1)^2}{(x+1)^3}.\]
Solution. First, we find the derivative of \(y\) \[\frac{dy}{dx}=\frac{2(x-1)(x+1)^3-3(x+1)^2(x-1)^2}{(x+1)^6}\tag{Quotient Rule}\] or \[\begin{align} \frac{dy}{dx}&=\frac{2(x-1)(x+1)-3(x-1)^2}{(x+1)^4}\\ &=\frac{(x-1)[2(x+1)-3(x-1)]}{(x+1)^4}\\ &=\frac{(x-1)(5-x)}{(x+1)^4} \end{align}\] Therefore, for \(x=1\) and \(x=5\), we have \(\dfrac{dy}{dx}=0\).
To determine whether each of these values of \(x\) gives a maximum or minimum, we can apply the First Derivative Test. Considering the sign of the derivative for values of \(x\) that are slightly less than \(1\) and slightly larger than \(1\), we have:
\[\left.\begin{align} \text{When }x<1, \ \dfrac{dy}{dx}=\frac{(-)(+)}{+}=-\\ \text{When }x>1, \ \dfrac{dy}{dx}=\frac{(+)(+)}{+}=+ \end{align}\right\}\] Hence \(x=1\) corresponds to a minimum \(y=0\).
Similarly, considering the sign of the derivative for the values of \(x\) that are slightly less than \(5\) and slightly greater than \(5\), we get: \[\left.\begin{align} \text{When }x<5, \ \dfrac{dy}{dx}=\frac{(+)(+)}{+}=+\\ \text{When }x>5, \ \dfrac{dy}{dx}=\frac{(+)(-)}{+}=- \end{align}\right\}\] Hence \(x=5\) corresponds to a maximum \(y=\frac{2}{27}\).
This curve is plotted below.