Grade by GradeEssential student suppliesSign in
C. Content · Foundations of Mathematics and Pre-calculus 10: Powers, Polynomials, Linear Functions, Trigonometry and Pay

Equations of Lines: Slope-Intercept, Point-Slope and General Form

BC FMPC 10: linear functions BC FMPC 10: equations of linesAbout 70 minutes
Learning goals
  • I can write the equation of a line in slope-intercept, point-slope and general form, and convert between them.
  • I can write an equation from a graph, from a table, from two points, or from a point and a slope.
  • I can write equations of horizontal and vertical lines.
  • I can write equations of lines parallel or perpendicular to a given line.

Words to know

slope-intercept form
y = mx + b, where m is the slope and b is the y-intercept.
point-slope form
y - y_1 = m(x - x_1), for a line with slope m through the point (x_1, y_1).
general form
Ax + By + C = 0, where A, B and C are integers; by a common convention A ≥ 0.
y-intercept
The y-coordinate where a line crosses the y-axis (where x = 0).
x-intercept
The x-coordinate where a line crosses the x-axis (where y = 0).

One line, three equations

The same line can be written in different forms. Each one makes something easy to see.

FormEquationShows youBest when you know
Slope-intercepty = mx + bslope m and y-intercept bthe slope and y-intercept; for graphing
Point-slopey - y_1 = m(x - x_1)slope m and a point (x_1, y_1)a point and the slope, or two points
GeneralAx + By + C = 0both intercepts quicklyinteger coefficients; comparing lines
Horizontal liney = kslope 0every point has y = k
Vertical linex = hundefined slopeevery point has x = h (not a function)
The forms of the equation of a line.
Worked example

Example 1: From two points to all three forms

Write the equation of the line through (2, -1) and (6, 7) in point-slope, slope-intercept and general form.

  1. Slope: m = (7 - (-1))/(6 - 2) = 8/4 = 2.
  2. Point-slope with (2, -1): y - (-1) = 2(x - 2), which is y + 1 = 2(x - 2).
  3. Slope-intercept: y + 1 = 2x - 4, so y = 2x - 5.
  4. General: move everything to one side: 2x - y - 5 = 0.
  5. Check with the other point (6, 7): 2(6) - 7 - 5 = 0.

y + 1 = 2(x - 2), y = 2x - 5 and 2x - y - 5 = 0

Converting from general form

To find the slope of 3x + 4y - 12 = 0, solve for y:

4y = -3x + 12, so y = -(3/4)x + 3. The slope is -3/4 and the y-intercept is 3.

To find the intercepts directly from general form, set the other variable to 0:

  • x-intercept: y = 0 gives 3x - 12 = 0, so x = 4.
  • y-intercept: x = 0 gives 4y - 12 = 0, so y = 3.
Worked example

Example 2: A perpendicular line

Write the equation of the line perpendicular to 3x + 4y - 12 = 0 that passes through (3, 1). Give it in general form.

  1. Slope of the given line: -3/4 (from y = -(3/4)x + 3).
  2. Perpendicular slope: the negative reciprocal, 4/3.
  3. Point-slope: y - 1 = (4/3)(x - 3).
  4. Multiply both sides by 3 to clear the fraction: 3y - 3 = 4(x - 3) = 4x - 12.
  5. Rearrange: 0 = 4x - 3y - 9, so 4x - 3y - 9 = 0. Check (3, 1): 12 - 3 - 9 = 0.

4x - 3y - 9 = 0 (or y = (4/3)x - 3)

-22468-4-2240xy(3, 1)slope -3/4slope 4/3
The lines from Example 2. The line 3x + 4y - 12 = 0 (labelled slope -3/4) falls; the line 4x - 3y - 9 = 0 (labelled slope 4/3) rises with slope 4/3 and passes through (3, 1). They meet at a right angle.

Connecting tables, graphs and equations

In a table with equally spaced x-values, a constant difference in y means the relation is linear. The slope is (difference in y) ÷ (difference in x), and the y-intercept is the y-value when x = 0.

For x = 0, 1, 2, 3 and y = 5, 8, 11, 14: each step adds 3, so m = 3 and b = 5, giving y = 3x + 5.

Tidy general form

General form uses integers. If you have fractions, multiply every term by the lowest common denominator. A common convention is to make A positive, so -2x + y + 5 = 0 becomes 2x - y - 5 = 0.

Hands-on activity

Same line, three ways

Choose two points from a real situation, such as a bike rental that costs $20 for 1 hour and $28 for 2 hours. Write the line in all three forms. Which form is most useful for answering 'What is the cost for 5 hours?' Which one shows the base fee? (Here: y = 8x + 12, so a $12 base fee plus $8 per hour, and 5 hours cost $52.)

Just for fun

Puzzle: the four lines y = 2x + 1, y = 2x + 5, y = -x/2 + 3 and y = -x/2 - 2 form a closed shape. What kind? Two pairs of parallel sides that meet at right angles: a rectangle.

Your turn

1

State the slope and y-intercept of y = -3x + 7.

2

Write the equation of the line with slope 1/2 through (4, 1), in slope-intercept and general form.

3

Convert 2x + 5y - 10 = 0 to slope-intercept form.

4

Find the x- and y-intercepts of 3x - 2y + 12 = 0.

5

Write the equations of the horizontal and vertical lines through (5, -2).

6

Write the equation of the line parallel to y = 4x - 1 through (-1, 3).

7

Write the equation of the line through (-2, 3) and (1, -3).

8

A table has x = 0, 1, 2, 3 and y = 5, 8, 11, 14. Write the equation.

More practice

1

Write the line perpendicular to y = -(2/3)x + 1 through (2, 5), in general form.

2

A bike rental charges $12 plus $8 per hour. Write C as a function of hours h and find C(3).

3

Are 2x - 3y + 6 = 0 and 6x - 9y - 1 = 0 parallel? Explain.

4

Write the equation of the line through (3, 4) parallel to the x-axis.

5

The point (-2, b) lies on y = 5x + 3. Find b.

Check your understanding

Quiz

1.

What is the slope of 6x - 2y + 8 = 0?

2.

Which equation is the line through (1, -4) with slope 3?

3.

Which line is parallel to y = -2x + 5?

4.

What is the equation of the vertical line through (-3, 6)?

5.

What is the x-intercept of 4x + 5y - 20 = 0?

For parents and teachers

How to help: Ask your teen which form they would choose for a given problem and why. A good habit is to check an equation by substituting the given point(s).

Common mistakes:

  • Sign errors in point-slope form: through (2, -1) it is y + 1 = 2(x - 2), not y - 1 = 2(x + 2).
  • Reading the slope of Ax + By + C = 0 as A. The slope is -A/B.
  • Leaving fractions in general form.
  • Confusing y = k (horizontal) with x = h (vertical).