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. \[\begin{array}{|c||c|c|c|c|c|c|} \hline {x} & {0} & {1} & {2} & {3} & {4} & {5} \\ \hline {y} & {7} & {4} & {3} & {4} & {7} & {12} \\ \hline \end{array}\]
These values are plotted in Fig. 26, 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 \tfrac{1}{4}\) or at \(1 \tfrac{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: \[\begin{array}{|c||c|c|c|c|c|c|c|} \hline {x} & {-1} & {0} & {1} & {2} & {3} & {4} & {5} \\ \hline {y} & {-4} & {0} & {2} & {2} & {0} & {-4} & {-10} \\ \hline \end{array}\]
Plot these values as in Fig. 27.
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 \tfrac{1}{4}\). Try some intermediate values. If \(x = 1 \tfrac{1}{4}\), \(y = 2.187\); if \(x = 1 \tfrac{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 \tfrac{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 chapter for the remarks about Figs. 14 and 15, 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.”
To see how simply it works, take the example with which this chapter opens, namely \[y = x^2 – 4x + 7.\]
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{aligned} 2x &= 4, \\ x &= 2.\end{aligned}\]
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{aligned} y &= 2^2 – (4\times 2) + 7 \\ &= 4 – 8 + 7 \\ &= 3.\end{aligned}\]
Now look back at Fig. 26, and you will see that the minimum occurs when \(x = 2\), and that this minimum of \(y = 3\).
Try the second example , which is
\[ y = 3x – x^2. \] Differentiating, \[\frac{dy}{dx} = 3 – 2x. \] Equating to zero, \[3 – 2x = 0, \] whence \[x = 1 \tfrac{1}{2};\] and putting this value of $x$ into the original equation, we find: \[\begin{aligned} y &= 4 \tfrac{1}{2} – (1 \tfrac{1}{2} \times 1 \tfrac{1}{2}), \\ y &= 2 \tfrac{1}{4}. \end{aligned}\]
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 = \tfrac{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 Chap. 12). 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;
\[\dfrac{dy}{dx} = n – 2x = 0\] Solving for $x$, we get\[\dfrac{n}{2} = x.\]
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 \(= \tfrac{1}{4} n^2\).
This is a very useful rule, and applies to any number of factors, so that if \(m+n+p=\) a constant number, \(m\times n\times p\) is a maximum when \(m=n=p\).
Test Case. Let us at once apply our knowledge to a case that we can test.
Let \[y = x^2 – x;\]
and let us find whether this function has a maximum or minimum; and if so, test whether it is a maximum or a minimum.
Differentiating, we get\[ \dfrac{dy}{dx} = 2x -1 \] Equating to zero, we get \[ \begin {aligned} 2x – 1 & =0 \\ 2x &= 1 \\ x = \tfrac{1}{2}. \end{aligned} \]
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 {aligned} y &= (\tfrac{1}{2})^\tfrac{1}{2}, \\ y &= -\tfrac{1}{4} \end{aligned}\]
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.
Plot the curve for yourself, and verify the calculation.
Further Examples.
A further exercise in maxima and minima is afforded by the following example:
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:
\[ \begin{aligned} y &= ax^3 + bx + c. \\ \dfrac{dy}{dx} &= 3ax^2 + b. \end{aligned} \]
Equating this to zero, we get \(3ax^2 + b = 0\), \[x^2 = \frac{-b}{3a}, \quad\text{and}\quad x = \sqrt{\frac{-b}{3a}},\text{ which is impossible.}\] Therefore \(y\) has no maximum nor minimum.
A few more worked examples will enable you to thoroughly master this most interesting and useful application of the calculus.
Make other examples for yourself. There are few subjects which offer such a wealth for interesting examples. (1) What values of \(x\) will make \(y\) a maximum and a minimum, if \(y=\dfrac{x^2}{x+1}\)? (2) What value of \(x\) will make \(y\) a maximum in the equation \(y=\dfrac{x}{a^2+x^2}\)? (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\). (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? (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\). If \(y = x^5-5x\), find what values of \(x\) will make \(y\) a maximum or a minimum. (7) What is the smallest square that can be inscribed in a given square? (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. (9) Inscribe in a sphere, a cylinder (a) whose volume is a maximum; (b) whose lateral area is a maximum; (c) whose total area is a maximum. (10) A spherical balloon is increasing in volume. If, when its radius is \(r\) feet, its volume is increasing at the rate of \(4\) cubic feet per second, at what rate is its surface then increasing? (11) Inscribe in a given sphere a cone whose volume is a maximum. (12) 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.
Exercises IX.