Property
To find the equation of a line given two points (x1β,y1β) and (x2β,y2β):
- Find the slope using the formula m=x2ββx1βy2ββy1ββ.
- Choose one of the given points.
- Substitute the slope and the chosen point into the point-slope form, yβy1β=m(xβx1β).
- Write the equation in slope-intercept form.
Examples
- Find the equation of a line containing (1,2) and (3,8). First, find the slope: m=3β18β2β=26β=3. Using point (1,2): yβ2=3(xβ1), which simplifies to y=3xβ1.
- Find the equation of a line containing (β2,5) and (4,2). The slope is m=4β(β2)2β5β=6β3β=β21β. Using point (4,2): yβ2=β21β(xβ4), which simplifies to y=β21βx+4.
- Find the equation of a line containing (5,1) and (5,β4). The slope is m=5β5β4β1β=0β5β, which is undefined. This is a vertical line. The equation is x=5.
Explanation
If you have two points, you can first determine the line's slope. Then, pick either of the two points and use the 'slope and a point' method to find the final equation in slope-intercept form.