Maximize Subject to
At a glance
- 1. Check assumptions
Assume a, b, c, p, q, and r are positive, and x, y, and z are nonnegative.
- 2. Take logarithms
Maximize p ln x + q ln y + r ln z; the logarithm preserves the location of the maximum.
- 3. Apply the constraint
The multiplier equations give x = p/(aS), y = q/(bS), and z = r/(cS), where S = p + q + r.
- 4. Evaluate the result
Substitute those coordinates into the function for the maximum; the minimum on the closed feasible set is zero.
Interpret the expression as maximizing or minimizing subject to . The usual version of this problem assumes and . Under those assumptions, the constraint describes a bounded triangle in the nonnegative octant, so both a maximum and a minimum exist.
The maximum is at an interior point, while the minimum is zero on the boundary. Here is the Lagrange-multiplier calculation, a worked example, and the assumptions that make the result valid.
Find the interior critical point
For , maximizing is equivalent to maximizing its logarithm:
This change is convenient because it turns products and powers into a sum. Use the constraint function and set the gradients proportional:
The three equations are
Rearranging gives , , and . Substitute these into the constraint:
Let . Then , so the maximizing coordinates are
They satisfy the constraint because .
Calculate the maximum and minimum
Substitute those coordinates into :
When , setting any one of to zero makes . The feasible set with nonnegative coordinates is closed and bounded, so the function attains a minimum there; that minimum is zero, attained on the boundary. If the problem requires , the value can approach zero but never reaches it, so there is no minimum—only an infimum of zero.
The function is zero on the boundary and positive at the interior critical point, so any global maximum must be interior. On the positive feasible set, is strictly concave, so its interior critical point is its unique maximum. Thus the point found above is the global maximum.
Worked example
Maximize subject to , with nonnegative variables. Here , , , and , so . The maximizing point is
Check the constraint: . The function value is
The formula gives the same answer:
The minimum is zero, for example at , which satisfies the constraint.
Common mistakes
- Omitting the exponents from the multiplier equations. The derivative of contributes the factor , which is why the maximizing coordinate is proportional to , not just .
- Forgetting the constraint coefficients. The coordinate for is , not ; similarly, and appear in the other coordinates.
- Calling the interior point a minimum. With positive exponents, the function is zero at feasible boundary points and positive in the interior. The interior point is the maximum.
- Using the result without checking signs. The formula above assumes positive coefficients and exponents. If exponents are zero, negative, or if variables may be negative, the feasible domain and the existence or value of extrema can change; analyze that version separately.
References
- Calculus: Early Transcendentals, James Stewart
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.