When we know a line's slope and where it crosses the y-axis, we can write its equation right away as y=mx+b. Now let's see how to write a line's equation when we only know its slope and some other point on it.
1
Building an Equation from a Point and a Slope
We want to find the equation of the line that passes through (4,5) with a slope of 2.
Building an Equation from a Point and a Slope
Text solution
Measure the horizontal and vertical changes from (4,5)Moving from our starting point (4,5) to any point (x,y) on the line changes x by x−4 and y by y−5.
Change in xChange in y=x−4,=y−5
Connect the changes using the slopeBecause a slope of 2 means the vertical change is always 2 times the horizontal change, we set the change in y equal to 2 times the change in x.
change in yy−5=slope2⋅change in x(x−4)
Check with a second point on the lineMoving 3 steps right from (4,5) to x=7 increases the height by 2⋅3=6 to y=11, and plugging (7,11) into our equation shows that both sides give that same vertical change of 6.
11−566=2(7−4)=2(3)=6
So y−5=2(x−4) is the equation of the line through (4,5) with slope 2.
At every point (x,y) along this line, the vertical change y−5 from the starting point (4,5) is always twice the horizontal change x−4, and both changes equal 0 right at (4,5).
Along a line with slope 2, the vertical change from the starting point is always twice the horizontal change.
2
Minus Signs and Negative Coordinates
Now let's see what happens to the signs in the equation when a coordinate of our starting point is negative. We want to find the equation of the line that passes through (−3,2) with a slope of −4.
Minus Signs and Negative Coordinates
(−3,2)m=−4
Equation of the line?
Text solution
Subtract each starting coordinateWriting the change from (−3,2) to (x,y) puts a minus sign in front of each coordinate of the starting point.
y−2=−4(x−(−3))
Simplify subtracting a negativeSubtracting −3 is the same as adding 3, turning x−(−3) into x+3.
y−2=−4(x+3)
So the line through (−3,2) with slope −4 has the equation y−2=−4(x+3), where x=−3 and y=2 are the exact values that make x+3 and y−2 equal 0.
As you move the starting point into different quadrants, positive coordinates show up in the equation with a minus sign and negative coordinates show up with a plus sign, because the starting coordinates are always the values that make the changes in x and y equal 0.
In point-slope form, a positive coordinate gets a minus sign and a negative one gets a plus sign, because the change in x and y is zero right at the starting point.
3
Graphing Directly from Point-Slope Form
When we're given an equation in point-slope form, we can graph the line directly without rewriting the equation into y=mx+b. Let's graph the line
y+1=32(x−2)
Graphing Directly from Point-Slope Form
y+1=32(x−2)
Graph the line.
Text solution
Find the starting point where the changes are zeroWe read off the x- and y-values that make x−2 and y+1 equal 0.
x−2y+1=0=0⟹x⟹y=2,=−1
Step from the starting point using the slopeStarting at (2,−1), a slope of 32 means a change of +3 in x goes with a change of +2 in y, taking us 3 steps right and 2 steps up to a second point on the line.
(2+3,−1+2)=(5,1)
Drawing the line through (2,−1) and (5,1) completes the graph without any fraction calculations.
4
Converting to Slope-Intercept Form
If a question specifically asks for the answer in slope-intercept form, y=mx+b, we can rewrite our point-slope equation so that it measures from the y-axis at x=0. Let's convert our first equation, y−5=2(x−4), into slope-intercept form.
Converting to Slope-Intercept Form
y−5=2(x−4)
Slope-Intercept Form?
Text solution
Add the starting height to both sidesAdding 5 isolates y and shows the height as the starting height of 5 plus the change from x=4.
y=5+2(x−4)
Distribute the slope and combineMultiplying 2 into (x−4) gives 2x−8, where −8 is the change in y when moving 4 steps backward from x=4 to x=0, and combining −8 with 5 gives the y-intercept.
yy=5+2x−8=2x−3
So in slope-intercept form the line is y=2x−3, which crosses the y-axis at (0,−3).
5
Finding the Equation from Two Points
Now suppose we aren't given the slope at all, only two points on the line. We want to find the equation of the line that passes through (1,4) and (3,10).
Finding the Equation from Two Points
Text solution
Find the slope between the two pointsDividing the vertical change from 4 to 10 by the horizontal change from 1 to 3 gives the slope of the line.
Slope=3−110−4=26=3
Write the point-slope equation using either pointPicking (1,4) as the starting point or picking (3,10) as the starting point gives two valid point-slope equations for the line.
y−4ory−10=3(x−1)=3(x−3)
Simplify both to slope-intercept formDistributing 3 and isolating y in both equations shows that they walk back to the exact same y-intercept.
y−4yy−10y=3x−3=3x+1=3x−9=3x+1
Both point-slope equations describe the same line, y=3x+1, just measured from two different points along it.
Along a fixed line, choosing different starting points changes the coordinates inside the point-slope equation while the simplified slope-intercept equation y=mx+b stays the same.
Every point on a line gives its own point-slope equation, and they all simplify to the same slope-intercept equation.
6
Using a Rate and a Data Point in Real Life
In real life, we usually measure something after it is already underway rather than at time x=0. Suppose a hose fills a swimming pool at a steady 15 gallons per minute, and at 20 minutes there are 450 gallons in the pool. Let's write an equation for the total gallons y at x minutes, and use it to find the amount of water at 30 minutes and at 0 minutes.
Using a Rate and a Data Point in Real Life
Text solution
Build the equation from the known measurementUsing (20,450) as our starting point and 15 gallons per minute as the slope connects the change in gallons to the change in time from minute 20.
change in gallons from 450y−450=rate15⋅change in minutes from 20(x−20)
Find the water at 30 minutesPlugging in x=30 measures 10 minutes forward from minute 20 and adds those new gallons to 450.
y−450y−450y−450y=15(30−20)=15(10)=150=600
Find the water at 0 minutesPlugging in x=0 walks 20 minutes backward from minute 20 to find how much water was already in the pool at the start.
y−450y−450y=15(0−20)=−300=150
So there are 600 gallons in the pool at 30 minutes, and there were 150 gallons in the pool at 0 minutes.
7
The Point-Slope Formula
To write this rule using letters, we call the known starting point (x1,y1) and the slope m.
The Point-Slope Formula
Point-Slope Form:change in yy−y1=slopem⋅change in x(x−x1)
The little 1 in x1 and y1 is called a subscript. It isn't an operation; it just labels the fixed starting point you know, separating those numbers from the variables (x,y) that stand for any point on the line.
Key concepts
Whenever you know a line's slope m and a point (x1,y1) on it, point-slope form writes the line by comparing every point (x,y) to that starting point:
y−y1=m(x−x1)
When you have a point and a slope (or a rate and a data point)
Use the point you have as (x1,y1), such as (4,5) with slope 2 giving y−5=2(x−4), or 450 gallons at 20 minutes with rate 15 giving y−450=15(x−20). If the known point is already on the y-axis, like (0,3) with slope 2, or a problem that gives the starting value at x=0, you don't need point-slope form at all; write y=2x+3 directly.
When you have two points with different x-coordinates
Find the slope m=change in xchange in y between them first, then plug either point into point-slope form; for (1,4) and (3,10), the slope is 3−110−4=3, giving y−4=3(x−1).
Checking signs
The starting coordinates are the values that make each change equal 0, so signs inside the equation are opposite to the coordinates: (−3,2) with slope −4 is y−2=−4(x+3).
When not to convert to y=mx+b
Leave the equation in point-slope form to graph it (for y+1=32(x−2), plot (2,−1) and step 3 right and 2 up) or to plug in an x-value directly. Distribute and combine into y=mx+b when a question asks for slope-intercept form.
8
Practice
1
Write the equation in point-slope form of the line that passes through (3,7) with a slope of 5.
Write the change in y from 7 on the left, and set it equal to the slope 5 times the change in x from 3.Watch out: Keep each coordinate with its own variable. Swapping the coordinates of (3,7) puts 3 with y and 7 with x, giving the wrong equation y−3=5(x−7).
y−7=5(x−3)
2
Write the equation in point-slope form of the line that passes through (−6,−2) with a slope of −3.
Subtract −6 from x and −2 from y, then check that x=−6 and y=−2 make the two changes equal 0.Watch out: Copying the minus signs from (−6,−2) directly into the equation without subtracting the negatives gives y−2=−3(x−6), which passes through (6,2) instead of (−6,−2).
y+2=−3(x+6)
3
To graph the line y−4=53(x+1) without converting forms, find the starting point given by the equation and the second point you reach by moving 5 steps to the right.
First find the x- and y-values that make x+1=0 and y−4=0; from that point, use the slope 53 to see how much y changes when x increases by 5.Watch out: Reading the signs inside the equation without flipping them gives the wrong starting point (1,−4), which then leads to the wrong second point (6,−1).
Starting point (−1,4); second point (4,7)
4
Rewrite the equation y−3=−2(x−5) in slope-intercept form.
Multiply −2 by both x and −5 first, then add 3 to both sides to get y by itself. Watch out: Multiplying −2 by −5 gives +10; leaving it negative as −10 leads to the wrong answer y=−2x−7.
y=−2x+13
5
Find the equation of the line that passes through (2,−1) and (6,11). Give your answer in point-slope form using either point, and then simplify it to slope-intercept form.
Calculate the slope change in xchange in y between (2,−1) and (6,11) first, then choose one of the two points as your starting point. Watch out: Make sure the x- and y-coordinates in your equation come from the same point. Mixing y from (2,−1) with x from (6,11) gives y+1=3(x−6), which simplifies to y=3x−19.
y+1=3(x−2) or y−11=3(x−6);y=3x−7
6
A tank is being drained at a steady rate of 8 gallons per minute. When you check it at 15 minutes, there are 200 gallons of water in the tank. Write an equation in point-slope form for the gallons of water y at x minutes, find how much water is left at 25 minutes, and find how much water was in the tank at 0 minutes.
Use (15,200) as your starting point, and pay attention to whether a draining tank means the rate of change is +8 or −8.Watch out: Using +8 instead of −8 treats the tank as filling rather than draining, which gives y−200=8(x−15),280 gallons at 25 minutes, and 80 gallons at 0 minutes.
y−200=−8(x−15);120 gallons at 25 minutes; 320 gallons at 0 minutes