We determine the extrema of z(x,y)=5xx2y2+xy.

  • zx(x,y)=52x+y,
  • zy(x,y)=2y+x.

zy(x,y)=0 gives x=2y. We plug this into z(x,y)=0, which gives 52(2y)+y=53y=0. Hence, y=53 and x=2y=253=103.

Hence, the stationary point is (x,y)=(103,53).

  • zxx=2,
  • zyy=2,
  • zxy=1.

Hence, C(x,y)=2212=3. Since C(103,53)=3>0 and zxx=2<0 it holds that z(103,53)=813 is a maximum.