Linear Equations - Definition, Forms, and Graphs

#Algebra
TL;DR
A linear equation is an equation where the variables appear only to the first power - no squares, no cubes, no roots. The graph is always a straight line. This article covers the three standard forms, how to graph each, how to convert between them, and the most common solving mistakes.
BT
Bhanzu TeamLast updated on May 13, 202612 min read

What Is a Linear Equation?

A linear equation is an equation where the variable (or variables) appear only to the first power. The simplest case has one variable:

$$ax + b = 0$$

and has exactly one solution. With two variables β€” the more common case for graphing β€” a linear equation looks like:

$$Ax + By = C$$

and describes a line in the coordinate plane. Every point $(x, y)$ that satisfies the equation lies on that line; every point on the line satisfies the equation.

A few examples:

  • $3x + 5 = 14$ β€” one variable, solution $x = 3$

  • $y = 2x + 1$ β€” two variables, graph is a line with slope $2$ and y-intercept $1$

  • $4x - 3y = 12$ β€” two variables, standard form

The defining feature is first-power variables only. The moment you see $x^2$, $\sqrt{x}$, $\frac{1}{x}$, or $xy$, the equation is no longer linear.

The Three Standard Forms

The same line can be written in three different forms β€” each useful for different purposes. Knowing how to read each form and convert between them is the practical core of linear equations.

1. Standard Form

$$Ax + By = C$$

where $A$, $B$, and $C$ are constants (usually written so $A$, $B$, $C$ are integers and $A \geq 0$). Standard form is the most general β€” it can represent vertical lines (when $B = 0$), which the other forms cannot.

Example. $4x + 3y = 12$.

Useful for: Finding the x-intercept and y-intercept quickly. Set $y = 0$ to find the x-intercept: $4x = 12$, so $x = 3$. Set $x = 0$ to find the y-intercept: $3y = 12$, so $y = 4$. The line goes through $(3, 0)$ and $(0, 4)$.

2. Slope-Intercept Form

$$y = mx + b$$

where $m$ is the slope (rise over run) and $b$ is the y-intercept (where the line crosses the y-axis).

Example. $y = 2x + 1$. Slope $m = 2$ (the line rises 2 units for every 1 unit right); y-intercept $b = 1$ (the line crosses the y-axis at $(0, 1)$).

Useful for: Graphing. Plot the y-intercept first, then use the slope to find a second point.

3. Point-Slope Form

$$y - y_1 = m(x - x_1)$$

where $m$ is the slope and $(x_1, y_1)$ is a specific point the line passes through.

Example. A line through $(2, 5)$ with slope $3$: $y - 5 = 3(x - 2)$.

Useful for: Writing the equation of a line when you know the slope and one point β€” or when you know two points (compute the slope first, then plug in either point).

Slope β€” What It Measures

The slope of a line measures its steepness β€” how much $y$ changes when $x$ changes by 1 unit. The formula, given two points $(x_1, y_1)$ and $(x_2, y_2)$ on the line:

$$m = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}}$$

  • Positive slope β€” line goes up from left to right.

  • Negative slope β€” line goes down from left to right.

  • Zero slope β€” horizontal line ($y = $ constant).

  • Undefined slope β€” vertical line ($x = $ constant). The denominator $x_2 - x_1$ is zero.

The slope is the rate of change β€” and it shows up far beyond mathematics. A car's speedometer shows the slope of the position-vs-time graph. A mortgage's interest rate is the slope of the monthly-payment-vs-balance line. A drug's clearance from the bloodstream has a logarithmic graph whose slope is the half-life.

How to Graph a Linear Equation

Three methods cover almost every situation.

Method 1: From Slope-Intercept Form

For $y = mx + b$:

  1. Plot the y-intercept $(0, b)$.

  2. From that point, use the slope: rise (numerator) up, run (denominator) right. Plot a second point.

  3. Draw a line through the two points.

Example. $y = \frac{1}{2} x - 3$.

  1. y-intercept: $(0, -3)$.

  2. Slope $\frac{1}{2}$: from $(0, -3)$, go up $1$ and right $2$ to reach $(2, -2)$.

  3. Draw the line.

Method 2: From Standard Form (Using Intercepts)

