Skip to content
Worked Examples · Example 2

Q.Solve the LPP graphically: Maximise Z=5x+4yZ=5x+4y subject to 2x+y≤8, x+3y≤9, x≥0, y≥02x+y\le 8,\ x+3y\le 9,\ x\ge 0,\ y\ge 0.

Maharashtra MsbshseTextbookSubjectiveImportance★★★★★
25% · 7/28 Questions
✓ Free question

Step 1 — Boundary lines (all ≤\le, so solid; test the origin).

  • 2x+y=82x+y=8: intercepts (4,0)(4,0) and (0,8)(0,8). At (0,0)(0,0): 0≤80\le8 true — shade the origin side.
  • x+3y=9x+3y=9: intercepts (9,0)(9,0) and (0,3)(0,3). At (0,0)(0,0): 0≤90\le9 true — shade the origin side.
  • x≥0, y≥0x\ge0,\ y\ge0: the first quadrant.

Step 2 — Feasible region. The overlap is a bounded quadrilateral in the first quadrant.

Step 3 — Corner points (solve boundaries in pairs):

  • x=0, y=0x=0,\ y=0: (0,0)(0,0).
  • y=0y=0 in 2x+y=82x+y=8: x=4x=4, giving (4,0)(4,0) (check x+3y=4≤9x+3y=4\le9 ✓).
  • x=0x=0 in x+3y=9x+3y=9: y=3y=3, giving (0,3)(0,3) (check 2x+y=3≤82x+y=3\le8 ✓).
  • Intersection of 2x+y=82x+y=8 and x+3y=9x+3y=9: from the first y=8−2xy=8-2x; substitute: x+3(8−2x)=9⇒x+24−6x=9⇒−5x=−15⇒x=3x+3(8-2x)=9\Rightarrow x+24-6x=9\Rightarrow -5x=-15\Rightarrow x=3, then y=8−6=2y=8-6=2: the point (3,2)(3,2).

Step 4 — Evaluate Z=5x+4yZ=5x+4y at each corner.

CornerZ=5x+4yZ=5x+4y
(0,0)(0,0)00
(4,0)(4,0)2020
(3,2)(3,2)15+8=2315+8=23
(0,3)(0,3)1212

Step 5 — Choose the maximum. The largest value is 2323, at (3,2)(3,2). Since the region is bounded, this is the true maximum.

Figure 1 — Bounded feasible region for 2x+y≤8 and x+3y≤9, maximum Z=23 at (3,2)
Figure 1 — Bounded feasible region for 2x+y≤8 and x+3y≤9, maximum Z=23 at (3,2)

Check (independent verification): re-solve the intersection the other way — from x+3y=9x+3y=9, x=9−3yx=9-3y; substitute into 2x+y=82x+y=8: 2(9−3y)+y=8⇒18−6y+y=8⇒−5y=−10⇒y=22(9-3y)+y=8\Rightarrow 18-6y+y=8\Rightarrow -5y=-10\Rightarrow y=2, x=3x=3. Same point (3,2)(3,2), and Z=5(3)+4(2)=23Z=5(3)+4(2)=23 confirmed.

✓Final answer

Maximum Z=23Z=23, attained at (x,y)=(3,2)(x,y)=(3,2).

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.