A Demonstration of the Procedure minimize
The procedure minimize returns the infimum of an expression or function over a given domain. It is also possible to have minimize return both the infimum and the location where the infimum is either approached or achieved.
>



Specifying the Domain of a Variable


The domain of a variable can be specified in one of three ways:

The Default minimize( f(x), x )


If just the variable is listed, then it is assumed that that variable is to be minimized over the entire real line, that is, .
>


 (2.1.1) 


A Range minimize( f(x), x = 0..1 )


If the variable is equated to a range, then the variable is minimized over the closed interval bounded by the given range. The endpoints of the range must be of type realcons.
>


 (2.2.1) 
This form of specifying the domain over which the function is to be minimized allows a quick substitution to give a plot of the function:
>


 (2.2.2) 
>


 (2.2.3) 
>




A Simple Relation minimize( f(x), x > 0 )


A domain can be specified by having a name related to an object of type realcons by one of the relation operators =, <, <=, > or >=. Some examples are:
>


 (2.3.1) 
>


 (2.3.2) 
>


 (2.3.3) 
>


 (2.3.4) 
>


 (2.3.5) 

If no domains are given for any variable then it is assumed that each indeterminate of type name is being minimized over the entire real line:
>


 (2.1) 
>


 (2.2) 
>


 (2.3) 
>




Option location


If the option location or location=true is given, then an expression sequence of two objects is returned, the first being the infimum and the second is a set of lists where the first operand of each list is a list of substitutions which indicates a point or set of points at or near which the infimum is either approached or achieved. Four examples are:
>


 (3.1) 
>


 (3.2) 
>


 (3.3) 
>


 (3.4) 
In some cases, minimize cannot determine the location and therefore returns FAIL as the location.
>


 (3.5) 
The option location=false can be given to indicate explicitly that only the infimum is wanted.
If there are multiple options for the keyword location then the last is used.
>


 (3.6) 
>


 (3.7) 


The location Data Structure


A location data structure (see previous section) can be used to quickly find the value of the function or the point(s) where the infimum is achieved (assuming the function is continuous and being minimized over a closed interval.)
>


 (4.1) 
>


 (4.2) 
In some cases due to weakness in other parts of Maple, minimize will return a collection of answers if it cannot determine which is the infimum:
>


 (4.3) 
>


 (4.4) 
>


 (4.5) 
>




Relation of the Location of the Minimum and the Infimum


If the infimum is finite then any location returned when option location is given indicates that that the infimum is either achieved at that point or approached arbitrarily closely in any open neighborhood around the point. The location may not even be in the original interval being minimized over, but rather one of the endpoints of the interval. If the infimum is then the function is not bounded below on any open neighborhood of the point.
>


 (5.1) 
>


 (5.2) 
>


 (5.3) 
>


 (5.4) 
>



Return to Index for Example Worksheets
