Maximise Z = 3x + 4y subject to x+y <= 4, x >= 0, y >= 0

hard 3 min read

Question

Maximise Z=3x+4yZ = 3x + 4y subject to the constraints:

x+y4,x0,y0x + y \leq 4, \quad x \geq 0, \quad y \geq 0

Solution — Step by Step

The constraints define a region in the xy-plane:

  • x+y4x + y \leq 4 (below or on the line x+y=4x + y = 4)
  • x0x \geq 0 (right of the y-axis)
  • y0y \geq 0 (above the x-axis)

The feasible region is the triangle formed by the three boundary lines.

We find the vertices by solving pairs of boundary equations:

  • Origin: (0,0)(0, 0) — intersection of x=0x = 0 and y=0y = 0
  • A: (4,0)(4, 0) — intersection of x+y=4x + y = 4 and y=0y = 0: solve to get (4,0)(4, 0)
  • B: (0,4)(0, 4) — intersection of x+y=4x + y = 4 and x=0x = 0: solve to get (0,4)(0, 4)

The three corner points are (0,0)(0, 0), (4,0)(4, 0), and (0,4)(0, 4).

By the Corner Point Theorem, the maximum of a linear objective function over a bounded feasible region occurs at one of the corner points.

Corner PointZ=3x+4yZ = 3x + 4y
(0,0)(0, 0)3(0)+4(0)=03(0) + 4(0) = 0
(4,0)(4, 0)3(4)+4(0)=123(4) + 4(0) = 12
(0,4)(0, 4)3(0)+4(4)=163(0) + 4(4) = 16

The largest value is Z=16Z = 16 at the point (0,4)(0, 4).

Maximum value of Z=16Z = 16, achieved at x=0x = 0, y=4y = 4.

Why This Works

The Corner Point Theorem tells us that a linear function over a convex polygon can only attain its maximum (or minimum) at a vertex of the polygon. This happens because linear functions have no “curves” — they can’t have an interior maximum.

The coefficient of yy (which is 4) is larger than the coefficient of xx (which is 3), so the objective function grows faster in the yy-direction. This is why the maximum occurs at (0,4)(0, 4), where yy is as large as possible within the feasible region.

Alternative Method — Iso-Profit Line

Draw lines 3x+4y=k3x + 4y = k for increasing values of kk. These are parallel lines. As we push this line as far as possible while still touching the feasible region, the last corner it touches gives the maximum.

Moving the iso-profit line away from the origin, the last feasible corner touched is (0,4)(0, 4), confirming Zmax=16Z_{max} = 16.

When the objective function has coefficients 33 and 44 for xx and yy respectively, and the only constraint is x+ykx + y \leq k, you always want to maximize the variable with the higher coefficient. Here yy has coefficient 4 > 3, so put all resources into yy.

Common Mistake

Students often forget to check the origin as a corner point. While the origin gives Z=0Z = 0 (minimum here), neglecting it can lead to an incomplete table and wrong answers in problems where you need the minimum. Always list ALL corner points — origin included.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next