Class 12 Maths, Worked in Full Past papersGet updates
CBSE Board Examination 2024 · Section C · 3 marks

Q30: Maximise z=500x+300yz = 500x + 300y graphically

The question

Solve the following linear programming problem graphically :

Maximise z=500x+300yz = 500x + 300y⁠,

subject to constraints

x+2y≤12x + 2y \le 12

2x+y≤122x + y \le 12

4x+5y≥204x + 5y \ge 20

x≥0x \ge 0⁠, y≥0y \ge 0

Exam answer

Draw the lines (graph below):

L1:x+2y=12L_1: x + 2y = 12 through (12,0)(12, 0) and (0,6)(0, 6)⁠;

L2:2x+y=12L_2: 2x + y = 12 through (6,0)(6, 0) and (0,12)(0, 12)⁠;

L3:4x+5y=20L_3: 4x + 5y = 20 through (5,0)(5, 0) and (0,4)(0, 4)⁠.

Why?

Each constraint is drawn first as a straight line, by replacing the inequality sign with ==⁠. Two points fix a line, and the easiest two are where it meets the axes: put y=0y = 0 to get the x-intercept, then x=0x = 0 to get the y-intercept.

For example, for L1L_1⁠: y=0y = 0 gives x=12x = 12⁠, and x=0x = 0 gives 2y=122y = 12⁠, so y=6y = 6⁠.

The same for L2L_2 and L3L_3⁠:

L2, y=0:2x=12, x=6L2, x=0:y=12L3, y=0:4x=20, x=5L3, x=0:5y=20, y=4\begin{aligned} L_2,\ y = 0&: 2x = 12,\ x = 6 \\ L_2,\ x = 0&: y = 12 \\[4pt] L_3,\ y = 0&: 4x = 20,\ x = 5 \\ L_3,\ x = 0&: 5y = 20,\ y = 4 \end{aligned}

At (0,0)(0, 0)⁠: 0≤120 \le 12 is true for L1L_1 and L2L_2⁠, and 0≥200 \ge 20 is false for L3L_3⁠. So shade towards the origin for L1L_1⁠, L2L_2 and away from it for L3L_3⁠. With x,y≥0x, y \ge 0⁠, the feasible region is ABCDE (shaded). It is bounded.

Why?

Each line divides the plane into two halves. A test point not on the line tells us which half satisfies the inequality: if the point satisfies it, shade its side; if not, shade the other side. The origin is the easiest test point when the line does not pass through it.

L1:0+2(0)=0≤12 trueL2:2(0)+0=0≤12 trueL3:4(0)+5(0)=0≥20 false\begin{aligned} L_1&: 0 + 2(0) = 0 \le 12\ \text{true} \\ L_2&: 2(0) + 0 = 0 \le 12\ \text{true} \\ L_3&: 4(0) + 5(0) = 0 \ge 20\ \text{false} \end{aligned}

x,y≥0x, y \ge 0 keeps us in the first quadrant. The feasible region is the part that satisfies every constraint at once. It is bounded because it fits inside a finite box.

At C, solving x+2y=12x + 2y = 12 and 2x+y=122x + y = 12⁠:

2(2x+y)−(x+2y)=24−12⇒3x=12\begin{aligned} 2(2x + y) - (x + 2y) &= 24 - 12 \\ \Rightarrow 3x &= 12 \end{aligned}

⇒x=4\Rightarrow x = 4⁠, and then 2y=12−4⇒y=42y = 12 - 4 \Rightarrow y = 4⁠. So C is (4,4)(4, 4)⁠.

Why?

C is where L1L_1 and L2L_2 cross, so it satisfies both equations. Doubling the second equation makes the yy terms equal, 2y2y in each, and subtracting removes yy⁠.

2(2x+y)=4x+2y2(12)=24(4x+2y)−(x+2y)=24−124x−x+2y−2y=123x=12x=123=4\begin{aligned} 2(2x + y) &= 4x + 2y \\ 2(12) &= 24 \\[4pt] (4x + 2y) - (x + 2y) &= 24 - 12 \\ 4x - x + 2y - 2y &= 12 \\ 3x &= 12 \\ x &= \frac{12}{3} = 4 \end{aligned}

Put x=4x = 4 into x+2y=12x + 2y = 12⁠:

4+2y=122y=12−4=8y=82=4\begin{aligned} 4 + 2y &= 12 \\ 2y &= 12 - 4 = 8 \\ y &= \frac82 = 4 \end{aligned}

The other corners lie on the axes, so we read them from the intercepts: A(0, 4) and B(0, 6) on the y-axis, E(5, 0) and D(6, 0) on the x-axis.

2 4 8 10 12 2 8 X Y O A B C D E L1 L2 L3
The feasible region ABCDE (shaded). Its corners are A(0, 4), B(0, 6), C(4, 4), D(6, 0) and E(5, 0).
Cornerz=500x+300yA(0,4)1200B(0,6)1800C(4,4)3200←maxD(6,0)3000E(5,0)2500\begin{array}{c|c} \text{Corner} & z = 500x + 300y \\ \hline A(0, 4) & 1200 \\ B(0, 6) & 1800 \\ C(4, 4) & 3200 \leftarrow \text{max} \\ D(6, 0) & 3000 \\ E(5, 0) & 2500 \end{array}
Why?

Put each corner into z=500x+300yz = 500x + 300y⁠. For example, at C(4, 4):

z=500(4)+300(4)=2000+1200=3200\begin{aligned} z &= 500(4) + 300(4) \\ &= 2000 + 1200 = 3200 \end{aligned}

The other four corners:

A:500(0)+300(4)=0+1200=1200B:500(0)+300(6)=0+1800=1800D:500(6)+300(0)=3000+0=3000E:500(5)+300(0)=2500+0=2500\begin{aligned} A&: 500(0) + 300(4) \\ &= 0 + 1200 = 1200 \\[4pt] B&: 500(0) + 300(6) \\ &= 0 + 1800 = 1800 \\[4pt] D&: 500(6) + 300(0) \\ &= 3000 + 0 = 3000 \\[4pt] E&: 500(5) + 300(0) \\ &= 2500 + 0 = 2500 \end{aligned}

The region is bounded, so the largest value in the table is the maximum of zz⁠.

Why?

Corner point theorem: when the feasible region is bounded, zz has a maximum and a minimum, and each occurs at a corner point. So comparing the values at the corners is enough.

∴\therefore Maximum z=3200z = 3200 at x=4x = 4⁠, y=4y = 4⁠.

Where this comes from

Chapter 12, Linear Programming: LPP: maximise graphically, bounded region.

Question type: A "≥\ge" rule

How to spot it: click to see

Type 2. A "≥\ge" rule: shade away from the origin

Spot it: a rule like x+2y≥10x + 2y \ge 10⁠, often with "Minimise ZZ". The region no longer touches the origin.

Here: 4x+5y≥204x + 5y \ge 20 fails at (0,0)(0, 0)⁠, so shade away from the origin for it, and towards it for the two ≤\le rules. The region ABCDE is bounded, so the largest value, 3200 at (4,4)(4, 4)⁠, is the maximum.

Found an error?

Tell us if something on this page is wrong or unclear. Send feedback on this question →