Class 12 Maths, Worked in Full Past papersGet updates
CBSE Sample Paper 2023-24 · Section C · 3 marks

Q30: Minimise z=x+2yz = x + 2y⁠, or maximise z=−x+2yz = -x + 2y graphically

The question

(a) Solve the following Linear Programming Problem graphically:

Minimize: z=x+2yz = x + 2y⁠,

subject to the constraints: x+2y≥100x + 2y \ge 100⁠, 2x−y≤02x - y \le 0⁠, 2x+y≤2002x + y \le 200⁠, x,y≥0x, y \ge 0⁠.

OR

(b) Solve the following Linear Programming Problem graphically:

Maximize: z=−x+2yz = -x + 2y⁠,

subject to the constraints: x≥3x \ge 3⁠, x+y≥5x + y \ge 5⁠, x+2y≥6x + 2y \ge 6⁠, y≥0y \ge 0⁠.

Exam answer

(a)

Draw the lines (graph below):

L1L_1⁠: x+2y=100x + 2y = 100 through (100,0)(100, 0) and (0,50)(0, 50)⁠;

L2L_2⁠: 2x−y=02x - y = 0 through (0,0)(0, 0) and (50,100)(50, 100)⁠;

L3L_3⁠: 2x+y=2002x + y = 200 through (100,0)(100, 0) and (0,200)(0, 200)⁠.

Why?

Each inequality is bounded by the line we get by writing "=" in place of the inequality sign. Two points fix a line: put x=0x = 0 to find one point and y=0y = 0 to find another.

L2L_2 passes through the origin, so a second point is needed: x=50x = 50 gives y=2×50=100y = 2 \times 50 = 100⁠.

The feasible region determined by the constraints is ABCD (shaded). It is bounded.

Why?

To see which side of a line to keep, test a point that is not on it, usually (0,0)(0, 0)⁠:

x+2y≥100x + 2y \ge 100⁠: 0≥1000 \ge 100 is false, so keep the side away from the origin.

2x+y≤2002x + y \le 200⁠: 0≤2000 \le 200 is true, so keep the origin side.

2x−y≤02x - y \le 0 means y≥2xy \ge 2x⁠, the side above L2L_2⁠. Test (0,1)(0, 1)⁠: −1≤0-1 \le 0 is true.

With x,y≥0x, y \ge 0⁠, the common part is the closed quadrilateral ABCD.

50 100 150 X Y O A(0, 50) B C(50, 100) D(0, 200) 100 L₁ L₂ L₃

B: x+2y=100x + 2y = 100 and y=2xy = 2x give 5x=1005x = 100⁠, so B(20,40)B(20, 40)⁠.

C: y=2xy = 2x and 2x+y=2002x + y = 200 give 4x=2004x = 200⁠, so C(50,100)C(50, 100)⁠.

Why?

A corner is where two boundary lines cross, so solve their equations together. Substitute y=2xy = 2x⁠:

In x+2y=100x + 2y = 100⁠: x+4x=5x=100x + 4x = 5x = 100⁠, so x=20x = 20 and y=40y = 40⁠.

x+2(2x)=100x+4x=1005x=100x=1005=20y=2(20)=40\begin{aligned} x + 2(2x) &= 100 \\ x + 4x &= 100 \\ 5x &= 100 \\ x &= \frac{100}{5} = 20 \\ y &= 2(20) = 40 \end{aligned}

In 2x+y=2002x + y = 200⁠: 2x+2x=4x=2002x + 2x = 4x = 200⁠, so x=50x = 50 and y=100y = 100⁠.

2x+2x=2004x=200x=2004=50y=2(50)=100\begin{aligned} 2x + 2x &= 200 \\ 4x &= 200 \\ x &= \frac{200}{4} = 50 \\ y &= 2(50) = 100 \end{aligned}

A and D are where L1L_1 and L3L_3 meet the yy-axis.

The corner points are A(0,50)A(0, 50)⁠, B(20,40)B(20, 40)⁠, C(50,100)C(50, 100) and D(0,200)D(0, 200)⁠.

Corner pointz=x+2yA(0,50)100 (min)B(20,40)100 (min)C(50,100)250D(0,200)400\begin{array}{c|c} \text{Corner point} & z = x + 2y \\ \hline A(0, 50) & 100 \text{ (min)} \\ B(20, 40) & 100 \text{ (min)} \\ C(50, 100) & 250 \\ D(0, 200) & 400 \end{array}
Why?

Corner point method: on a bounded feasible region, the least and greatest values of a linear zz occur at corner points. So we only need zz at the corners:

A:0+2(50)=0+100=100B:20+2(40)=20+80=100C:50+2(100)=50+200=250D:0+2(200)=0+400=400\begin{aligned} A&: 0 + 2(50) = 0 + 100 = 100 \\ B&: 20 + 2(40) = 20 + 80 = 100 \\ C&: 50 + 2(100) = 50 + 200 = 250 \\ D&: 0 + 2(200) = 0 + 400 = 400 \end{aligned}

The minimum value of zz is 100 at all the points on the line segment joining the points (0,50)(0, 50) and (20,40)(20, 40)⁠.

Why?

The least value 100 occurs at two corners, A and B. When two neighbouring corners tie, every point of the edge between them gives the same value.

Here this is easy to see: the edge AB lies on L1L_1⁠, x+2y=100x + 2y = 100⁠, so z=x+2y=100z = x + 2y = 100 all along it.

