Line Formula

Line is a perfectly straight path extending infinitely in both directions through two distinct points, with no thickness.

The Formula

y=mx+b (slope-intercept form in the coordinate plane), or ax+by=c, which covers every line, including vertical lines such as x=3

Ask yourself: Is the path straight and unending in both directions, with no endpoints?

Quick example

The line through points A and B extends past both, forever.

Notation

AB↔ denotes the line through A and B; AB‾ is a segment; AB→ is a ray from A through B

What this formula means

A perfectly straight path extending infinitely in both directions through two distinct points, with no thickness.

A line is like a train track that runs perfectly straight and never ends in either direction, with no last station. Real tracks have width and stop somewhere; a line has no width and no end.

Formal view

ℓA,B={A+t(B−A):t∈R} for distinct points A,B∈Rn; in R2: {(x,y):ax+by=c} for some (a,b)≠(0,0)

Worked examples

Example 1

easy
Write the equation of a line with slope m=2 and y-intercept b=−3.
Show solution

Answer

y=2x−3

First step

1.
Step 1: The slope-intercept form of a line is y=mx+b.

Full solution

  1. 2.
    Step 2: Substitute m=2 and b=−3.
  2. 3.
    Step 3: The equation is y=2x−3.
In y=mx+b, m is the slope (rise over run) and b is where the line crosses the y-axis. A line extends infinitely in both directions — every point on it satisfies this equation.

Example 2

medium
Find the slope of the line passing through points (1,3) and (4,9).

Example 3

easy
Use your finger to trace the top of a table. Is the top edge straight?

Common mistakes

  • Drawing a line with endpoints — a true line has arrowheads both ways and no endpoints.
  • Calling a ray or segment a line — check whether it stops (segment), starts once (ray), or never stops (line).
  • Giving a line thickness — a line has length and direction but zero width.

Why this formula matters

Lines are how geometry says straight. The sides of a square lie along lines, and a ruler's edge follows one. Telling a line from a segment matters when you measure: a segment from A to B has a length you can find with a ruler, but a line goes on forever, so it has no length to measure.

Frequently asked questions

What is the Line formula?

A perfectly straight path extending infinitely in both directions through two distinct points, with no thickness.

How do you use the Line formula?

Call it a line when a straight path has arrows at both ends, or the words say it goes on forever both ways, as in AB↔. If it stops at two dots, it is a segment, and you can measure it. If it starts at one dot and keeps going one way only, it is a ray. If the path bends or curves, it is not a line at all.

What do the symbols mean in the Line formula?

AB↔ denotes the line through A and B; AB‾ is a segment; AB→ is a ray from A through B

Why is the Line formula important in Math?

Lines are how geometry says straight. The sides of a square lie along lines, and a ruler's edge follows one. Telling a line from a segment matters when you measure: a segment from A to B has a length you can find with a ruler, but a line goes on forever, so it has no length to measure.

What do students get wrong about Line?

The procedure for line is the easy part; the trap is drawing a line with endpoints. Asking "Is the path straight and unending in both directions, with no endpoints?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Line formula?

Before studying the Line formula, you should understand: point.