extrema
find relative extrema of an expression
Calling Sequence
Parameters
Description
Examples
extrema(expr, constraints)
extrema(expr, constraints, vars)
extrema(expr, constraints, vars, 's')
expr
-
expression whose extrema are to be found
constraints
constraint or set of constraints
vars
variable or set of variables
s
unevaluated name
The extrema function can be used to find extreme values of a multivariate expression with zero or more constraints. Candidates for extreme value points can also be returned. The extrema are returned as a set, and the candidates are returned as a set of sets of equations in the appropriate variables.
expr must be an algebraic expression. The constraints may be specified as either expressions or equations. When a constraint is given as an expression, it is understood that constraint = 0. If no constraints are to be given, then the empty set {} is used in the parameter list. If vars is not given then all name indeterminates in the expr and constraints are used. vars must be specified if the fourth parameter s is given. The candidates for the extreme value points are returned in s.
When the candidates cannot be expressed in closed form, s will contain the system of equations which when solved will produce these candidates.
This function employs the method of Lagrange multipliers.
extrema⁡a⁢x2+b⁢x+c,∅,x
−b24⁢a+c
extrema⁡a⁢x⁢y⁢z,x2+y2+z2=1,x,y,z
max⁡0,−3⁢a9,3⁢a9,min⁡0,−3⁢a9,3⁢a9
f≔x2+y212−z;g1≔x2+y2−16;g2≔x+y+z=10
f≔x2+y2−z
g1≔x2+y2−16
g2≔x+y+z=10
extrema⁡f,g1,g2,x,y,z,s
−6−4⁢2,−6+4⁢2
x=−2⁢2,y=−2⁢2,z=4⁢2+10,x=2⁢2,y=2⁢2,z=−4⁢2+10
See Also
maximize
minimize
Download Help Document