For $Ax + By = C$:

  1. Set $y = 0$ to find the x-intercept: $Ax = C$, so $x = C/A$.

  2. Set $x = 0$ to find the y-intercept: $By = C$, so $y = C/B$.

  3. Plot both intercepts. Draw a line through them.

Example. $4x + 3y = 12$.

  1. x-intercept: $4x = 12 \Rightarrow (3, 0)$.

  2. y-intercept: $3y = 12 \Rightarrow (0, 4)$.

  3. Draw the line through both.

Method 3: From a Table of Values

Pick three values of $x$, compute the corresponding $y$, plot, draw.

How Do You Solve a Linear Equation in One Variable?

Solving a linear equation in one variable means isolating that variable on one side using the four legal moves (add, subtract, multiply, divide both sides by the same non-zero quantity).

The 4-step procedure.

  1. Clear fractions and parentheses. Multiply through to remove denominators; distribute to remove parentheses.

  2. Combine like terms on each side.

  3. Move the variable to one side and constants to the other (add/subtract).

  4. Divide by the coefficient of the variable.

Worked example. Solve $3(x - 4) + 5 = 2x + 1$.

Step 1: Distribute β†’ $3x - 12 + 5 = 2x + 1$. Step 2: Combine β†’ $3x - 7 = 2x + 1$. Step 3: Subtract $2x$, add $7$ β†’ $x = 8$. Step 4: No coefficient to divide (already $1 \cdot x$). Check: $3(8-4) + 5 = 17$ and $2(8) + 1 = 17$ βœ“.

Worked example with fractions. Solve $\frac{x}{2} + \frac{x}{3} = 5$.

Step 1: Multiply by the LCM (6) β†’ $3x + 2x = 30$. Step 2: Combine β†’ $5x = 30$. Step 3: Divide β†’ $x = 6$. Check: $\frac{6}{2} + \frac{6}{3} = 3 + 2 = 5$ βœ“.

What Are Linear Equations in Two Variables?

A linear equation in two variables has the form:

$$ax + by + c = 0 \quad \text{(or equivalently } ax + by = -c\text{)}$$

with $a$ and $b$ not both zero. Unlike one-variable equations, a single equation in two variables has infinitely many solutions β€” each one a pair $(x, y)$ β€” and together they trace out the line itself.

Example. $2x + y = 7$. The pairs $(0, 7)$, $(1, 5)$, $(3, 1)$, $(-2, 11)$ are all solutions. Plotting them traces the line.

Why you need two equations to pin down a single answer. With one equation in two unknowns, the solution set is a line. To narrow it to one point β€” one specific $(x, y)$ pair β€” you need a second equation. Together, they form a system.

How Do You Solve a System of Linear Equations?

A system of linear equations is a set of two (or more) linear equations to be satisfied simultaneously. The standard 2Γ—2 case:

$$\begin{cases} a_1 x + b_1 y = c_1 \ a_2 x + b_2 y = c_2 \end{cases}$$

Three solution methods cover the school-level cases.

Method 1: Substitution

Solve one equation for one variable, then substitute that expression into the other.

Example. Solve $\begin{cases} y = 2x + 1 \ 3x + y = 11 \end{cases}$.

Substitute the first into the second: $3x + (2x + 1) = 11$, so $5x = 10$, $x = 2$. Then $y = 2(2) + 1 = 5$. Solution: $(2, 5)$.

Method 2: Elimination

Add or subtract the equations (after scaling) to cancel one variable.

Example. Solve $\begin{cases} 2x + 3y = 13 \ 4x - 3y = 5 \end{cases}$.

Add the two equations: $6x = 18$, so $x = 3$. Substitute back: $2(3) + 3y = 13$, $3y = 7$, $y = 7/3$. Solution: $(3, 7/3)$.

Method 3: Graphing

Plot both lines on the same coordinate plane. The intersection point is the solution. Best for visual intuition, weakest for precise answers.

Number of Solutions

A 2Γ—2 system has three possibilities:

Geometric Picture

Algebraic Sign

Number of Solutions

Two lines cross at one point

Slopes differ

One unique solution

Two lines are the same line

Slopes equal, intercepts equal

Infinitely many

Two parallel lines (never meet)

Slopes equal, intercepts differ

None (inconsistent)

Larger systems (3Γ—3 and beyond) use the same ideas extended via matrix methods β€” Gaussian elimination, Cramer's rule, or matrix inversion. The 2Γ—2 case is the conceptual entry point.

