Lesson 8.2 · Graphing and Linear Functions
Graphing linear equations
An equation like has one solution. An equation with two variables, like , has infinitely many. Graphing lets you see all of those solutions at once, and for many equations they line up perfectly in a straight line.
Solutions are ordered pairs
A solution of an equation in and is an ordered pair that makes the equation true.
Is a solution of ? Substitute and :
Yes. What about ? Then , not 4, so is not a solution.
Make a table, then plot
To find solutions, pick values for and work out . Small numbers like , 0, 1 and 2 keep the arithmetic easy.
Worked example: Graphing y = 2x − 1
Make a table of values and graph .
| point | |||
|---|---|---|---|
| 0 | |||
| 1 | 1 | ||
| 2 | 3 |
Plot the points. They fall in a straight line, so draw the line through them and put arrows on both ends.
Why draw the whole line and not just four dots? Because doesn't have to be a whole number. If , then , and the point is on the line too. The line shows every solution.
The graph of an equation
The graph of an equation is the set of all of its solutions.
- Every point on the graph is a solution.
- Every solution is a point on the graph.
An equation whose graph is a straight line is called a linear equation.
Two points are enough to draw a line, but plot a third as a check. If the three points don't line up, you made an arithmetic mistake.
Common mistake
When is negative, use parentheses as you substitute. For with , write . Dropping the parentheses and writing gives the wrong point.
Equations in other forms
Not every linear equation starts with "". For an equation like , the quickest points to find are where the line crosses the axes.
- Where a line crosses the -axis, . This point is the -intercept.
- Where a line crosses the -axis, . This point is the -intercept.
Worked example: Graphing with intercepts
Graph .
-intercept: set . Then , so . The point is .
-intercept: set . Then , so . The point is .
Check point: try . Then , so and . The point should be on the same line.
Horizontal and vertical lines
The equation says " is always 3, whatever is." Points like , and all work, so the graph is a horizontal line.
The equation says " is always ," so its graph is a vertical line.
Lines that tell a story
Worked example: A savings plan
Maya has $10 saved and adds $5 each week. Her total after weeks is dollars. When will she have $45?
Make a table: gives 10, gives 15, gives 20. Each week adds 5.
To reach 45, solve . Subtract 10: . Divide by 5: . After 7 weeks, the point is on her line.
Tip
To test whether a point is on a line, you don't need to graph. Just substitute both coordinates into the equation and see if it comes out true.
Practice
For the equation , what is when ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Which point is on the graph of ?
For the equation , what is when ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
What is the -intercept of the line ? Give it as an ordered pair.
Enter a point like (2, -3)
Which equation has this graph?
The point is on the graph of . What is ?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A taxi ride costs dollars for a trip of miles. A ride cost $19. How many miles long was it?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The lines and cross at one point. What is it?
Enter a point like (2, -3)