In short

A linear equation ax + b = 0 with a \neq 0 has exactly one solution: x = -\frac{b}{a}. The reason is that the left-hand side, viewed as a function of x, is one-to-one — every input gives a different output, so exactly one input lands on the output 0. Geometrically, y = ax + b is a straight line with non-zero slope, and a tilted line crosses the x-axis at exactly one point. If a = 0 the equation collapses to b = 0, which is either always true (infinite solutions) or never true (no solutions). That is why the textbook insists a \neq 0.

You have just learnt to solve 3x + 5 = 0, and the answer popped out clean: x = -\frac{5}{3}. Then your friend tries 2x + 3 = 2x + 7 and gets 0 = 4, and the textbook calls it "no solution". Then someone shows you 5(x - 1) = 5x - 5, and after simplifying you get 0 = 0, and the answer is "infinite solutions". Three equations, three completely different verdicts — and they are all called linear.

So which is it? Does a linear equation have one solution, none, or infinitely many? The honest answer is: a proper linear equation has exactly one solution, always. The other two cases are not really linear equations at all — they are what happens when the coefficient of x secretly becomes zero. This article explains why, in three different ways: algebraically, graphically, and by carefully examining what goes wrong in the degenerate cases.

The algebraic argument

Start with the standard form

ax + b = 0, \qquad a \neq 0.

Because a \neq 0, you are allowed to divide by it. Subtract b from both sides, then divide by a:

ax = -b \implies x = -\frac{b}{a}.

That is one specific number. Why: division by a non-zero real number always produces exactly one real number — there is no ambiguity, no choice, no second answer.

To be sure no other value of x also works, suppose two values x_1 and x_2 both satisfy the equation. Then

ax_1 + b = 0 \quad \text{and} \quad ax_2 + b = 0.

Subtract the second from the first:

a(x_1 - x_2) = 0.

Since a \neq 0, the only way this product can be zero is if x_1 - x_2 = 0, i.e. x_1 = x_2. Why: in the real numbers, ab = 0 forces a = 0 or b = 0 — there are no zero divisors. So with a \neq 0, the second factor must vanish.

This is the "one-to-one" property of the function f(x) = ax + b: different inputs always give different outputs. So exactly one input — namely -\frac{b}{a} — gives the output 0.

$3x + 5 = 0$ — the textbook case

Subtract 5: 3x = -5. Divide by 3: x = -\frac{5}{3}.

Plug back in: 3 \cdot (-\frac{5}{3}) + 5 = -5 + 5 = 0. Confirmed. And no other real number works, because if 3x_0 + 5 = 0 then x_0 is forced to equal -\frac{5}{3} by the cancellation argument above.

The graphical argument

Now picture the same equation as the intersection of a line with the x-axis. Let

y = ax + b.

This is a straight line. The number a is its slope — how steep it is. The condition a \neq 0 means the line is tilted: it is not horizontal.

A tilted line, extended forever in both directions, must cross the x-axis somewhere. Why: a non-horizontal line goes up forever in one direction and down forever in the other. Somewhere in between it must pass through every horizontal level, including the level y = 0.

And it crosses at exactly one point, because once a tilted line has crossed the x-axis it keeps going in the same direction — it never comes back. So the equation ax + b = 0, which asks "for what x does y = 0?", has exactly one answer.

The graphical picture also makes the degenerate cases visible. Set a = 0 and the line becomes horizontal: y = b. Now there are only two possibilities for where it sits relative to the x-axis.

a ≠ 0 — one solution x = −b/a x y a = 0, b ≠ 0 — no solution y = b x y a = 0, b = 0 — infinite y = 0 x y

The three pictures are the whole story. A tilted line punctures the x-axis at one point. A horizontal line above (or below) the axis never touches it. A horizontal line on the axis sits on top of it forever. There is no fourth option, and the middle picture is the only one with the "no solution" verdict, while the right one is the only one with infinitely many.

The degenerate cases — when a = 0

What if you ignore the condition a \neq 0 and write 0 \cdot x + b = 0? The x has been multiplied into oblivion — it no longer appears in the equation. What is left is just a statement about b.

Case 1: b = 0. The equation reads 0 = 0. Why: 0 \cdot x = 0 for every real x, so the LHS is always 0, and the equation becomes the trivially true statement 0 = 0. Every real number is a "solution" because every real number makes both sides equal. Infinite solutions.

Case 2: b \neq 0. The equation reads 0 = b where b is some non-zero number — say 0 = 7. That is just false, full stop. There is no value of x that can rescue it, because x is not even in the equation any more. No solutions.

This is why the definition of a linear equation in one variable insists on a \neq 0. The form ax + b = 0 with a = 0 is not a "linear equation with weird behaviour" — it is not a linear equation at all. It is a constant equation in disguise, and constants are either always true or always false.

The "no solution" trap: $2x + 3 = 2x + 7$

At first glance this looks fine. Subtract 2x from both sides:

3 = 7.

The variable has vanished. What was a? It started as 2 on each side, and the difference of coefficients is 2 - 2 = 0. So in disguised standard form, the equation is

(2 - 2)x + (3 - 7) = 0 \implies 0 \cdot x - 4 = 0 \implies 0 = 4.

False. No solution. Geometrically, y = 2x + 3 and y = 2x + 7 are two parallel lines — same slope, different intercepts — that never meet. The "solution to the equation" would be the x-value where they cross, and they never cross.

The "infinite solutions" trap: $5(x - 1) = 5x - 5$

Expand the left: 5x - 5 = 5x - 5. Subtract 5x from both sides: -5 = -5, i.e. 0 = 0.

In standard form: (5 - 5)x + (-5 - (-5)) = 0 \implies 0 \cdot x + 0 = 0. Both a and b vanished. Infinite solutions — every real x works. Geometrically, y = 5(x - 1) and y = 5x - 5 are the same line, drawn twice. Every point on the line "satisfies" the equation because the two sides are literally the same expression.

A preview of Class 10 — the same trichotomy in two variables

The pattern you have just met — exactly one solution, no solution, or infinitely many — is not special to one-variable equations. In Class 10 you will study systems of two linear equations in two variables, like

2x + 3y = 7, \qquad 4x - y = 1.

Each equation is a line in the plane, and a "solution" to the system is a point that lies on both lines. The same three things can happen:

The trichotomy is the same. The geometry is the same. The only difference is that you are asking two lines to agree, instead of one line to hit the x-axis. The principle that "linear systems have one, none, or infinitely many solutions" is one of the cleanest results in algebra, and it generalises to three variables, four variables, and the entire subject of linear algebra in college.

So when your textbook says "a linear equation has a unique solution", it is telling you the typical case. When it adds "unless degenerate", it is acknowledging that if the coefficient of x accidentally cancels, you fall off the cliff into the no-solution or infinite-solution land. The same cliff exists for systems, for matrices, and for every linear thing you will ever study. Spotting the cliff early — by checking whether a = 0 — saves you from confusion later.

References