Class 12 Maths, Worked in Full Past papersGet updates
Chapter 12 · Linear Programming

Exercise 12.1 · Q2: Minimise Z=−3x+4yZ = -3x + 4y on a bounded region

Exercise 12.1Corner Point Method, a negative coefficient · Section 12.2.2
The question

Solve the following Linear Programming Problems graphically:

Minimise Z=−3x+4yZ = -3x + 4y

subject to x+2y≤8x + 2y \le 8⁠, 3x+2y≤123x + 2y \le 12⁠, x≥0x \ge 0⁠, y≥0y \ge 0⁠.

Exam answer

Draw the lines (graph):

x+2y=8x + 2y = 8 through (8,0)(8, 0) and (0,4)(0, 4)⁠;

3x+2y=123x + 2y = 12 through (4,0)(4, 0) and (0,6)(0, 6)⁠.

At (0,0)(0, 0)⁠: 0≤80 \le 8 and 0≤120 \le 12 are true, so shade the side of each line that contains the origin. With x,y≥0x, y \ge 0⁠, the feasible region is OABC (shaded). It is bounded.

At B, subtracting x+2y=8x + 2y = 8 from 3x+2y=123x + 2y = 12 gives 2x=42x = 4⁠, so x=2x = 2⁠, y=3y = 3⁠.

CornerZ=−3x+4yO(0,0)0A(4,0)−12←minB(2,3)6C(0,4)16\begin{array}{c|c} \text{Corner} & Z = -3x + 4y \\ \hline O(0, 0) & 0 \\ A(4, 0) & -12 \leftarrow \text{min} \\ B(2, 3) & 6 \\ C(0, 4) & 16 \end{array}

The region is bounded, so the smallest value in the table is the minimum of ZZ⁠.

∴\therefore Minimum Z=−12Z = -12 at (4,0)(4, 0)⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Two "≤\le" constraints and x,y≥0x, y \ge 0 give a closed quadrilateral. On a bounded region a linear ZZ has a minimum, at a corner. The only new point is the minus sign in ZZ⁠: a negative value such as −12-12 is smaller than 00⁠, so the minimum here is a negative number.

Given, to find, and the plan
Given
Z=−3x+4yZ = -3x + 4y and the constraints x+2y≤8x + 2y \le 8⁠, 3x+2y≤123x + 2y \le 12⁠, x≥0x \ge 0⁠, y≥0y \ge 0⁠.
To find
The minimum value of ZZ on the feasible region, and where it occurs.
Plan
(1) and (2) Draw each line from its axis points and choose its side. (3) Shade the feasible region and see that it is bounded. (4) Find the corners. (5) Make the table of ZZ⁠. (6) Read off the minimum.

Basics you need

1Drawing a line from its axis points

For ax+by=cax + by = c⁠, put y=0y = 0⁠, then x=0x = 0⁠, and join the two points. Basics: where a line meets the axes

2Which side of the line

Put (0,0)(0, 0) into the inequality: true means shade the origin's side, false means the other side. Basics: one side of a line

3Corner points

Where two boundary lines meet; solve their two equations together, then check the point in every constraint. Basics: a corner solves two equations

4Bounded region: Theorem 2

If the region can be enclosed in a circle, ZZ has a maximum and a minimum on it, and each occurs at a corner point (Section 12.2.2). Basics: bounded or not

5Comparing negative numbers

On the number line −12-12 lies to the left of 00⁠, so −12<0<6<16-12 < 0 < 6 < 16⁠: the "smallest" value is the most negative one.

