Skip to content

Chapter 13: Chapter XI. Maxima and Minima

13.1 Chapter XI. 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 equals x squared minus 4 x plus 7 period

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 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 and one fourth or at 1 and three fourths?

Fig. 26.
Fig. 26.

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.

Fig. 27.
Fig. 27.

Here is another example:

Let y equals 3 x minus x squared period

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 Fig. 27.

It will be evident that there will be a maximum somewhere between x equals 1 and x equals 2; and the thing looks as if the maximum value of y ought to be about 2 and one fourth. Try some intermediate values. If x equals 1 and one fourth comma y equals 2.187; if x equals 1 and one half comma y equals 2.25; if x equals 1.6 comma y equals 2.24. How can we be sure that 2.25 is the real maximum, or that it occurs exactly when x equals 1 and one half?

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 an earlier page (78) 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 StartFraction d y Over d x EndFraction equals 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 StartFraction d y Over d x EndFraction 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 equals x squared minus 4 x plus 7 period

Differentiating, we get: StartFraction d y Over d x EndFraction equals 2 x minus 4 period Now equate this to zero, thus: 2 x minus 4 equals 0 period Solving this equation for x, we get: StartLayout 1st Row 2 x equals 4 comma 2nd Row x equals 2 period EndLayout

Now, we know that the maximum (or minimum) will occur exactly when x equals 2.

Putting the value x equals 2 into the original equation, we get StartLayout 1st Row 1st Column y 2nd Column equals 2 squared minus left parenthesis 4 times 2 right parenthesis plus 7 2nd Row 1st Column Blank 2nd Column equals 4 minus 8 plus 7 3rd Row 1st Column Blank 2nd Column equals 3 period EndLayout

Now look back at Fig. 26, and you will see that the minimum occurs when x equals 2, and that this minimum of y equals 3.

Try the second example (Fig. 24), which is y equals 3 x minus x squared period

Differentiating, StartFraction d y Over d x EndFraction equals 3 minus 2 x.

Equating to zero, StartLayout 1st Row 1st Column 3 minus 2 x 2nd Column equals 0 comma 2nd Row 1st Column whence x 2nd Column equals 1 and one half semicolon EndLayout and putting this value of x into the original equation, we find: StartLayout 1st Row 1st Column Blank 2nd Column y equals 4 and one half minus left parenthesis 1 and one half times 1 and one half right parenthesis comma 2nd Row 1st Column Blank 2nd Column y equals 2 and one fourth period EndLayout 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 StartFraction d y Over d x EndFraction to zero, you feel at first (that is if you have any wits of your own) a kind of resentment, because you know that StartFraction d y Over d x EndFraction 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 StartFraction d y Over d x EndFraction equals 0 comma 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 StartFraction d y Over d x EndFraction equals 0. So, writing StartFraction d y Over d x EndFraction equals 0 does not mean that it always is equals 0; but you write it down as a condition in order to see how much x will come out if StartFraction d y Over d x EndFraction 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 equals 4 x plus StartFraction 1 Over x EndFraction period

Without stopping to think what curve it corresponds to, differentiate it, and equate to zero: StartFraction d y Over d x EndFraction equals 4 minus x Superscript negative 2 Baseline equals 4 minus StartFraction 1 Over x squared EndFraction equals 0 semicolon whence x equals one half semicolon and, inserting this value, y equals 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. XII., p. 109). 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 minus x, and the product will be x left parenthesis n minus x right parenthesis or n x minus x squared. So we write y equals n x minus x squared. Now differentiate and equate to zero; StartFraction d y Over d x EndFraction equals n minus 2 x equals 0 Solving for x, we get StartFraction n Over 2 EndFraction equals 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 equals one fourth n squared.

This is a very useful rule, and applies to any number of factors, so that if m plus n plus p equals a constant number, m times n times p is a maximum when m equals n equals p.

Test Case.

Let us at once apply our knowledge to a case that we can test.

Let y equals x squared minus x semicolon 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 StartFraction d y Over d x EndFraction equals 2 x minus 1 period

Equating to zero, we get 2 x minus 1 equals 0 comma whence 2 x equals 1 comma or x equals one half period

