Writing Line Equations

LESSON 7 OF 16See the unit map ↗

Build a line equation from a point and a direction.

Builds on The Coordinate Plane · Defining Slope · Finding Slope

The bigger question: How can a picture become an equation?

On this page

Idea

To describe a line you need two pieces of information: how steep it is, and one point it passes through.

Slope alone is not enough, because many parallel lines share it. One point alone is not enough either, because many lines pass through it. Put the two together and only one line is left. The point-slope form writes it down for you.

Rule

If a line has slope mm and passes through the known point (x0,y0)(x_0, y_0), its equation is

y−y0=m⋅(x−x0)y - y_0 = m \cdot (x - x_0)

Everything else on this page is a way of finding mm and (x0,y0)(x_0, y_0) before using this one formula.

How it is used

The formula never changes. Only the way you find mm and a point changes.

What you are givenHow to get mmWhich point to use
Slope and a pointalready giventhe given point
Two points A(x1,y1)A(x_1,y_1), B(x2,y2)B(x_2,y_2)m=y2−y1x2−x1m = \dfrac{y_2 - y_1}{x_2 - x_1}either one - the equation comes out the same
A point and the originm=y1−0x1−0m = \dfrac{y_1 - 0}{x_1 - 0}the origin (0,0)(0,0), it simplifies fastest
Both intercepts, (p,0)(p, 0) and (0,q)(0, q)m=q−00−pm = \dfrac{q - 0}{0 - p}the yy-intercept (0,q)(0, q)
Inclination angle α\alpha and a pointm=tan⁡αm = \tan\alphathe given point

Two things are worth remembering.

If the line passes through the origin, the constant term is 00. The equation always has the form ax+by=0ax + by = 0.

If the inclination angle is bigger than 90∘90^\circ, the tangent is negative, so the line falls. For example tan⁡135∘=−1\tan 135^\circ = -1, not 11.

At the end, clear any fractions and move everything to one side. This gives the standard form ax+by+c=0ax + by + c = 0. Answers are usually written this way.

Worked example

Write the equation of the line with slope 33 passing through the point (−3,4)(-3, 4).

Identify the knowns:

(x0,y0)=(−3,4)andm=3(x_0, y_0) = (-3, 4) \quad \text{and} \quad m = 3

Substitute into the point-slope form:

y−4=3(x−(−3))=3(x+3)y - 4 = 3(x - (-3)) = 3(x + 3)

Distribute and simplify:

y−4=3x+9⟹y=3x+13y - 4 = 3x + 9 \quad\Longrightarrow\quad y = 3x + 13

Collect on one side for standard form:

3x−y+13=03x - y + 13 = 0

Explore

Drag A and B. The blue line reaches the edges of the window, because a line has no ends. The green circles mark where it crosses the axes. Move one point and watch the equation change. Try putting B on the origin. Then line the two points up vertically and watch the slope become undefined.

A line through two points

Try this. Move the two points and compare the equation. Equal x values produce a vertical line; equal points cannot define one.

A line through two points-6-6-4-4-2-2224466xyBA
y = -0.4x + 2.2 · Slope = -0.4
PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

Which line has slope 2 and passes through (1,3)(1,3)?

Hint 1 · Find a starting point

The slope fixes the coefficient of x, but not the intercept.

Hint 2 · Take the next step

Substitute x = 1, y = 3 into y = 2x + b.

Show the reasoning

Answer: y=2x+1y=2x+1

3=2+b3=2+b gives b=1b=1. Check both the point and the slope; matching just one is insufficient.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →