Skip to content

Mathematics · Ch 7 — Linear Programming

Graphical solution of linear inequation

7.1.3

Graphical solution of linear inequation

This sub-section works through six fully solved examples applying the shading method of section 7.1.2.

Example 1 — six single inequations, each solved by finding the boundary line and testing a point.

a) x≤3x\le3: the boundary is the vertical line x=3x=3. The origin (0,0)(0,0) gives 0≤30\le3, true, so the origin side (the

region to the LEFT of x=3x=3, including the line) is shaded.

Figure 1fig 7.12 — solution set of x ≤ 3 (origin side of x = 3).
Fig. 1 — fig 7.12 — solution set of x ≤ 3 (origin side of x = 3).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.12 — solution set of x ≤ 3 (origin side o …

b) y≥−2y\ge-2: the boundary is the horizontal line y=−2y=-2. The origin gives 0≥−20\ge-2, true, so the origin side (the region

ABOVE y=−2y=-2, including the line) is shaded.

Figure 2fig 7.13 — solution set of y ≥ −2 (origin side of y = −2).
Fig. 2 — fig 7.13 — solution set of y ≥ −2 (origin side of y = −2).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.13 — solution set of y ≥ −2 (origin side of …

c) x+2y≤0x+2y\le0: rewritten as x=−2yx=-2y, this line passes through the origin, so the origin cannot serve as the test point.

Choosing (−2,−2)(-2,-2) instead: x+2y=−2+2(−2)=−2−4=−6x+2y=-2+2(-2)=-2-4=-6, and −6≤0-6\le0 is true, so the half-plane containing (−2,−2)(-2,-2) is

shaded.

Figure 3fig 7.14 — solution set of x + 2y ≤ 0 (boundary line through the origin).
Fig. 3 — fig 7.14 — solution set of x + 2y ≤ 0 (boundary line through the origin).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.14 — solution set of x + 2y ≤ 0 (boundary line through t …

d) 2x+3y≥62x+3y\ge6: the boundary line passes through (3,0)(3,0) and (0,2)(0,2) (its intercepts). Testing the origin:

2(0)+3(0)=02(0)+3(0)=0, and 0≥60\ge6 is FALSE, so the origin side is excluded — the required region is the NON-origin side of the

line.

Figure 4fig 7.15 — solution set of 2x + 3y ≥ 6 (non-origin side).
Fig. 4 — fig 7.15 — solution set of 2x + 3y ≥ 6 (non-origin side).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.15 — solution set of 2x + 3y ≥ 6 (non-orig …

e) 2x−3y≥−62x-3y\ge-6: the boundary line passes through (−3,0)(-3,0) and (0,2)(0,2). Testing the origin: 2(0)−3(0)=02(0)-3(0)=0, and

0≥−60\ge-6 is TRUE, so the required region IS the origin side of the line.

Figure 5fig 7.16 — solution set of 2x − 3y ≥ −6 (origin side).
Fig. 5 — fig 7.16 — solution set of 2x − 3y ≥ −6 (origin side).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.16 — solution set of 2x − 3y ≥ −6 (orig …

f) 4x−5y≤204x-5y\le20: the boundary line passes through (5,0)(5,0) and (0,−4)(0,-4). Testing the origin: 4(0)−5(0)=04(0)-5(0)=0, and

0≤200\le20 is TRUE, so the required region is the origin side of the line.

Figure 6fig 7.17 — solution set of 4x − 5y ≤ 20 (origin side).
Fig. 6 — fig 7.17 — solution set of 4x − 5y ≤ 20 (origin side).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.17 — solution set of 4x − 5y ≤ 20 (orig …

Example 2 — 3x+2y≤63x+2y\le6. Draw the line 3x+2y=63x+2y=6 through its intercepts (2,0)(2,0) and (0,3)(0,3). Testing the origin:

3(0)+2(0)=0≤63(0)+2(0)=0\le6, true — the origin side of the line is the required region.

Figure 7fig 7.18 — solution set of 3x + 2y ≤ 6 (origin side).
Fig. 7 — fig 7.18 — solution set of 3x + 2y ≤ 6 (origin side).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.18 — solution set of 3x + 2y ≤ 6 (origi …

Example 3 — the system x+2y≥4x+2y\ge4 and 2x−y≤62x-y\le6. Draw both boundary lines: x+2y=4x+2y=4 through (4,0)(4,0) and (0,2)(0,2), and

2x−y=62x-y=6 through (3,0)(3,0) and (0,−6)(0,-6). Testing the origin in each: for x+2y≥4x+2y\ge4, (0,0)(0,0) gives 0≥40\ge4, FALSE, so this

constraint's shaded region is the NON-origin side; for 2x−y≤62x-y\le6, (0,0)(0,0) gives 0≤60\le6, TRUE, so this constraint's

shaded region is the origin side. The common (overlapping) region of these two oppositely-labelled half-planes is the

graphical solution of the system — an unbounded region (since neither inequation caps the plane on every side), whose

single corner point is found by solving x+2y=4x+2y=4 and 2x−y=62x-y=6 simultaneously: from the second equation y=2x−6y=2x-6;

substituting into the first, x+2(2x−6)=4⇒x+4x−12=4⇒5x=16⇒x=3.2, y=0.4x+2(2x-6)=4 \Rightarrow x+4x-12=4 \Rightarrow 5x=16 \Rightarrow x=3.2,\ y=0.4. So the

corner point is (3.2, 0.4)(3.2,\,0.4).

Figure 8fig 7.19 — common region of x + 2y ≥ 4 and 2x − y ≤ 6 (unbounded; corner (3.2, 0.4)).
Fig. 8 — fig 7.19 — common region of x + 2y ≥ 4 and 2x − y ≤ 6 (unbounded; corner (3.2, 0.4)).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.19 — common region of x + 2y ≥ 4 and 2x − y ≤ 6 (unbounded; corner …

Example 4 — the system 3x+4y≤123x+4y\le12 and x−4y≤4x-4y\le4. Draw both lines: 3x+4y=123x+4y=12 through (4,0)(4,0) and (0,3)(0,3), and

x−4y=4x-4y=4 through (4,0)(4,0) and (0,−1)(0,-1) (note both lines happen to pass through the same point (4,0)(4,0)). Testing the

origin in each gives 0≤120\le12 (true) and 0≤40\le4 (true, in fact 0<40<4 strictly), so BOTH constraints shade their origin

side, and the common shaded region — the graphical solution — is the overlap of the two origin-side half-planes, an

unbounded wedge-shaped region with its one finite corner at the shared point (4,0)(4,0) where the two lines cross.

Figure 9fig 7.20 — common region of 3x + 4y ≤ 12 and x − 4y ≤ 4 (unbounded wedge; corner (4, 0)).
Fig. 9 — fig 7.20 — common region of 3x + 4y ≤ 12 and x − 4y ≤ 4 (unbounded wedge; corner (4, 0)).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.20 — common region of 3x + 4y ≤ 12 and x − 4y ≤ 4 (unbounded wedge; c …

Note on plotting a line via the double-intercept form. As an alternative to picking two arbitrary points, any line

ax+by=cax+by=c (with c≠0c\ne0) can be written in double-intercept form by dividing through by cc: for example 3x+2y=63x+2y=6

becomes x2+y3=1\dfrac{x}{2}+\dfrac{y}{3}=1, immediately showing the xx-intercept is 22 and the yy-intercept is 33, i.e. the

line passes through (2,0)(2,0) and (0,3)(0,3) — the same two points used to draw it above.

Feasible solutions of a system of inequations (introducing the term). When several linear inequations must hold at the same time — together with the non-negativity constraints x≥0, y≥0x\ge0,\ y\ge0 — the region common to all of them is called the feasible region, and every point of it is a feasible solution. The same origin-side / non-origin-side shading method of section 7.1.2 is applied to each constraint, and the overlap of all the shaded half-planes is the feasible region.

Example 1. Find the graphical solution of the system 2x+y≤10, 2x−y≤2, x≥0, y≥02x+y\le10,\ 2x-y\le2,\ x\ge0,\ y\ge0. Draw L1:2x+y=10L_1:2x+y=10 (through (0,10)(0,10) and (5,0)(5,0)) and L2:2x−y=2L_2:2x-y=2 (through (0,−2)(0,-2) and (1,0)(1,0)); testing the origin, each constraint shades its origin side, and within the first quadrant the common shaded region OABCOOABCO is a bounded quadrilateral with vertices O(0,0)O(0,0), A(1,0)A(1,0), B(3,4)B(3,4) and C(0,10)C(0,10). This common shaded region is the feasible solution of the system.

Figure 10fig 7.21 — feasible region OABCO of 2x + y ≤ 10, 2x − y ≤ 2, x,y ≥ 0; vertices O, A(1,0), B(3,4), C(0,10).
Fig. 10 — fig 7.21 — feasible region OABCO of 2x + y ≤ 10, 2x − y ≤ 2, x,y ≥ 0; vertices O, A(1,0), B(3,4), C(0,10).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.21 — feasible region OABCO of 2x + y ≤ 10, 2x − y ≤ 2, x,y ≥ 0; vertices O, A(1,0), …

…

Table 1Solved Example (line-drawing table for $x+2y\ge4$ and $2x-y\le6$)
Equation of linexxyyLine passes through (x,y)(x,y)SignRegion
x+2y=4x+2y=440(4, 0)≥\geNon-origin side
02(0, 2)
Table 2Solved Example (line-drawing table for $3x+4y\le12$ and $x-4y\le4$)
Equation of linexxyyLine passes through (x,y)(x,y)SignRegion
3x+4y=123x+4y=1240(4, 0)≤\leOrigin side
03(0, 3)
Figure 11fig 7.22 — feasible region of 3x + 4y ≥ 12, 2x + 5y ≥ 10, x,y ≥ 0 (unbounded).
Fig. 11 — fig 7.22 — feasible region of 3x + 4y ≥ 12, 2x + 5y ≥ 10, x,y ≥ 0 (unbounded).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.22 — feasible region of 3x + 4y ≥ 12, 2x + 5y ≥ 10, x,y ≥ 0 …

Figure 12fig 7.23 — feasible region OABCO of the manufacturer problem 2x + 3y ≤ 12, 2x + y ≤ 8, x,y ≥ 0; vertices O, A(4,0), B(3,2), C(0,4).
Fig. 12 — fig 7.23 — feasible region OABCO of the manufacturer problem 2x + 3y ≤ 12, 2x + y ≤ 8, x,y ≥ 0; vertices O, A(4,0), B(3,2), C(0,4).

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

fig 7.23 — feasible region OABCO of the manufacturer problem 2x + 3y ≤ 12, 2x + y ≤ 8, x,y ≥ 0; vertices O, A(4 …