5.3  Write Equations of Lines Given two Points

Mrs. Agriesti's Algebra

Goal: To learn to use two points to write the equation of a line.

To find the equation of a line using two points on the line:

  1. Use the slope formula to find the slope.
  2. Write "y = mx + b".
  3. Replace m with the slope you found in step 1.
  4. Replace x with the x-coordinate of one of your points and y with the y-coordinate of the same point.
  5. Solve for the only variable you have left, b.
  6. Write "y = mx + b" again.
  7. Replace m with the slope and b with the value you found in step 5.

Example 1:  Write the equation of the line containing the points (-1,1) and (0,3).

Use the slope formula to find the slope.  Be careful with your signs.

Replace m with slope.
Replace x and y with the coordinates of
one of the points.  (Either point is fine)

Solve for b (y-intercept).


Now write the equation using the slope and y-intercept (b).

  y = mx + b
  y =
2x + b
 
1 = 2(-1) + b
  1 = -2 + b
+2   +2     
  3 = b

  y = mx + b
  y = 2x + 3

Example 2:  Write the equation of the line containing the points (4,4) and (-2, -1).

Use the slope formula to find the slope.  Be careful with your signs.


Replace m with slope.
Replace x and y with the coordinates of
one of the points.  (Either point is fine)

Solve for b (y-intercept).




Now write the equation using the slope and y-intercept (b).

       y = mx + b
       y =
(5/6)x + b
       4
= (5/6)(4) + b
       4 = 20/6 + b
       4 = 10/3 + b
  4      = 3 1/3 + b
-3 1/3  -3 1/3     
    2/3 = b

  y = mx + b
  y = (5/6)x + 2/3

Example 3:  Write the equation of the line containing the points (3,-4) and (3,8).

Use the slope formula to find the slope. 

The slope is undefined (no slope).  The line is a vertical line.  (See sections 4.1 and 4.4)

The equation for a vertical line is x = a. 

Our two points have 3 for their x-coordinate, therefore the equation is x = 3.

HomeAugust  |  September  |  October  |  November  |  December  |  January

To contact me:

Phone: 972-635-2789
Email: magriesti_rc@yahoo.com