Math 8 · F.IF.C.7 · F.IF.C.7A

Standard form of a line

Two quantities share one fixed total, like money raised from selling two kinds of item. What is the natural equation for that, and how do you read its line straight from it?

Where you are 11 in Linear relationships

Why this exists

Zainab’s class is raising money for a trip. They sell tins of shortbread at 5 dollars each and T-shirts at 8 dollars each, and they want to raise exactly 120 dollars. Call the number of tins sold x and the number of T-shirts y. The tins bring in 5x dollars, the shirts 8y, and together they make 120:

5x + 8y = 120

The story hands you this equation directly: each quantity times its own price on the left, the total alone on the right.

Two questions answer themselves. Only shortbread means y = 0, so 5x = 120 and x = 24 tins. Only T-shirts means x = 0, so 8y = 120 and y = 15 shirts. Those are the two points where the line meets the axes.

The same line in slope-intercept form is \displaystyle y = -\frac{5}{8}x + 15: correct, but it brings in a fraction and reads as though shirts depend on tins, which the story never said. Slope-intercept form suits a quantity that starts somewhere and changes at a steady rate; when two quantities share a fixed total, the form above is the natural one, and lines move freely between it, slope-intercept form and point-slope form.

Definition

A linear equation in x and y is in standard form when it is written as

Ax + By = C

where A, B and C are numbers and A and B are not both zero. Both variable terms are on the left, each times its own constant, and the constant stands alone on the right.

On top of this there is a convention, an agreement about which of many correct equations to write, not a rule of mathematics: A, B and C are integers with no common factor bigger than 1, and A is not negative (when A = 0, B is positive). The equations 10x + 16y = 240, 5x + 8y = 120 and -5x - 8y = -120 all have the form Ax + By = C and all describe the fundraiser line; the convention picks 5x + 8y = 120, so that two people writing the same line write the same equation. Some books use the name for any Ax + By = C.

The x-intercept of a line is the point where it crosses the x-axis, so its y-coordinate is 0. The y-intercept is where it crosses the y-axis, so its x-coordinate is 0.

Intuition

4 8 12 16 20 24 5 10 15 tins of shortbread, x T-shirts, y (0, 15) (8, 10) (16, 5) (24, 0)
5x + 8y = 120
Figure 1Every point of the line raises exactly 120 dollars. The four dots are the sales the class can actually make.

In standard form each variable carries its own weight and the weighted total is fixed, so moving along the line trades one quantity for the other. In the fundraiser, 5 T-shirts and 8 tins both bring in 40 dollars. To stay on 120 dollars, selling 5 fewer shirts must be made up by 8 more tins: 5 down for every 8 across, a slope of \displaystyle -\frac{5}{8}. The slope is hiding in the coefficients. The class sells whole tins and whole shirts, so only the four dots are sales they can make; the dashed line shows the pattern the dots follow.

The intercepts are quick because each comes from making a term vanish: y = 0 leaves the one-step equation Ax = C, and x = 0 leaves By = C. Two points fix a line, and a third point from the equation is a cheap check: if the three do not line up, one is wrong.

Results

For the line Ax + By = C:

  • If A \neq 0, the x-intercept is \displaystyle \left(\frac{C}{A}, 0\right).
  • If B \neq 0, the y-intercept is \displaystyle \left(0, \frac{C}{B}\right).
  • If B \neq 0, the slope is \displaystyle -\frac{A}{B}, and the line is \displaystyle y = -\frac{A}{B}x + \frac{C}{B}.
  • If B = 0, the line is the vertical line \displaystyle x = \frac{C}{A}, with no slope. If A = 0, it is the horizontal line \displaystyle y = \frac{C}{B}, with slope 0.
  • Every line in the plane has an equation Ax + By = C, vertical lines included.
Why it is true

The intercepts. Every point on the x-axis has y = 0. Putting y = 0 into Ax + By = C leaves Ax = C, and when A \neq 0 dividing by A gives \displaystyle x = \frac{C}{A}. Putting x = 0 gives By = C and \displaystyle y = \frac{C}{B} the same way.

