There are five completely different ways to write the equation of the exact same straight line, and every one of them is equally correct.
Most people leave school remembering one version of a line equation, the slope intercept form. But mathematicians actually use at least five distinct forms, each one useful in a different situation, and all of them describing the very same line.
One line, five different formulas
A linear equation can be written using slope and intercept, a single point and a slope, two known points, the intercepts on each axis, or a determinant form drawn from geometry. These forms were formally catalogued together in the 1925 textbook Analytic Geometry by Wilson and Tracey, a reference that shaped how the topic is still taught today.
The reason for so many versions comes down to convenience. Some problems hand you two points and nothing else. Others hand you a slope and a single coordinate. Rather than forcing every situation into one formula, mathematicians built several doors into the same room.
A line equation older than algebra itself
The idea of solving linear equations is far older than any of these named forms. The Rhind Papyrus, an Egyptian document dating back to around 1650 BCE, already contains some of the most significant linear equation problems known from ancient Egypt, worked out entirely in words rather than symbols.
It took the Greek mathematician Diophantus, in the 3rd century CE, to introduce symbols and shorthand that made writing these equations faster. Centuries later, in the 9th century, al-Khwarizmi systematized the methods for solving both linear and quadratic equations using techniques he called reduction and balancing, the same ideas that eventually gave algebra its name.
The one line that breaks the formula you learned
Here is the part that surprises a lot of people. Not every straight line can be written as y equals a slope times x plus a number. Vertical lines cannot be expressed that way at all, because doing so would require dividing by zero. A vertical line simply sits at a fixed value of x, and no amount of algebra can force it into the familiar function shape.
This single exception is why mathematicians distinguish between a function graph and a line in general. Every function has a graph that is a line, but not every line is the graph of a function.
Why one equation with two variables draws a line, and one with three draws a plane
There is a deeper pattern hiding underneath all five forms. A linear equation with two unknowns always describes a straight line in a flat, two dimensional plane. Add a third unknown, and the solution set becomes a plane inside three dimensional space instead. Mathematicians describe this using the idea of a hyperplane, a solution set one dimension smaller than the space it lives in.
That means the familiar picture of a plane in space is really just a special case of a much more general rule, one that keeps holding even in dimensions no one can actually visualize.
Five different formulas, one ancient Egyptian papyrus, and a rule that stretches into dimensions beyond human sight. All of that sits quietly behind an equation most people assume they fully understood back in middle school.

