The maximum value of xy subject to x + y = 7 is
f(x)=x(7−x)f′(x)=7−x−xx=72 at f′(x)=0y=72xy is max at x=72 y=72=494
Find the maximum value of z = 3x + 4y subject to constraints x + y ≤ 4, x ≥ 0 and y ≥ 0