The slope. Suppose B \neq 0. Subtract Ax from both sides, as the addition property of equality allows, to get By = -Ax + C. Divide both sides by B, allowed because B \neq 0:

y = -\frac{A}{B}x + \frac{C}{B}

This is slope-intercept form, so the slope is \displaystyle -\frac{A}{B} and the y-intercept is \displaystyle \left(0, \frac{C}{B}\right).

Every line has such an equation, and every such equation is a line. A line that is not vertical has an equation y = mx + b, and subtracting mx gives -mx + y = b: standard form with A = -m, B = 1, C = b. A vertical line through (a, 0) is x = a, with A = 1, B = 0, C = a. The other way round, if B \neq 0 the equation rearranges to the line above, and if B = 0 then A \neq 0 and the equation says \displaystyle x = \frac{C}{A}, a vertical line.

Clearing fractions. Multiplying both sides by the same non-zero number does not change which pairs (x, y) make the equation true, so the line stays the same. Multiplying by a common denominator turns fractional coefficients into integers; dividing out any common factor, and multiplying by -1 if A is negative, gives the conventional form.

Worked examples

Example 1

Graphing from the intercepts

Graph 3x - 4y = 24 using its intercepts, and check with a third point.

Solution

For the x-intercept put y = 0: 3x = 24, so x = 8 and the point is (8, 0). For the y-intercept put x = 0: -4y = 24, so y = -6 and the point is (0, -6).

Two points fix the line, but a third catches a slip. With x = 4, 12 - 4y = 24, so -4y = 12 and y = -3, giving (4, -3). Plot the three points, see that they line up, and draw the line.

−2 2 4 6 8 10 −8 −4 −2 2 x y (8, 0) (0, −6) (4, −3)
3x - 4y = 24
Figure 2Example 1. The two intercepts fix the line, and the third point confirms it.

Its slope is \displaystyle -\frac{A}{B} = -\frac{3}{-4} = \frac{3}{4}, and the intercepts agree: from (0, -6) to (8, 0) the line rises 6 over a run of 8.

Example 2

Reading the slope from standard form

Find the slope and y-intercept of 7x + 2y = 8, and decide which way of graphing it is easier.

Solution

Subtract 7x from both sides to get 2y = -7x + 8, then divide both sides by 2:

y = -\frac{7}{2}x + 4

The slope is \displaystyle -\frac{7}{2} and the y-intercept is (0, 4), matching \displaystyle -\frac{A}{B} = -\frac{7}{2} and \displaystyle \frac{C}{B} = \frac{8}{2} = 4.

The x-intercept comes from 7x = 8, so \displaystyle x = \frac{8}{7}, hard to place accurately on a grid. The slope route avoids it: from (0, 4) go 2 across and 7 down to (2, -3), as in Graphing a line from its equation. Check: 7 \cdot 2 + 2 \cdot (-3) = 14 - 6 = 8. Intercepts are the quick route when C divides evenly by A and by B; when it does not, the slope and y-intercept are often easier.

Example 3

From the other forms to standard form

Write each line in standard form: (a) \displaystyle y = \frac{3}{4}x - 2; (b) \displaystyle y = -\frac{2}{3}x + \frac{5}{2}; (c) \displaystyle y + 1 = -\frac{5}{2}(x - 4).

Solution

(a) Subtract \displaystyle \frac{3}{4}x from both sides: \displaystyle -\frac{3}{4}x + y = -2. Multiply both sides by 4 to clear the fraction: -3x + 4y = -8. The convention wants A not negative, so multiply by -1:

3x - 4y = 8

Check: \displaystyle -\frac{3}{-4} = \frac{3}{4} and \displaystyle \frac{8}{-4} = -2. It has the same left side as Example 1, so the same slope: the two lines are parallel.

(b) The denominators are 3 and 2, so multiply every term by 6: 6y = -4x + 15. Add 4x to both sides:

4x + 6y = 15

