Maths WorkshopMaths problems with full solutions
Exercise 1477Calculus › Multivariable calculus › Optimisation in several variablesL3Added 2 Nov 2026

Maximizing a product under a linear constraint

#Lagrange#product#linear constraint

Statement

Maximize f(x,y)=(xy)af(x,y) = (xy)^a for x,y≥0x,y \ge 0 and a>0a>0, under the constraint 2x+3y=122x + 3y = 12.

Hint

Apply Lagrange on the open set x,y>0x,y > 0, then check the boundary.

Show solutionHide solution

Solution

Lagrange.
{axa−1ya=2λaxaya−1=3λ2x+3y=12\begin{cases} a x^{a-1} y^a = 2\lambda \\ a x^a y^{a-1} = 3\lambda \\ 2x + 3y = 12 \end{cases}

Resolution. Dividing the first equation by the second:
yx=23  ⟹  3y=2x.\frac{y}{x} = \frac{2}{3} \implies 3y = 2x.
Substituting into the constraint:
2x+2x=12  ⟹  4x=12  ⟹  x=3,y=2.2x + 2x = 12 \implies 4x = 12 \implies x = 3, \quad y = 2.

Boundary check. On the boundary x=0x=0 or y=0y=0, f=0f = 0. At (3,2)(3,2), f=6a>0f = 6^a > 0. Hence this is the global maximum.