>   

Practice Problems for Local and Global Extrema

Calculus I Lab -- Fall 2002

prepared by

Douglas B. Meade

Department of Mathematics

University of South Carolina

Columbia, SC 29208

E-mail: meade@math.sc.edu

6 October 2002

>   

Purpose

The purpose of this week's lab is to provide practice solving local and global extrema problems using Maple. Many of the problems to be considered could be solved by hand. Maple will be used to assist with some of the algebraic details and, when appropriate, to produce reasonable plots of a function (and its derivatives). For some of the problems it will be easiest to work directly in Maple. For other problems it will be possible to use the LinearMotion Maplet.

>   

Example 1: # 41 (page 173)

>    restart;

The function of interest in this problem is:

>    y := a*sqrt(x) + b/sqrt(x);

>   

The condition that the function pass through the point (4, 13) means that y = 13 when x = 4:

>    eq1 := eval( y=13, x=4 );

Read this command as: eval uate the equation  y=13  when x=4  and assign  the result to the name eq1 .

The square roots of 4 in this equation are a little surprising. To ask Maple to simplify  this result to what we would expect, use

>    eq1a := simplify( eq1 );

>   

For the point ( 4, 13 ) to be an inflection point for this function the second derivative must change sign at x=4. The (first and) second derivative are:

>    Dy := diff( y, x );

>    D2y := diff( Dy, x );

These results are messier than they should be. Maple will simplify  the expressions if we ask appropriately:

>    Dya := simplify( Dy );

>    D2ya := simplify( D2y );

>   

From these equations it is easily seen that x = 0  is a singular point for the function, x = b/a  will be a stationary point, and x = 3*b/a  is a possible inflection point. We could use this information together with eq1a , but let's see how we could use Maple to solve both equations.

>    eq2 := eval( D2ya=0, x=4 );

>    eq2a := simplify( eq2 );

>   

The solution to equations eq1a  and eq2a  can be found with the command:

>    sol := solve( { eq1a, eq2a }, { a, b } );

It is important that both the system of equations and the set of unknowns are specified as sets , i.e., with delimiters { } .

>   

To find the function defined by these values of the parameter:

>    Y := eval( y, sol );

>   

But, we are not done! We know only that this function has a potential inflection point at (4,13). To verify that this point is an inflection point it is necessary to verify that the second derivative changes sign at x = 4 :

>    D2Y := simplify( diff( Y, x,x ) );

For x>0, the denominator is positive. For 0 < x  < 4, x-4  < 0 so the second derivative is positive. For x  > 4, x-4  > 0 so the second derivative is negative.

As an alternative, plot the second derivative on an interval containing x = 4 :

>    plot( D2Y, x=3..5 );

By either line of reasoning, this function changes from concave up to concave down at x = 4  and (4,13) is an inflection point.

>    plot( Y, x=0..50, view=[0..50,0..50] );

>   

Note: Much of this problem could also be done using the LinearMotion Maplet. It would, however, require a fair amount of copying and pasting (or writing by hand).

>   

Example 2: # 19 (page 178)

>    restart;

The function in this problem is

>    y := 64/cos(x) + 27/sin(x);

>   

The problem is to find the extrema on the open interval (0, Pi/2 ).

Step 1.

Find and classify critical points in the interval (0, Pi/2 ). (Note that x = 0  and x = Pi/2  are not in the domain of the function, these points will need to be dealt with separately.) This can be completed using the LinearMotion Maplet or by direct computation within Maple.

The derivative is:

>    Dy := diff( y, x );

The stationary points are:

>    StatPts := solve( Dy=0, x );

The appearance of arctan  is a little surprising. Even if this does not bother you, the complex arguments of the arctan function should cause a little concern. Maybe if we force Maple to report floating-point answers:

>    StatPts2 := solve( Dy=0., x );

The only real-valued stationary point is c = arctan(3/4)  = 0.643501:

>    c_exact := StatPts[1];
c_float := StatPts2[1];

>   

To complete the classification of this critical point using the first derivative test, plot the first derivative on an interval that contains the stationary point. (This can be done using the LinearMotion Maplet or directly within Maple.) In either case, you should see that the derivative changes from negative to positive at x=c so this stationary point is a local minimum.

>    plot( Dy, x=0..Pi/2, view=[0..Pi/2,-100..100] );

>   

To use the 2nd Derivative Test to reach this conclusion, find the second derivative

>    D2y := diff( y, x,x );

and evaluate it at the stationary point (either the exact or floating-point form):

>    eval( D2y, x=c_exact );

>    eval( D2y, x=c_float );

The fact that the second derivative is positive at the stationary point tells us the function is concave up here and so the stationary point is a local minimum.

>   

Step 2.

Because the problem requests extrema on the open interval ( 0, Pi/2  ), the endpoints are not critical points. However, the behavior of the function does need to be considered at these points. This will be accomplished by evaluating the one-sided limits: Limit(64/sin(x)+27/cos(x),x = 0,right)  and Limit(64/sin(x)+27/cos(x),x = Pi/2,left) . Use either the LimitCheck Maplet or explicit computations within Maple to evaluate these limits.

>   

>   

>   

>   

The fact that these limits are both + infinity  tells us that there is no global maximum value for this function on (0, Pi/2  ).

>   

Step 3.

We can now conclude that the local minimum is, in fact, a global minimum on this interval. (What is the minimum value of the function on this interval?)

Create a plot of the function with an appropriate vertical range that confirms the results found above.

>   

>   

>   

Step 4.

To practice the concepts used to analyze this problem, repeat this question on the intervals ( Pi/2 , Pi  ), ( Pi , 3*Pi/2  ), and ( 3*Pi/2 , 2*Pi  ).

>   

>   

>   

>   

>   

>     

>   

Note: There is nothing to turn from the problems in this worksheet. These problems are for practice and to illustrate the main ideas you will need to use to answer the five (5) Exercises contained in this lab.

>   

>