Ma · Mathematics

Find the Extreme Values of z Under Two Constraints

Published By the 9to5Science editorial team

At a glance

  1. 1. Identify both constraints

    The stated information gives xyz = 24, but does not specify the value of x² + y² + z².

  2. 2. Set z to a magnitude

    Write u = |z|. The product fixes xy = 24/z, while the sum-of-squares constraint limits u.

  3. 3. Check feasibility

    Use x² + y² ≥ 2|xy| to obtain u² + 48/u ≤ C, where C is the specified sum of squares.

  4. 4. Find the endpoints

    Solve u³ − Cu + 48 = 0; the largest positive root gives the greatest possible |z|.

Advertisement

The supplied title identifies zz as the objective, but it does not state either constraint. In particular, it does not say xyz=24xyz=24 or specify a value for x2+y2+z2x^2+y^2+z^2, so the problem cannot be determined from the title alone.

For illustration, suppose the intended constraints are

x2+y2+z2=C,xyz=24.x^2+y^2+z^2=C, \qquad xyz=24.

If those are the intended constraints, the problem can be solved in terms of the missing value CC. The largest and smallest possible values of zz are opposites. Their magnitude is determined by a cubic equation.

Why the missing value matters

If the only constraint in this hypothetical setup were xyz=24xyz=24, then zz could be any nonzero real number: choose, for example, x=1x=1 and y=24/zy=24/z. Thus zz would have no maximum or minimum. A fixed value of x2+y2+z2x^2+y^2+z^2 restricts the variables and can make extrema possible, but the numerical answer depends on that value.

In what follows, CC denotes the intended value of the sum of squares. This also lets you check whether the constraints are feasible at all.

Reduce the problem to one variable

Set u=∣z∣u=|z|. Since xyz=24xyz=24, none of x,y,zx,y,z can be zero, and

∣xy∣=24u.|xy|=\frac{24}{u}.

For real xx and yy, the inequality x2+y2≥2∣xy∣x^2+y^2\geq 2|xy| holds. Therefore,

C=x2+y2+z2≥48u+u2.C=x^2+y^2+z^2 \geq \frac{48}{u}+u^2.

This condition is also sufficient: given a nonzero zz and xy=24/zxy=24/z, real x,yx,y with the required sum of squares exist exactly when x2+y2≥2∣xy∣x^2+y^2\geq 2|xy|. So the possible magnitudes of zz are precisely the positive uu satisfying

u2+48u≤C.u^2+\frac{48}{u}\leq C.

Multiplying by u>0u>0 gives

u3−Cu+48≤0.u^3-Cu+48\leq 0.

The smallest possible value of u2+48/uu^2+48/u occurs where its derivative is zero:

2u−48u2=0⟹u3=24.2u-\frac{48}{u^2}=0 \quad\Longrightarrow\quad u^3=24.

At that point the minimum is 3⋅242/33\cdot 24^{2/3}. Hence the constraints have real solutions only if

C≥3⋅242/3≈24.961.C\geq 3\cdot 24^{2/3}\approx 24.961.

General extreme values

When CC is at least this threshold, the largest feasible magnitude uu occurs at equality in the feasibility condition. It is the largest positive root of

u3−Cu+48=0.u^3-Cu+48=0.

Because the product is positive, both signs of zz are possible: changing the sign of zz and one of x,yx,y preserves xyz=24xyz=24 and leaves the sum of squares unchanged. Therefore the extreme values are

min⁡z=−umax⁡,max⁡z=umax⁡,\min z=-u_{\max},\qquad \max z=u_{\max},

where umax⁡u_{\max} is the largest positive root of the cubic. If C=3⋅242/3C=3\cdot24^{2/3}, the two positive roots merge at u=241/3u=24^{1/3}, and the only possible values of zz are ±241/3\pm24^{1/3}.

Worked example: if the missing value is 25

This example illustrates how a specified value produces numerical extrema; it does not assume that 25 was the omitted value. Let C=25C=25. Then the endpoint equation is

u3−25u+48=0.u^3-25u+48=0.

It factors as

(u−3)(u2+3u−16)=0.(u-3)(u^2+3u-16)=0.

The positive roots are 33 and (−3+73)/2≈2.772(-3+\sqrt{73})/2\approx2.772. The largest is 33, so the extreme values of zz are −3-3 and 33. They are attained. For z=3z=3, take x=y=22x=y=2\sqrt{2}; then xyz=24xyz=24 and x2+y2+z2=25x^2+y^2+z^2=25. For z=−3z=-3, take x=22x=2\sqrt{2} and y=−22y=-2\sqrt{2}.

Common mistakes

  • Treating g=x2+y2+z2g=x^2+y^2+z^2 as a complete constraint. A constraint must specify a value, such as g=25g=25; naming the function alone is not enough.
  • Using only xyz=24xyz=24. That constraint does not bound zz away from arbitrarily large positive or negative values.
  • Assuming equality in x2+y2≥2∣xy∣x^2+y^2\geq2|xy| for every feasible point. Equality describes endpoint cases, not generally every feasible point. It occurs when ∣x∣=∣y∣|x|=|y|.
  • Ignoring feasibility. If C<3⋅242/3C<3\cdot24^{2/3}, there are no real triples satisfying both constraints, so there are no extrema to find.

To get a numerical answer to the intended problem, the full constraints must be supplied. The results above apply only if they are xyz=24xyz=24 and x2+y2+z2=Cx^2+y^2+z^2=C.

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