โš™๏ธ Function Kingdom ยท Functions

Forms of a Line

Write the equation of a line in point-slope, slope-intercept and standard form, convert between the three, read intercepts off standard form, and build parallel and perpendicular lines through a point.

In short

  • Slope-intercept form shows the slope and the y-intercept, point-slope form shows a point and the slope, and standard form treats x and y alike โ€” they are three spellings of the same line.
  • Point-slope form y - y1 = m(x - x1) is the slope formula with the denominator multiplied out, so it can be written down the moment you know a point and a slope.
  • A line in standard form Ax + By = C has slope -A/B, and you find its intercepts by setting the other variable to zero.
  • Parallel lines have equal slopes; perpendicular lines have slopes that multiply to -1, so each is the other flipped over with its sign changed.
  • A horizontal line is y = k and has slope 0; a vertical line is x = k and has no slope at all, because the run between two of its points is zero.

Three forms, three different jobs

Every straight line can be written in more than one way, and the three standard ways are not rivals โ€” each one puts a different fact where you can read it at a glance.

  • Slope-intercept form, y = mx + b. The slope m and the height b where the line cuts the y-axis are both sitting in plain sight. This is the form to graph from, and the form to compare two lines in.
  • Point-slope form, y - y1 = m(x - x1). It says "this line has slope m and goes through the point (x1, y1)". Nothing has been tidied away, which is exactly why it is the easiest form to *write down* when those are the two facts you were given.
  • Standard form, Ax + By = C. Both variables sit on the left with whole-number coefficients. It treats x and y evenhandedly, which makes it the form that can describe a vertical line, and the form that systems of equations like best.

They all describe the same set of points. y = 2x - 1, y - 5 = 2(x - 3) and 2x - y = 1 are three spellings of one line, and the skill worth having is moving between them without losing a sign on the way.

Point-slope is just the slope formula, rearranged

Point-slope form is not something to memorise. It falls out of the definition of slope in one step.

Slope means rise over run. Take a known point (x1, y1) on the line and let (x, y) be any other point on it. Then

m = (y - y1) / (x - x1)

Multiply both sides by (x - x1) and you have

y - y1 = m(x - x1)

That is the whole derivation. It also explains the minus signs, which are where most of the errors live: the form subtracts the coordinates of the known point, so a point with a negative coordinate produces a double negative. Through (-3, 4) with slope 2 the honest first line is

y - 4 = 2(x - (-3))

and only then does it tidy to y - 4 = 2(x + 3). Writing the brackets before simplifying them costs a second and saves the sign.

Given two points instead of a slope, nothing changes โ€” you just compute m from the two of them first, then use either point. Both choices give the same line, so pick whichever has the friendlier numbers.

Converting between the forms

Point-slope to slope-intercept. Multiply out the bracket and move the constant across. From y - 4 = 2(x + 3): expand to y - 4 = 2x + 6, then add 4 to both sides to get y = 2x + 10.

Slope-intercept to standard. Two moves, in this order.

  • Clear the fractions: multiply *every* term by the lowest common denominator. From y = (3/4)x - 2, multiplying by 4 gives 4y = 3x - 8.
  • Carry the x-term to the left, changing its sign: -3x + 4y = -8. Standard form is usually written with A greater than 0, so multiply the whole equation by -1: 3x - 4y = 8.

Standard to slope-intercept. Get the y-term alone and divide. From 3x - 4y = 8: -4y = -3x + 8, then y = (3/4)x - 2. Doing that once in general gives a shortcut worth keeping: the line Ax + By = C has slope -A/B. For 3x - 4y = 8 that is -3/(-4) = 3/4, which agrees.

If the equation arrives out of order, such as 4y - 3x = 8 or 4y = 8 + 3x, put it back into Ax + By = C first. Tidy, then read.

Intercepts: set the other variable to zero

