Ma · Mathematics

Maximize xpyqzrx^p y^q z^r Subject to ax+by+cz=1ax+by+cz=1

Published By the 9to5Science editorial team

At a glance

  1. 1. Check assumptions

    Assume a, b, c, p, q, and r are positive, and x, y, and z are nonnegative.

  2. 2. Take logarithms

    Maximize p ln x + q ln y + r ln z; the logarithm preserves the location of the maximum.

  3. 3. Apply the constraint

    The multiplier equations give x = p/(aS), y = q/(bS), and z = r/(cS), where S = p + q + r.

  4. 4. Evaluate the result

    Substitute those coordinates into the function for the maximum; the minimum on the closed feasible set is zero.

Advertisement

Interpret the expression as maximizing or minimizing u=xpyqzru=x^p y^q z^r subject to ax+by+cz=1ax+by+cz=1. The usual version of this problem assumes a,b,c,p,q,r>0a,b,c,p,q,r>0 and x,y,z≥0x,y,z\ge 0. 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 x,y,z>0x,y,z>0, maximizing xpyqzrx^p y^q z^r is equivalent to maximizing its logarithm:

log⁡u=plog⁡x+qlog⁡y+rlog⁡z.\log u=p\log x+q\log y+r\log z.

This change is convenient because it turns products and powers into a sum. Use the constraint function g(x,y,z)=ax+by+cz−1g(x,y,z)=ax+by+cz-1 and set the gradients proportional:

∇(log⁡u)=λ∇g.\nabla(\log u)=\lambda\nabla g.

The three equations are

px=λa,qy=λb,rz=λc.\frac{p}{x}=\lambda a,\qquad \frac{q}{y}=\lambda b,\qquad \frac{r}{z}=\lambda c.

Rearranging gives x=p/(aλ)x=p/(a\lambda), y=q/(bλ)y=q/(b\lambda), and z=r/(cλ)z=r/(c\lambda). Substitute these into the constraint:

ax+by+cz=p+q+rλ=1.ax+by+cz =\frac{p+q+r}{\lambda}=1.

Let S=p+q+rS=p+q+r. Then λ=S\lambda=S, so the maximizing coordinates are

x=paS,y=qbS,z=rcS.x=\frac{p}{aS},\qquad y=\frac{q}{bS},\qquad z=\frac{r}{cS}.

They satisfy the constraint because ax+by+cz=(p+q+r)/S=1ax+by+cz=(p+q+r)/S=1.

Calculate the maximum and minimum

Substitute those coordinates into u=xpyqzru=x^p y^q z^r:

umax⁡=ppqqrrapbqcr(p+q+r)p+q+r.\boxed{u_{\max}=\frac{p^p q^q r^r}{a^p b^q c^r (p+q+r)^{p+q+r}}}.

When p,q,r>0p,q,r>0, setting any one of x,y,zx,y,z to zero makes u=0u=0. 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 x,y,z>0x,y,z>0, 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, log⁡u\log u is strictly concave, so its interior critical point is its unique maximum. Thus the point found above is the global maximum.

Worked example

Maximize u=xy2z3u=xy^2z^3 subject to 2x+3y+z=12x+3y+z=1, with nonnegative variables. Here a=2a=2, b=3b=3, c=1c=1, and (p,q,r)=(1,2,3)(p,q,r)=(1,2,3), so S=6S=6. The maximizing point is

x=112,y=218=19,z=36=12.x=\frac{1}{12},\qquad y=\frac{2}{18}=\frac{1}{9},\qquad z=\frac{3}{6}=\frac{1}{2}.

Check the constraint: 2(1/12)+3(1/9)+1/2=1/6+1/3+1/2=12(1/12)+3(1/9)+1/2=1/6+1/3+1/2=1. The function value is

umax⁡=112(19)2(12)3=17776.u_{\max}=\frac{1}{12}\left(\frac{1}{9}\right)^2\left(\frac{1}{2}\right)^3=\frac{1}{7776}.

The formula gives the same answer:

11223321321366=17776.\frac{1^1 2^2 3^3}{2^1 3^2 1^3 6^6}=\frac{1}{7776}.

The minimum is zero, for example at (x,y,z)=(1/2,0,0)(x,y,z)=(1/2,0,0), which satisfies the constraint.

Common mistakes

  • Omitting the exponents from the multiplier equations. The derivative of xpx^p contributes the factor pp, which is why the maximizing coordinate is proportional to pp, not just 11.
  • Forgetting the constraint coefficients. The coordinate for xx is p/(aS)p/(aS), not p/Sp/S; similarly, bb and cc 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

  1. Calculus: Early Transcendentals, James Stewart

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.