# Function Repository Resource:

# StationaryPoints

Compute the stationary points of a function of one or more variables

Contributed by: Wolfram|Alpha Math Team
 ResourceFunction["StationaryPoints"][expr, {var1,var2, …}] computes the stationary points of expr with respect to the variable(s) vari. ResourceFunction["StationaryPoints"][{expr,domain},{var1,var2,…}] computes the stationary points of expr that lie within the domain domain.

## Details and Options

Results of ResourceFunction["StationaryPoints"][expr, {var1, }] are returned in the form {{val1, {var11 sol12,}}, }, where {vari1 soli1,} represents the location of the ith stationary point and vali is the value of expr at that point.
Results can be limited to one type of stationary point or another by including the option setting Type -> “Maximum”, Type -> “Minimum”, or Type -> “SaddlePoint”. Omitting this option or using Type -> Automatic returns all stationary points.
For functions with a repeating pattern of inflection points, InflectionPoints returns results in terms of one or more undetermined constants, which can take any integer value.

## Examples

### Basic Examples

Find the stationary points of a function of one variable:

 In:= Out= Find the stationary points of a periodic function:

 In:= Out= In:= Out= Find the stationary points of a function over a restricted domain

:

 In:= Out= In:= Out= In:= Out= Find stationary points of a function of two variables:

 In:= Out= Find stationary points of a function of three variables when restricting to a plane:

 In:= Out= ### Options

Using the Type option will return only stationary points of the given type:

 In:= Out= In:= Out= In:= Out= In:= Out= Using the Type Automatic returns all stationary points:

 In:= Out= ### Properties and Relations

StationaryPoints will sometimes return results in terms of Root objects:

 In:= Out= Results such as these can be numericized by applying N:

 In:= Out= For functions with a repeating pattern of stationary points, StationaryPoints returns results in terms of one or more undetermined constants, which can take any integer value:

 In:= Out= ### Possible Issues

For functions having one or more classes of non-isolated inflection points, StationaryPoints[expr] may return only isolated examples:

 In:= Out= 