An intercept is where a line meets an axis, and each axis is defined by one coordinate being zero. That single sentence is the whole method.

  • Every point on the x-axis has y = 0. So to find the x-intercept, set y = 0 and solve for x.
  • Every point on the y-axis has x = 0. So to find the y-intercept, set x = 0 and solve for y.

Standard form makes this fast, because setting a variable to zero deletes a whole term. For 3x + 5y = 30: set y = 0 to get 3x = 30, so x = 10; set x = 0 to get 5y = 30, so y = 6. The line crosses at (10, 0) and (0, 6). Notice which is which โ€” the x-intercept is a point on the *x*-axis, so its y-coordinate is 0, not the other way round.

Two lines have no slope-intercept form at all, and standard form handles both. A horizontal line has slope 0, so y = mx + b collapses to y = b: every point sits at the same height. A vertical line has a run of 0 between any two of its points, so its slope cannot be worked out at all; its equation is x = k, and it never appears as y = something.

Parallel, perpendicular, and where this leads

Two lines are parallel when they have the same slope and different intercepts โ€” same steepness, different starting height, so they never meet.

Two lines are perpendicular when their slopes multiply to -1. In practice that means the new slope is the negative reciprocal of the old one: turn the fraction over and change its sign. The perpendicular partner of 2/3 is -3/2; of 4 (that is, 4/1) it is -1/4; of -5 it is 1/5. Both halves matter, and forgetting the sign is the single most common slip in this topic.

So "the line through (6, 1) perpendicular to y = (2/3)x + 5" is two short steps: the new slope is -3/2, and then point-slope with (6, 1) finishes it.

This is the last purely linear skill, and three later topics lean on it directly. Systems of equations ask where two of these lines meet, and standard form is the shape that elimination wants. Linear models read m as a rate of change and b as a starting amount, so writing a line from two data points is writing a prediction. And the formula for the distance from a point to a line is stated for Ax + By = C, which is one more reason standard form is worth being fluent in.

Worked examples

Example 1

Write the equation of the line through (-2, 5) and (6, 1) in slope-intercept form, then in standard form.

  1. Slope first: m = (1 - 5) / (6 - (-2)) = -4/8 = -1/2.
  2. Point-slope with (-2, 5): y - 5 = (-1/2)(x - (-2)), that is y - 5 = (-1/2)(x + 2).
  3. Expand and add 5: y - 5 = (-1/2)x - 1, so y = (-1/2)x + 4.
  4. For standard form, multiply every term by 2: 2y = -x + 8.
  5. Carry the x-term across so A is positive: x + 2y = 8. Check (6, 1): 6 + 2 = 8.

Example 2

For the line 3x + 4y = 12, find the slope and both intercepts.

  1. Slope: rearrange to y = mx + b. From 3x + 4y = 12, take 3x across: 4y = 12 - 3x.
  2. Divide every term by 4: y = (-3/4)x + 3, so the slope is -3/4. (The shortcut -A/B gives -3/4 as well.)
  3. x-intercept: set y = 0. Then 3x = 12, so x = 4.
  4. y-intercept: set x = 0. Then 4y = 12, so y = 3.
  5. The line crosses the axes at (4, 0) and (0, 3), and falls 3 units for every 4 units to the right.

Example 3

Write the equation of the line through (4, -1) that is perpendicular to y = (2/3)x + 5.

  1. Read the slope of the given line: m = 2/3.
  2. Perpendicular means the negative reciprocal: flip 2/3 to 3/2 and change the sign, giving -3/2.
  3. Point-slope with (4, -1): y - (-1) = (-3/2)(x - 4), that is y + 1 = (-3/2)(x - 4).
  4. Expand: y + 1 = (-3/2)x + 6.
  5. Subtract 1: y = (-3/2)x + 5. Check the slopes multiply to -1: (2/3)(-3/2) = -1.

Practice problems, with solutions

