Skip to content
Worked Examples · Example 1

Q.Solve the following linear programming problem graphically: Maximise Z=4x+yZ = 4x + y subject to the constraints: x+y≤50x + y \le 50, 3x+y≤903x + y \le 90, x≥0, y≥0x \ge 0,\ y \ge 0.

Uttarakhand UbseTextbookSubjective· 5mImportance★★★★★
16% · 11/67 Questions
✓ Free question
Figure 12.2
Figure 12.2

The problem is a two-variable linear program solved by the graphical method. The feasible region is bounded by the constraints, and the maximum of Z=4x+yZ = 4x + y occurs at a corner point. The optimal solution is x=30x = 30, y=0y = 0, giving Z=120Z = 120.

We have a linear programming problem with two decision variables, xx and yy, and a linear objective function Z=4x+yZ = 4x + y to be maximised. The constraints are all linear inequalities. The graphical method works here because with only two variables, each inequality describes a half-plane in the xyxy-plane. The intersection of all these half-planes is the feasible region — the set of all points that satisfy every constraint. The fundamental theorem of linear programming tells us that if an optimal solution exists, it will be found at one of the corner points (vertices) of this feasible region. So our job is to draw the region, find its vertices, and evaluate ZZ at each vertex.

Let’s go step by step.

  1. Plot each constraint as a line.

    First, treat each inequality as an equation.

    • x+y=50x + y = 50: This line passes through (50,0)(50,0) and (0,50)(0,50).
    • 3x+y=903x + y = 90: This passes through (30,0)(30,0) and (0,90)(0,90).
    • x=0x = 0 is the yy-axis.
    • y=0y = 0 is the xx-axis.

    The inequalities x≥0x \ge 0, y≥0y \ge 0 restrict us to the first quadrant.

  2. Determine which side of each line is feasible.

    For x+y≤50x + y \le 50, test the origin (0,0)(0,0): 0+0≤500 + 0 \le 50 is true, so the half-plane containing the origin is feasible.

    For 3x+y≤903x + y \le 90, test (0,0)(0,0): 0≤900 \le 90 is true, so again the origin side is feasible.

    So the feasible region is the intersection of the two half-planes below both lines, in the first quadrant.

  3. Find the corner points of the feasible region.

    The region is a polygon bounded by the axes and the two lines. The vertices are:

    • (0,0)(0,0) — intersection of x=0x=0 and y=0y=0.
    • (0,50)(0,50) — intersection of x=0x=0 and x+y=50x+y=50. But check if it satisfies 3x+y≤903x+y \le 90: 3(0)+50=50≤903(0)+50 = 50 \le 90, yes.
    • (30,0)(30,0) — intersection of y=0y=0 and 3x+y=903x+y=90. Check x+y≤50x+y \le 50: 30+0=30≤5030+0 = 30 \le 50, yes.
    • The intersection of the two lines x+y=50x+y=50 and 3x+y=903x+y=90. Solve: subtract the first from the second: (3x+y)−(x+y)=90−50(3x+y) - (x+y) = 90 - 50 gives 2x=402x = 40, so x=20x = 20. Then y=50−x=30y = 50 - x = 30. So the point is (20,30)(20,30). Check both constraints: 20+30=5020+30=50 (tight), 3(20)+30=60+30=903(20)+30=60+30=90 (tight). This is inside the first quadrant.

    So the vertices are: A(0,0)A(0,0), B(0,50)B(0,50), C(20,30)C(20,30), D(30,0)D(30,0).

Tip

Always check that each candidate vertex actually satisfies all constraints — sometimes the intersection of two lines falls outside the feasible region because a third constraint cuts it off. Here all four are valid.

  1. Evaluate Z=4x+yZ = 4x + y at each vertex.

    VertexxxyyZ=4x+yZ = 4x + y
    AA0000
    BB0500+50=500 + 50 = 50
    CC203080+30=11080 + 30 = 110
    DD300120+0=120120 + 0 = 120

    The largest value is 120120 at D(30,0)D(30,0).

Watch out

A common mistake is to assume the maximum occurs where the two constraint lines intersect (here (20,30)(20,30)). But the objective function 4x+y4x+y has a steeper slope in the xx-direction, so pushing xx as high as possible — all the way to x=30x=30 on the 3x+y=903x+y=90 line — yields a higher value, even though yy becomes zero. Always check all vertices.

  1. Interpret the result. The maximum value of ZZ is 120120, achieved at x=30x = 30, y=0y = 0. This means that under the given constraints, the best strategy is to use all resources to produce xx (30 units) and none of yy.
✓Final answer

The maximum value is 120\boxed{120}, attained at x=30x = 30, y=0y = 0.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.