DoAssignment.ca

G10 · Write a line equation from a graph, point, or slope

Learn to write a line equation from a graph, point, or slope through clear examples and targeted practice.

Ontario Grade 10 Mathematics

Modelling Linear Relations

Use a graph, a point and slope, or a known slope and intercept

A line equation describes every point on a straight line. You may be given the line on a graph, one point and its slope, or information about the line's slope and intercept. In each case, the goal is to find an equation that matches the information. This lesson reviews how to read coordinates and slope, then connects those ideas to a line equation.

What you will learn

1. Grade 9 bridge: coordinates and slope

A coordinate is an ordered pair that names a point on a graph. In (x,y)(x,y), the first number tells how far to move horizontally, and the second tells how far to move vertically. For example, (3,2)(3,2) is 3 units right and 2 units up from the origin.
Slope describes how steep a line is and whether it rises or falls as you move from left to right. You can find it by comparing the vertical change with the horizontal change between two points. Vertical change is also called rise; horizontal change is also called run. Keep the changes in the same order for both coordinates.
A positive slope means the line rises from left to right. A negative slope means it falls. A horizontal line has slope 0. A vertical line has no defined slope because its horizontal change is 0, and division by 0 is not allowed.
m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

2. The line equation and what its parts mean

A useful form for a line equation is y=mx+by=mx+b. Here, xx and yy are coordinates of points on the line. The number mm is the slope. The number bb is the yy-intercept: the yy-value where the line crosses the vertical axis. At that crossing, x=0x=0.
For example, if a line crosses the vertical axis at 1 and rises 2 units for every 1 unit right, its slope is 2 and its intercept is 1. The equation is y=2x+1y=2x+1. A point such as (1,3)(1,3) fits because replacing xx with 1 gives y=3y=3.
A graph gives a line's equation when you can identify its slope and its yy-intercept. If the intercept is hard to read, choose two clear points on the line to find the slope. Then use a known point to find the intercept. A point is on the line only if it lies exactly on the drawn line, not merely near it.
A slope by itself does not usually identify one unique line. Many lines can have the same slope but cross the vertical axis at different places. To write one specific equation, you also need an intercept or a point on the line.
y=mx+by=mx+b

3. From a graph, point, or slope to an equation

From a graph, first read the yy-intercept if it is clear. Next, find slope using two points on the line. You may choose the intercept as one of the points. Count the vertical and horizontal changes, and keep their signs: a move down is negative, and a move left is negative. Then place the slope and intercept in y=mx+by=mx+b.
If you know a point and the slope, use the same equation. Replace xx and yy with the point's coordinates and replace mm with the given slope. Solve for bb. Then write the complete equation using the values of mm and bb.
If you are given slope and yy-intercept, substitute them directly into y=mx+by=mx+b. If only the slope is given, explain that more information is needed. There is no single answer unless a point or intercept is also known.
Check your equation by putting a known point into it. Both sides should agree. Also compare the sign and steepness of the slope with the graph. This check can catch a reversed rise and run or a sign error.
b=y−mxb=y-mx

4. Guided example and independent practice

The table shows a few points on a line. It is a simple way to organize the coordinates read from a graph. The change in yy is 2 while the change in xx is 1, so the slope is 2. The point at x=0x=0 gives the intercept. The worked example uses both facts to write and check the equation.
For independent practice, try these without looking at the quick check first. (1) A line has slope 3 and passes through (2,7)(2,7). Write its equation. (2) A line crosses the vertical axis at −2-2 and has slope 12\frac{1}{2}. Write its equation. (3) A line has slope −1-1 and crosses the vertical axis at 4. Explain how you can check a point on your graph against its equation.
For each practice problem, identify what information is given before calculating. If a point and slope are given, find the intercept. If the intercept and slope are given, substitute them directly. In every case, use the equation to test a known point.

Points on the line in the worked example

xy
01
13
25

Worked example

Read a line from its points

A line passes through the points in the table. Write an equation for the line.
  1. Find the slope
    From (0,1)(0,1) to (2,5)(2,5), the horizontal change is 2 and the vertical change is 4. Divide the vertical change by the horizontal change.
    m=5−12−0=2m=\frac{5-1}{2-0}=2
  2. Read the intercept
    The point (0,1)(0,1) is where the line has x=0x=0. Its yy-value is therefore the yy-intercept, so b=1b=1.
    b=1b=1
  3. Write the equation
    Substitute the slope and intercept into y=mx+by=mx+b. This gives an equation for every point on the line.
    y=2x+1y=2x+1
  4. Check a second point
    Use x=2x=2 in the equation. The result is y=5y=5, which matches the point (2,5)(2,5) from the table.
    2(2)+1=52(2)+1=5
Answer: The line's equation is y=2x+1y=2x+1.
Check: Both listed points fit: when x=0x=0, y=1y=1; when x=2x=2, y=5y=5.

Common mistakes and how to avoid them

Reversing rise and run when finding slope.
Correction: Use vertical change divided by horizontal change, and keep the same point order in both differences.
Reading the first coordinate as the vertical position.
Correction: In (x,y)(x,y), xx is horizontal and yy is vertical.
Using the slope as the intercept.
Correction: In y=mx+by=mx+b, slope is mm and the vertical-axis intercept is bb.
Writing one equation when only the slope is known.
Correction: Ask for a point on the line or its intercept. Different intercepts give different lines with the same slope.

Lesson summary

Check your understanding

Question 1

A line has slope 2 and yy-intercept −3-3. Which is its equation?
  1. y=2x−3y=2x-3
  2. y=−3x+2y=-3x+2
  3. y=2x+3y=2x+3
  4. y=−2x−3y=-2x-3
Show answer and explanation
y=2x−3y=2x-3
In y=mx+by=mx+b, substitute m=2m=2 and b=−3b=-3.

Question 2

A line has slope 3 and passes through (1,5)(1,5). Which equation fits?
  1. y=3x+2y=3x+2
  2. y=3x+5y=3x+5
  3. y=2x+3y=2x+3
  4. y=−3x+8y=-3x+8
Show answer and explanation
y=3x+2y=3x+2
Substituting the point gives 5=3(1)+b5=3(1)+b, so b=2b=2.

Question 3

A line passes through (0,4)(0,4) and (2,0)(2,0). What is its slope?
  1. −2-2
  2. 22
  3. 12\frac{1}{2}
  4. −12-\frac{1}{2}
Show answer and explanation
−2-2
The vertical change is 0−4=−40-4=-4 and the horizontal change is 2−0=22-0=2. Their quotient is −2-2.

Question 4

You know only that a line has slope −1-1. What else would identify one specific line?
  1. A point on the line or its yy-intercept
  2. The slope written as a fraction
  3. The direction of the xx-axis
  4. The name of the line
Show answer and explanation
A point on the line or its yy-intercept
Many lines can share slope −1-1. A point or intercept tells which one is intended.

Key terms

Coordinate
A pair of numbers, written (x,y)(x,y), that names a point on a graph.
Slope
A measure of a line's steepness, found by dividing vertical change by horizontal change.
Rise
The vertical change between two points.
Run
The horizontal change between two points.
yy-intercept
The point where a line crosses the vertical axis; its xx-coordinate is 0.

Continue through MFM2P

View the complete MFM2P Ontario Grade 10 Mathematics curriculum and lessons

About this lesson

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

Official curriculum reference

Report a correction or ask a question