Although 4 and 6 share the factor 2, 15 does not, so nothing divides out.

(c) Multiply both sides by 2: 2y + 2 = -5(x - 4) = -5x + 20. Add 5x to both sides and subtract 2:

5x + 2y = 18

The point (4, -1) from the original form lies on it: 5 \cdot 4 + 2 \cdot (-1) = 18.

Example 4

Horizontal and vertical lines

Describe and graph (a) 3y = -12 and (b) 2x = 9. Then (c) write the line through (-3, 4) and (-3, -2) in standard form.

Solution

(a) Here A = 0, B = 3, C = -12. Dividing by 3 gives y = -4 whatever x is, so the line is horizontal, with slope \displaystyle -\frac{0}{3} = 0 and y-intercept (0, -4). It has no x-intercept: y = 0 would give 0 = -12, which is false.

(b) Here A = 2, B = 0, C = 9. Dividing by 2 gives \displaystyle x = \frac{9}{2} for every y, a vertical line. It has no slope, since \displaystyle -\frac{A}{B} = -\frac{2}{0} divides by zero. Its x-intercept is \displaystyle \left(\frac{9}{2}, 0\right), and it has no y-intercept, since x = 0 gives 0 = 9.

−2 2 4 6 −6 −2 2 x y (0, −4) (4.5, 0)
y = -4
x = \tfrac{9}{2}
Figure 3Example 4. When one coefficient is zero, the line is horizontal or vertical.

(c) Both points have x-coordinate -3, so the line is x = -3: standard form with A = 1, B = 0, C = -3. No slope-intercept equation describes it, because the run between the points is 0.

Example 5

A coffee blend

Coralie roasts a blend from Kenyan beans at 20 dollars per kilogram and Brazilian beans at 12 dollars per kilogram, spending exactly 240 dollars. Let x be the kilograms of Kenyan and y the kilograms of Brazilian. (a) Write the equation in standard form. (b) Find the intercepts and say what they mean. (c) If she uses 3 kilograms of Kenyan, how much Brazilian does she use? (d) What does the slope say?

Solution

(a) The costs give 20x + 12y = 240. All three numbers share the factor 4, and dividing both sides by 4 keeps the same solutions:

5x + 3y = 60

(b) With y = 0, 5x = 60, so (12, 0): 12 kilograms of Kenyan alone. With x = 0, 3y = 60, so (0, 20): 20 kilograms of Brazilian alone.

(c) With x = 3, 15 + 3y = 60, so 3y = 45 and y = 15 kilograms. Check with the prices: 20 \cdot 3 + 12 \cdot 15 = 60 + 180 = 240.

(d) The slope is \displaystyle -\frac{5}{3}: each extra kilogram of Kenyan means \displaystyle \frac{5}{3} of a kilogram less Brazilian, because its 20 dollars would have bought \displaystyle \frac{20}{12} = \frac{5}{3} kilograms of Brazilian. The slope is minus the ratio of the prices.

Neither amount can be negative, and kilograms can be fractions, so every point of the segment from (0, 20) to (12, 0) is a possible blend.

Example 6

Counting the ways to score

In Desmond-Ray’s game, a goal from outside the arc scores 3 points and a goal from inside the arc scores 2. His team finishes with 26 points, from x outside goals and y inside goals. (a) Write the equation. (b) Find the intercepts and say whether each could be a real game. (c) List every combination of goals that gives 26 points.

Solution

(a) Outside goals give 3x points and inside goals 2y:

3x + 2y = 26

(b) With y = 0, 3x = 26, so \displaystyle x = \frac{26}{3}, about 8.67. That point is on the line but is not a game, since goals are whole numbers. With x = 0, y = 13, and (0, 13) is a real game.

(c) Solving for y gives \displaystyle y = 13 - \frac{3}{2}x. This is a whole number exactly when x is even, and it is not negative only when \displaystyle x \le \frac{26}{3}, so x is at most 8. That leaves x = 0, 2, 4, 6, 8:

