Chapter 6 ยท Proportional relationships, lines, and slope

Standard Form: Rewriting and Graphing Lines

Rewrite a linear equation from standard form into slope-intercept form, then graph the line by plotting points that make the equation true.

16 min read

The equations 2x+y=62x + y = 6 and y=โˆ’2x+6y = -2x + 6 look different, yet they describe exactly the same line. This lesson shows you why, and how to use that fact to draw a graph.

A linear equation in xx and yy is an equation whose solutions form a straight line when you plot them. Here xx and yy stand for real numbers, and a solution is a pair (x,y)(x, y) that makes the equation true. The graph is the set of all solutions, drawn as points on a coordinate plane.

The first equation is in standard form, Ax+By=CAx + By = C. The letters AA, BB and CC stand for fixed numbers (integers in this lesson), and AA and BB are not both 00. The numbers AA and BB are coefficients: they multiply xx and yy. Both variable terms sit on one side, and the constant CC sits on the other. In 2x+y=62x + y = 6, you have A=2A = 2, B=1B = 1 and C=6C = 6.

The second equation is in slope-intercept form, y=mx+by = mx + b, where yy stands alone. The number mm is the slope: the amount yy changes each time xx increases by 11. The number bb is the y-intercept: the yy-value where the line crosses the yy-axis, so the point (0,b)(0, b) is on the line. In y=โˆ’2x+6y = -2x + 6, the slope is โˆ’2-2 and the y-intercept is 66.

Standard form hides the slope and the y-intercept, and slope-intercept form shows them. Changing the form does not change the line, as long as every step keeps the same solutions. Adding or subtracting the same quantity on both sides does that. So does multiplying or dividing both sides by the same number, provided that number is not 00.

Subtracting 2x2x from both sides of 2x+y=62x + y = 6 gives y=โˆ’2x+6y = -2x + 6. The table tests four points in both equations.

Each point passes both tests or fails both tests.
Point (x,y)(x, y)Test in 2x+y=62x + y = 6Test in y=โˆ’2x+6y = -2x + 6On the line?
(0,6)(0, 6)
2(0)+6=62(0) + 6 = 6, true
โˆ’2(0)+6=6-2(0) + 6 = 6, matches y=6y = 6
Yes
(1,4)(1, 4)
2(1)+4=62(1) + 4 = 6, true
โˆ’2(1)+6=4-2(1) + 6 = 4, matches y=4y = 4
Yes
(3,0)(3, 0)
2(3)+0=62(3) + 0 = 6, true
โˆ’2(3)+6=0-2(3) + 6 = 0, matches y=0y = 0
Yes
(2,5)(2, 5)
2(2)+5=92(2) + 5 = 9, not 66
โˆ’2(2)+6=2-2(2) + 6 = 2, but y=5y = 5
No

Key concept

Solve for y to change forms

A standard-form equation and its slope-intercept form are two descriptions of the same line. To change forms, solve for yy: subtract the xx-term from both sides, then divide every term by BB, the coefficient of yy. Each step does the same thing to both sides, so the solutions and the graph stay the same.

Condition: you need Bโ‰ 0B \neq 0, because you cannot divide by 00. If B=0B = 0, the equation has no yy-term, as in x=3x = 3, and its graph is a vertical line. A vertical line has an undefined slope, because xx never changes along it. It is also not a function y=f(x)y = f(x): a function gives exactly one yy-value for each xx-value, but on x=3x = 3 the single xx-value goes with every yy-value. So it has no slope-intercept form.

Ax+By=CโŸนy=โˆ’ABx+CB(Bโ‰ 0)Ax + By = C \quad\Longrightarrow\quad y = -\dfrac{A}{B}x + \dfrac{C}{B} \qquad (B \neq 0)

Worked example

Convert when y has a positive coefficient

Write 6x+2y=106x + 2y = 10 in slope-intercept form. Then name the slope and the y-intercept.

  1. The goal is to get y alone on the left side. Subtract 6x from both sides. Taking the same quantity from both sides keeps exactly the same solutions.

    6x+2yโˆ’6x=10โˆ’6xโ‡’2y=10โˆ’6x6x + 2y - 6x = 10 - 6x \quad\Rightarrow\quad 2y = 10 - 6x
  2. Divide both sides by 2, the coefficient of y. Because 2 is not 0, this keeps the same solutions. Divide every term on the right side, not only the first one.

    y=102โˆ’6x2=5โˆ’3xy = \dfrac{10}{2} - \dfrac{6x}{2} = 5 - 3x
  3. Write the x-term first to match the pattern y = mx + b. Changing the order of the two terms does not change the result, as long as the minus sign stays with 3x.

    y=โˆ’3x+5y = -3x + 5
  4. Read the two numbers. The slope m is the number that multiplies x, and the y-intercept b is the constant term.

    m=โˆ’3,b=5m = -3, \qquad b = 5
  5. Check with two different points from the new equation: x = 0 gives y = 5, and x = 1 gives y = -3(1) + 5 = 2. Both equations graph as straight lines, and two different points fix exactly one straight line. So if both points also make the original equation true, the two equations describe the same line.

    6(0)+2(5)=0+10=106(1)+2(2)=6+4=106(0) + 2(5) = 0 + 10 = 10 \qquad 6(1) + 2(2) = 6 + 4 = 10

Answer

In slope-intercept form, 6x+2y=106x + 2y = 10 is y=โˆ’3x+5y = -3x + 5. The slope is โˆ’3-3 and the y-intercept is 55.

Worked example

Convert, then graph

Write 3xโˆ’2y=63x - 2y = 6 in slope-intercept form. Then graph the line.

  1. Subtract 3x from both sides so that only the y-term stays on the left. The same subtraction on both sides keeps the same solutions. Each minus sign stays with its term: the left side is -2y, and the right side is 6 - 3x, written here with the x-term first.

    3xโˆ’2yโˆ’3x=6โˆ’3xโ‡’โˆ’2y=โˆ’3x+63x - 2y - 3x = 6 - 3x \quad\Rightarrow\quad -2y = -3x + 6
  2. Divide both sides by -2, the coefficient of y. It is not 0, so the solutions stay the same. Dividing by a negative number changes the sign of each term here: -3x divided by -2 is positive, and 6 divided by -2 is negative.

    y=โˆ’3xโˆ’2+6โˆ’2=32xโˆ’3y = \dfrac{-3x}{-2} + \dfrac{6}{-2} = \dfrac{3}{2}x - 3
  3. Read the form. The y-intercept is -3, so the line crosses the y-axis at (0, -3). The slope is 3/2, so y rises by 3/2 for each 1 that x increases. That is the same as rising by 3 each time x increases by 2.

    m=32,b=โˆ’3m = \dfrac{3}{2}, \qquad b = -3
  4. Find two more points, as you would for a table of values. Choose x-values that are multiples of 2, here x = 2 and x = 4, so that the fraction gives whole-number y-values. The new points are (2, 0) and (4, 3).

    y=32(2)โˆ’3=3โˆ’3=0y=32(4)โˆ’3=6โˆ’3=3y = \dfrac{3}{2}(2) - 3 = 3 - 3 = 0 \qquad y = \dfrac{3}{2}(4) - 3 = 6 - 3 = 3
  5. Check the three points (0, -3), (2, 0) and (4, 3) in the original standard-form equation. Each one gives 6, so each one is a solution.

    3(0)โˆ’2(โˆ’3)=0+6=63(2)โˆ’2(0)=6โˆ’0=63(4)โˆ’2(3)=12โˆ’6=63(0) - 2(-3) = 0 + 6 = 6 \qquad 3(2) - 2(0) = 6 - 0 = 6 \qquad 3(4) - 2(3) = 12 - 6 = 6
  6. Plot the three points and draw the straight line through them. Extend the line past the points in both directions, because x can be any real number.

Answer

The equation 3xโˆ’2y=63x - 2y = 6 becomes y=32xโˆ’3y = \frac{3}{2}x - 3. Its graph is the straight line through (0,โˆ’3)(0, -3), (2,0)(2, 0) and (4,3)(4, 3), shown as Line A in the figure below.

Coordinate grid from x -6 to 6 and y -6 to 6, with a grid step of 1, showing 4 plotted elements. Details: line 3 x plus -2 y equals 6, named Line A; point at (0, -3), named Point A; point at (2, 0), named Point B; point at (4, 3), named Point C.
Line A is 3xโˆ’2y=63x - 2y = 6. Point A is (0,โˆ’3)(0, -3), Point B is (2,0)(2, 0) and Point C is (4,3)(4, 3).

In the figure, the horizontal axis shows xx and the vertical axis shows yy. Both are plain numbers with no units, and one grid step is 11 on each axis. Line A is the graph of 3xโˆ’2y=63x - 2y = 6. Point A is (0,โˆ’3)(0, -3), Point B is (2,0)(2, 0) and Point C is (4,3)(4, 3): the three points from the example.

