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=x24x+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. x012345y7434712

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 214 or at 134?

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=3xx2.

Calculate a few values thus: x1012345y40220410

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 214. Try some intermediate values. If x=114, y=2.187; if x=112, 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=112?

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 dydx=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 dydx 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=x24x+7.

Differentiating, we get: dydx=2x4. Now equate this to zero, thus: 2x4=0. Solving this equation for x, we get: 2x=4,x=2.

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 y=22(4×2)+7=48+7=3.

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=3xx2. Differentiating, dydx=32x. Equating to zero, 32x=0, whence x=112; and putting this value of x into the original equation, we find: y=412(112×112),y=214.

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 dydx to zero, you feel at first (that is if you have any wits of your own) a kind of resentment, because you know that dydx 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 dydx=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 dydx=0. So, writing dydx=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 dydx 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+1x.

Without stopping to think what curve it corresponds to, differentiate it, and equate to zero:

dydx=4x2=41x2=0; whencex=12; 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 nx, and the product will be x(nx) or nxx2. So we write y=nxx2. Now differentiate and equate to zero;

dydx=n2x=0 Solving for x, we getn2=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 =14n2.

This is a very useful rule, and applies to any number of factors, so that if m+n+p= a constant number, m×n×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=x2x;

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 getdydx=2x1  Equating to zero, we get 2x1=02x=1x=12.

That is to say, when x is made =12, the corresponding value of y will be either a maximum or a minimum. Accordingly, putting x=12 in the original equation, we get

y=(12)12,y=14

Is this a maximum or a minimum? To test it, try putting x a little bigger than 12,—say make x=0.6. Then y=(0.6)20.6=0.360.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.

Example 1
A most interesting example is afforded by a curve that has both a maximum and a minimum. Its equation is:

y=x32x2+3x+1;=x24x+3. 

Equating to zero, we get the quadratic, x24x+3=0; and solving the quadratic gives us two roots, viz. {x=3x=1.

Now, when x=3, y=1; and when x=1, y=213. 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. x10123456y4131213123121372319

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

Example 2
The equation to a circle of radius r, having its centre C at the point whose coordinates are x=a, y=b, as depicted in Fig. 29, is: (yb)2+(xa)2=r2.

 

This may be transformed into y=r2(xa)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, br. 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. dydx=121r2(xa)2×(2a2x),dydx=axr2(xa)2.

Then the condition for y being maximum or minimum is: axr2(xa)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=r2+b; and as the root of r2 is either +r or~r, we have two resulting values of y,

{y=b+ry=br

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:

y=ax3+bx+c.dydx=3ax2+b.

Equating this to zero, we get 3ax2+b=0, x2=b3a,andx=b3a, 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.

Example 3
What are the sides of the rectangle of maximum area inscribed in a circle of radius R?
Solution
If one side be called x, the other side=(diagonal)2x2; and as the diagonal of the rectangle is necessarily a diameter, the other side =4R2x2.

Then, area of rectangle S=x4R2x2, dSdx=x×d(4R2x2)dx+4R2x2×d(x)dx.

If you have forgotten how to differentiate 4R2x2, here is a hint: write 4R2x2=w and y=w, and seek dydw and dwdx; fight it out, and only if you can’t get on refer to chapter 4.

You will get dSdx=x×x4R2x2+4R2x2=4R22x24R2x2.

For maximum or minimum we must have 4R22x24R2x2=0; that is, 4R22x2=0 and x=R2.

The other side =4R22R2=R2; 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 4
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=l2R2. Volume V=πR2×H3=πR2×l2R23.

Proceeding as in the previous problem, we get dVdR=πR2×R3l2R2+2πR3l2R2=2πR(l2R2)πR33l2R2=0 for maximum or minimum.

Or,  2πR(l2R2)πR2=0, and R=l23, for a maximum, obviously.

Example 5
Find the maxima and minima of the function y=x4x+4xx.

Solution
We get dydx=(4x)(x)(4x)2+x(4x)x2=0 for maximum or minimum; or 4(4x)24x2=0andx=2.

There is only one value, hence only one maximum or minimum. Forx=2,.5y=2,forx=1.5,y=2.27,forx=2.5,y=2.27; it is therefore a minimum. (It is instructive to plot the graph of the function.)

Example 6
Find the maxima and minima of the function y=1+x+1x. (It will be found instructive to plot the graph.)
Solution
Differentiating gives at once (see example No. 1, Ch. 9) dydx=121+x121x=0 for maximum or minimum.

Hence 1+x=1x and x=0, the only solution

For x=0,y=2.

For x=±0.5, y=1.932, so this is a maximum.

The graph of this function is shown below. 

Example 7
Find the maxima and minima of the function y=x252x4.

Solution
We have dydx=(2x4)×2x(x25)2(2x4)2=0 for maximum or minimum; or 2x28x+10(2x5)2(2x4)2=0; or x24x+5=0; which has for solutions x=52±1.

These being imaginary, there is no real value of x for which dydx=0; hence there is neither maximum nor minimum.

Example 8
Find the maxima and minima of the function (yx2)2=x5.

Solution
This may be written y=x2±x52. dydx=2x±52x32=0for maximum or minimum; that is, x(2±52x12)=0, which is satisfied for x=0, and for 2±52x12=0, that is for x=1625. So there are two solutions.

Taking first x=0. If x=0.5, y=0.25±(.5)52, and if x=+0.5, y=0.25±(.5)52. 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 dydx=0. It is necessary therefore always to check by taking one value on either side.

 

Now, if we take x=1625=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.

Example 9
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?

Solution
Area=S=2(πr2)+2πr×2r=6πr2.Volume=V=πr2×2r=2πr3.dSdr=12πr,dVdr=6πr2,dS=12πrdr=20,dr=2012πr,dV=6πr2dr=6πr2×2012πr=10r.

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

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


Exercises IX.

(1) What values of x will make y a maximum and a minimum, if y=x2x+1?

(2) What value of x will make y a maximum in the equation y=xa2+x2?

(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 14p.

(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=10x+108x; also find dydx, and deduce the value of x that will make y a minimum; and find that minimum value of y.

If y=x55x, 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=n×ER+rn2N, where ERr, 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.

Answers to Exercises

(1) Min.: x=0, y=0; max.: x=2, y=4.

(2) x=a.

(4) 253 square inches.

(5) dydx=10x2+10(8x)2; x=4; y=5.

(6) Max. for x=1; min. for x=1.

(7) Join the middle points of the four sides.

(8) r=23R, r=R2, no max.

(9) r=R23, r=R2, r=0.8506R.

(10) At the rate of 8r square feet per second.

(11) r=R83.

(12) n=NRr.