Course contentsShow
← Mathematics
Lesson 259 of 3,1217. Linear Functions and GraphsFree lesson

Writing Equations from Two Points

Finding the slope between two points and using it to write an equation in point-slope or slope-intercept form.

Writing Equations from Two Points

What you'll learn: You'll learn how to create the equation of a line when you're given just two points it passes through.

The Big Idea

When you have two points on a line, you have everything you need to write its equation! The process combines two skills you already know: finding slope between two points, and writing an equation using point-slope or slope-intercept form.

Think of it like this: two points are like two landmarks on a straight road. Once you know how steep the road is (slope) and where it goes through (either point), you can describe the entire road mathematically.

The Step-by-Step Process

Step 1: Find the Slope

Use the slope formula with your two points:

m = (y₂ - y₁)/(x₂ - x₁)

Step 2: Choose Your Equation Form

You have two options:

Option A: Point-Slope Form Pick either of your two points and plug into:

y - y₁ = m(x - x₁)

Option B: Slope-Intercept Form Use the slope and one point to solve for b:

y = mx + b

Substitute your point's coordinates for x and y, solve for b, then write the final equation.

Example Walkthrough

Given points (2, 5) and (6, 13):

  1. Find slope: m = (13 - 5)/(6 - 2) = 8/4 = 2
  2. Using point-slope with (2, 5): y - 5 = 2(x - 2)
  3. Or convert to slope-intercept: y - 5 = 2x - 4, so y = 2x + 1

Both forms describe the same line!

Key Takeaway: To write an equation from two points, first calculate the slope, then use either point with point-slope form or find the y-intercept for slope-intercept form.