Writing a linear equation from slope and intercept, from slope and a point using point-slope form, and from two points; finding lines parallel or perpendicular to a given line through a given point; and building a linear model from two data values.
Subject: Algebra 2 · 68 slides · symbolic lesson
Open the interactive version of this deck
Title
Algebra 2 · Lesson 2.4
One question decides everything: what were you given?
Objectives
Lesson 2.3 handed you an equation and asked for a picture. This lesson runs that machine backwards: you are handed some facts about a line, and you have to produce the equation. Every question in the whole lesson is the same question wearing different clothes.
That question is: what were you given? Three answers are possible, and each one hands you a form to write down. Learn to sort a question into one of the three rows and most of the work is already decided before you write a line.
There is also one habit this lesson is built to install, and it is worth more than any of the five outcomes. Every equation you write can be tested in one line, by putting the point you were given back into it. If both sides come out equal, the equation really does pass through that point.
Point-slope form is where marks are lost, almost always on a sign. You will see the bracket written out in full before it is tidied, every single time, because that is what stops the mistake.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 98 — Before, Now, Why and the Key Vocabulary
Warm-up
Start with the direction you already know. Given an equation in slope-intercept form you can name the slope and the crossing height without doing anything at all, because the form is arranged so that both numbers are sitting in plain view.
\[ y = -2x + 7 \]
Discussion prompt
Name the slope and the y-intercept of this line. Then sketch it roughly, and say which of the two numbers told you where to start drawing and which told you where to go next.
Hold on to that split, because the rest of the lesson depends on it. A line is fixed by a direction and a position, and every question in this lesson is a question about how those two facts have been handed to you.
Sometimes you get the position as the crossing height, which is the easy case. More often you get it as some other point on the line, which is the case that needs a new form. Occasionally you get two points and no slope at all, and then you have to manufacture the direction before you can use the position.
Concept
One point is not enough to decide a line: infinitely many lines pass through any single point, fanning out in every direction. One slope is not enough either, because all the lines with a given slope are parallel copies sliding up and down the plane.
Put the two together and there is exactly one line. That is the whole reason this lesson has three cases rather than three hundred: every question has to give you a direction and a position, and there are only so many ways to do that.
\[ \text{direction} + \text{position} = \text{one line} \]
Slope-intercept form and point-slope form are not rival methods. They are two containers for the same pair of facts, and each is shaped for a particular way of receiving the position.
\[ y = mx + b \qquad y - y_1 = m(x - x_1) \]
Look at what each one has room for. The first has a slot for the crossing height and nowhere to put any other point. The second has a slot for any point at all, which is why it is the more useful of the two, and why the book leans on it for the rest of the lesson.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 98 — the Key Concept box: Writing an Equation of a Line
Comparison
This table is the spine of the lesson, so fill it in now and come back to it whenever a question leaves you unsure where to start. Reading the first column is meant to settle the second before you write anything.
Comparison matrix
| You are given | Reach for | Where the slope comes from | The check at the end |
|---|---|---|---|
| slope m and the y-intercept b | slope-intercept form | handed to you | the line crosses at b |
| slope m and one point | point-slope | handed to you | substitute that point |
| two points | point-slope form | the slope formula | substitute the other point |
| a line to be parallel to, and a point | point-slope form | the same slope as the given line | substitute the point |
| a line to be perpendicular to, and a point | point-slope form | negative reciprocal | the slopes multiply to −1 |
Notice how much of the table repeats. Four of the five rows reach for the same form, and the only thing that changes between them is where the slope comes from. That is the real content of the lesson: point-slope form, fed by four different sources of slope.
The last column is the part people skip and the only part that catches errors. A check is not extra credit; it is one line of arithmetic that tells you whether the equation you wrote actually goes where it was supposed to.
The bottom two rows will not make full sense until Part 3, and that is fine. Fill them in from the words for now, and the pictures will arrive with the worked examples.
Picture it
Here is the same table as a picture, because the shape of it matters more than the wording. Three doors in, one door out.
Figure (svg): Three rows of a diagram. Each row has what you are given on the left, an arrow, and the form to reach for on the right: slope with intercept goes to slope-intercept form, slope with a point goes to point-slope form, and two points go to the slope formula followed by point-slope form.
The right-hand column holds forms, not answers. Point-slope form is a working form: you write it, use it, and then simplify away from it, exactly as you would multiply out a bracket and then collect terms.
Every route ends in slope-intercept form because that is the form this book asks for, and because it is the form that makes the line easiest to draw and easiest to compare with another line. The book says so on page 99, in the note beside Example 2.
So when you get stuck mid-question, ask which of the three left-hand boxes the question put you in. Nine times out of ten being stuck means having skipped that decision.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — the note: point-slope answers are simplified to slope-intercept form
Section
Part 1
Concept
When the two facts you are handed are the slope and the y-intercept, there is nothing to solve. The form already has a slot for each of them, so writing the equation is substitution and nothing more.
\[ y = mx + b \]
It is worth knowing why b is the crossing height rather than just remembering that it is. The vertical axis is the set of points where x is zero, so put zero in for x and see what the form says.
\[ x = 0: \quad y = m(0) + b = b \]
So the line passes through the point with coordinates zero and b, which is exactly the point where it crosses the vertical axis. The letter b is not a label somebody attached to that height; it is what the form gives back when x is zero.
Reading the two numbers off a graph takes a little care and no algebra. For the crossing height, look at where the line cuts the vertical axis. For the slope, start at a point where the line passes exactly through a grid corner, step across to the next such corner, and count how far up or down you had to go.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 98 — Example 1 and the slope-intercept route
Worked example
The book gives this one as a picture with no numbers attached, which is the point: everything you need is already drawn, and the job is to read it off carefully rather than to calculate.
Figure (svg): The line y equals three quarters x minus two on axes, with the crossing point at minus two on the vertical axis marked and a dashed step of four across and three up leading to the point four comma one.
Work through the reading before the algebra. The line cuts the vertical axis two units below the origin, and stepping four to the right from there lifts you three units, landing on a grid corner.
Read the y-intercept off the picture
Why: the line crosses the vertical axis two below the origin, so b is negative two.
\[ b = -2 \]
Read the slope as rise over run
Why: from the crossing point, four across and three up, and up over across is the slope.
\[ m = \dfrac{3}{4} \]
Substitute both numbers into slope-intercept form
Why: keep the brackets round the negative value while you put it in, so no sign goes missing.
\[ y = \dfrac{3}{4}x + (-2) \]
That bracket is not fussiness. Plus negative two is the same as minus two, and writing the substitution first and simplifying second means you never have to decide which sign to write from memory.
Simplify the sign
Why: adding negative two is subtracting two.
\[ y = \dfrac{3}{4}x - 2 \]
Check the second grid corner from the graph
Why: the picture says the line passes through four across and one up, so put four in for x and see whether one comes out.
\[ \dfrac{3}{4}(4) - 2 = 3 - 2 = 1 \quad \checkmark \]
Checking a point away from the intercept is what tests the slope as well. If you had read the slope upside down, as four thirds, this line would have given a value of well over three at that x and the check would have failed loudly.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 98 — Example 1
Worked example
The book follows Example 1 with three pairs of numbers and no picture. Do all three, because the third one is the one that makes people hesitate, and hesitating over it is a sign of trusting the form less than you should.
\[ \text{(a) } m = 3, b = 1; \quad \text{(b) } m = -2, b = -4; \quad \text{(c) } m = -\tfrac34, b = \tfrac72 \]
Substitute the first pair
Why: three multiplies x, and one is added on its own.
\[ y = 3x + 1 \]
Substitute the second pair
Why: negative two multiplies x, and adding negative four is subtracting four.
\[ y = -2x + (-4) = -2x - 4 \]
Nothing about the second pair is harder than the first. Two negative numbers went into the two slots, and the only extra step was tidying plus negative four into minus four.
Substitute the third pair
Why: the slots do not care whether the numbers are whole: negative three quarters for the slope, seven halves for the intercept.
\[ y = -\dfrac34 x + \dfrac72 \]
Figure (svg): Three lines drawn on one set of axes: y equals three x plus one, y equals minus two x minus four, and y equals minus three quarters x plus seven halves, each with a dot where it crosses the vertical axis.
The picture shows all three at once, and it is worth a moment. Each line crosses the vertical axis at its own b, and the steepest of the three is the one with slope three, while the shallowest falls gently with slope negative three quarters.
Check each one at x equal to zero
Why: the vertical axis is where x is zero, so each equation should hand back its own intercept.
\[ y(0) = 1, \quad y(0) = -4, \quad y(0) = \tfrac72 \quad \checkmark \]
All three give back the b they were built from, which confirms the two numbers went into the right slots rather than being swapped. A swap would show up here immediately, because a slope in the intercept slot would give the wrong height.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 98 — Guided Practice 1 to 3
Fill the middle
One line of substitution, with the two numbers taken out. Type what belongs in each gap, signs included, and notice that the signs are the only difficulty here.
Fill in the blanks
m = -\tfrac-5/47, \; b = 7 \quad \Longrightarrow \quad y = ___\,x + ___
Why: The slope goes in front of x, sign and all, and the intercept is added on its own. This is Exercise 7 from the lesson: with a slope of negative five quarters and an intercept of seven the equation is y equals negative five quarters x plus seven.
Keep the sign attached to the slope as you move it. Writing five quarters in the gap and hoping to remember the minus later is how a correct reading turns into a wrong equation.
The fraction deserves no special treatment at all. A slope of negative five quarters means that stepping four to the right drops you five, and the form accepts it exactly as it accepted the whole number three.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 101 — Exercise 7
Trap
A question gives a slope of 2 and a y-intercept of 5. Here is a very common first line:
\[ y = 5x + 2 \]
It uses both numbers, it is in the right shape, and it is wrong. The two facts have gone into each other's slots.
This happens because a question often says the numbers in the order intercept first, slope second, and the hand copies them down in the order they were heard rather than the order the form needs.
The form is fixed: the slope always multiplies x, and the intercept always stands alone.
\[ y = 2x + 5 \]
Test both candidates at x equal to zero and the swap shows up at once. The wrong line gives a height of two there and the right one gives five, and five is what the question said the crossing height was.
A slower fix that never fails: write the form down empty first, as y equals something times x plus something, and then fill it. Copying two numbers into a shape you have already drawn is much harder to get the wrong way round.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 98 — the Key Concept box
Prediction
Before Part 3 asks you to build parallel lines, predict what equal slopes already do. Commit to an answer before you reason it out, because the guess you have to defend is the one you remember.
Predict first
Two different lines have the same slope but different y-intercepts. What must be true of them?
Correct: They are parallel
Why: Equal slopes mean equal steepness and equal direction, so the two lines never converge. Different intercepts mean they are not the same line, so they never meet at all, which is what parallel means.
Think about it through the step. Both lines take the same step across and up, over and over; they simply start at different heights. Two walkers taking identical steps from different starting points never meet and never drift apart.
This is the fact Part 3 runs on. If a question asks for a line parallel to a given one, the slope is already decided, and all the question has left to tell you is a point.
Notice also what the prediction rules out. Lines with the same slope cannot cross once, because crossing requires one to gain on the other, and they cannot coincide unless their intercepts agree too.
Section
Part 2
Concept
Suppose you know the slope is m and you know the line passes through one particular point. Take any other point on the line and call it x and y. The slope between the two of them has to be m, because that is what having a slope means.
\[ \dfrac{y - y_1}{x - x_1} = m \]
Figure (svg): A line through the fixed point one comma two and a general point five comma five, with a dashed right triangle whose horizontal leg is labelled x minus x sub one and whose vertical leg is labelled y minus y sub one.
That fraction is the rise over the run of the dashed triangle in the picture, with the known point at one corner and the general point at the other. Nothing has been assumed except that both points lie on the line.
Multiply both sides by the run
Why: to clear the fraction, because an equation with no denominator is easier to substitute into and never divides by zero.
\[ y - y_1 = m(x - x_1) \]
point-slope form — The equation y minus y sub one equals m times the quantity x minus x sub one, where m is the slope and the point with coordinates x sub one and y sub one is a point the line passes through.
So point-slope form claims nothing new. It is the slope formula, multiplied out, and its whole advantage is that it will accept any point at all, not just the one on the vertical axis.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 98 — the Key Concept box: point-slope form
Notation
Four symbols, and two of them carry a small lowered one. Getting those two roles the right way round is the only thing in this form that ever goes wrong, so take it apart before using it.
Annotate
On: \( y - y_1 = m(x - x_1) \)
Say it aloud once: y minus y sub one equals m, bracket, x minus x sub one, close bracket. Being able to say a form properly is a surprisingly reliable guard against writing it wrongly.
One more thing to notice about the shape. The left side has no bracket and the right side does, so the first simplifying move is always to distribute the slope across the bracket, and the second is to shift the number from the left side over.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 98 — Key Vocabulary: point-slope form
Concept
Point-slope form has room for any point on the line, and every point on the line gives a correct equation. That sounds too generous to be true, so it is worth seeing why it is.
The form says the rise over the run between your point and a general point is m. Every point on a straight line satisfies that, because a straight line has one slope everywhere along it. There is nothing special about the point you happened to be given.
\[ y - 2 = \tfrac34 (x - 1) \quad \text{and} \quad y - 5 = \tfrac34 (x - 5) \]
Those two look different and are the same line. Multiply out the first: y equals three quarters x plus five quarters. Multiply out the second: three quarters x minus fifteen quarters plus five, which is three quarters x plus five quarters again.
\[ y = \tfrac34 x + \tfrac54 \]
This is also the reason the book insists on simplifying to slope-intercept form at the end. Point-slope answers can look different while being identical, and slope-intercept form gives every line exactly one appearance, so two answers can be compared at a glance.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — the note on simplifying equations
Worked example
You are given a slope and a point that is not on the vertical axis, which is row two of the table: point-slope form. Write the empty form down first, then fill it.
\[ \text{through } (5, 4), \; m = -3 \]
Write point-slope form before substituting anything
Why: so that the numbers land in slots you have already drawn.
\[ y - y_1 = m(x - x_1) \]
Substitute the slope and the point
Why: negative three for m, five for x sub one, four for y sub one.
\[ y - 4 = -3(x - 5) \]
Distribute the slope across the bracket
Why: negative three times x is negative three x, and negative three times negative five is positive fifteen.
\[ y - 4 = -3x + 15 \]
That plus fifteen is the first place a sign can vanish. A negative slope times a negative coordinate gives a positive number, so if your working shows minus fifteen here, the two minus signs were only counted once.
Add four to both sides to reach slope-intercept form
Why: fifteen plus four is nineteen.
\[ y = -3x + 19 \]
Figure (svg): The line y equals minus three x plus nineteen, with the given point five comma four marked and a dashed step of one across and three down from it.
The picture shows what the algebra produced. The point you were handed is marked on the line, and the crossing height of nineteen was never mentioned in the question: it is what the working discovered.
Check by substituting the given point
Why: put five in for x and see whether four comes out, because that is exactly what passing through that point means.
\[ -3(5) + 19 = -15 + 19 = 4 \quad \checkmark \]
This check is the one to do every single time. It costs one line, it tests the slope and the intercept together, and it catches the sign slips that the rest of this part is about.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — Example 2
Intuition
Point-slope form subtracts the coordinate you were given. When that coordinate is itself negative, the form ends up subtracting a negative number, and subtracting a negative is adding.
\[ x_1 = -1: \quad x - x_1 = x - (-1) = x + 1 \]
Figure (svg): A number line from minus four to six with the point x sub one at minus one and a general point x at three marked, and a brace beneath showing that the distance between them is x minus minus one, which equals x plus one.
The number line shows why the bracket comes out as a plus rather than a minus. The gap between the point at negative one and a point at three really is four units wide, and only the version with the plus gives four.
So write the bracket the long way first, with the negative coordinate still inside its own brackets, and tidy it on the next line. Every worked example in this deck does it that way, and the book does it that way in Example 3.
\[ y - (-3) = m\bigl(x - (-2)\bigr) \quad \Longrightarrow \quad y + 3 = m(x + 2) \]
Two brackets, two sign changes, and neither of them done in your head. It looks slower on the page and it is faster in practice, because the alternative is rewriting the whole question after the answer fails its check.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — Example 3, where the book writes x minus minus two before simplifying
Worked example
Here is the negative coordinate in a question of its own. The slope is positive and simple; the whole difficulty is one bracket, so write that bracket out in full.
\[ \text{through } (-1, 6), \; m = 4 \]
Substitute into point-slope form, leaving the negative coordinate in brackets
Why: x sub one is negative one, so the form subtracts negative one.
\[ y - 6 = 4\bigl(x - (-1)\bigr) \]
Tidy the bracket
Why: minus a negative one is plus one.
\[ y - 6 = 4(x + 1) \]
Stop and notice what would have happened without that first line. Copying the coordinate straight in as minus one gives the bracket x minus one, a different line entirely, and one that misses the given point by eight units.
Distribute the slope
Why: four times x and four times one.
\[ y - 6 = 4x + 4 \]
Add six to both sides
Why: four plus six is ten.
\[ y = 4x + 10 \]
Check the given point
Why: put negative one in for x, and six should come out.
\[ 4(-1) + 10 = -4 + 10 = 6 \quad \checkmark \]
Try the check on the wrong version too, because seeing it fail is useful: the bracket x minus one leads to y equals four x plus two, and at x equal to negative one that gives negative two, not six. The check catches the slip in a single line.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — Guided Practice 4
Fill the middle
The middle line of a substitution, with the bracket removed. The point is negative three across and five up, and the slope is negative two. Type what belongs in the gap, already tidied.
Fill in the blanks
y - 5 = -2\bigl(x + 3\bigr) \quad \Longrightarrow \quad y = -2x - 1
Why: The form subtracts x sub one, and x sub one is negative three, so the bracket is x minus negative three, which tidies to x plus three. Distributing gives negative two x minus six, and adding five to both sides gives negative two x minus one.
Check the finished equation against the point to be sure the gap was right. At x equal to negative three the equation gives six minus one, which is five, and five is the height the point was given at.
If you typed x minus three, run that version through the same check: negative two times negative three is six, minus twelve is... a different answer entirely, and one that does not pass through the point. The check is faster than re-deriving.
Error analysis
The book prints two pieces of wrong working and asks you to describe and correct the error. Here is the first, for the line through the point negative four across and two up with slope three.
Annotate
On: \( \begin{aligned} y - 2 &= 3(x - 4) \\ y - 2 &= 3x - 12 \\ y &= 3x - 10 \end{aligned} \)
Read the four notes in order and notice where the trouble is. Only the first line is wrong, and everything below it is honest work built on a false start, which is why rereading your own working so rarely finds an error of this kind.
The corrected working starts one character differently and finishes somewhere else entirely, which is a fair warning about how much a single sign is worth here.
\[ y - 2 = 3(x + 4) \;\Longrightarrow\; y - 2 = 3x + 12 \;\Longrightarrow\; y = 3x + 14 \]
Now the check passes: three times negative four is negative twelve, and negative twelve plus fourteen is two. Remember the number 14, because this exact line comes back as a check question at the end of the deck.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 102 — Exercise 18
Trap
This is the book's Exercise 19: the line through the point five across and one up, with slope negative two. Here is the working as printed:
\[ y - 5 = -2(x - 1) \]
The x coordinate has gone into the y slot and the y coordinate into the x slot. The rest of the working then runs perfectly to a wrong answer:
\[ y = -2x + 7 \]
It is an easy slip because both coordinates are small positive numbers, so nothing in the line looks unusual.
The first number in a coordinate pair is the across value, and the across value belongs in the bracket with x.
\[ y - 1 = -2(x - 5) \]
Distributing gives negative two x plus ten, and adding one to both sides gives the correct line.
\[ y = -2x + 11 \]
The check separates the two answers instantly. At x equal to five the correct line gives negative ten plus eleven, which is one, and the swapped version gives negative ten plus seven, which is negative three.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 102 — Exercise 19
Step zero
Most of the marks in this lesson are won or lost before the first line of algebra, in the decision about which form to write. Practise making that decision out loud.
Discussion prompt
A question says: write an equation of the line through the point eight across and thirteen up, with slope negative nine. Without solving it, say which form you will use, why, what will go in each slot, and what the check at the end will be.
Saying the plan first also protects you from a subtler failure: starting to substitute into slope-intercept form because it is the more familiar of the two, then getting stuck because there is nowhere to put the point.
If you want the full answer, distributing gives negative nine x plus seventy-two, and adding thirteen gives y equals negative nine x plus eighty-five. The check: negative nine times eight is negative seventy-two, and negative seventy-two plus eighty-five is thirteen.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 101 — Exercise 13
Worked example
The book marks this one as a worked-out solution, which is a fair signal that it is the hardest of its group: the slope is a fraction and the point has a negative coordinate.
\[ \text{through } (7, -3), \; m = -\tfrac47 \]
Substitute, keeping the negative y coordinate in its brackets
Why: the form subtracts y sub one, and y sub one is negative three.
\[ y - (-3) = -\dfrac47 (x - 7) \]
Tidy the left-hand side
Why: minus a negative three is plus three.
\[ y + 3 = -\dfrac47 (x - 7) \]
Notice that this time the negative coordinate was the y one, so the sign change happened on the left of the equation rather than inside the bracket. The form treats both coordinates the same way, so neither is a special case to remember.
Distribute the slope across the bracket
Why: negative four sevenths times x, and negative four sevenths times negative seven is positive four.
\[ y + 3 = -\dfrac47 x + 4 \]
Here is the reward for a slope whose denominator matches the coordinate. Seven cancels exactly, so the awkward fraction leaves no mess behind, which is why textbook questions pair them like that.
Subtract three from both sides
Why: four minus three is one.
\[ y = -\dfrac47 x + 1 \]
Check the given point
Why: put seven in for x: four sevenths of seven is four, so the slope term contributes negative four.
\[ -\dfrac47 (7) + 1 = -4 + 1 = -3 \quad \checkmark \]
The check comes out as negative three, which is the y coordinate given, so both the fraction and the two sign changes survived the working intact.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 101 — Exercise 15
Section
Part 3
Concept
These questions look new and are not. A question that says parallel or perpendicular is not giving you a slope in words; it is telling you where to go and find one. Once you have fetched it, you are back in Part 2 with a slope and a point.
So the work splits cleanly in two. First get the slope of the given line, which means reading it off if the line is already in slope-intercept form. Then decide whether to copy that slope or to transform it.
\[ \text{parallel: } m_2 = m_1 \qquad \text{perpendicular: } m_2 = -\dfrac{1}{m_1} \]
Parallel is a copy, which is the fact you predicted in Part 1: equal slopes never meet. Perpendicular needs the negative reciprocal, which means two separate operations on one number, and both of them have to happen.
\[ m_1 = -4: \quad m_2 = -\dfrac{1}{-4} = \dfrac14 \]
Turn the number upside down, then change its sign. A negative slope becomes a positive one, so if your perpendicular slope has the same sign as the original, one of the two operations was skipped.
One thing the given line never supplies is the intercept. Its crossing height belongs to it, not to your new line, and Part 3 has an error-analysis slide devoted to exactly that confusion.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — Example 3 and the slope relationships from Lesson 2.2
Intuition
This rule is usually handed over as something to memorise. It is worth one minute of looking at, because the picture makes it obvious and memory then has nothing to do.
A slope is a step: go across so far, go up or down so far. Turning a line through a right angle turns its step through a right angle too.
Figure (svg): Two arrows from a common point at right angles. One goes one unit right and four units down, the step of a line of slope minus four. The other goes four units right and one unit up, the step of a line of slope one quarter.
Look at what the turn did to the two numbers. A step of one across and four down became a step of four across and one up: the across and the up have swapped places, and one of them has changed direction.
\[ m_1 = \dfrac{-4}{1} \quad \Longrightarrow \quad m_2 = \dfrac{1}{4} \]
Swapping the two numbers of a fraction is taking the reciprocal, and the change of direction is the change of sign. Put together, they are the negative reciprocal, which is why that phrase has two words in it.
\[ m_1 m_2 = (-4)\left(\tfrac14\right) = -1 \]
The product being negative one is the same fact in a form that is quicker to test. Multiply your two slopes together and if you do not get negative one, the lines you have written are not perpendicular.
OpenStax Algebra and Trigonometry 2e, §4.1 Linear Functions §4.1 — the same slope relationships, stated for linear functions
Discrimination
Six situations. For each one, decide whether the slope of the new line is a copy of the given slope or its negative reciprocal. Do it by reading the words, not by calculating anything.
Sort into buckets
Sort each situation by what happens to the given line's slope.
The point of the six is that only two of them use the words parallel and perpendicular. The others describe the same two relationships through what the lines do, and a question is just as likely to be phrased that way.
Notice that the given lines were never needed. You did not have to find a single slope to sort these, because the phrase decides the operation and the numbers only arrive afterwards.
The one with a fractional slope is worth a second look. Its negative reciprocal would be three, and if a question had asked for perpendicular you would want to see that a fraction turns into a whole number, not into another fraction.
Worked example
The question asks for the line through the point negative two across and three up that is parallel to the line y equals negative four x plus one. Fetch the slope first, then it is a Part 2 question.
\[ \text{through } (-2, 3), \; \text{parallel to } y = -4x + 1 \]
Read the given line's slope
Why: the given line is already in slope-intercept form, so its slope is the number multiplying x.
\[ m_1 = -4 \]
Copy it, because parallel lines have equal slopes
Why: the new line must be just as steep and fall the same way.
\[ m_2 = m_1 = -4 \]
The number 1 in the given line has now done all the work it is going to do, which is none. It is the given line's crossing height, and your line crosses somewhere else.
Substitute the slope and the point into point-slope form
Why: keep the negative x coordinate inside its own brackets.
\[ y - 3 = -4\bigl(x - (-2)\bigr) \]
Tidy the bracket
Why: minus a negative two is plus two.
\[ y - 3 = -4(x + 2) \]
Distribute the slope
Why: negative four times x, and negative four times two is negative eight.
\[ y - 3 = -4x - 8 \]
Add three to both sides
Why: negative eight plus three is negative five.
\[ y = -4x - 5 \]
Figure (svg): Three lines on square axes. The given line y equals minus four x plus one, a parallel line of the same steepness through the point minus two comma three, and a perpendicular line of slope one quarter through the same point.
In the picture the given line is dashed and your answer is the solid line beneath it. They run at the same angle forever, and yours has been slid down so that it passes through the marked point.
Check the point, and check the slope
Why: put negative two in for x, and confirm the slope still matches the given line.
\[ -4(-2) - 5 = 8 - 5 = 3 \quad \checkmark \]
Three is the height that was asked for, and the coefficient of x is still negative four, so both halves of the question have been satisfied. A parallel-line answer has two things to check, not one.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — Example 3, part (a)
Worked example
Same point, same given line, one word changed. That word changes only the slope, and everything after the slope is the working you have just done.
\[ \text{through } (-2, 3), \; \text{perpendicular to } y = -4x + 1 \]
Take the negative reciprocal of the given slope
Why: turn negative four over to get negative one quarter, then change its sign.
\[ m_2 = -\dfrac{1}{m_1} = -\dfrac{1}{-4} = \dfrac14 \]
Check that against the product test before going on: negative four times one quarter is negative one, so these two slopes really are perpendicular. Doing that test here costs a few seconds and protects the rest of the question.
Substitute the new slope and the same point
Why: the point has not changed, so the brackets look exactly as they did in part (a).
\[ y - 3 = \dfrac14 \bigl(x - (-2)\bigr) \]
Tidy the bracket
Why: minus a negative two is plus two.
\[ y - 3 = \dfrac14 (x + 2) \]
Distribute the quarter
Why: a quarter of x, and a quarter of two is a half.
\[ y - 3 = \dfrac14 x + \dfrac12 \]
Fractions turn up here for a reason: a perpendicular slope is a reciprocal, so unless the original slope was one or negative one you should expect one. Nothing has gone wrong.
Add three to both sides
Why: a half plus three is seven halves.
\[ y = \dfrac14 x + \dfrac72 \]
Check the point in the finished equation
Why: put negative two in for x: a quarter of negative two is negative a half.
\[ \dfrac14 (-2) + \dfrac72 = -\dfrac12 + \dfrac72 = 3 \quad \checkmark \]
Three comes out, so the line passes through the given point, and the two answers from parts (a) and (b) cross each other exactly there. That is the only place they can cross, since one is the perpendicular of the other through that very point.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — Example 3, part (b)
Tweak it
The point is fixed at negative two across and three up, and the slider changes the slope. What you are looking at is the whole family of lines through one point, which is the fan of possibilities a single point leaves open.
Parameter explorer
Set the slope so that the line is parallel to y = -4x + 1, then set it so the line crosses that line at a right angle. What two values do the job?
\[ y = {m}(x + 2) + 3 \]
Every line the slider draws passes through the same point, because the expression was built from point-slope form with that point already substituted. Only the steepness is free.
Set the slope to negative four and you have the parallel answer, which simplifies to y equals negative four x minus five. Set it to a quarter and you have the perpendicular one, y equals a quarter x plus seven halves.
Watch the readout as you drag through zero. At a slope of zero the line is flat and its equation collapses to y equals three, which is a perfectly good line through the point and the case Exercise 46 asks about later in this part.
The fan also makes the shape of these questions clear. A point alone leaves infinitely many lines; the words parallel or perpendicular pick exactly one of them out of the fan.
Worked example
The book asks for both a parallel and a perpendicular line through the point four across and two down, relative to the line y equals three x minus one. Do them side by side, since only the slope differs.
\[ \text{through } (4, -2), \; \text{given } y = 3x - 1 \]
Read the given slope and build both new slopes
Why: copy it for the parallel line, turn it over and change its sign for the perpendicular one.
\[ m_1 = 3, \quad m_{\parallel} = 3, \quad m_{\perp} = -\dfrac13 \]
Fetching two slopes at once like this is worth the habit. Both come from the same number, so doing them together means you only read the given line once, and the product test on the pair confirms both of them in a single multiplication.
Substitute the parallel slope and the point
Why: the y coordinate is negative two, so the left side subtracts a negative.
\[ y - (-2) = 3(x - 4) \]
Tidy and distribute
Why: minus a negative two is plus two on the left; on the right, three times negative four is negative twelve.
\[ y + 2 = 3x - 12 \]
Subtract two from both sides
Why: negative twelve minus two is negative fourteen.
\[ y = 3x - 14 \]
Now the same three moves with the other slope. Nothing about the method changes; the only new feature is a fraction, which the form accepts as readily as the whole number did.
Substitute the perpendicular slope and the same point
Why: negative one third multiplies the bracket.
\[ y + 2 = -\dfrac13 (x - 4) \]
Distribute, then subtract two
Why: negative a third of negative four is positive four thirds, and four thirds minus two is negative two thirds.
\[ y = -\dfrac13 x + \dfrac43 - 2 = -\dfrac13 x - \dfrac23 \]
Check both answers at x equal to four
Why: each should return the given height of negative two.
\[ 3(4) - 14 = -2; \qquad -\dfrac13 (4) - \dfrac23 = -\dfrac{4}{3} - \dfrac23 = -2 \quad \checkmark \]
Both pass, and as a second test the two slopes multiply to negative one, so the second line really is perpendicular to the first. Two checks, two lines of arithmetic, and the question is closed.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — Guided Practice 5
Error analysis
Here is a wrong answer that is much more tempting than a sign slip, because it looks like a finished piece of work. The question asked for the line through the point negative two across and three up, parallel to y equals negative four x plus one.
Annotate
On: \( y = -4x + 1 \quad \text{(claimed answer)} \)
The general lesson is about what a given line is for. It supplies a slope and nothing else, and every other number in your answer has to come from the point you were given.
\[ y = -4x - 5 \quad \text{at } x = -2: \; 8 - 5 = 3 \quad \checkmark \]
One line of checking would have caught it. Substituting the point into the claimed answer gives nine rather than three, which is a difference of fourteen, and a fourteen-unit miss is not a rounding problem.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 99 — Example 3, part (a)
Comparison
Both answers to Example 3 came from one point and one given line. Laying them side by side shows exactly which parts of a question feed which parts of an answer.
Comparison matrix
| Parallel answer | Perpendicular answer | |
|---|---|---|
| slope of the given line | −4 | −4 |
| what happens to it | copied unchanged | negative reciprocal |
| new slope | −4 | 1/4 |
| point used | (−2, 3) | (−2, 3) |
| final equation | y = −4x − 5 | y = x/4 + 7/2 |
| relation to the given line | never meets it | meets it at a right angle |
Read across the middle rows and you can see the whole difference between the two questions. One word in the question changed one number in the working, and that number then changed every number after it.
Read down the point row instead and notice it never changes. The point is what anchors your line in place, and it does the same job whichever slope you end up using.
The bottom row is the one to keep for checking your own work. If your parallel answer meets the given line somewhere, or your perpendicular answer does not, something above it went wrong.
Edge cases
Exercise 46 asks for four lines through the point three across and four up, and none of them needs point-slope form at all. They are worth doing because they are the cases where the formulas run out.
Figure (svg): Square axes carrying the horizontal line y equals minus two and the vertical line x equals minus two as dashed given lines, and through the point three comma four the horizontal line y equals four and the vertical line x equals three.
The given lines are the dashed ones: the horizontal line y equals negative two, and the vertical line x equals negative two. Ask what parallel and perpendicular mean for each.
Discussion prompt
Write an equation of the line through the point three across and four up that is (a) parallel to y = -2, (b) perpendicular to y = -2, (c) parallel to x = -2, and (d) perpendicular to x = -2.
The vertical cases are the genuinely special ones. A vertical line has no slope, because going from one of its points to another has a run of zero and you cannot divide by zero, so there is no m to put into any form.
Which is also why x equals three cannot be written as y equals something. That form gives one height for each across value, and a vertical line has every height at a single across value.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 103 — Exercise 46
Section
Part 4
Concept
This case looks like a third method and is not. Two points contain a slope; you extract it with the slope formula, and from that moment on you have a slope and a point, which is Part 2.
\[ m = \dfrac{y_2 - y_1}{x_2 - x_1} \]
The only rule about the formula is consistency. Whichever point you call the first one, its coordinates must go in the same position on the top and on the bottom, because reversing one and not the other flips the sign of the answer.
So the route has two stages and one habit. Stage one: find the slope. Stage two: put that slope and either point into point-slope form and simplify. The habit: check with the point you did not use.
\[ \text{two points} \;\longrightarrow\; m \;\longrightarrow\; y - y_1 = m(x - x_1) \;\longrightarrow\; y = mx + b \]
Checking with the unused point is better than checking with the one you substituted, and it is the one thing this part adds to your habits. The point you built the equation from is almost guaranteed to fit; the other one only fits if the slope was right too.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 100 — Example 4 and the Key Concept box
Worked example
Two points, no slope given, so the slope formula comes first. Label the points before you substitute, because the labels are what keep the subtractions consistent.
\[ (x_1, y_1) = (5, -2), \qquad (x_2, y_2) = (2, 10) \]
Subtract the y values on top and the x values underneath
Why: in the same order both times: second point minus first point.
\[ m = \dfrac{10 - (-2)}{2 - 5} \]
The top has a subtraction of a negative in it, exactly as the brackets in Part 2 did. Ten minus negative two is twelve, not eight, and that is the most common arithmetic slip in this whole part.
Simplify the fraction
Why: twelve over negative three is negative four.
\[ m = \dfrac{12}{-3} = -4 \]
Figure (svg): The line y equals minus four x plus eighteen through the points two comma ten and five comma minus two, with a dashed right triangle showing a run of three to the right and a fall of twelve.
In the picture the run of three to the right comes with a fall of twelve, so the slope of negative four is visible before any algebra. A quick glance at two points is often enough to know whether your slope should be positive or negative, and that alone catches sign errors.
Substitute the slope and one of the points into point-slope form
Why: the book chooses the point two across and ten up, because both coordinates are positive and the brackets stay tidy.
\[ y - 10 = -4(x - 2) \]
Distribute the slope
Why: negative four times x, and negative four times negative two is positive eight.
\[ y - 10 = -4x + 8 \]
Add ten to both sides
Why: eight plus ten is eighteen.
\[ y = -4x + 18 \]
Check with the point you did not use
Why: put five in for x, and the other given height of negative two should come out.
\[ -4(5) + 18 = -20 + 18 = -2 \quad \checkmark \]
That is the check worth doing here. The point two across and ten up was built into the equation and would fit almost any slope; the point five across and two down only fits if the slope of negative four was right as well.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 100 — Example 4
Prediction
Example 4 chose the tidier of its two points. Before the next slide shows you, decide what would have happened if it had chosen the other one.
Predict first
You find the slope from two points, then substitute one of them into point-slope form. What happens if you use the other point instead?
Correct: The simplified equation is exactly the same
Why: Both points lie on the same line, and point-slope form accepts any point on the line. The middle lines of the working look different, but simplifying to slope-intercept form gives one and the same equation.
It is worth being sure about why. The slope was found once and does not depend on the substitution, and both points sit on the same straight line, so both make true statements about it.
What does change is how pleasant the arithmetic is. A point with a negative coordinate forces an extra sign change, so choosing the tidier point is a real convenience, just not a mathematical requirement.
If your two versions do not simplify to the same equation, that is information: one of the two substitutions has an error in it, and comparing them line by line will find it faster than starting again.
Picture it
Here is the promise of the last slide, drawn. Two panels, the same two given points, and a different one used as the anchor in each.
Figure (svg): Two panels showing the same line. In the left panel the point two comma ten is used as the anchor and the other point is left hollow; in the right panel the anchor is five comma minus two instead. The line drawn is identical.
In the left panel the point two across and ten up is the anchor and the other point is left hollow; in the right panel the roles are swapped. The line drawn is identical, because it is the same line.
\[ y - 10 = -4(x - 2) \qquad y - (-2) = -4(x - 5) \]
Multiply the second one out to see the identity rather than trusting it. The left side becomes y plus two, the right side becomes negative four x plus twenty, and subtracting two from both sides gives negative four x plus eighteen.
\[ y + 2 = -4x + 20 \;\Longrightarrow\; y = -4x + 18 \]
So both routes land on the same equation. This is the reason the last step of every question in this book is to simplify: two correct answers that look different become one answer that can be compared with the back of the book.
Worked example
This pair has a negative coordinate in each point, so it exercises the sign handling in both stages. Label the points first.
\[ (x_1, y_1) = (-2, 5), \qquad (x_2, y_2) = (4, -7) \]
Apply the slope formula
Why: second point minus first point, on the top and on the bottom.
\[ m = \dfrac{-7 - 5}{4 - (-2)} \]
Simplify top and bottom separately
Why: negative seven minus five is negative twelve; four minus negative two is six.
\[ m = \dfrac{-12}{6} = -2 \]
Notice that the two minus signs behaved differently. On the top a subtraction made the number more negative, and on the bottom subtracting a negative made it larger. Doing them on separate lines is what keeps them straight.
Substitute the slope and the first point
Why: the x coordinate is negative two, so the bracket subtracts a negative.
\[ y - 5 = -2\bigl(x - (-2)\bigr) = -2(x + 2) \]
Distribute the slope
Why: negative two times x, and negative two times two is negative four.
\[ y - 5 = -2x - 4 \]
Add five to both sides
Why: negative four plus five is one.
\[ y = -2x + 1 \]
A crossing height of one, from two points that were nowhere near the vertical axis. That is what this route buys you: the intercept is computed rather than measured.
Check with the unused point
Why: put four in for x, and negative seven should come out.
\[ -2(4) + 1 = -8 + 1 = -7 \quad \checkmark \]
Negative seven is right, so the slope and the intercept are both confirmed at once. Had the slope come out as positive two by mistake, this check would have given nine instead and the error would have been obvious.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 100 — Guided Practice 6
Ranking
Six moves, shuffled. Order them the way you would actually carry them out, and notice that two of them could not possibly come earlier than they do.
Put in order
Order the steps for writing the equation of a line through two given points.
Why: Labelling comes first because it is what makes the two subtractions consistent. The slope has to exist before it can be substituted, and the check has to come last because it tests the finished equation. The middle two are the Part 2 routine, unchanged.
The first move is the one people leave out, and leaving it out is what produces a slope with the wrong sign. Writing the labels down takes four seconds and removes the whole class of error.
The last move is the one people leave out for a different reason: the question appears to be finished. It is not finished until you know it passes through both of the points you were given.
The middle three are just Part 2 again. If you can already do a slope-and-a-point question, this route adds exactly one new step at the front and one new check at the back.
Worked example
The book's eighth checkpoint gives a pair whose slope is not a friendly number, which is the case people abandon. Work it through as a fraction and nothing goes wrong.
\[ (x_1, y_1) = (-1, 2), \qquad (x_2, y_2) = (10, 0) \]
Apply the slope formula
Why: zero minus two on the top, ten minus negative one underneath.
\[ m = \dfrac{0 - 2}{10 - (-1)} = \dfrac{-2}{11} \]
Two over eleven will not simplify, and there is no reason it should. A slope is a number, not necessarily a tidy one, and it goes into the form exactly as it is.
Substitute the slope and the second point
Why: the point ten across and zero up is the tidier choice, since its y coordinate is zero and the left side stays simple.
\[ y - 0 = -\dfrac{2}{11}(x - 10) \]
Choosing the point on the horizontal axis was deliberate. Its y coordinate of zero means there is nothing to move across at the end, so the answer arrives one step earlier.
Distribute the slope
Why: negative two elevenths times x, and negative two elevenths times negative ten is positive twenty elevenths.
\[ y = -\dfrac{2}{11}x + \dfrac{20}{11} \]
Check with the unused point
Why: put negative one in for x: negative two elevenths of negative one is two elevenths.
\[ \dfrac{2}{11} + \dfrac{20}{11} = \dfrac{22}{11} = 2 \quad \checkmark \]
Two comes out exactly, with no decimals and no rounding, which is the advantage of keeping the slope as a fraction all the way through. Turning two elevenths into 0.18 early would have made this check look approximate when it is exact.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 100 — Guided Practice 8
Trap
Two points: three across and one up, and seven across and nine up. Here is the slope calculation as it often gets written:
\[ m = \dfrac{9 - 1}{3 - 7} = \dfrac{8}{-4} = -2 \]
The top went second point minus first point, and the bottom went first point minus second point. Each subtraction is fine on its own and the pair of them is not.
The answer comes out as the exact negative of the truth, so it looks perfectly plausible: a whole number, no fraction, nothing to raise an eyebrow at.
Keep the order the same in both places. Second minus first on top means second minus first underneath.
\[ m = \dfrac{9 - 1}{7 - 3} = \dfrac{8}{4} = 2 \]
The picture settles it without any algebra. Moving from the first point to the second goes to the right and upwards, and a step that goes right and up is a positive slope.
If you ever doubt a slope, sketch the two points roughly and ask whether the line climbs or falls. The sketch cannot give you the number, but it always gives you the sign, and the sign is what this slip destroys.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 100 — the slope formula as Example 4 uses it
Worked example
This one is printed as a picture with two labelled points, so the first job is reading rather than calculating. That makes it a good rehearsal for the visual questions on a test.
Figure (svg): A line through the points minus one comma five and three comma four, with a dashed step of four to the right and one down between them.
The two marked points are one to the left and five up, and three across and four up. Read them carefully: the left-hand point has a negative across value, and that negative will matter twice.
\[ (x_1, y_1) = (-1, 5), \qquad (x_2, y_2) = (3, 4) \]
Find the slope from the two points
Why: four minus five on the top, three minus negative one underneath.
\[ m = \dfrac{4 - 5}{3 - (-1)} = \dfrac{-1}{4} \]
The dashed step in the picture agrees: four units to the right and one unit down. A shallow fall like that has to give a small negative slope, and a quarter is small.
Substitute the slope and the second point
Why: three across and four up, so both coordinates are positive.
\[ y - 4 = -\dfrac14 (x - 3) \]
Distribute the slope
Why: negative a quarter times x, and negative a quarter times negative three is positive three quarters.
\[ y - 4 = -\dfrac14 x + \dfrac34 \]
Add four to both sides
Why: three quarters plus four is nineteen quarters.
\[ y = -\dfrac14 x + \dfrac{19}{4} \]
Check with the point that was not used
Why: put negative one in for x: negative a quarter of negative one is a quarter.
\[ \dfrac14 + \dfrac{19}{4} = \dfrac{20}{4} = 5 \quad \checkmark \]
Five is the height of the other marked point, so the line really does pass through both. The intercept of nineteen quarters is four and three quarters, which matches where the drawn line crosses the vertical axis in the picture.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 102 — Exercise 29
Counterexample
The two-point route feels universal, and there is exactly one pair of points that breaks it. Finding that pair yourself is more useful than being told about it.
Figure (svg): Axes with two points at three comma one and three comma seven joined by a vertical line, and two points at one comma minus one and five comma minus one joined by a horizontal line.
Discussion prompt
Try to find the slope of the line through the points three across and one up, and three across and seven up. Say what happens, what the line looks like, and what its equation is. Then do the same for the pair one across and one down, and five across and one down.
The asymmetry is worth naming. A zero on the top of the slope fraction is fine and means flat; a zero on the bottom is fatal and means vertical.
So when a slope calculation gives you a zero denominator, nothing has gone wrong with your arithmetic. It is the plane telling you that this line cannot be written as y equals something, and that the honest answer names the across value instead.
Look out for it in the two given points before you start: if their across values are equal, write the vertical equation down immediately and skip the formula entirely.
Section
Part 5
Concept
A model is the same algebra pointed at real measurements. Nothing about the method changes; what changes is that you choose what the letters stand for, and a good choice makes the answer readable.
The choice that matters most is where to put zero. If a measurement is taken in 1993 and you let x be years since 1993, then that measurement sits at x equal to zero, which is the vertical axis, so its value is the intercept and you get b for free.
\[ x = \text{years since } 1993, \quad y = \text{participants (millions)} \]
Two measurements then give you two points, which is Part 4, and one of them is already on the axis. So the whole modelling routine is: define the variables, notice the slope is a rate of change, and write the line.
Say what the units are as you go, because units are how you catch a nonsense answer. Millions of people divided by years is millions of people per year, and that is what the slope of this model has to mean.
The one thing a model adds is a duty to interpret. A number in a model is not finished when it is calculated; it is finished when you can say in a sentence what it tells somebody about the situation.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 100 — Example 5, Step 1
OpenStax Algebra and Trigonometry 2e, §4.2 Modeling with Linear Functions §4.2 — building a linear model from two data values
Worked example
In the school year ending 1993, two million girls took part in United States high school sports. By 2003 the number had reached 2.86 million. The task is a linear equation that models participation.
Define the variables, putting zero at the first measurement
Why: let x be years since 1993 and y the number of participants in millions, so that 1993 sits on the vertical axis.
\[ 1993: x = 0; \qquad 2003: x = 10 \]
That definition is the whole trick of this example. Had x been the calendar year, the intercept would be the participation in year zero, a number with no meaning at all, and the arithmetic would involve four-digit subtractions for nothing.
Read off the initial value
Why: at x equal to zero the participation was 2.00 million, and x equal to zero is exactly what the intercept means.
\[ b = 2.00 \]
Find the rate of change with the slope formula
Why: the two points are zero and 2.00, and ten and 2.86.
\[ m = \dfrac{2.86 - 2.00}{10 - 0} = \dfrac{0.86}{10} = 0.086 \]
Figure (svg): Two data points plotted with years since 1993 across and millions of participants up: zero comma two point zero zero and ten comma two point eight six, joined by a straight line of slope 0.086.
The picture shows the two measurements and the line through them. The rise of 0.86 million spread over ten years is what makes the slope 0.086, and that number is a rate: millions of participants per year.
Write the model in slope-intercept form
Why: the rate multiplies the time, and the initial value is added on.
\[ y = 0.086x + 2.00 \]
Check both measurements in the model
Why: at x equal to zero it must give 2.00, and at x equal to ten it must give 2.86.
\[ 0.086(0) + 2.00 = 2.00; \qquad 0.086(10) + 2.00 = 2.86 \quad \checkmark \]
Both data values come back exactly, so the model passes through both measurements. Read it out loud once as a sentence: participation started at two million and has risen by about 0.086 million, or 86 thousand, every year.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 100 — Example 5
Intuition
In Part 1 the slope was a step on a grid. In a model it is the same number wearing units, and reading those units off is what turns algebra into a statement about the world.
Take the units from the two axes and divide them, exactly as the slope formula divides the numbers. The top of the fraction is a difference in whatever y measures; the bottom is a difference in whatever x measures.
\[ m = \dfrac{\Delta y}{\Delta x} = \dfrac{\text{millions of people}}{\text{years}} \]
So the sports model's slope of 0.086 is not simply the number 0.086. It is 0.086 million people per year, which is about 86 thousand more girls playing each year, and that is a sentence somebody could put in a newspaper.
Guided Practice 9 gives the boys' figures for the same decade: 3.42 million in 1993 rising to 3.99 million in 2003. The same two moves give a rate of 0.057 and a model of y equals 0.057x plus 3.42.
\[ m = \dfrac{3.99 - 3.42}{10} = 0.057 \;\Longrightarrow\; y = 0.057x + 3.42 \]
Now compare the two rates rather than the two totals. More boys took part throughout, but the girls' number grew half again as fast, and noticing that is the kind of reading a model exists for.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 100 — Guided Practice 9
Error analysis
Here is the modelling mistake that costs the most marks, on the sports data from Example 5. The algebra is faultless and the answer is useless.
Annotate
On: \( m = \dfrac{2.86 - 2.00}{2003 - 1993} = 0.086, \quad y = 0.086x + 2.00 \)
Notice which part survived and which part did not. A rate of change does not care where you put zero, because it is built from differences, and a difference of two years is the same number whichever way the years are labelled. An intercept cares enormously, because it is a value at one particular place.
The moral is not that calendar years are forbidden. It is that the intercept has to be the value at x equal to zero, whatever zero has been defined to be, and you cannot borrow a value from somewhere else and call it b.
\[ y = 0.086x + 2.00 \;\text{at}\; x = 2003: \; 174.26 \quad \text{not } 2.86 \]
One substitution exposed it. Checking a model against its own data is the same habit as checking a line against its own point, and it is just as cheap.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 100 — the Avoid Errors note beside Example 5
Estimation
Exercise 55 gives two measurements of the average monthly cost of expanded basic cable: 21.62 dollars in 1994 and 38.23 dollars in 2004. Before finding the model, commit to a prediction for 2010.
Predict first
Monthly cable cost rose from 21.62 dollars in 1994 to 38.23 dollars in 2004. Assuming the same steady rise, what would you predict for 2010?
Correct: About 48 dollars
Why: The cost rose by about 16.61 dollars in ten years, so roughly 1.66 dollars a year. From 2004 to 2010 is six more years, which adds about ten dollars to 38.23 and lands just over 48.
The arithmetic you just did in your head is the whole model: find the yearly rise, multiply it by the number of extra years, and add. The algebra that follows only tidies that reasoning into one equation.
Estimating first is worth the thirty seconds because it gives you something to compare the answer with. A model that predicts 174 dollars a month, or 25, would then look wrong immediately rather than looking like maths.
Notice that the estimate leaned on the rise being steady. That assumption is what the word linear means here, and it is an assumption about the world rather than a fact about the numbers.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 104 — Exercise 55
Worked example
Now build it properly. Two measurements, ten years apart, so this is the two-point route with the variables chosen to make the first measurement the intercept.
Define the variables with zero at the first measurement
Why: let x be years since 1994 and y the average monthly cost in dollars.
\[ 1994: x = 0, \; y = 21.62; \qquad 2004: x = 10, \; y = 38.23 \]
Find the rate of change
Why: the rise in cost divided by the ten years it took.
\[ m = \dfrac{38.23 - 21.62}{10 - 0} = \dfrac{16.61}{10} = 1.661 \]
So the cost rose by about one dollar sixty-six each year. That is the number a reader of the model actually wants, and it is the slope.
Write the model
Why: the intercept is the 1994 cost, because 1994 is where x is zero.
\[ y = 1.661x + 21.62 \]
Figure (svg): Monthly cable cost against years since 1994: the points zero comma 21.62 and ten comma 38.23 on a rising line, with a hollow point at sixteen comma 48.20 marking the prediction for 2010.
The two filled points are the measurements and the hollow one is the prediction. Notice how far outside the data the prediction sits: six years past the last measurement, which is where a model starts to be an opinion rather than a summary.
Predict the 2010 cost
Why: 2010 is sixteen years after 1994, so substitute sixteen for x.
\[ y = 1.661(16) + 21.62 = 26.576 + 21.62 = 48.196 \]
Check the model against both measurements
Why: at x equal to zero and x equal to ten it must return the two costs it was built from.
\[ 1.661(0) + 21.62 = 21.62; \qquad 1.661(10) + 21.62 = 38.23 \quad \checkmark \]
Both come back exactly, so the model fits its data, and the prediction of about 48 dollars and 20 cents a month for 2010 agrees with the estimate you made a slide ago. Agreement between a guess and a calculation is the best evidence either of them will get.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 104 — Exercise 55
Worked example
Tyre pressure rises about one pound per square inch for every ten degree rise in air temperature, and at 55 degrees a particular tyre reads 30 psi. Write the pressure as a function of temperature.
This question hands you a slope and a point, so it is Part 2. What makes it different is that the slope is described in a sentence and has to be turned into a number first.
Turn the described rate into a slope
Why: one psi for every ten degrees is one divided by ten.
\[ m = \dfrac{1 \text{ psi}}{10 \text{ degrees}} = 0.1 \]
Name the variables and the given point
Why: let T be the air temperature in degrees Fahrenheit and P the pressure in psi; the measurement gives one point.
\[ (T_1, P_1) = (55, 30) \]
Substitute into point-slope form
Why: the coordinates are both positive, so no bracket changes sign.
\[ P - 30 = 0.1(T - 55) \]
Distribute and simplify
Why: a tenth of 55 is 5.5, and 30 minus 5.5 is 24.5.
\[ P = 0.1T - 5.5 + 30 = 0.1T + 24.5 \]
Figure (svg): Tyre pressure in pounds per square inch plotted against air temperature in degrees Fahrenheit, a straight line of slope one tenth through the measured point fifty-five comma thirty.
The intercept of 24.5 is the pressure the model predicts at a temperature of zero degrees Fahrenheit. That is a real prediction here, unlike the year-zero nonsense two slides ago, because zero degrees is a temperature that genuinely happens.
Check the given measurement, then read a second value off
Why: put 55 in for the temperature, then try 75 to see the rate at work.
\[ 0.1(55) + 24.5 = 30 \quad \checkmark; \qquad 0.1(75) + 24.5 = 32 \]
The measurement comes back exactly, and twenty degrees warmer gives two psi more, which is the stated rate of one psi per ten degrees. Both halves of the question have now been confirmed from the finished equation.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 104 — Exercise 56
Matching
Four models from this lesson and its exercises. Match each to the sentence that says what its two numbers mean, and notice that in every case the intercept is a starting amount and the slope is a rate.
Match the pairs
Why: In each model the number standing alone is the value when the other variable is zero, and the number multiplying the variable is the rate at which the quantity changes. The letters differ, the reading does not.
The housing model is Exercise 51: a volunteer group has restored fifty houses so far and plans fifteen a year, so the fifty is already done and the fifteen accumulates with time.
That one is worth pausing on because it is written straight down, with no slope formula at all. You were handed a starting amount and a rate, which is the slope and the intercept in plain English, so slope-intercept form takes them directly.
Reading a model in words is also how you catch a model built wrongly. If the sentence you can say about your equation is absurd, the equation is wrong however clean the algebra looked.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 103 — Exercise 51
Worked example
Not every situation gives you a rate and a starting value. You have thirty dollars for songs, company A charges 79 cents each and company B charges 99 cents each. Write an equation modelling the situation.
Nothing here is changing over time. There are two quantities you choose, and one total they have to add up to, which is a different shape of model and calls for a different form.
Write the verbal model first
Why: price per song times number of songs is money spent, and the two amounts spent add up to the budget.
\[ \text{A price} \cdot \text{A songs} + \text{B price} \cdot \text{B songs} = \text{budget} \]
Name the variables and substitute the prices
Why: let x be songs from company A and y songs from company B.
\[ 0.79x + 0.99y = 30 \]
That is standard form: both variables on the same side, a number on the other. The book leaves it there, and leaving it there is right, because neither variable is more the subject than the other.
Figure (svg): A falling line in the first quadrant showing how many songs can be bought from each of two companies on a thirty dollar budget, crossing the axes at about thirty-eight songs and about thirty songs.
The line shows every way of spending exactly thirty dollars. Its two intercepts are the extreme plans: about 38 songs if you buy only from the cheaper company, or about 30 if you buy only from the dearer one.
Read one plan off the model
Why: buy twenty songs from company A and solve for the rest.
\[ 0.99y = 30 - 0.79(20) = 30 - 15.80 = 14.20 \;\Longrightarrow\; y = 14.34 \]
Fourteen point three four songs cannot be bought, so the honest answer is fourteen, which is the modelling detail the algebra will never mention. A model describes the arithmetic; you have to supply the common sense.
Check the plan against the budget
Why: twenty songs at 79 cents and fourteen at 99 cents, added up.
\[ 0.79(20) + 0.99(14) = 15.80 + 13.86 = 29.66 \le 30 \quad \checkmark \]
Twenty-nine dollars sixty-six is within the budget with 34 cents to spare, which is exactly what rounding fourteen point three four down should give. The plan is affordable and no larger whole number of songs would be.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 101 — Example 6
Real world
Guided Practice 10 changes both prices and asks for the model again. It takes ten seconds, which is the point: once a model is built its shape survives a change of numbers.
Discussion prompt
Company A now charges 69 cents a song and company B charges 89 cents, and the budget is still thirty dollars. Write the equation. Then say how many songs you could buy if you used only company A, and only company B, and explain why the two numbers went up.
Notice how the whole-number rounding goes. You round down in both cases, because the last fraction of a song is one you cannot afford, and rounding up would put you over budget.
This is where models earn their keep. Build one equation with letters in the price positions and every future change of price is a substitution, not a fresh problem.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 101 — Guided Practice 10
Section
Part 6
Pattern
Everything in this deck is one decision followed by one routine. The decision is about what you were given; the routine ends with the same check whichever branch you took.
Figure (svg): A flow diagram. The question at the top asks what you were given; three branches lead to the three routes, and all three funnel into one closing box that says simplify to slope-intercept form and substitute the point back in.
Read the diagram top down once, then bottom up. Reading it upwards is the more useful direction when you are stuck halfway through a question: you know the destination, so ask which branch you are supposed to be on.
The fifth line is the only place where the answer's form is a choice rather than a rule, and the deciding question is whether one quantity depends on another or whether two quantities share a total.
The sixth line is the one that turns a probably into a certainly. Nothing else in the list can tell you whether you have made a mistake.
Sorting
Six questions, none of which needs solving. Sort each one by the route it puts you on, and say to yourself which words in the question settled it.
Sort into buckets
Sort each question by the route it needs.
The pair that mention the vertical axis are the same question phrased two ways, once in symbols and once in words. A question will not always use the word intercept, so listen for what it means.
The parallel one is worth noticing: it looks like it belongs in its own group and it does not, because fetching a slope from a given line leaves you exactly where being told the slope would have left you.
The two-point pair have very different numbers, one pair small and decimal and the other large, and the route does not care. The size of the numbers changes how much arithmetic you do and nothing about which form you write.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 102 — Exercises 36 and 38
Concept
Five kinds of question, one closing move. Whatever route you took, the equation you wrote is supposed to pass through a particular point, and there is a one-line test for that.
\[ \text{claim: } y = mx + b \text{ passes through } (p, q) \quad \Longleftrightarrow \quad mp + b = q \]
Put the across value in for x, work out the right-hand side, and see whether the height that comes out is the height you were given. If it is, the point is on your line; if not, something above needs finding.
The check is strongest when you use a point that the working did not use. With two given points, substituting the one you built the equation from mainly tests your arithmetic, whereas the other one tests the slope as well.
\[ y = -4x + 18: \quad -4(5) + 18 = -2 \quad \checkmark \]
A perpendicular question earns a second check for free. Multiply your new slope by the given slope and confirm you get negative one, which takes about as long as reading this sentence.
None of this is about being cautious for its own sake. A wrong sign in a bracket is invisible when you reread your working, because every line after it is copied correctly, and the substitution is the only thing that notices.
Check
This is Exercise 18 asked as a question rather than as an error to describe. Write the bracket out in full before you look at the options.
Check your understanding
Which is an equation of the line through (−4, 2) with slope 3?
Answer: A
Why: Point-slope form gives y minus 2 equals 3 times the bracket x minus negative four, which is x plus four. Distributing gives 3x plus 12, and adding 2 to both sides gives 3x plus 14. Substituting negative four returns negative twelve plus fourteen, which is two, the height that was given.
Every choice shares the slope of 3, so the slope is not what is being tested. The test is entirely about what happens to the bracket when the x coordinate is negative.
The quickest way to separate four options like these is to substitute the given point into each, which takes one multiplication and one addition apiece. Only the correct line returns a height of two.
Notice that two of the wrong answers are off by exactly twenty-four and one is off by twelve. Those gaps are the signatures of the two possible sign slips, and neither is a small error.
If you found yourself hesitating, write the substitution line out in full on paper: y minus 2 equals 3, bracket, x minus negative four. Once that line exists, the rest is arithmetic you cannot get wrong.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 102 — Exercise 18
Check
The book's own multiple-choice question, Exercise 26. Two decisions in it: what the perpendicular slope is, and where the point goes.
Check your understanding
Which is an equation of the line through (1, 4) that is perpendicular to y = 2x − 3?
Answer: C
Why: The given slope is 2, so the perpendicular slope is negative one half. Point-slope form gives y minus 4 equals negative one half times the bracket x minus one, so y equals negative one half x plus one half plus four, which is negative one half x plus nine halves. Substituting x equal to one gives negative one half plus nine halves, which is four.
Test the slopes first, since that eliminates two options in one multiplication. Only a slope of negative one half multiplies with two to give negative one.
Then separate the two survivors with the point. Both have the right slope, and only one of them returns a height of four when one goes in for x.
The wrong option that keeps the slope of 2 is the most instructive of the three. It is what you get by treating perpendicular as though it were parallel, which is why Part 3 spent a whole sorting slide on the difference.
Notice that the difference between the two correct-slope options is exactly one half, which is the amount the bracket contributes. Skipping the distribution is what produces the near miss.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 102 — Exercise 26
Check
Exercise 39 turns the lesson inside out. You are given a slope and a point, and asked which of four other points is on the same line, so you have to build the equation before you can test anything.
Check your understanding
A line passes through (9, −5) with slope −6. Which point also lies on it?
Answer: C
Why: Point-slope form gives y plus 5 equals negative 6 times the bracket x minus nine, so y equals negative 6x plus 54 minus 5, which is negative 6x plus 49. Testing the options, x equal to seven gives negative 42 plus 49, which is 7, so the point seven across and seven up is on the line.
Build the equation first and the rest is four quick substitutions. Trying to reason it out from the slope alone is possible but slower and much easier to fumble.
There is a shortcut worth seeing as well. Three of the options sit at the same across value, so one substitution settles all three at once, and only one option is left to test.
You could also walk it out with steps. From nine across and five down, moving two to the left raises you twelve, landing on seven across and seven up, which agrees with the equation.
Note the sign trap hiding in the first line. The given y coordinate is negative five, so point-slope form gives y minus negative five, which is y plus five, and forgetting that leaves the intercept ten out.
McDougal Littell Algebra 2 (Texas Edition), Ch. 2 Linear Equations and Functions — Lesson 2.4 Write Equations of Lines §2.4, p. 102 — Exercise 39
Explain it to yourself
One idea has carried the whole deck, and writing it out in your own sentences is what fixes it. Try the answer before you read the one provided.
Discussion prompt
In three or four sentences, explain why point-slope form is the workhorse of this lesson and slope-intercept form is mostly the destination. Mention what each form has room for, why two points and a parallel line both end up in the same place, and what you would check at the end of any of these questions.
If your explanation talked mostly about formulas rather than about what you were given, write it again. The forms are containers; the question decides which container you need.
A good test of whether you have it: could you look at ten exam questions and sort them into the three routes without solving any of them? That sorting is the skill this lesson is really teaching.
Try explaining it to somebody a year behind you as well. The sentence that usually does the work is that a line needs a direction and a position, and that all three cases are just different ways of being handed those two facts.
Exit ticket
One question that uses the whole deck: a slope fetched from a given line, a point with a negative coordinate, and a check at the end.
\[ \text{through } (-3, -1), \; \text{perpendicular to } y = \tfrac32 x + 4 \]
Discussion prompt
Write an equation of this line in slope-intercept form. Show the bracket before you tidy it, and finish by substituting the given point. Then say, in one sentence, how you would know your answer is perpendicular to the given line and not parallel to it.
Both coordinates of the point are negative, so both brackets change sign when they are tidied. Write them out in full and that is bookkeeping rather than thinking.
The perpendicular slope is worth a second look too: the reciprocal of three halves is two thirds, so turning a fraction over gives another fraction, and then the sign flips.
If your answer came out as y equals three halves x plus something, you copied the slope instead of transforming it, which is the parallel answer to a perpendicular question. The product test catches that in one multiplication.
Finish by asking the question the last check answered: does my line go through the point I was given, and does it meet the given line the way the question asked? Two tests, two lines, and the question is genuinely closed.
Recap
One question opens every problem in this lesson: what were you given? The table below is that question with its three answers, and the last column is the habit that makes any of it trustworthy.
| You were given | Form to write | Then | Check with |
|---|---|---|---|
| slope and y-intercept | y = mx + b | nothing, it is done | the height at x = 0 |
| slope and a point | y − y₁ = m(x − x₁) | distribute, then simplify | that point |
| two points | slope formula, then point-slope | distribute, then simplify | the unused point |
| a line to be parallel to | same slope, then point-slope | distribute, then simplify | the point, and the slope |
| a line to be perpendicular to | negative reciprocal, then point-slope | distribute, then simplify | the slopes multiply to −1 |
Four of the five rows finish in point-slope form, so if you remember one thing from this lesson, remember that form and the fact that it accepts any point on the line.
\[ y - y_1 = m(x - x_1) \]
Write it with the given coordinates still inside their own brackets. Every sign error in this lesson lives in the gap between substituting and tidying, and the cure is to put a line break there.
\[ y - (-3) = m\bigl(x - (-2)\bigr) \]
For a model, choose where zero sits before anything else. Put zero at the first measurement and the intercept becomes that measurement, the slope becomes a rate with units you can say out loud, and the equation becomes a sentence about the world.
A situation with two quantities sharing one total is the exception: that wants standard form, with both variables on the same side, because neither one is the subject of the other.
Lesson 2.5 takes these lines and works with them in standard form and as inequalities, and Lesson 2.6 fits a line to many scattered points rather than through two exact ones. The check you have been using has to change there, because no single line passes through all the data, and that change is the whole difficulty of fitting.
OpenStax Algebra and Trigonometry 2e, §4.1 Linear Functions §4.1 — the same three routes, written for linear functions
Want this taught 1-on-1? Alexander tutors Algebra 2 — $55/session, free consultation.