Solution

  1. Draw the line x+2y=8x + 2y = 8 and choose its side

    Put y=0y = 0⁠: x=8x = 8⁠. Put x=0x = 0⁠: 2y=82y = 8⁠, so y=4y = 4⁠. So the line joins (8,0)(8, 0) and (0,4)(0, 4)⁠.

    Test (0,0)(0, 0) in x+2y≤8x + 2y \le 8⁠: 0≤80 \le 8 is true, so this constraint keeps the side of the line that contains the origin.

    The boundary of x+2y≤8x + 2y \le 8 is the line x+2y=8x + 2y = 8⁠, and its two axis points are the quickest points to find. One test point tells us which whole side satisfies the inequality.
  2. Draw the line 3x+2y=123x + 2y = 12 and choose its side

    Put y=0y = 0⁠: 3x=123x = 12⁠, so x=4x = 4⁠. Put x=0x = 0⁠: 2y=122y = 12⁠, so y=6y = 6⁠. So the line joins (4,0)(4, 0) and (0,6)(0, 6)⁠.

    Test (0,0)(0, 0) in 3x+2y≤123x + 2y \le 12⁠: 0≤120 \le 12 is true, so again the origin's side is kept.

    Same method. This line is steeper than the first, so it meets the xx-axis sooner (at 4 instead of 8) but the yy-axis higher (at 6 instead of 4). The two lines therefore cross inside the first quadrant.
  3. Shade the feasible region

    The constraints x≥0x \ge 0⁠, y≥0y \ge 0 keep the first quadrant. The part of it on the origin's side of both lines is the quadrilateral OABC:

    x y O 1 2 3 5 6 1 2 3 5 (8, 0) (0, 6) A(4, 0) B(2, 3) C(0, 4) 3x + 2y = 12 x + 2y = 8 OABC
    The feasible region OABC of Exercise 12.1 Q2 (shaded), drawn with equal scales. Its corners are O(0, 0), A(4, 0), B(2, 3) and C(0, 4); the points (8,0)(8, 0) and (0,6)(0, 6) are outside the region.

    OABC is bounded: every corner is at most 4 from O (B is 22+32=13\sqrt{2^2 + 3^2} = \sqrt{13}⁠, about 3.6, from O), so a circle about O of radius 5 encloses it.

    The feasible region is where all four kept sides overlap. Because it is bounded, the smallest corner value will certainly be the minimum.
  4. Find the corner points

    O (0,0)(0, 0)⁠, where the axes meet.

    A (4,0)(4, 0)⁠, where 3x+2y=123x + 2y = 12 meets the xx-axis. The other line meets the xx-axis at (8,0)(8, 0)⁠, but there 3(8)+0=24>123(8) + 0 = 24 > 12⁠, so (8,0)(8, 0) breaks 3x+2y≤123x + 2y \le 12 and is not a corner.

    C (0,4)(0, 4)⁠, where x+2y=8x + 2y = 8 meets the yy-axis. The point (0,6)(0, 6) breaks x+2y≤8x + 2y \le 8⁠: 0+12=12>80 + 12 = 12 > 8⁠.

    B, where the two lines cross:

    (3x+2y)−(x+2y)=12−82x=4x=2,\begin{aligned} (3x + 2y) - (x + 2y) &= 12 - 8 \\ 2x &= 4 \\ x &= 2, \end{aligned}

    and then 2y=8−2=62y = 8 - 2 = 6⁠, so y=3y = 3⁠. So B is (2,3)(2, 3)⁠, and it obeys every constraint: 2+6=82 + 6 = 8⁠, 6+6=126 + 6 = 12⁠, 2,3≥02, 3 \ge 0⁠.

    The two lines and the two axes cross in six points; only the four that obey every constraint are corners. Subtracting the equations removes yy⁠, because both contain +2y+2y⁠.
  5. Work out ZZ at each corner

    Corner pointZ=−3x+4yZ = -3x + 4y
    O (0,0)(0, 0)00
    A (4,0)(4, 0)−12+0=−12-12 + 0 = -12 ← smallest
    B (2,3)(2, 3)−6+12=6-6 + 12 = 6
    C (0,4)(0, 4)0+16=160 + 16 = 16
    By Theorem 1 the minimum is at a corner, so these four values are the only candidates. The smallest is m=−12m = -12 (and the largest, not asked for, is M=16M = 16 at C).
  6. Conclude

    The region is bounded, so by Theorem 2 the smallest value in the table is the minimum of ZZ⁠: minimum Z=−12Z = -12 at (4,0)(4, 0).

    To make Z=−3x+4yZ = -3x + 4y small we want xx large (it is subtracted) and yy small (it is added). The largest xx in the region is 4, and it is reached with y=0y = 0⁠: exactly the corner A.
Result

The feasible region is bounded, with corners (0,0)(0, 0)⁠, (4,0)(4, 0)⁠, (2,3)(2, 3) and (0,4)(0, 4)⁠, and

Minimum Z=−12 at (4,0).\text{Minimum } Z = -12 \text{ at } (4, 0).

(Textbook answer: Minimum Z=−12Z = -12 at (4,0)(4, 0)⁠.)

Check it with numbers

A direct proof that nothing is below −12-12⁠: on the region y≥0y \ge 0⁠, so 3x≤3x+2y≤123x \le 3x + 2y \le 12 gives x≤4x \le 4⁠. Then Z=−3x+4y≥−12+0=−12Z = -3x + 4y \ge -12 + 0 = -12⁠, with equality only when x=4x = 4 and y=0y = 0⁠, that is at (4,0)(4, 0) ✓.

Two other feasible points: (3,1)(3, 1) gives Z=−9+4=−5Z = -9 + 4 = -5⁠, and (1,1)(1, 1) gives Z=−3+4=1Z = -3 + 4 = 1⁠; both are above −12-12 ✓.

A computer check of all 16 whole-number points of the region found the smallest value −12-12⁠, at (4,0)(4, 0) only ✓.

Common mistakes
  1. Dropping the minus sign. At A, Z=−3(4)+0=−12Z = -3(4) + 0 = -12⁠, not 12.
  2. Calling 0 the minimum. O gives 0, but A gives −12-12⁠, and −12<0-12 < 0⁠. With a minus sign in ZZ⁠, the origin is often not the minimum.
  3. Using (8,0)(8, 0) as a corner. It lies on x+2y=8x + 2y = 8 but breaks 3x+2y≤123x + 2y \le 12⁠.
  4. Assuming the crossing point B is the answer. It gives 6; the table decides.
What to take away
  1. A negative coefficient in ZZ is handled the same way; just compare the values with their signs.
  2. For a minimum, the answer is the smallest (most negative) value in the table when the region is bounded.
  3. Compare Exercise 12.1 Q1 (one line) and Example 2 (a minimum with a "≥\ge" constraint).

Every fact used, and where it comes from

FactUsed inSource
A line from its axis points; a test point chooses the sideSteps 1, 2Class XI, Linear Inequalities (Basics, Basics)
Feasible region: common region of all the constraintsStep 3Section 12.2.2 (Basics)
Bounded: can be enclosed within a circleStep 3Section 12.2.2, footnote to Theorem 2 (Basics)
Corner point: where two boundary lines meetStep 4Section 12.2.2, footnote to Theorem 1 (Basics)
Theorem 1 and Theorem 2Steps 5, 6Section 12.2.2
Corner Point Method, step 3(i): bounded regionStep 6Section 12.2.2 (Lesson)
AnswerResultNCERT answer key, Exercise 12.1 Q2
All valuesSteps, CheckRecomputed with exact fractions in the site's verification script
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →