- Foundation
- About 14 min
- 5 practice questions
Special inequalities: vertical lines, horizontal lines and lines through the origin
Graph inequalities such as x ≤ 4, y ≥ 2 and 2x − y ≥ 0, choose a test point when the origin lies on the line, and handle double inequalities like 1 ≤ x ≤ 3.
If something looks wrong, please tell us.
The earlier lessons used the origin as the test point. That works only when the line does not pass through the origin. This lesson covers the special cases that appear in almost every linear programming problem: boundaries that are vertical, horizontal or pass through (0, 0), and inequalities written with a negative coefficient.
Vertical and horizontal boundaries
The inequality x ≤ 4 has the boundary x = 4, a vertical line through the point (4, 0). Every point on the left of it, including the line, satisfies the inequality. The inequality y ≥ 2 has the horizontal boundary y = 2, and the region is the part above it. These inequalities often appear as limits on one quantity, such as "at most 4 units of product P can be sold".
A boundary through the origin
Take 2x − y ≥ 0. Its boundary 2x − y = 0, or y = 2x, passes through (0, 0), and the origin makes the left side exactly 0, so it lies on the line and tells you nothing. Choose another point that is clearly off the line, for example (1, 0): 2(1) − 0 = 2 ≥ 0, which is true. So the region is on the side of (1, 0), that is, below or on the line y = 2x. To draw the line you need a second point besides (0, 0), such as (1, 2).
If the origin lies on the boundary line, test another point such as (1, 0) or (0, 1). Never use a point that lies on the line itself.
Negative coefficients
Writing −x + y ≤ 2 is allowed, and the test-point method works unchanged: at (0, 0) the left side is 0 ≤ 2, true, so the origin side is the region. If you prefer, multiply by −1 to make a coefficient positive, but remember that multiplying or dividing an inequality by a negative number reverses its sign: x − y ≥ −2.
Double inequalities
A statement like 1 ≤ x ≤ 3 is two inequalities at once, x ≥ 1 and x ≤ 3. It describes the vertical strip between the lines x = 1 and x = 3, edges included. Together with y ≥ 0 it gives a half-strip that extends upwards without end.
Worked example 1: a region with a vertical limit
Draw the region x ≥ 0, y ≥ 0, x ≤ 4 and x + y ≤ 6, and find its corners. The lines x = 4 and x + y = 6 meet where y = 6 − 4 = 2, giving (4, 2). The other corners are (0, 0), (4, 0) on the x-axis and (0, 6) on the y-axis. The region is the four-sided shape with corners (0, 0), (4, 0), (4, 2), (0, 6). Notice that without x ≤ 4 the region would be the triangle with corners (0, 0), (6, 0), (0, 6); the vertical line has cut off its right end.
Worked example 2: a line through the origin
Describe the region 2x − y ≥ 0, x ≤ 3, y ≥ 0. The test point (1, 0) shows that 2x − y ≥ 0 means the part below the line y = 2x. The line y = 2x meets x = 3 at (3, 6). The corners are the origin (0, 0), the point (3, 0) where x = 3 meets the x-axis, and (3, 6). The region is a triangle with corners (0, 0), (3, 0), (3, 6). A check on the interior point (2, 1): 4 − 1 = 3 ≥ 0, 2 ≤ 3 and 1 ≥ 0, all true.
Worked example 3: a strip cut by a slanted line
Find the corners and the area of the region 1 ≤ x ≤ 3, y ≥ 0, x − y ≥ 0. The last inequality means y ≤ x (test point (1, 0): 1 − 0 ≥ 0, true). The strip between x = 1 and x = 3 meets y = 0 at (1, 0) and (3, 0), and meets y = x at (1, 1) and (3, 3). The corners are (1, 0), (3, 0), (3, 3), (1, 1). The shape is a trapezoid with parallel sides of length 1 and 3 (the vertical sides) and distance 2 between them, so its area is ½ × (1 + 3) × 2 = 4 square units.
Key takeaways: x ≤ a and y ≥ b are vertical and horizontal half-planes; when the origin lies on the boundary, test another point; reverse the sign when multiplying by a negative number; a double inequality is two inequalities; list corners by solving each pair of boundary lines and checking the rest.
Check your understanding
-
1. Which side of the line x = 4 is the region x ≤ 4?
- the side away from the origin
- the side containing the origin
- the line itself only
- the horizontal strip near 4
Show answer
Answer: B. At (0, 0), 0 ≤ 4 is true, so the region includes the origin and everything to the left of the vertical line x = 4, line included.
-
2. For the inequality 3x − y ≥ 0, which test point is suitable?
- (0, 0)
- (2, 6)
- (−1, −3)
- (1, 0)
Show answer
Answer: D. (0, 0), (2, 6) and (−1, −3) all satisfy 3x − y = 0, so they lie on the line. (1, 0) gives 3 ≥ 0, true.
-
3. Rewrite −x + 2y ≤ 4 with a positive coefficient of x.
- x − 2y ≥ −4
- x − 2y ≤ −4
- x + 2y ≥ 4
- x − 2y ≥ 4
Show answer
Answer: A. Multiplying by −1 changes every sign and reverses the inequality: x − 2y ≥ −4.
-
4. What are the corners of the region x ≥ 0, y ≥ 0, x ≤ 5, x + y ≤ 8?
- (0, 0), (8, 0), (5, 3), (0, 5)
- (0, 0), (5, 0), (5, 8), (0, 8)
- (0, 0), (5, 0), (5, 3), (0, 8)
- (0, 0), (5, 0), (3, 5), (0, 8)
Show answer
Answer: C. The line x = 5 meets x + y = 8 at (5, 3). With the axis points (0, 0), (5, 0) and (0, 8) the region has four corners.
-
5. What is the area of the region 0 ≤ x ≤ 4, 0 ≤ y ≤ x?
- 16
- 4
- 12
- 8
Show answer
Answer: D. It is a triangle with corners (0, 0), (4, 0), (4, 4): ½ × 4 × 4 = 8.
Sign in to keep track of the lessons you finish.