We solve the following extremum problem by the use of the first-order condition.
  • Maximize z(x,y)=2xy+3y
  • Subject to 4x+y=10
  • Where x,y>0
zx(x,y)zy(x,y)=gx(x,y)gy(x,y)2y2x+3=41. Hence, y=4x+6.

We plug this into the restriction: 4x+y=10 then becomes 4x+4x+6=10. Solving for x gives x=12.

Hence, y=412+6=8.

This gives z(12,8)=32. We still have to check whether this is a maximum. We can do this by determining two feasible combinations of x and y; one with a smaller x-value (and hence a larger y value) and one with a larger x-value (and hence a smaller y-value).

Since z(1,6)=30<32=z(12,8) and z(14,9)=3112<32=z(12,8) it holds that z(12,8)=32 is a maximum.