We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
Maximize[f,x]
maximizes f symbolically with respect to x.
Maximize[f,{x,y,…}]
maximizes f symbolically with respect to x, y, ….
Maximize[{f,cons},{x,y,…}]
maximizes f symbolically subject to the constraints cons.
Maximize[…,x∈rdom]
constrains x to be in the region or domain rdom.
Details and OptionsMaximize a univariate function:
Maximize a multivariate function:
Maximize a function subject to constraints:
A maximization problem containing parameters:
Maximize a function over a geometric region:
Scope (36) Basic Uses (7)Maximize over the unconstrained reals:
Maximize subject to constraints :
Constraints may involve arbitrary logical combinations:
The supremum value may not be attained:
Use a vector variable and a vector inequality:
Univariate Problems (7)Unconstrained univariate polynomial maximization:
Constrained univariate polynomial maximization:
Analytic functions over bounded constraints:
Combination of trigonometric functions with commensurable periods:
Combination of periodic functions with incommensurable periods:
Unconstrained problems solvable using function property information:
Multivariate Problems (9)Multivariate linear constrained maximization:
Linear-fractional constrained maximization:
Unconstrained polynomial maximization:
Constrained polynomial optimization can always be solved:
The maximum value may not be attained:
The objective function may be unbounded:
There may be no points satisfying the constraints:
Quantified polynomial constraints:
Bounded transcendental maximization:
Maximize concave objective function such that is positive semidefinite and :
Plot the region and the minimizing point:
Parametric Problems (4)Parametric linear optimization:
The maximum value is a continuous function of parameters:
Parametric quadratic optimization:
The maximum value is a continuous function of parameters:
Unconstrained parametric polynomial maximization:
Constrained parametric polynomial maximization:
Optimization over Integers (3)Polynomial maximization over the integers:
Optimization over Regions (6)Find the maximum distance between points in two regions:
Find the maximum such that the triangle and ellipse still intersect:
Find the maximum for which contains the given three points:
Use to specify that is a vector in :
Find the maximum distance between points in two regions:
Options (1) WorkingPrecision (1)Finding the exact solution takes a long time:
With WorkingPrecision->200, you get an exact maximum value, but it might be incorrect:
Applications (13) Basic Applications (3)Find the maximal area among rectangles with a unit perimeter:
Find the maximal area among triangles with a unit perimeter:
Find the maximum height reached by a projectile:
Find the maximum range of a projectile:
Geometric Distances (9)The largest distance of a point in a region ℛ to a given point p and a point q realizing the largest distance is given by Maximize[EuclideanDistance[p,q],q∈ℛ]. Find the largest distance and the farthest point from {1,1} in the unit Disk[]:
Find the largest distance and the farthest point from {1,3/4} in the standard unit simplex Simplex[2]:
Find the largest distance and the farthest point from {1,1,1} in the standard unit sphere Sphere[]:
Find the largest distance and the farthest point from {-1/3,1/3,1/3} in the standard unit simplex Simplex[3]:
The diameter of a region ℛ is the maximum distance between two points in ℛ. The diameter and a pair of farthest points in ℛ can be computed through Maximize[EuclideanDistance[p,q],{p∈ℛ,q∈ℛ}]. Find the diameter and a pair of farthest points in Circle[]:
Find the diameter and a pair of farthest points in the standard unit simplex Simplex[2]:
Find the diameter and a pair of farthest points in the standard unit cube Cuboid[]:
The farthest points p∈ and q∈ and their distance can be found through Maximize[EuclideanDistance[p,q],{p∈,q∈}]. Find the farthest points in Disk[{0,0}] and Rectangle[{3,3}] and the distance between them:
Find the farthest points in Line[{{0,0,0},{1,1,1}}] and Ball[{5,5,0},1] and the distance between them:
Geometric Centers (1)If ℛ⊆n is a region that is full dimensional, then the Chebyshev center is the center of the largest inscribed ball of ℛ. The center and the radius of the largest inscribed ball of ℛ can be found through Maximize[-SignedRegionDistance[ℛ,p], p∈ℛ]. Find the Chebyshev center and the radius of the largest inscribed ball for Rectangle[]:
Find the Chebyshev center and the radius of the largest inscribed ball for Triangle[]:
Properties & Relations (4)Maximize gives an exact global maximum of the objective function:
NMaximize attempts to find a global maximum numerically, but may find a local maximum:
FindMaximum finds local maxima depending on the starting point:
The maximum point satisfies the constraints, unless messages say otherwise:
The given point maximizes the distance from the point {2,}:
When the maximum is not attained, Maximize may give a point on the boundary:
Here the objective function tends to the maximum value when y tends to infinity:
Maximize can solve linear programming problems:
LinearProgramming can be used to solve the same problem given in matrix notation:
This computes the maximum value:
Use RegionBounds to compute the bounding box:
Use Maximize and Minimize to compute the same bounds:
Possible Issues (1)Maximize requires that all functions present in the input be real-valued:
Values for which the equation is satisfied but the square roots are not real are disallowed:
Wolfram Research (2003), Maximize, Wolfram Language function, https://reference.wolfram.com/language/ref/Maximize.html (updated 2021). TextWolfram Research (2003), Maximize, Wolfram Language function, https://reference.wolfram.com/language/ref/Maximize.html (updated 2021).
CMSWolfram Language. 2003. "Maximize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/Maximize.html.
APAWolfram Language. (2003). Maximize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Maximize.html
BibTeX@misc{reference.wolfram_2025_maximize, author="Wolfram Research", title="{Maximize}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/Maximize.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_maximize, organization={Wolfram Research}, title={Maximize}, year={2021}, url={https://reference.wolfram.com/language/ref/Maximize.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4