DoAssignment.ca

G1 · Find slope from two points and write a line equation

Learn to find slope from two points and write a line equation through clear examples and targeted practice.

Ontario Grade 10 Mathematics

Analytic Geometry

Use two points to describe a line’s change and write a rule for it.

A line on a graph shows a steady relationship between two values. For example, a graph of distance against time may be a straight line when an object moves at a steady rate. Slope tells us how much one value changes compared with another. You will use two points to find a line’s slope, then use the slope and a point to write an equation for the line.

What you will learn

1. Grade 9 bridge: coordinates and change

A point on a coordinate grid is written as an ordered pair, such as (2,1)(2,1). The first number is the xx-coordinate, which tells the horizontal position. The second number is the yy-coordinate, which tells the vertical position. The xx-axis runs across the grid, and the yy-axis runs up and down.
To compare two points, subtract matching coordinates. The change in xx is found using the two xx-coordinates. The change in yy is found using the two yy-coordinates. Keep the point order consistent. If you subtract the first point’s coordinate from the second point’s coordinate for xx, do the same for yy.
Slope describes vertical change compared with horizontal change. It is also called rise over run. Rise means the change in yy; run means the change in xx. A line with positive slope rises as you move from left to right. A line with negative slope falls as you move from left to right. A horizontal line has no vertical change, so its slope is zero.
The letter mm is commonly used for slope. Slope is the change in yy divided by the change in xx. This tells us how much the line moves up or down for each unit it moves sideways.

2. See rise and run, then use the slope rule

Imagine moving along a line from one point to another. Count the horizontal movement first. This is the run. Then count the vertical movement. This is the rise. For instance, moving from (1,2)(1,2) to (3,6)(3,6) means moving 22 units right and 44 units up. The slope is 44 divided by 22, which is 22. The line rises 22 units for each unit it moves right.
The slope formula uses the coordinates of two points. In the formula, the subscripts 11 and 22 identify the first and second points. You may choose either point as the first point. If you reverse the order, both coordinate differences change signs, so their quotient stays the same. Reversing the order in only one subtraction gives an incorrect slope.
A run of zero means the line does not move sideways between the points. Dividing by zero is not possible, so the slope is undefined. This happens for a vertical line. A vertical line has the same xx-coordinate at every point.
m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

3. Use the slope and a point to write an equation

An equation of a line is a rule that is true for every point on the line. A useful form is y=mx+by=mx+b. The letter mm stands for the slope. The letter bb is the yy-intercept, which is the yy-coordinate where the line crosses the yy-axis.
Once you know the slope, substitute the coordinates of a point on the line into the equation. The known xx- and yy-values and the slope let you find bb. Then write the equation using the slope and the value of bb. Either point from the question can be used.
Check your equation by substituting the coordinates of a point into it. If the equation is correct, its left and right sides will be equal. When two points are given, checking both points is a useful way to catch a calculation or substitution error.
y=mx+by=mx+b

4. Special lines and independent practice

A vertical line has the same xx-coordinate at every point. Its run is zero, so it has an undefined slope. Write its equation by stating the fixed xx-coordinate. For example, if every point has an xx-coordinate of 44, its equation is x=4x=4.
A horizontal line has the same yy-coordinate at every point. Its rise is zero, so its slope is zero. Its equation states the fixed yy-coordinate. These cases help you decide whether a slope calculation makes sense.
Independent practice: Find the slope through (1,5)(1,5) and (4,−1)(4,-1), then write the equation in the form y=mx+by=mx+b. Keep the subtraction order consistent. Use one point to find bb, then substitute both points into your equation to check it.

Reading rise and run from two points

Starting pointEnding pointRun: change in xxRise: change in yySlope
(1,2)(1,2)(3,6)(3,6)3−1=23-1=26−2=46-2=44/2=24/2=2
(2,1)(2,1)(6,9)(6,9)6−2=46-2=49−1=89-1=88/4=28/4=2