Three problems of increasing difficulty, each with the full working. In the game these are generated fresh every time; these three are fixed so this page always shows the same ones.

Problem 1

Difficulty 1 of 5

A line has slope 1 and passes through the point (-2, 5). Write its equation in the form y = ... โ€” type just the right-hand side, an expression in x (for example 2x - 5).

Answer: x + 7

  1. Point-slope form: y - (5) = 1(x - (-2))
  2. Multiply out the bracket: y - (5) = x + 2
  3. Add 5 to both sides: y = x + 7
  4. Check: when x = -2, this gives y = 5, which is the given point.

Problem 2

Difficulty 3 of 5

A line passes through (-6, -2) and (-2, 8). Write its equation in the form y = ... โ€” type just the right-hand side, an expression in x (for example 2x - 5).

Answer: (5/2)x + 13

  1. Slope: m = (8 - (-2)) / (-2 - (-6)) = 10/4 = 5/2
  2. Point-slope with (-6, -2): y - (-2) = (5/2)(x - (-6))
  3. Multiply out and add (-2): y = (5/2)x + 13
  4. Check the other point: when x = -2, this gives y = 8.

Problem 3

Difficulty 4 of 5

y = (6/5)x - 2 Which of these is the same line in standard form Ax + By = C, with A, B and C whole numbers that share no common factor and A greater than 0?

  1. -6x + 5y = -10
  2. (-6/5)x + y = -2
  3. 6x - 5y = 10
  4. 6x + 5y = 10

Answer: C. 6x - 5y = 10

  1. Start from y = (6/5)x - 2.
  2. Multiply every term by 5 to clear the fractions.
  3. Move the x-term across, changing its sign: 6x - 5y = 10
  4. A = 6, B = -5 and C = 10 share no common factor, and A is greater than 0.

Common mistakes

  • Slope upside down: computing run over rise, so a line that climbs 2 for every 5 across is given a slope of 5/2 instead of 2/5.
  • Losing a sign carrying a term across the equals sign: turning y - 4 = 2x + 6 into y = 2x + 2 instead of y = 2x + 10.
  • Forgetting the double negative in point-slope form: writing y - 4 = 2(x - 3) for the point (-3, 4), when x - (-3) is x + 3.
  • Using the same slope for a perpendicular line. Equal slopes make lines parallel; a perpendicular line needs the flip AND the sign change.
  • Swapping the two intercepts: reporting the x-intercept for the y-intercept. Setting y = 0 gives the x-intercept, because that is the point sitting on the x-axis.
  • Calling a fractional equation "standard form": y = (3/4)x - 2 becomes 3x - 4y = 8 only after every term is multiplied by 4 and A is made positive.

What you should be able to do

  • Write the equation of a line from a point and a slope in point-slope form, and from two points.
  • Convert between slope-intercept form y = mx + b and standard form Ax + By = C.
  • Find both intercepts of a line given in standard form.
  • Write the equation of the line through a point that is parallel or perpendicular to a given line.

Where this fits in the curriculum

Common Core

  • 8.EE.B.6

    Grade 8 โ€” Use similar triangles to explain why the slope is the same between any two points on a line, and derive the equation y = mx + b.

  • HSA-CED.A.2

    High school โ€” Create equations in two or more variables to represent relationships between quantities, and graph them on coordinate axes with labels and scales.

  • HSF-LE.A.2

    High school โ€” Construct linear functions given a graph, a description of a relationship, or two input-output pairs.

  • HSG-GPE.B.5

    High school โ€” Use the slope criteria for parallel and perpendicular lines to find the equation of a line parallel or perpendicular to a given line through a given point.

Ontario

  • MTH1W.C4.4

    Grade 9 de-streamed โ€” Determine the equations of lines by connecting rates of change with slopes and initial values with y-intercepts, and by using two points.

SAT

  • Heart of Algebra

    Writing the equation of a line in any form, and parallel and perpendicular lines.

Learn these first