Blog · O Level Mathematics D (4024)
Above or below the line? Think of rain and shade.
In graphical inequalities, students always get stuck on the same thing: “Sir, which side do I shade?” Make y the subject first. Then think of rain and shade. The answer becomes obvious.
Shahed Noor · from my class notes
Three kinds of lines
- Vertical lines, x = a. They stand straight up, parallel to the y-axis. The y-axis itself is x = 0.
- Horizontal lines, y = b. They lie flat, parallel to the x-axis. The x-axis itself is y = 0.
- Slanted lines, y = mx + c. Positive gradient goes up from left to right. Negative gradient comes down.
Solid or dotted?
Look at the sign before you draw anything.
≤ or ≥ : solid line
“Or equal to”, so the points on the line are included.
< or > : dotted line
No “equal”, so the points on the line are not included.
First rule: make y the subject
Exam questions rarely give you y on its own. They give you something like 2x + 3y ≤ 6. Do not guess the side from this form. Rearrange first, then decide.
Example A: 2x + 3y ≤ 6
Take 2x to the other side: 3y ≤ −2x + 6
Divide by 3 (positive, so nothing changes):
y ≤ −23x + 2
Solid line, region below it.
Example B: x − 3y ≤ 6
Take x to the other side: −3y ≤ −x + 6
Now divide by −3. Dividing or multiplying by a negative number flips the sign.
y ≥ 13x − 2
Solid line, region above it.
See what happened in Example B? The question had ≤, but the answer is “above”. If you shade straight from the question, you shade the wrong side. That is why this rule is not optional.
Rain and shade
Once y is on its own on the left:
- y > … or y ≥ … : the region above the line.
- y < … or y ≤ … : the region below the line.
With a steep or downward line, “above” and “below” can still feel confusing. So picture this. You are standing on the graph and it starts to pour. The line is a tilted roof. To stay dry, you stand under the shade: that is below the line, y < or y ≤. If you climb on top of the roof, you are above the shade and you get wet: that is above the line, y > or y ≥.
Vertical lines have no y, so think left and right instead: x > a or x ≥ a is to the right, x < a or x ≤ a is to the left.
Worked examples from class
1. One line at a time.
- x ≥ 1: solid vertical line at x = 1, region to the right.
- x < 1: dotted vertical line at x = 1, region to the left.
- y ≥ 2: solid horizontal line at y = 2, region above.
- y < 3: dotted horizontal line at y = 3, region below.
2. Inside a triangle. June 2002, Q12 Triangle ABC has A(−3, 5), B(3, 5) and C(−3, −1). Line BC is y = x + 2. Write the three inequalities for the region strictly inside the triangle.
- AC is vertical, x = −3. The inside is to the right: x > −3.
- AB is horizontal, y = 5. The inside is below: y < 5.
- BC is y = x + 2. The inside is above, out in the rain: y > x + 2.
“Strictly inside” means no equals, so all three are < or >, and all three lines are dotted. Check with a point you know is inside, such as (−2, 3): −2 > −3, 3 < 5, 3 > 0. All true.
3. Three inequalities together. June 2003, Q15 (a) Find the gradient of x − 3y = 6. (b) Shade the region R where x + y ≤ 2, x − 3y ≤ 6 and x + 1 ≥ 0.
(a) 3y = x − 6, so y = 13x − 2. The gradient is 13.
(b) Make y the subject in each one first:
- x + 1 ≥ 0 means x ≥ −1: solid vertical line, region to the right.
- x + y ≤ 2 means y ≤ 2 − x: solid line through (0, 2) and (2, 0), region below, under the shade.
- x − 3y ≤ 6: this is Example B, so y ≥ 13x − 2. Solid line through (0, −2) and (6, 0), region above.
R is the triangle where all three overlap. Its corners are (−1, 3), (−1, −73) and (3, −1).
4. Counting points with integer coordinates. November 2007, Q8 A region is bounded by y = 1, the line through (0, 0) and (3, 6), and x + y = 5.5. All three lines are dotted.
(a) The line through (0, 0) and (3, 6) has gradient 6 − 03 − 0 = 2, so it is y = 2x. The region is above y = 1, below y = 2x, and below x + y = 5.5:
y > 1, y < 2x, x + y < 5.5
(b) How many points with integer coordinates lie inside? Go column by column.
- x = 1: 1 < y < 2. No whole number fits.
- x = 2: 1 < y < 3.5 (the smaller of 4 and 3.5). So y = 2 or 3.
- x = 3: 1 < y < 2.5. So y = 2.
- x = 4: 1 < y < 1.5. No whole number fits.
So there are 3 points: (2, 2), (2, 3) and (3, 2).
Try these
Answers are hidden. Try first, then check.
1. June 2004, Q14 A is (−4, −1) and AC is parallel to the x-axis. BC is y + 2x = 4 and AB is y = x + 3. (a) Find the x-coordinate of C. (b) Write the inequalities for the region inside triangle ABC (dotted sides).
(a) AC is y = −1. Put it in BC: −1 + 2x = 4, so x = 2.5.
(b) y > −1, y < 4 − 2x, y < x + 3. Check (0, 0): all true.
2. June 2006, Q10(b) R is defined by x > 1, y < 3 and y > x − 1. The point (x, y) is in R and has integer coordinates. Find x and y.
x = 2: 1 < y < 3, so y = 2. x = 3: 2 < y < 3, none. So x = 2, y = 2.
3. A is (6, 3) and C is (−8, −4). AB is y = 3 and CB is y = x + 4. (a) Find B. (b) R inside triangle ABC is defined by three inequalities. One is y < x + 4. Find the other two.
(a) 3 = x + 4, so B(−1, 3).
(b) Gradient of AC = 3 + 46 + 8 = 12, so AC is y = 12x. R is below AB and above AC: y < 3, y > 12x.
4. Solve y = x + 5 and 3y + x = −3. (On a graph, this is where the two lines cross.)
3(x + 5) + x = −3, so 4x = −18. x = −4.5, y = 0.5.
5. For 3x − 2y < 6, is the region above or below the line? Solid or dotted?
−2y < −3x + 6. Divide by −2 and flip the sign: y > 32x − 3. Above the line, dotted.
Before you start any question
- Is y on its own on the left? If not, make y the subject.
- Did you multiply or divide by a negative number? Flip the sign.
- ≤ or ≥: solid line. < or >: dotted line.
- y > or ≥: above, in the rain. y < or ≤: below, under the shade.
- Check with an easy point that is not on the line, such as (0, 0).
Want more practice? Read Permutation or combination?, try the quick quizzes, or message me on WhatsApp for the full worksheet.
— Shahed Noor
Past-paper questions © UCLES / Cambridge University Press & Assessment, used for revision.