Worked example

Find the slope and equation

Find the slope of the line through (2,1)(2,1) and (6,9)(6,9). Then write its equation in the form y=mx+by=mx+b.
  1. Find the coordinate changes
    Use (2,1)(2,1) as the first point and (6,9)(6,9) as the second point. Subtract the first point’s coordinates from the second point’s matching coordinates.
    Δx=6−2=4,Δy=9−1=8\Delta x=6-2=4,\quad \Delta y=9-1=8
  2. Calculate the slope
    Divide the change in yy by the change in xx. The line rises 88 units while moving 44 units to the right.
    m=84=2m=\frac{8}{4}=2
  3. Find the intercept
    Substitute the slope and the point (2,1)(2,1) into y=mx+by=mx+b. Then solve for bb.
    1=2(2)+b,b=−31=2(2)+b,\quad b=-3
  4. Write and check the equation
    Place the slope and intercept in the line form. Substitute the second point to check that the equation is true for it.
    y=2x−3,9=2(6)−3y=2x-3,\quad 9=2(6)-3
Answer: The slope is 22, and the equation is y=2x−3y=2x-3.
Check: For the first point, the equation gives 1=2(2)−31=2(2)-3. For the second point, it gives 9=2(6)−39=2(6)-3. Both points satisfy the equation.

Common mistakes and how to avoid them

Using an xx-coordinate and a yy-coordinate together in one subtraction.
Correction: Find the change in xx using only xx-coordinates, and the change in yy using only yy-coordinates.
Switching the point order in only one subtraction.
Correction: Subtract in the same order for both coordinates. For example, use second point minus first point for both.
Putting the slope in place of bb in y=mx+by=mx+b.
Correction: Remember that mm is the slope. Find bb by substituting a point into the equation.
Calling the slope of a vertical line zero.
Correction: A vertical line has zero run, so its slope is undefined. A horizontal line has zero rise and slope zero.

Lesson summary

Check your understanding

Question 1

What is the slope of the line through (1,5)(1,5) and (4,−1)(4,-1)?
  1. −2-2
  2. 22
  3. −12-\frac{1}{2}
  4. 66
Show answer and explanation
−2-2
The change in yy is −1−5=−6-1-5=-6, and the change in xx is 4−1=34-1=3. The slope is −6/3=−2-6/3=-2.

Question 2

A line has slope 33 and passes through (2,7)(2,7). What is its equation in the form y=mx+by=mx+b?
  1. y=3x+1y=3x+1
  2. y=3x+7y=3x+7
  3. y=2x+1y=2x+1
  4. y=3x−1y=3x-1
Show answer and explanation
y=3x+1y=3x+1
Substitute the point into y=mx+by=mx+b: 7=3(2)+b7=3(2)+b, so b=1b=1. Therefore the equation is y=3x+1y=3x+1.

Question 3

Which statement describes a vertical line?
  1. Its slope is undefined because its run is zero.
  2. Its slope is zero because its rise is zero.
  3. Its slope is one because its rise and run are equal.
  4. Its equation always has the form y=mx+by=mx+b with a number for mm.
Show answer and explanation
Its slope is undefined because its run is zero.
A vertical line has the same xx-coordinate at every point. Its run is zero, and division by zero is not possible.

Key terms

Coordinate
A number that gives a point’s position on an axis.
Slope
The change in vertical position divided by the change in horizontal position.
Rise
The change in yy between two points.
Run
The change in xx between two points.
yy-intercept
The yy-coordinate where a line crosses the yy-axis.
Undefined slope
A slope that cannot be calculated because the change in xx is zero.

Continue through MPM2D

View the complete MPM2D Ontario Grade 10 Mathematics curriculum and lessons

About this lesson

Published by DoAssignment. This AI-assisted lesson follows Ontario Grade 10 Mathematics (MPM2D), study topic G1. It is a study resource, not an official curriculum publication.

Official curriculum reference

Report a correction or ask a question