That is to say, when x is made equals one half, the corresponding value of y will be either a maximum or a minimum. Accordingly, putting x equals one half in the original equation, we get StartLayout 1st Row 1st Column y 2nd Column equals left parenthesis one half right parenthesis squared minus one half comma 2nd Row 1st Column or y 2nd Column equals negative one fourth period EndLayout

Is this a maximum or a minimum? To test it, try putting x a little bigger than one half,—say make x equals 0.6. Then y equals left parenthesis 0.6 right parenthesis squared minus 0.6 equals 0.36 minus 0.6 equals negative 0.24 comma which is higher up than -0.25; showing that y equals negative 0.25 is a minimum.

Plot the curve for yourself, and verify the calculation.

Further Examples.

A most interesting example is afforded by a curve that has both a maximum and a minimum. Its equation is: y equals one third x cubed minus 2 x squared plus 3 x plus 1 period Now StartFraction d y Over d x EndFraction equals x squared minus 4 x plus 3 period

Fig. 28.
Fig. 28.

Equating to zero, we get the quadratic, x squared minus 4 x plus 3 equals 0 semicolon and solving the quadratic gives us two roots, viz. StartLayout Enlarged left brace 1st Row x equals 3 2nd Row x equals 1 period EndLayout

Now, when x equals 3 comma y equals 1; and when x equals 1 comma y equals 2 and one third. The first of these is a minimum, the second a maximum.

The curve itself may be plotted (as in Fig. 28) from the values calculated, as below, from the original equation.

x -1 0 1 2 3 4 5 6
y negative 4 and one third 1 2 and one third 1 and two thirds 1 2 and one third 7 and two thirds 19

A further exercise in maxima and minima is afforded by the following example:

The equation to a circle of radius r, having its centre upper C at the point whose coordinates are x equals a comma y equals b, as depicted in Fig. 29, is: left parenthesis y minus b right parenthesis squared plus left parenthesis x minus a right parenthesis squared equals r squared period

Fig. 29.
Fig. 29.

This may be transformed into y equals StartRoot r squared minus left parenthesis x minus a right parenthesis squared EndRoot plus b period

Now we know beforehand, by mere inspection of the figure, that when x equals a, y will be either at its maximum value, b plus r, or else at its minimum value, b minus 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. StartFraction d y Over d x EndFraction equals one half StartFraction 1 Over StartRoot r squared minus left parenthesis x minus a right parenthesis squared EndRoot EndFraction times left parenthesis 2 a minus 2 x right parenthesis comma which reduces to StartFraction d y Over d x EndFraction equals StartFraction a minus x Over StartRoot r squared minus left parenthesis x minus a right parenthesis squared EndRoot EndFraction period

Then the condition for y being maximum or minimum is: StartFraction a minus x Over StartRoot r squared minus left parenthesis x minus a right parenthesis squared EndRoot EndFraction equals 0 period

Since no value whatever of x will make the denominator infinite, the only condition to give zero is x equals a period

Inserting this value in the original equation for the circle, we find y equals StartRoot r squared EndRoot plus b semicolon and as the root of r squared is either plus r or negative r, we have two resulting values of y, StartLayout Enlarged left brace 1st Row y equals b plus r 2nd Row y equals b minus r period EndLayout

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:

Let y equals a x cubed plus b x plus c period

Then StartFraction d y Over d x EndFraction equals 3 a x squared plus b period

Equating this to zero, we get 3 a x squared plus b equals 0, x squared equals StartFraction negative b Over 3 a EndFraction comma and x equals StartRoot StartFraction negative b Over 3 a EndFraction EndRoot comma which is impossible period 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.

(1) What are the sides of the rectangle of maximum area inscribed in a circle of radius upper R?

If one side be called x, the other side equals StartRoot left parenthesis diagonal right parenthesis squared minus x squared EndRoot semicolon and as the diagonal of the rectangle is necessarily a diameter, the other side equals StartRoot 4 upper R squared minus x squared EndRoot.

Then, area of rectangle upper S equals x StartRoot 4 upper R squared minus x squared EndRoot, StartFraction d upper S Over d x EndFraction equals x times StartFraction d left parenthesis StartRoot 4 upper R squared minus x squared EndRoot right parenthesis Over d x EndFraction plus StartRoot 4 upper R squared minus x squared EndRoot times StartFraction d left parenthesis x right parenthesis Over d x EndFraction period