Watch out: name the whole segment AB, not just one of the two corners.

(b)

Draw the lines (graph below):

L1L_1⁠: x=3x = 3⁠;

L2L_2⁠: x+y=5x + y = 5 through (5,0)(5, 0) and (0,5)(0, 5)⁠;

L3L_3⁠: x+2y=6x + 2y = 6 through (6,0)(6, 0) and (0,3)(0, 3)⁠.

The feasible region determined by the constraints is shaded. It is unbounded.

Why?

Test (0,0)(0, 0) in each inequality. x≥3x \ge 3⁠: 0≥30 \ge 3 is false. x+y≥5x + y \ge 5⁠: 0≥50 \ge 5 is false. x+2y≥6x + 2y \ge 6⁠: 0≥60 \ge 6 is false. So keep the side of each line away from the origin, and y≥0y \ge 0 keeps the part above the xx-axis.

Nothing limits how large xx or yy can be, so the region goes on for ever up and to the right. That is what unbounded means.

1 2 4 1 2 4 X Y O A B(4, 1) C(6, 0) (3, 3) L₁ L₂ L₃ −x + 2y = 1

A: x=3x = 3 and x+y=5x + y = 5 give A(3,2)A(3, 2)⁠.

B: x+y=5x + y = 5 and x+2y=6x + 2y = 6 give y=1y = 1⁠, so B(4,1)B(4, 1)⁠.

C: x+2y=6x + 2y = 6 and y=0y = 0 give C(6,0)C(6, 0)⁠.

Why?

A: put x=3x = 3 in x+y=5x + y = 5⁠, so y=2y = 2⁠.

B: subtract the equations, (x+2y)−(x+y)=6−5(x + 2y) - (x + y) = 6 - 5⁠, so y=1y = 1 and then x=5−1=4x = 5 - 1 = 4⁠.

(x+2y)−(x+y)=6−5x−x+2y−y=1y=1x+1=5x=5−1=4\begin{aligned} (x + 2y) - (x + y) &= 6 - 5 \\ x - x + 2y - y &= 1 \\ y &= 1 \\ x + 1 &= 5 \\ x &= 5 - 1 = 4 \end{aligned}

C: put y=0y = 0 in x+2y=6x + 2y = 6⁠, so x=6x = 6⁠.

Corner pointz=−x+2yA(3,2)1B(4,1)−2C(6,0)−6\begin{array}{c|c} \text{Corner point} & z = -x + 2y \\ \hline A(3, 2) & 1 \\ B(4, 1) & -2 \\ C(6, 0) & -6 \end{array}
Why?

The values at the corners:

A:−3+2(2)=−3+4=1B:−4+2(1)=−4+2=−2C:−6+2(0)=−6+0=−6\begin{aligned} A&: -3 + 2(2) = -3 + 4 = 1 \\ B&: -4 + 2(1) = -4 + 2 = -2 \\ C&: -6 + 2(0) = -6 + 0 = -6 \end{aligned}

Since the feasible region is unbounded, z=1z = 1 may or may not be the maximum value.

Why?

For an unbounded region the corner values are not enough. The largest corner value MM is the maximum only if the open half-plane z>Mz > M has no point in common with the region. Here M=1M = 1⁠.

Now, draw the graph of the inequality −x+2y>1-x + 2y > 1 (dashed line −x+2y=1-x + 2y = 1 above). The resulting open half-plane has points in common with the feasible region, for example (3,3)(3, 3)⁠.

Why?

Check (3,3)(3, 3) in every constraint: 3≥33 \ge 3⁠, 3+3=6≥53 + 3 = 6 \ge 5⁠, 3+6=9≥63 + 6 = 9 \ge 6 and 3≥03 \ge 0⁠. So it is feasible, and there z=−3+6=3>1z = -3 + 6 = 3 > 1⁠.

x+2y=3+2(3)=3+6=9z=−3+2(3)=−3+6=3\begin{aligned} x + 2y &= 3 + 2(3) = 3 + 6 = 9 \\ z &= -3 + 2(3) = -3 + 6 = 3 \end{aligned}

In fact zz has no ceiling: along x=3x = 3⁠, z=2y−3z = 2y - 3⁠, which grows as yy grows.

Watch out: do not simply pick the largest corner value when the region is unbounded.

Hence, z=1z = 1 is not the maximum value.

We conclude, zz has no maximum value.

Where this comes from

Chapter 12, Linear Programming: LPP graphically: bounded and unbounded regions.

Question type: (a) Both maximum and minimum, and a tie along an edge; (b) An unbounded region with no maximum

How to spot it: click to see

(a) Type 3. Both maximum and minimum, and a tie along an edge

Spot it: "Minimise and maximise ZZ". Often one rule, like x−2y≥0x - 2y \ge 0⁠, is a line through the origin.

Here: The line 2x−y=02x - y = 0 goes through the origin. In the table, z=100z = 100 at both A(0,50)A(0, 50) and B(20,40)B(20, 40)⁠, the smallest value, so the minimum 100 holds at every point of the segment AB.

(b) Type 5. An unbounded region with no maximum

Spot it: the region goes on for ever, and ZZ keeps growing as you move out into it.

Here: The region is unbounded and the table's largest value is 1, at (3,2)(3, 2)⁠. But the half-plane −x+2y>1-x + 2y \gt 1 meets the region, for example at (3,3)(3, 3)⁠, so zz has no maximum value.

Found an error?

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