Where Linear Equations Appear in the Real World

  • Speed and distance. A car travelling at constant speed traces a linear equation: $\text{distance} = \text{speed} \times \text{time}$.

  • Currency conversion. Converting US dollars to Indian rupees uses $y = mx$ β€” slope is the exchange rate.

  • Phone plan pricing. $\text{cost} = (\text{rate per GB}) \times (\text{GB used}) + (\text{base fee})$ β€” slope-intercept form.

  • Temperature conversion. Fahrenheit to Celsius is $C = \frac{5}{9}(F - 32)$ β€” point-slope form (with point $(32, 0)$).

  • Linear regression. The "line of best fit" through a scatter plot is a linear equation; data analysts use it every day.

At Bhanzu, our trainers anchor linear equations to a real-world example from day one β€” usually the phone-plan or distance-vs-time example. The forms feel arbitrary in isolation; they make immediate sense once a student sees that the y-intercept is the base fee and the slope is the per-unit cost.

A Worked Example β€” Wrong Path First

Write the equation of the line through $(1, 4)$ and $(3, 10)$ in slope-intercept form.

The intuitive (wrong) approach:

A student in a hurry computes the slope using $\frac{y_1 - y_2}{x_1 - x_2}$ but uses the wrong order and ends up with $\frac{4 - 10}{1 - 3} = \frac{-6}{-2} = 3$ β€” which is actually correct by coincidence. Then plugs into $y = mx + b$:

$$10 = 3(3) + b \quad\Rightarrow\quad b = 10 - 9 = 1$$

Final answer: $y = 3x + 1$. So far so good β€” the answer happens to be correct. But the slope formula is dangerous because order matters relatively, not absolutely: $\frac{y_1 - y_2}{x_1 - x_2}$ and $\frac{y_2 - y_1}{x_2 - x_1}$ both work only if you stay consistent on top and bottom. The student who computes $\frac{y_1 - y_2}{x_2 - x_1}$ gets $\frac{4 - 10}{3 - 1} = -3$ β€” wrong by a sign.

Why it fails for students who flip one but not the other:

The slope formula is $\frac{\Delta y}{\Delta x}$ β€” the difference in $y$ over the difference in $x$. If you subtract $y_1 - y_2$ on top, you must also subtract $x_1 - x_2$ on bottom β€” same order. Flipping only one direction produces the negative of the actual slope.

The correct method:

Step 1: Compute slope using consistent order $\frac{y_2 - y_1}{x_2 - x_1}$ (or $\frac{y_1 - y_2}{x_1 - x_2}$ β€” both work):

$$m = \frac{10 - 4}{3 - 1} = \frac{6}{2} = 3$$

Step 2: Use either point in $y = mx + b$. Use $(1, 4)$:

$$4 = 3(1) + b \quad\Rightarrow\quad b = 1$$

$$\boxed{y = 3x + 1}$$

Check: Plug in $(3, 10)$: $3(3) + 1 = 10$. βœ“

The rusher who flips only one of the two differences hits this constantly. The fix is to write out the slope formula explicitly with subscripts before plugging in numbers.

Common Mistakes with Linear Equations

Mistake 1: Flipping numerator and denominator inconsistently in the slope formula

Where it slips in: Computing slope from two points without keeping the subtraction order consistent.

Don't do this: $m = \frac{y_1 - y_2}{x_2 - x_1}$ β€” top and bottom in different orders.

The correct way: $m = \frac{y_2 - y_1}{x_2 - x_1}$ or $m = \frac{y_1 - y_2}{x_1 - x_2}$ β€” same order both top and bottom. Pick one consistently. The rusher who skips writing the formula explicitly makes this most often.

Mistake 2: Mistaking $y = b$ (horizontal) for $x = a$ (vertical)

Where it slips in: Equations like $y = 5$ or $x = 3$.

Don't do this: Drawing $x = 3$ as a horizontal line because "the equation looks like $y = ...$".

The correct way: $y = 5$ is a horizontal line (slope $0$, all points have $y$-coordinate 5). $x = 3$ is a vertical line (slope undefined, all points have $x$-coordinate 3). The memorizer who pattern-matches "equation = number, draw a line" without checking which variable hits this.