If you have forgotten how to differentiate StartRoot 4 upper R squared minus x squared EndRoot, here is a hint: write 4 upper R squared minus x squared equals w and y equals StartRoot w EndRoot, and seek StartFraction d y Over d w EndFraction and StartFraction d w Over d x EndFraction; fight it out, and only if you can't get on refer to page 66.

You will get StartFraction d upper S Over d x EndFraction equals x times minus StartFraction x Over StartRoot 4 upper R squared minus x squared EndRoot EndFraction plus StartRoot 4 upper R squared minus x squared EndRoot equals StartFraction 4 upper R squared minus 2 x squared Over StartRoot 4 upper R squared minus x squared EndRoot EndFraction period

For maximum or minimum we must have StartFraction 4 upper R squared minus 2 x squared Over StartRoot 4 upper R squared minus x squared EndRoot EndFraction equals 0 semicolon that is, 4 upper R squared minus 2 x squared equals 0 and x equals upper R StartRoot 2 EndRoot.

The other side equals StartRoot 4 upper R squared minus 2 upper R squared EndRoot equals upper R StartRoot 2 EndRoot; 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.

(2) 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?

If upper R be the radius and upper H the corresponding height, upper H equals StartRoot l squared minus upper R squared EndRoot. Volume upper V equals pi upper R squared times StartFraction upper H Over 3 EndFraction equals pi upper R squared times StartFraction StartRoot l squared minus upper R squared EndRoot Over 3 EndFraction period

Proceeding as in the previous problem, we get StartLayout 1st Row 1st Column StartFraction d upper V Over d upper R EndFraction 2nd Column equals pi upper R squared times minus StartFraction upper R Over 3 StartRoot l squared minus upper R squared EndRoot EndFraction plus StartFraction 2 pi upper R Over 3 EndFraction StartRoot l squared minus upper R squared EndRoot 2nd Row 1st Column Blank 2nd Column equals StartFraction 2 pi upper R left parenthesis l squared minus upper R squared right parenthesis minus pi upper R cubed Over 3 StartRoot l squared minus upper R squared EndRoot EndFraction equals 0 EndLayout for maximum or minimum.

Or, 2 pi upper R left parenthesis l squared minus upper R squared right parenthesis minus pi upper R squared equals 0, and upper R equals l StartRoot two thirds EndRoot, for a maximum, obviously.

(3) Find the maxima and minima of the function y equals StartFraction x Over 4 minus x EndFraction plus StartFraction 4 minus x Over x EndFraction period

We get StartFraction d y Over d x EndFraction equals StartFraction left parenthesis 4 minus x right parenthesis minus left parenthesis negative x right parenthesis Over left parenthesis 4 minus x right parenthesis squared EndFraction plus StartFraction negative x minus left parenthesis 4 minus x right parenthesis Over x squared EndFraction equals 0 for maximum or minimum; or StartFraction 4 Over left parenthesis 4 minus x right parenthesis squared EndFraction minus StartFraction 4 Over x squared EndFraction equals 0 and x equals 2 period

There is only one value, hence only one maximum or minimum. StartLayout 1st Row 1st Column For 2nd Column x equals 2 comma 3rd Column y equals 2 comma 2nd Row 1st Column for 2nd Column x equals 1.5 comma 3rd Column y equals 2.27 comma 3rd Row 1st Column for 2nd Column x equals 2.5 comma 3rd Column y equals 2.27 semicolon EndLayout it is therefore a minimum. (It is instructive to plot the graph of the function.)

(4) Find the maxima and minima of the function y equals StartRoot 1 plus x EndRoot plus StartRoot 1 minus x EndRoot. (It will be found instructive to plot the graph.)

Differentiating gives at once (see example No. 1, p. 67) StartFraction d y Over d x EndFraction equals StartFraction 1 Over 2 StartRoot 1 plus x EndRoot EndFraction minus StartFraction 1 Over 2 StartRoot 1 minus x EndRoot EndFraction equals 0 for maximum or minimum.

Hence StartRoot 1 plus x EndRoot equals StartRoot 1 minus x EndRoot and x equals 0, the only solution. For x equals 0 comma y equals 2.

For x equals plus or minus 0.5 comma y equals 1.932, so this is a maximum.

(5) Find the maxima and minima of the function y equals StartFraction x squared minus 5 Over 2 x minus 4 EndFraction period