(0, 13),\ (2, 10),\ (4, 7),\ (6, 4),\ (8, 1)

Five combinations. On a graph the games are five separate dots on the line, not the whole line, as with the fundraiser. The slope \displaystyle -\frac{3}{2} explains the spacing: 2 more outside goals are worth 6 points, the same as 3 inside goals.

Boundaries

  • A and B are not both zero. 0x + 0y = C is not a line: if C = 0 every point makes it true, and if C \neq 0 none does.
  • The slope \displaystyle -\frac{A}{B} needs B \neq 0. When B = 0 the line is vertical and has no slope.
  • Each intercept needs its own coefficient non-zero. A horizontal line off the x-axis has no x-intercept, and a vertical line off the y-axis has no y-intercept. When C = 0 and A, B are non-zero, both intercepts are the origin, so a second point must come from elsewhere.
  • Integer coefficients need a rational slope and intercept. \displaystyle y = \sqrt{2}\,x can be written \displaystyle \sqrt{2}\,x - y = 0, but not with integers: the slope would then be \displaystyle -\frac{A}{B}, a fraction of integers, and \displaystyle \sqrt{2} is not one.
  • A story uses only part of its line. Amounts cannot be negative, and counted things (tins, goals) must be whole.

Where this goes next

Standard form is the natural layout for two equations at once: with x terms in one column and y terms in the next, Solving systems by elimination adds a multiple of one equation to the other so that a variable drops out. And budgets are rarely spent to the last cent: “at most 120 dollars” turns the fundraiser line into 5x + 8y \le 120, the edge of a region, as in Graphing a linear inequality in two variables, drawn from its intercepts just as here. Modeling with linear relationships uses every form, choosing whichever matches the story.

Exercises

Intercepts and graphing

  1. Find both intercepts of 2x + 5y = 20.
  2. Find both intercepts of x - 6y = 18.
  3. Find both intercepts of 4x - 3y = -18.
  4. Find both intercepts of 6x + 4y = 9.
  5. Find the intercepts of 2x - 3y = 12, then find a third point with x = 3 to check before drawing the line.
  6. Find the intercepts of 4x + 7y = 0. Explain why they are not enough to draw the line, and find another point on it with x = 7.

Moving between forms

  1. Write y = 2x - 7 in standard form.
  2. Write \displaystyle y = -\frac{4}{5}x + 3 in standard form.
  3. Write \displaystyle y = \frac{1}{6}x - \frac{3}{4} in standard form.
  4. Write \displaystyle y + 2 = -\frac{4}{3}(x - 1) in standard form.
  5. Find the line through (1, 6) and (4, -3) and write it in standard form.
  6. Write 9x - 3y = 6 in slope-intercept form, and then in standard form following the convention.
  7. Use \displaystyle -\frac{A}{B} and \displaystyle \frac{C}{B} to give the slope and the y-intercept of 8x - 6y = 5, then check by solving for y.

Horizontal and vertical lines

  1. Say whether each line is horizontal or vertical, and give every intercept it has: (a) 5y = 15; (b) 4x = -10.
  2. Write each line in standard form: (a) the line through (-2, 6) and (-2, 1); (b) the line through (5, -3) and (-1, -3).

In context

  1. Bettina’s club sells calendars at 6 dollars and keyrings at 4 dollars and wants to raise exactly 96 dollars. Let x be calendars and y keyrings. (a) Write the equation in standard form. (b) Find the intercepts and say what each means. (c) If they sell 10 calendars, how many keyrings do they need to sell?
  2. In Aldric’s game a header scores 2 points and a long shot scores 5. His team scores 21 points with x headers and y long shots. Write the equation and list every possible combination of goals.

Reasoning

  1. Show that 2x + 3y = 6, 4x + 6y = 12 and -2x - 3y = -6 all describe the same line. Which one does the convention pick, and why is a convention useful?
  2. Zainab claims that keeping A and B in Ax + By = C but changing C gives a parallel line, and that doubling C doubles the distance of each intercept from the origin. Explain whether she is right, and name the case where doubling C gives no new line.
