Maximum of a Function


Suppose we want to compute the relative(local) maximum for the function \mathbf{f(x) = x^4 - 4x^3 - 12x^2 + 32x}.

Here is the graph of this polynomial. For this graph I used X-min = - 5, X-max = 7, Y-min = -75, and Y-Max = 75


Max-screen1.gif


Method 1: Using the command fMax

They syntax for this command is: fMax(function,X,left bound, right bound)

This command will return the x-value of the point where the function has a maximum.


WARNING: This command is equivalent to asking where the absolute maximum is located on the given interval. Randomly picking the left bound and right bound will tend to give you an incorrect answer.


From the home screen do the following.


Using the example from above with the interval x=0 to x=3 should now display the following. Note: The interval was found using the graph of the function given above.

Max-screen2.gif

Now to find the actual maximum value, evaluate the function at x=1.

Max-screen3.gif



Method 2: Using a Graphing Screen

X-min = - 5, X-max = 7, Y-min = - 75, and Y-Max = 75

This is what you should see. I used x=0 for the left bound.

Max-screen4.gif

This is what you should see. I used x=3 for the left bound.

Max-screen5.gif

The calculator should now display the following.

Max-screen6.gif

Thus the relative maximum for the function is 17 and it occurs at x=1.