Lemonmath
Tiếng Việt

Linear inequalities in two variables

Lesson 2.1 · 20 min read · Updated

You have 300300 units of pocket money for the cinema. A ticket for an adult costs 6060 and a ticket for a child costs 3030. How many tickets of each kind can you buy? There are many answers, and each answer is a pair of numbers. A single inequality with two unknowns describes all these pairs at once, and a picture on the coordinate plane shows them nicely.

What is a linear inequality in two variables?

"Ordered" means that the order matters: (1,2)(1, 2) and (2,1)(2, 1) are different pairs.

There are infinitely many solutions, so we cannot list them. We draw them.

The solution region

Take the inequality x+y≤3x+y\le 3. The equation x+y=3x+y=3 is a straight line. It cuts the plane into two half-planes. On one side we always have x+y<3x+y<3, on the other side x+y>3x+y>3. So the solutions of x+y≤3x+y\le 3 form one half-plane together with the line.

-2-1123456-2-1123456xyOO(3, 0)(0, 3)
The region x+y≤3x+y\le 3

How to draw it: the test-point method

-3-2-11234567-3-2-112345xyO(4, 0)(0, 2)
The region x+2y<4x+2y<4
-2-11234-5-4-3-2-1123xyO(0, -3)(1, 0)
The region 3x−y≥33x-y\ge 3

Modelling real situations

-1123456724681012xyO(3, 4)(4, 3)
Possible ticket numbers

The real solutions are only the points of the region with whole-number coordinates, because we cannot buy half a ticket.

Key terms

Summary

  • A solution of ax+by≤cax+by\le c is an ordered pair (x0,y0)(x_0, y_0) that makes it true; there are infinitely many.
  • The line ax+by=cax+by=c splits the plane into two half-planes; the solution region is one of them (plus the line when the sign is ≤\le or ≥\ge).
  • Use a solid line for ≤,≥\le,\ge and a dashed line for <,><,>.
  • Test a point not on the line (usually the origin) to choose the side to shade.
  • In real problems, translate the limit into an inequality and keep only the points that make sense (whole numbers, not negative).

Practice

Show solutions
  1. Compute x−2yx-2y. (2,−1)(2, -1): 2+2=4≥42+2=4\ge 4, yes. (0,3)(0, 3): 0−6=−6≥40-6=-6\ge 4, no. (6,1)(6, 1): 6−2=4≥46-2=4\ge 4, yes.
  2. (a) Yes. (b) No, x2x^2 is not linear. (c) Yes, it has the form ax+by>cax+by>c with a=3a=3, b=0b=0. (d) No, it has three variables.
  3. (a) Dashed (>>). (b) Solid (≤\le). (c) Solid (≥\ge). (d) Dashed (<<); the line is the vertical line x=−1x=-1.
  4. Boundary 2x−y=42x-y=4 passes through (2,0)(2, 0) and (0,−4)(0, -4). The sign is ≤\le, so it is solid. Test (0,0)(0, 0): 0≤40\le 4 is true, so shade the side containing the origin.
  5. Boundary x−y=0x-y=0 (the line y=xy=x), solid. Test point (1,0)(1, 0): 1−0=1≥01-0=1\ge 0 is true. Shade the side containing (1,0)(1, 0), that is, the half-plane below the line y=xy=x.
  6. AA: 3+2=5>53+2=5>5 false. BB: −6+6=0>5-6+6=0>5 false. CC: 12−2=10>512-2=10>5 true. Only CC.
  7. The cost is 2000x+500y≤400002000x+500y\le 40000; dividing by 500500: 4x+y≤804x+y\le 80. For (15,20)(15, 20): 60+20=80≤8060+20=80\le 80, true, so she can. For (18,10)(18, 10): 72+10=82≤8072+10=82\le 80, false, so she cannot.
  8. Substitute: 2⋅1−m>32\cdot 1-m>3, so −m>1-m>1, so m<−1m<-1.
  9. Let xx be the student tickets and yy the adult tickets. Then 20x+50y≤20020x+50y\le 200, that is 2x+5y≤202x+5y\le 20, with y≥2y\ge 2 and x≥0x\ge 0 whole numbers. For y=2y=2: 2x≤102x\le 10, so x≤5x\le 5 and the total is at most 77. For y=3y=3: 2x≤52x\le 5, so x≤2x\le 2, total 55. For y=4y=4: x=0x=0, total 44. The largest total is 77 people (55 students, 22 adults).
  10. The line through (0,2)(0, 2) and (3,0)(3, 0) is x3+y2=1\dfrac{x}{3}+\dfrac{y}{2}=1, that is 2x+3y=62x+3y=6. At the origin 2⋅0+3⋅0=0≤62\cdot 0+3\cdot 0=0\le 6, so the origin lies on the "≤\le" side. The inequality is 2x+3y≤62x+3y\le 6.