Graphing Lines and Regions
Not every relation arrives in the form . Some look like , or . This page shows you a quick way to graph each kind. Then you’ll graph inequalities like , where the answer isn’t just a line but a whole shaded region of points. Regions are perfect for questions like “what can I buy with $20?”
Key ideas
Section titled “Key ideas”Vertical and horizontal lines
Section titled “Vertical and horizontal lines”- The graph of is a vertical line. Every point on it has the same -coordinate, . For example, goes through , and .
- The graph of is a horizontal line. Every point on it has the same -coordinate, . For example, goes through and .
It feels backwards at first: is the line that goes up and down. Think “all the points where is ”.
Lines like x + y = k and x − y = k
Section titled “Lines like x + y = k and x − y = k”For , find pairs of numbers that add to :
Plot them and join them: the line falls for every step right.
For , find pairs where is more than : , , , . This line rises for every step right.
Lines like ax + by = k: the intercept method
Section titled “Lines like ax + by = k: the intercept method”For an equation like , the easiest two points to find are the intercepts:
- -intercept: set . Then , so . The point is .
- -intercept: set . Then , so . The point is .
Plot both points and draw the line through them. It’s smart to check a third point: gives . ✓ (The equations of lines page shows how to rewrite these equations in form.)
The relation xy = k
Section titled “The relation xy = k”means ” times equals ”. For :
This relation is non-linear. Its graph has two separate curved pieces, called branches. Each branch gets closer and closer to the axes but never touches them, because or would make the product , not . When is positive, the branches are in the first and third quadrants. When is negative, they are in the second and fourth quadrants.
Inequalities and regions
Section titled “Inequalities and regions”An inequality like is true for a whole region of points, not just a line. To graph it:
- Draw the boundary line .
- Use a solid line for or (points on the line count).
- Use a dashed line for or (points on the line don’t count).
- Test a point that’s not on the line. is easiest, unless the line goes through it.
- Shade the side that contains the test point if it makes the inequality true. Otherwise, shade the other side.
| Symbol | Means | Boundary |
|---|---|---|
| less than | dashed | |
| less than or equal to | solid | |
| greater than | dashed | |
| greater than or equal to | solid |
For : test , which gives , and is true. So shade the side with the origin.
For : test , which gives , and is false. So shade the side without the origin. Notice that this shaded region is below the line even though the symbol is “greater than”. That’s why testing a point is safer than guessing.
For simple inequalities, you can read the region directly: is everything above the dashed line , and is everything to the left of the solid line , including the line itself.
Points and regions in context
Section titled “Points and regions in context”In a real problem, every point in the shaded region is a combination that works, and every point outside it doesn’t. Points on a solid boundary line are the combinations that use up the limit exactly. Watch out for context, though: you can’t buy muffins or tickets, so often only points with whole-number coordinates in the first quadrant make sense.
Worked examples
Section titled “Worked examples”Example 1: Special lines
Section titled “Example 1: Special lines”Graph , and on the same grid. Where does cross each of the other two lines?
Solution.
- is a vertical line through .
- is a horizontal line through .
- For , use pairs that add to : , , . Join them with a straight line.
crosses at : that point has and .
crosses where , so . The point is .
Check: . ✓
Example 2: The intercept method
Section titled “Example 2: The intercept method”Graph .
Solution.
-intercept: set . Then , so . The point is .
-intercept: set . Then , so . The point is .
Plot and and draw the line through them.
Check a third point: gives . ✓ So should be on your line, halfway between the intercepts.
Example 3: Graphing xy = −8
Section titled “Example 3: Graphing xy = −8”Make a table of values for and describe its graph.
Solution. Pick values of that divide evenly into , and find :
When is negative, is positive (second quadrant). When is positive, is negative (fourth quadrant). So the graph has two branches, one in the second quadrant and one in the fourth. Neither branch touches an axis, and there’s no point at .
It’s non-linear. From to , goes from to : up for one step, a rate of change of . From to , goes from to : up over two steps, a rate of change of . The rates are different, so the graph isn’t a straight line.
Example 4: A snack budget
Section titled “Example 4: A snack budget”Ari has $10 to spend at a bake sale. Muffins cost $2 each and cookies cost $1 each. Let be the number of muffins and the number of cookies.
- (a) Write an inequality for the combinations Ari can afford, and describe its graph.
- (b) Can Ari buy muffins and cookies? muffins and cookies?
Solution.
(a) Muffins cost dollars and cookies cost dollars, and the total can be at most $10:
Boundary line: . The -intercept is (only muffins) and the -intercept is (only cookies). Use a solid line, because spending exactly $10 is allowed.
Test : , and is true. So shade the side with the origin.
Ari can’t buy negative amounts, so only the part of the region in the first quadrant (including the axes) makes sense, and only the points with whole-number coordinates.
(b) : , and is true. Yes: the point is on the boundary line, so Ari spends exactly $10.
: , and is false. No: that costs $11, and the point is outside the shaded region.
Common mistakes
Section titled “Common mistakes”Mixing up and . is vertical (every point has -coordinate ), and is horizontal. If you’re unsure, list two points, like and , and see which way they line up.
Using the wrong kind of boundary line. Solid for and , dashed for and . A dashed line tells the reader “the points on this line are not included”.
Shading by the symbol instead of testing. “Greater than means shade above” doesn’t always work. In , the correct region is below the line. Always test a point.
Testing a point that’s on the boundary line. For , the line goes through , so testing the origin gives , which tells you nothing. Pick a point clearly off the line, like : is true, so shade the side containing .
Joining the two branches of xy = k. The branches never touch the axes and never meet. Don’t draw a curve through the origin, and don’t connect the two pieces.
Ignoring the context. In a budget problem, a point like might be in the shaded region, but you can’t buy muffins. Only use points that make sense in the situation.
Practice
Section titled “Practice”1. (Warm-up) Which of and is a vertical line? Where do the two lines cross?
Solution
is vertical (every point has -coordinate ) and is horizontal.
They cross at the point that has and : .
2. (Warm-up) Find the intercepts of .
Solution
-intercept: set , so and . The point is .
-intercept: set , so and . The point is .
3. (Warm-up) Is each point in the region ?
- (a)
- (b)
- (c)
Solution
(a) , and is true. Yes.
(b) , and is false. No.
(c) , and is true. Yes: the point is on the solid boundary line, so it’s included.
4. (Core) Make a table of values for and graph it. Which of the points and is on the line?
Solution
Find pairs where is more than :
Plot the points and join them with a straight line. It rises for every step right.
: . ✓ It’s on the line.
: , not . It’s not on the line.
5. (Core) A rectangle has an area of cm². Let be its length and its width, both in centimetres.
- (a) Write an equation relating and .
- (b) Make a table of whole-number lengths and widths.
- (c) Why does only one branch of the graph make sense here? What happens to the width as the length gets bigger?
Solution
(a) Area is length times width, so .
(b)
| (cm) | ||||||
|---|---|---|---|---|---|---|
| (cm) |
(c) Lengths and widths must be positive, so only the first-quadrant branch makes sense. As the length gets bigger, the width gets smaller, but it never reaches . This relation is non-linear: doubling the length from to halves the width from to .
6. (Core) Explain how to graph . Is the point part of the region?
Solution
Boundary line: , with intercepts and . Draw it dashed, because the symbol is .
Test : , and is true. Shade the side containing the origin.
gives , and is false. So is not in the region: it sits on the dashed boundary.
7. (Core) A school play charges $15 for adult tickets and $10 for student tickets. The drama club needs to raise at least $600. Let be the number of adult tickets and the number of student tickets.
- (a) Write an inequality and find the intercepts of its boundary line.
- (b) Which side of the line should be shaded?
- (c) Do adult and student tickets raise enough?
Solution
(a) . Intercepts: gives , so ; gives , so . Draw a solid line.
(b) Test : is false. So shade the side away from the origin (more tickets sold).
(c) , and is true. Yes: they raise exactly $600, so the point is on the boundary line.
8. (Challenge) A region has a dashed boundary line through and , and the shaded side does not contain the origin. Write the inequality.
Solution
The line through and contains points whose coordinates add to , so its equation is .
Dashed means the symbol is or . The origin gives , which is less than , and the origin is not shaded. So the shaded points must have greater than :
Check with a point on the shaded side, like : . ✓
9. (Challenge) Mei has at most hours a week for guitar practice ( hours) and studying ( hours), and she wants to study more than hours. So and .
- (a) Which of these combinations work: , , , ?
- (b) If she only plans whole numbers of hours, what is the most guitar practice she can fit in?
Solution
(a) A combination must make both inequalities true.
- : ✓ and ✓. Works.
- : ✓, but is false. Doesn’t work.
- : ✓ and ✓. Works.
- : , which is more than . Doesn’t work.
(b) With whole numbers, means she studies at least hours. Then , so . The most guitar practice is hours (with exactly hours of studying).
On a graph, the allowed points are in the region below the solid line and above the dashed line .