<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
Skip Navigation

4.2: Graphs of Linear Equations

Difficulty Level: At Grade Created by: CK-12
Turn In

In Chapter 3, you learned how to solve equations in one variable. The answer was of the form variable = some number. In this lesson, you will learn how to solve equations with two variables. Below are several examples of two-variable equations:


You have seen each of these equations in a previous lesson. Their solutions are not one value because there are two variables. The solutions to these equations are pairs of numbers. These pairs of numbers can be graphed in a Cartesian plane.

The solutions to an equation in two variables are sets of ordered pairs.

The solutions to a linear equation are the coordinates on the graphed line.

By making a table, you are finding the solutions to the equation with two variables.

Example: A taxi fare costs more the further you travel. Taxis usually charge a fee on top of the per-mile charge. In this case, the taxi charges $3 as a set fee and $0.80 per mile traveled. Find all the possible solutions to this equation.

Solution: Here is the equation linking the cost in dollars (y) to hire a taxi and the distance traveled in miles (x): y=0.8x+3.

This is an equation in two variables. By creating a table, we can graph these ordered pairs to find the solutions.

x (miles) y (cost $)
0 3
10 11
20 19
30 27
40 35

The solutions to the taxi problem are located on the green line graphed above. To find any cab ride cost, you just need to find the yordinate of the desired xabscissa.

Multimedia Link: To see more simple examples of graphing linear equations by hand, view the video

Khan Academy graphing lines (9:49)


The narrator of the video models graphing linear equations by using a table of values to plot points and then connecting those points with a line. This process reinforces the procedure of graphing lines by hand.

Graphs of Horizontal and Vertical Lines

Not all graphs are slanted or oblique. Some are horizontal or vertical. Read through the next situation to see why.

Example: “Mad-cabs” have an unusual offer going on. They are charging $7.50 for a taxi ride of any length within the city limits. Graph the function that relates the cost of hiring the taxi (y) to the length of the journey in miles (x).

Solution: No matter the mileage, your cab fare will be $7.50. To see this visually, create a graph. You can also create a table to visualize the situation.

# of miles (x) Cost (y)
0 7.50
10 7.50
15 7.50
25 7.50
60 7.50

Because the mileage can be anything, the equation should relate only to the restricted value, in this case, y. The equation that represents this situation is:


Whenever there is an equation of the form y=constant, the graph is a horizontal line that intercepts the yaxis at the value of the constant.

Similarly, if there is an equation of the form x=constant, the graph is a vertical line that intercepts the xaxis at the value of the constant. Notice that this is a relation but not a function because each x value (there’s only one in this case) corresponds to many (actually an infinite number) y values.

Example 1: Plot the following graphs.

(a) y=4

(b) y=4

(c) x=4

(d) x=4


(a) y=4 is a horizontal line that crosses the yaxis at 4.

(b) y=4 is a horizontal line that crosses the yaxis at –4.

(c) x=4 is a vertical line that crosses the xaxis at 4.

(d) x=4 is a vertical line that crosses the xaxis at –4.

Analyzing Linear Graphs

Analyzing linear graphs is a part of life – whether you are trying to decide to buy stock, figure out if your blog readership is increasing, or predict the temperature from a weather report. Although linear graphs can be quite complex, such as a six-month stock graph, many are very basic to analyze.

The graph below shows the solutions to the price before tax and the price after tax at a particular store. Determine the price after tax of a $6.00 item.

By finding the appropriate xabscissa ($6.00), you can find the solution, the yordinate (approximately $6.80). Therefore, the price after tax of a $6.00 item is approximately $6.80.

The following graph shows the linear relationship between Celsius and Fahrenheit temperatures. Using the graph, convert 70F to Celsius.

By finding the temperature of 70F and locating its appropriate Celsius value, you can determine that 70F22C.

Practice Set

Sample explanations for some of the practice exercises below are available by viewing the following video. Note that there is not always a match between the number of the practice exercise in the video and the number of the practice exercise listed in the following exercise set.  However, the practice exercise is the same in both. CK-12 Basic Algebra: Graphs of Linear Equations (13:09)

  1. What are the solutions to an equation in two variables? How is this different from an equation in one variable?
  2. What is the equation for the xaxis?
  3. What is the equation for the yaxis?
  4. Using the tax graph from the lesson, determine the net cost of an item costing $8.00 including tax.
  5. Using the temperature graph from the lesson, determine the following:
    1. The Fahrenheit temperature of 0C
    2. The Fahrenheit temperature of 30C
    3. The Celsius temperature of 0F
    4. The Celsius equivalent to water boiling (212F)
  6. Graph the following equations on separate Cartesian planes.
    1. y=2
    2. 7=x
    3. 4.5=y
    4. x=8

    The graph below shows a conversion chart for converting between the weight in kilograms to weight in pounds. Use it to convert the following measurements.

  7. 4 kilograms into weight in pounds
  8. 9 kilograms into weight in pounds
  9. 12 pounds into weight in kilograms
  10. 17 pounds into weight in kilograms

Write the equations for the graphed lines pictured below.

  1. E
  2. B
  3. C
  4. \begin{align*}A\end{align*}
  5. \begin{align*}D\end{align*}
  6. At the airport, you can change your money from dollars into Euros. The service costs $5, and for every additional dollar you get 0.7 Euros. Make a table for this information and plot the function on a graph. Use your graph to determine how many Euros you would get if you give the exchange office $50.
  7. Think of a number. Triple it, and then subtract seven from your answer. Make a table of values and plot the function that this sentence represents.

Find the solutions to each equation by making a table and graphing the coordinates.

  1. \begin{align*}y=2x+7\end{align*}
  2. \begin{align*}y=0.7x-4\end{align*}
  3. \begin{align*}y=6-1.25x\end{align*}

Mixed Review

  1. Find the percent of change: An item costing $17 now costs $19.50.
  2. Give an example of an ordered pair located in Quadrant III.
  3. Jodi has \begin{align*}\frac{1}{3}\end{align*} of a pie. Her little brother asks for half of her slice. How much pie does Jodi have?
  4. Solve for \begin{align*}b: b+16=3b-2\end{align*}.
  5. What is 16% of 97?
  6. Cheyenne earned a 73% on an 80-question exam. How many questions did she answer correctly?
  7. List four math verbs.

Notes/Highlights Having trouble? Report an issue.

Color Highlighted Text Notes
Please to create your own Highlights / Notes
Show More

Image Attributions

Show Hide Details
Files can only be attached to the latest version of section
Please wait...
Please wait...
Image Detail
Sizes: Medium | Original