Answers
  1. (10, 0) and (0, 4). With y = 0, 2x = 20; with x = 0, 5y = 20.
  2. (18, 0) and (0, -3). With y = 0, x = 18; with x = 0, -6y = 18.
  3. \displaystyle \left(-\frac{9}{2}, 0\right) and (0, 6). With y = 0, 4x = -18; with x = 0, -3y = -18.
  4. \displaystyle \left(\frac{3}{2}, 0\right) and \displaystyle \left(0, \frac{9}{4}\right). With y = 0, 6x = 9; with x = 0, 4y = 9.
  5. (6, 0) and (0, -4), with check point (3, -2): 6 - 3y = 12 gives y = -2. The three points line up on a line of slope \displaystyle \frac{2}{3}.
  6. Both intercepts are (0, 0), one point, and one point does not fix a line. With x = 7, 28 + 7y = 0, so y = -4: the point (7, -4).
  7. 2x - y = 7. Subtract 2x to get -2x + y = -7, then multiply by -1.
  8. 4x + 5y = 15. Multiply by 5: 5y = -4x + 15; add 4x.
  9. 2x - 12y = 9. Multiply by 12: 12y = 2x - 9; rearrange to -2x + 12y = -9 and multiply by -1. No common factor remains.
  10. 4x + 3y = -2. Multiply by 3: 3y + 6 = -4x + 4; add 4x and subtract 6. Check with (1, -2): 4 - 6 = -2.
  11. 3x + y = 9. The slope is \displaystyle \frac{-3 - 6}{4 - 1} = -3, so y - 6 = -3(x - 1), giving y = -3x + 9; add 3x. Check with (4, -3): 12 - 3 = 9.
  12. y = 3x - 2, and in standard form 3x - y = 2. Subtract 9x and divide by -3; for the convention, divide 9x - 3y = 6 by the common factor 3.
  13. Slope \displaystyle \frac{4}{3}, y-intercept \displaystyle \left(0, -\frac{5}{6}\right), from \displaystyle -\frac{8}{-6} and \displaystyle \frac{5}{-6}. Solving, -6y = -8x + 5 gives \displaystyle y = \frac{4}{3}x - \frac{5}{6}, which agrees.
  14. (a) Horizontal: y = 3, y-intercept (0, 3), no x-intercept, since y = 0 gives 0 = 15. (b) Vertical: \displaystyle x = -\frac{5}{2}, x-intercept \displaystyle \left(-\frac{5}{2}, 0\right), no y-intercept, since x = 0 gives 0 = -10.
  15. (a) x + 0y = -2, that is x = -2: both points have x = -2. (b) 0x + y = -3, that is y = -3: both points have y = -3.
  16. (a) 3x + 2y = 48, from 6x + 4y = 96 divided by 2. (b) (16, 0): 16 calendars alone; (0, 24): 24 keyrings alone. (c) 9 keyrings: 30 + 2y = 48 gives y = 9; check 60 + 36 = 96.
  17. 2x + 5y = 21, with combinations (8, 1) and (3, 3). Since 2x is even and 21 is odd, y must be odd; y = 1 gives x = 8, y = 3 gives x = 3, and y = 5 would need 2x = -4.
  18. The second equation is the first times 2 and the third is the first times -1; multiplying both sides by a non-zero number keeps exactly the same solutions, so all three are one line. The convention picks 2x + 3y = 6: integers, no common factor, A positive. With it, one line always gets one equation, so two lines can be compared at a glance.
  19. She is right, with one exception. The slope \displaystyle -\frac{A}{B} does not involve C (and if B = 0 both lines are vertical), and a point on both lines would make Ax + By equal two different numbers, so the lines are parallel. The intercepts \displaystyle \frac{C}{A} and \displaystyle \frac{C}{B} are C divided by fixed numbers, so doubling C doubles them. The exception is C = 0: doubling leaves C = 0, and the line through the origin does not move.
unattributed · updated 2026-10-09 · CC-BY-SA-4.0