Graphing linear equations

 
 
Graphing linear equations blog post.jpeg
 
 
 

Pieces of the slope-intercept form of the equation of a line

A linear equation is the equation of a line. When you graph a linear equation, it’s best to write the equation in slope-intercept form: y=mx+by=mx+b.

Remember that mm is the slope of the line and bb is the yy-intercept (the yy-coordinate of the point at which the line crosses the yy-axis).

Krista King Math.jpg

Hi! I'm krista.

I create online courses to help you rock your math class. Read more.

 

If we write the equation in the form y=mx+by=mx+b, we can first plot the yy-intercept and then use the slope to find another point on the line.

Technically, you need only two points to create a straight line, but plotting three or four points will create a more accurate graph if you’re graphing by hand.

 
 

How to graph the equation of a line


 
Krista King Math Signup.png
 
Algebra 1 course.png

Take the course

Want to learn more about Algebra 1? I have a step-by-step course for that. :)

 
 

 
 

Finding the y-intercept from slope-intercept form

Example

What is the yy-intercept of the line?

y=23xy=-\frac{2}{3}x

This equation is in slope-intercept form, but the yy-intercept is missing. However, we could actually rewrite the equation of the line as

y=23x+0y=-\frac{2}{3}x+0

Written this way, we haven’t changed the value of either side of the equation at all, but we can see that the yy-intercept is 00.


Let’s look at an example of graphing linear equations.


Graphing linear equations for Algebra 1.jpg

Technically, you need only two points to create a straight line, but plotting three or four points will create a more accurate graph if you’re graphing by hand.

Example

Graph the line.

y=3x2y=3x-2

This equation is in slope-intercept form, so it’s ready to be graphed. Start by drawing a Cartesian coordinate system. Make sure to label the xx- and yy-axes and the tick marks. Tick marks are the very, very short lines that are equally spaced along the axes. We label the tick marks with numbers, to indicate the values of xx and yy at the locations of the tick marks on the xx- and yy-axes, respectively.

xy-plane

Next, plot the yy-intercept (bb in the equation). The yy-intercept in this case is 2-2, which means that the point will be at 2-2 on the yy-axis (down 22 from the  origin).

plotting the y-intercept

Next, use the slope (mm in the equation) to find more points on the graph. A good practice is to go up (if the slope is positive) or down (if the slope is negative) for the rise, and then go to the right for the run. Once you’re comfortable doing this, you can “go backwards” by going up (if the slope is negative) or down (if the slope is positive) for the rise, and then going to the left for the run.

Since our slope is positive 33 (which can be written as 3/13/1), we’ll start at the yy-intercept and go up 33 units and to the right 11 unit. We will:

  1. Plot three to four points for accuracy

  2. Connect the dots with a straight line and extend the line past the points

  3. End the line with arrows in both directions since the equation of a line extends to infinity (it continues forever in both directions)

building the slope from the y-intercept

Let’s try another example of graphing linear equations.


Example

Write the equation of the line whose graph is shown.

line with a negative slope

First, identify the yy-intercept. In this case the graph of the line crosses the yy-axis at 22. Next, we’ll find the slope by identifying another clear point on the graph, such as (3,3)(3,-3). To get from the yy-intercept to the point (3,3)(3,-3), we’ll go 55 units down and then 33 units to the right, so the slope is 5/3-5/3.

Now that we have the yy-intercept (b=2b=2), and the slope (m=5/3m=-5/3), we can write the equation of the line in slope-intercept form.

y=53x+2y=-\frac{5}{3}x+2

 
Krista King.png
 

Get access to the complete Algebra 1 course