Trust the coordinates, not the picture. A point can look as if it sits on a line and still miss it. A point is on the line only when its exact coordinates make the equation true, which is why you checked all three by substitution. The coordinates also show the slope. From Point A to Point B, xx goes from 00 to 22 and yy goes from โˆ’3-3 to 00. So yy increases by 33 while xx increases by 22, which matches the slope 32\frac{3}{2}. The same change takes you from Point B to Point C.

Worked example

Graph straight from standard form

Graph 2x+3y=122x + 3y = 12 without converting first. Then use slope-intercept form to confirm your graph.

  1. You need points that make the equation true, and 0 is the easiest value to substitute. Let x = 0. The x-term becomes 0, leaving 3y = 12. Divide both sides by 3, which is not 0. This gives the point (0, 4), on the y-axis.

    2(0)+3y=12โ‡’3y=12โ‡’y=42(0) + 3y = 12 \quad\Rightarrow\quad 3y = 12 \quad\Rightarrow\quad y = 4
  2. Now let y = 0. The y-term becomes 0, leaving 2x = 12. Divide both sides by 2, which is not 0. This gives the point (6, 0), on the x-axis.

    2x+3(0)=12โ‡’2x=12โ‡’x=62x + 3(0) = 12 \quad\Rightarrow\quad 2x = 12 \quad\Rightarrow\quad x = 6
  3. Two different points fix a line, but find a third to check your arithmetic. Let x = 3, so the x-term is 6. Subtract 6 from both sides, then divide both sides by 3. This gives the point (3, 2).

    2(3)+3y=12โ‡’3y=6โ‡’y=22(3) + 3y = 12 \quad\Rightarrow\quad 3y = 6 \quad\Rightarrow\quad y = 2
  4. Plot (0, 4), (3, 2) and (6, 0). Draw the straight line through them and extend it in both directions.

  5. Confirm with slope-intercept form. Subtract 2x from both sides, then divide every term by 3, which is not 0.

    3y=โˆ’2x+12โ‡’y=โˆ’23x+43y = -2x + 12 \quad\Rightarrow\quad y = -\dfrac{2}{3}x + 4
  6. Compare. The y-intercept 4 matches the point (0, 4). The slope -2/3 means y falls by 2 each time x rises by 3, which is exactly the change from (0, 4) to (3, 2) and from (3, 2) to (6, 0). Keep -2/3 as an exact fraction; a rounded decimal such as -0.67 is only an approximation.

Answer

The graph of 2x+3y=122x + 3y = 12 is the straight line through (0,4)(0, 4), (3,2)(3, 2) and (6,0)(6, 0), shown as Line B in the figure below. In slope-intercept form, the same line is y=โˆ’23x+4y = -\frac{2}{3}x + 4.

Coordinate grid from x -2 to 8 and y -2 to 8, with a grid step of 1, showing 4 plotted elements. Details: line 2 x plus 3 y equals 12, named Line B; point at (0, 4), named Point D; point at (3, 2), named Point E; point at (6, 0), named Point F.
Line B is 2x+3y=122x + 3y = 12. Point D is (0,4)(0, 4), Point E is (3,2)(3, 2) and Point F is (6,0)(6, 0).

In this figure the horizontal axis again shows xx, the vertical axis shows yy, and one grid step is 11 on each axis. Line B is the graph of 2x+3y=122x + 3y = 12. Point D is (0,4)(0, 4), Point E is (3,2)(3, 2) and Point F is (6,0)(6, 0). Point D is on the yy-axis at the y-intercept 44. From Point D to Point E, and again from Point E to Point F, xx increases by 33 while yy decreases by 22. That matches the slope โˆ’23-\frac{2}{3}.

You now have two routes from standard form to a graph. When Bโ‰ 0B \neq 0, you can solve for yy first and build points from y=mx+by = mx + b. Or you can substitute values straight into the standard form. Both routes give points on the same line, because the two equations have exactly the same solutions. If both substitutions of 00 lead to the same point, such as (0,0)(0, 0), choose another xx-value to get a second point. Either way, check your points in the original equation.

Takeaway: when Bโ‰ 0B \neq 0, the standard form Ax+By=CAx + By = C and the slope-intercept form y=mx+by = mx + b are two ways to write the same line. To change forms, solve for yy: subtract the xx-term from both sides, then divide every term by BB, and watch the signs. To graph, plot points whose exact coordinates make the equation true and draw the straight line through them. Next, you will explore how changing the slope or the y-intercept changes the graph.