We have StartFraction d y Over d x EndFraction equals StartFraction left parenthesis 2 x minus 4 right parenthesis times 2 x minus left parenthesis x squared minus 5 right parenthesis 2 Over left parenthesis 2 x minus 4 right parenthesis squared EndFraction equals 0 for maximum or minimum; or StartFraction 2 x squared minus 8 x plus 10 Over left parenthesis 2 x minus 4 right parenthesis squared EndFraction equals 0 semicolon or x squared minus 4 x plus 5 equals 0; which has for solutions x equals five halves plus or minus StartRoot negative 1 EndRoot period

These being imaginary, there is no real value of x for which StartFraction d y Over d x EndFraction equals 0; hence there is neither maximum nor minimum.

(6) Find the maxima and minima of the function left parenthesis y minus x squared right parenthesis squared equals x Superscript 5 Baseline period

This may be written y equals x squared plus or minus x Superscript five halves. StartFraction d y Over d x EndFraction equals 2 x plus or minus five halves x Superscript three halves Baseline equals 0 for maximum or minimum semicolon that is, x left parenthesis 2 plus or minus five halves x Superscript one half Baseline right parenthesis equals 0, which is satisfied for x equals 0, and for 2 plus or minus five halves x Superscript one half Baseline equals 0, that is for x equals StartFraction 16 Over 25 EndFraction. So there are two solutions.

Taking first x equals 0. If x equals negative 0.5 comma y equals 0.25 plus or minus RootIndex 2 StartRoot minus left parenthesis .5 right parenthesis Superscript 5 Baseline EndRoot, and if x equals plus 0.5 comma y equals 0.25 plus or minus RootIndex 2 StartRoot left parenthesis .5 right parenthesis Superscript 5 Baseline EndRoot. 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 Fig. 30).

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 StartFraction d y Over d x EndFraction equals 0. It is necessary therefore always to check by taking one value on either side.

Fig. 30.
Fig. 30.

Now, if we take x equals StartFraction 16 Over 25 EndFraction equals 0.64. If x equals 0.64 comma y equals 0.7373 and y equals 0.0819; if x equals 0.6, y becomes 0.6389 and 0.0811; and if x equals 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.

(7) A cylinder whose height is twice the radius of the base is increasing in volume, so that all its parts keep always in the same proportion to each other; that is, at any instant, the cylinder is similar to the original cylinder. When the radius of the base is r feet, the surface area is increasing at the rate of 20 square inches per second; at what rate is its volume then increasing? StartLayout 1st Row 1st Column Area 2nd Column equals upper S equals 2 left parenthesis pi r squared right parenthesis plus 2 pi r times 2 r equals 6 pi r squared period 2nd Row 1st Column Volume 2nd Column equals upper V equals pi r squared times 2 r equals 2 pi r cubed period 3rd Row 1st Column StartFraction d upper S Over d r EndFraction 2nd Column equals 12 pi r comma StartFraction d upper V Over d r EndFraction equals 6 pi r squared comma 4th Row 1st Column d upper S 2nd Column equals 12 pi r d r equals 20 comma d r equals StartFraction 20 Over 12 pi r EndFraction comma 5th Row 1st Column d upper V 2nd Column equals 6 pi r squared d r equals 6 pi r squared times StartFraction 20 Over 12 pi r EndFraction equals 10 r period EndLayout

The volume changes at the rate of 10 r cubic inches.

Make other examples for yourself. There are few subjects which offer such a wealth for interesting examples.

Exercises IX. (See page 257 for Answers.)

(1) What values of x will make y a maximum and a minimum, if y equals StartFraction x squared Over x plus 1 EndFraction?

(2) What value of x will make y a maximum in the equation y equals StartFraction x Over a squared plus x squared EndFraction?

(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 one fourth 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 equals StartFraction 10 Over x EndFraction plus StartFraction 10 Over 8 minus x EndFraction semicolon also find StartFraction d y Over d x EndFraction, and deduce the value of x that will make y a minimum; and find that minimum value of y.

(6) If y equals x Superscript 5 Baseline minus 5 x, 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 upper C given by a battery of upper N similar voltaic cells is upper C equals StartStartFraction n times upper E OverOver upper R plus StartFraction r n squared Over upper N EndFraction EndEndFraction, where upper E comma upper R comma r, are constants and n is the number of cells coupled in series. Find the proportion of n to upper N for which the current is greatest.