JOVANA
Explore Library Glossary Getting Started Three Levels Fields How it works Mission
Join the mission
All guides

Equations of Lines: Every Form You Need

A straight line is the simplest curve in the plane, and it wears many disguises: slope-intercept, point-slope, two-point, and the even-handed general form. This guide shows why they are all the same line, when to reach for each one, and how slope quietly governs parallel and perpendicular.

What it means for a line to have an equation

In the previous guide you learned to read slope straight off two points: rise over run, the rate at which a line climbs. Now we ask the deeper question — can we capture an entire line, every one of its infinitely many points, in a single algebraic sentence? On the Cartesian plane the answer is yes, and that sentence is the line's equation. A point (x, y) lies on the line exactly when its coordinates make the equation true; every point off the line makes it false. The equation is a perfect membership test.

Here is the key fact that makes lines special, and it is worth stating plainly: a line is precisely the set of points where two coordinates change at a constant rate relative to each other. Take any two points on the line and the slope you compute is always the same number — that constancy is what 'straight' means in coordinates. Curves like circles fail this test (their slope keeps changing), which is exactly why their equations, coming in the next guide, look different. So every line equation, in whatever form, is really just a way of writing 'the slope between (x, y) and a known point is fixed.'

Slope-intercept and point-slope: the two everyday forms

The form most people meet first is slope-intercept, y = m*x + b. Read it as a recipe: m is the slope, and b is the y-coordinate where the line crosses the vertical axis — its y-intercept, the point (0, b). To plot the line you need nothing more: start at (0, b), then step up m for every step right. A line y = 2*x - 1 starts at (0, -1) and rises 2 for each 1 across. This form is unbeatable when you already know where a line cuts the axis and how steeply it leans.

But often you do not know the y-intercept — you know one point the line passes through and its slope. Then point-slope form is the natural tool: y - y_1 = m*(x - x_1), where (x_1, y_1) is your known point. This is the slope idea written out almost word for word: rearranged, it says (y - y_1)/(x - x_1) = m, 'the slope from (x_1, y_1) to any point (x, y) on the line is m.' You do not have to simplify it into slope-intercept form unless you want to; as written it is already a complete, correct equation of the line.

  1. Find the line through (2, 1) with slope 3. Start from point-slope: y - 1 = 3*(x - 2).
  2. Distribute the slope: y - 1 = 3*x - 6.
  3. Solve for y to reach slope-intercept form: y = 3*x - 5, so the y-intercept is (0, -5).
  4. Check: at x = 2, y = 3*2 - 5 = 1, which is the point we started from — the equation passes its own test.

Two-point form, and the general form that hides nothing

What if you are handed two points and no slope? You already know what to do from the last guide: compute the slope first, m = (y_2 - y_1)/(x_2 - x_1), then drop it into point-slope. Bundled together this is the two-point form, y - y_1 = ((y_2 - y_1)/(x_2 - x_1))*(x - x_1). It is not a new idea, just the previous two stitched into one move — find the rate of change between the points, then anchor the line at one of them.

All these forms share one flaw: they cannot describe a vertical line. A vertical line has no slope (the run is zero, so rise over run divides by zero), and y = m*x + b simply has no value of m that works. The cure is the general form A*x + B*y + C = 0, where A, B, C are constants. This form is even-handed — it treats x and y symmetrically and never divides by anything. A vertical line is just B = 0 (for example x = 4 is 1*x + 0*y - 4 = 0); a horizontal line is A = 0. Every line in the plane, without exception, has a general-form equation, which is why it is the form of choice for proofs and for the distance from a point to a line formula.

form              equation                          best when you know
slope-intercept   y = m*x + b                       slope m and y-intercept b
point-slope       y - y_1 = m*(x - x_1)             slope m and one point
two-point         y - y_1 = (dy/dx)*(x - x_1)        two points (compute slope first)
general           A*x + B*y + C = 0                 anything, incl. vertical lines
The four forms of a line equation — same line, different starting information.

Slope decides parallel and perpendicular

Once a line is captured by its slope, two of geometry's most basic relations become pure arithmetic. Two non-vertical lines are parallel exactly when they have equal slopes: same lean, never meeting. They are perpendicular exactly when their slopes multiply to -1, that is, each slope is the negative reciprocal of the other — if one line has slope m, a line at right angles to it has slope -1/m. These are the rules of parallel and perpendicular slopes, and they turn 'are these lines at right angles?' into a one-line multiplication.

A quick example shows the power of this. The line y = 2*x + 1 has slope 2. A line parallel to it through (0, 5) keeps slope 2, so it is y = 2*x + 5. A line perpendicular to it has slope -1/2; through the origin that is y = -(1/2)*x. Notice how slope alone settled both questions — we never needed a protractor or a picture, just the two slopes and a rule. This is the heart of why coordinates make geometry computable.

Putting lines to work: intersections and proofs

Two lines that are not parallel meet at exactly one point, and equations let you find it without drawing anything. Because the crossing point lies on both lines, its coordinates satisfy both equations at once — so you solve the system of two lines together. Take y = 2*x - 1 and y = -x + 5. Set them equal: 2*x - 1 = -x + 5, giving 3*x = 6, so x = 2; then y = 2*2 - 1 = 3. The lines cross at (2, 3), and you can confirm it satisfies the second equation too: -2 + 5 = 3. Parallel lines, by contrast, give a contradiction when you try this — no solution — which is algebra's honest way of saying they never meet.

Line equations are also the workhorses of the coordinate proof you will meet at the end of this rung. Want to prove the diagonals of a square are perpendicular? Place the square at convenient coordinates, write the two diagonals' equations, and check that their slopes multiply to -1 — a synthetic theorem becomes a short calculation. Want to show three points are collinear? Confirm the slope from the first to the second equals the slope from the second to the third; equal slopes through a shared point mean one and the same line.