Mistake 3: Treating $y = mx + b$ as the only form

Where it slips in: Trying to fit a vertical line into slope-intercept form. Vertical lines have undefined slope and cannot be written as $y = mx + b$.

Don't do this: Writing $x = 5$ as $y = (\infty) x + b$. Slope-intercept form doesn't accommodate vertical lines.

The correct way: For vertical lines, use standard form $x = a$, or the standard-form $1 \cdot x + 0 \cdot y = a$. The second-guesser who senses "this doesn't fit $y = mx + b$" is right β€” the equation just lives in a different form.

The real-world version of the mistake. In 2003, the Mars Climate Orbiter mishap report identified a related class of failure mode β€” engineers using two different reference frames as if they were the same. The pattern is the same as "horizontal vs vertical line confusion" β€” two things that look like equations but encode different directional information. Direction matters in both algebra and engineering, and conflating the two is the same shape of error.

The Mathematicians Who Shaped Linear Equations

RenΓ© Descartes (1596–1650, France) β€” Invented analytic geometry in his 1637 book La GΓ©omΓ©trie, connecting algebraic equations to geometric curves through the coordinate plane (now called the Cartesian plane in his honour). His insight that every linear equation corresponds to a line β€” and vice versa β€” is the foundation of every graph in every science textbook today.

Pierre de Fermat (1607–1665, France) β€” Independently developed the same idea (analytic geometry) around the same time as Descartes, in correspondence later collected as Ad Locos Planos et Solidos Isagoge. Fermat and Descartes never met but were rival contributors to the foundation of modern coordinate geometry.

Muhammad ibn Musa al-Khwarizmi (c. 780–c. 850, Persia/Baghdad) β€” His 9th-century Al-Jabr gave the first systematic procedures for solving linear equations algebraically. The connection to lines came much later, with Descartes; al-Khwarizmi worked entirely with the equation form.

Three mathematicians, separated by 800 years, built the algebraic and geometric sides of what we now call a linear equation.

A Practical Next Step

Try these three problems before moving on to systems of linear equations.

  1. Write the equation of the line with slope $-2$ and y-intercept $5$ in slope-intercept form.

  2. Find the slope of the line through $(2, 3)$ and $(5, 12)$.

  3. Convert $4x - 2y = 8$ to slope-intercept form. What's the slope? The y-intercept?

If problem 3 felt tricky, the move is: isolate $y$. Start by subtracting $4x$ from both sides; then divide everything by $-2$. Want a live Bhanzu trainer to walk through more linear-equation problems? Book a free demo class β€” online globally.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is a linear equation?
A linear equation is an equation where the variables appear only to the first power β€” no squares, cubes, or roots. The graph of a linear equation in two variables is always a straight line.
What are the three forms of a linear equation?
Standard form ($Ax + By = C$), slope-intercept form ($y = mx + b$), and point-slope form ($y - y_1 = m(x - x_1)$). Each form makes different information easy to read: standard form for intercepts, slope-intercept for graphing, point-slope when you know the slope and one point.
How do I find the slope from two points?
Use the formula $m = \frac{y_2 - y_1}{x_2 - x_1}$. Keep the subtraction order consistent β€” if you do $y_2 - y_1$ on top, do $x_2 - x_1$ on bottom. Flipping just one gives the negative of the actual slope.
What does the y-intercept mean?
The y-intercept is the point where the line crosses the y-axis β€” the value of $y$ when $x = 0$. In slope-intercept form $y = mx + b$, the y-intercept is $b$.
What is a vertical line's slope?
A vertical line's slope is undefined β€” because the slope formula $\frac{y_2 - y_1}{x_2 - x_1}$ has $x_2 - x_1 = 0$ in the denominator. Vertical lines have the form $x = a$ and cannot be written in slope-intercept form.
How is a linear equation different from a quadratic equation?
A linear equation has variables raised only to the first power (graph: straight line). A quadratic equation has at least one variable raised to the second power (graph: parabola). Linear equations have one solution; quadratic equations have up to two.
Who invented analytic geometry?
RenΓ© Descartes (1637) and Pierre de Fermat (around the same time, independently). They connected algebraic equations to geometric curves β€” making it possible to graph an equation and to write an equation for a curve. The coordinate plane is called the Cartesian plane after Descartes.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now β†’