In short

A linear equation in one variable has the form ax + b = 0 where a \neq 0. Its solution is a single value of x that makes both sides equal. Solving one means applying the do-the-same-to-both-sides rule — add, subtract, multiply, divide — until x stands alone. Equations with fractions require clearing denominators first, and word problems require translating a sentence into algebra before any solving begins. Occasionally the algebra produces a value that does not actually satisfy the original equation — an extraneous solution — and checking your answer catches it.

A shopkeeper in Jaipur sells notebooks for ₹40 each. After a full day of sales, the cash register shows ₹2,200 from notebooks alone. How many notebooks were sold?

You already know the answer is 2200 \div 40 = 55. But notice what you did to get it. You set up a relationship — price times quantity equals total — plugged in the known values, and solved for the unknown. That relationship, written out, is

40x = 2200

where x is the number of notebooks. This is a linear equation in one variable. The word linear means the unknown x appears to the first power only — no x^2, no \sqrt{x}, no x in a denominator. The word one variable means there is exactly one unknown letter.

Every linear equation in one variable, no matter how tangled it looks on the page, boils down to the same skeleton: isolate x on one side, everything else on the other. The tools for doing this are exactly the properties from Operations and Properties: the additive inverse to cancel constants, the multiplicative inverse to cancel coefficients, and the distributive law to clear brackets. This article is the manual for using those tools fluently.

What makes an equation linear

An equation is linear in x when, after all simplification, the highest power of x is 1. Here are some examples and non-examples.

Equation Linear? Why
3x + 7 = 22 Yes x appears to the first power
5(x - 3) = 2x + 9 Yes after expanding, every x term is degree 1
\frac{x}{4} + 1 = 3 Yes \frac{x}{4} = \frac{1}{4} \cdot x is still degree 1
x^2 - 5x + 6 = 0 No x^2 makes it quadratic
\frac{1}{x} = 5 No x is in the denominator, which is x^{-1}

Linear equation in one variable

An equation that can be written in the form

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

where a and b are real constants and x is the unknown, is called a linear equation in one variable. Its unique solution is x = -\frac{b}{a}.

The condition a \neq 0 is load-bearing. If a = 0, the equation collapses to b = 0, which is either always true (if b = 0) or never true (if b \neq 0). Neither case gives a single solution for x, so neither is a proper linear equation.

Solving by isolating the variable

The strategy is always the same: use the do-the-same-to-both-sides rule to peel away everything surrounding x, one layer at a time.

Take 7x - 11 = 24.

Peel away the constant. Add 11 to both sides:

7x - 11 + 11 = 24 + 11 \implies 7x = 35

Peel away the coefficient. Divide both sides by 7:

\frac{7x}{7} = \frac{35}{7} \implies x = 5

Check: 7(5) - 11 = 35 - 11 = 24. Correct.

The order of peeling — constants first, then the coefficient — is not a rigid rule but a habit that keeps the arithmetic clean. You could divide first, but that usually introduces fractions early and makes the next step messier.

When both sides have the variable

If x appears on both sides, collect all x-terms on one side and all constants on the other.

Take 5x + 3 = 2x + 18.

Subtract 2x from both sides: 3x + 3 = 18.

Subtract 3 from both sides: 3x = 15.

Divide both sides by 3: x = 5.

Check: left side = 5(5) + 3 = 28, right side = 2(5) + 18 = 28. Both sides match.

When brackets appear

Brackets mean the distributive law comes first.

Take 4(2x - 1) - 3(x + 5) = 2.

Distribute: 8x - 4 - 3x - 15 = 2.

Combine like terms on the left: 5x - 19 = 2.

Add 19 to both sides: 5x = 21.

Divide by 5: x = \frac{21}{5}.

Check: 4(2 \cdot \frac{21}{5} - 1) - 3(\frac{21}{5} + 5) = 4(\frac{42}{5} - \frac{5}{5}) - 3(\frac{21}{5} + \frac{25}{5}) = 4 \cdot \frac{37}{5} - 3 \cdot \frac{46}{5} = \frac{148}{5} - \frac{138}{5} = \frac{10}{5} = 2. Correct.

Balance-scale model showing the do-the-same-to-both-sides principleA balance scale with two pans. The left pan contains the expression 7x minus 11 and the right pan contains 24. Below, three stages of the balance are shown as equations: adding 11 to both sides to get 7x equals 35, then dividing both sides by 7 to get x equals 5. Each stage keeps the scale balanced because the same operation is applied to both sides. 7x − 11 24 Add 11 to both sides → 7x = 35 Divide both sides by 7 → x = 5 Same operation on both pans keeps the scale balanced
A linear equation is a balanced scale. The left pan holds $7x - 11$, the right pan holds $24$. Adding $11$ to both pans and then dividing both pans by $7$ keeps the balance while isolating $x$. Every step is the do-the-same-to-both-sides rule from [Operations and Properties](/wiki/operations-and-properties).

Equations with fractions

When fractions appear, the cleanest first move is to clear all denominators by multiplying both sides by the LCM of the denominators. This converts the equation into one with only integers, which is easier to handle.

Take \frac{x}{3} + \frac{x}{4} = 7.

The denominators are 3 and 4, whose LCM is 12. Multiply every term by 12:

12 \cdot \frac{x}{3} + 12 \cdot \frac{x}{4} = 12 \cdot 7
4x + 3x = 84
7x = 84
x = 12

Check: \frac{12}{3} + \frac{12}{4} = 4 + 3 = 7. Correct.

Here is a more tangled one: \frac{3x + 1}{5} - \frac{2x - 3}{7} = 1.

The LCM of 5 and 7 is 35. Multiply every term by 35:

7(3x + 1) - 5(2x - 3) = 35
21x + 7 - 10x + 15 = 35
11x + 22 = 35
11x = 13
x = \frac{13}{11}

Check: \frac{3(13/11) + 1}{5} - \frac{2(13/11) - 3}{7} = \frac{39/11 + 11/11}{5} - \frac{26/11 - 33/11}{7} = \frac{50/11}{5} - \frac{-7/11}{7} = \frac{10}{11} + \frac{1}{11} = \frac{11}{11} = 1. Correct.

The key insight is that multiplying by the LCM is not a special trick — it is the multiplicative version of the same rule you already know. You are multiplying both sides by the same number, which preserves equality. The only thing that changes is that the denominators vanish, because each denominator divides evenly into the LCM.

Clearing fractions by multiplying both sides by the LCMA vertical flowchart showing three stages of solving x over 3 plus x over 4 equals 7. The first box shows the original fractional equation. An arrow labelled multiply both sides by LCM of 12 leads to a second box showing 4x plus 3x equals 84. An arrow labelled combine and divide leads to the answer x equals 12. x/3 + x/4 = 7 × 12 (LCM of 3 and 4) on both sides 4x + 3x = 84 combine like terms, divide by 7 x = 12
Clearing fractions early is the key move. Once the denominators are gone, the equation is a plain linear equation in integers — and you already know how to solve those.

Word problems

The hard part of a word problem is never the algebra. It is the translation — converting a sentence in English (or Hindi) into a sentence in algebra. Once the equation is written, solving it is the same mechanical process you have already practised.

Here is a reliable approach:

  1. Name the unknown. Write down what x stands for, with units if applicable.
  2. Write the relationship. Translate the problem's conditions into an equation involving x.
  3. Solve the equation.
  4. Interpret and check. Make sure the answer makes sense in the original context.

Example. Priya is three years older than twice Ravi's age. If the sum of their ages is 27, find Ravi's age.

Let Ravi's age be x years. Then Priya's age is 2x + 3 years. Their sum is 27:

x + (2x + 3) = 27
3x + 3 = 27
3x = 24
x = 8

Ravi is 8 years old; Priya is 2(8) + 3 = 19 years old. Check: 8 + 19 = 27. Correct.

Example. A train covers a certain distance at 60 km/h. If it had gone 20 km/h faster, the journey would have taken 1 hour less. Find the distance.

Let the distance be d km. At 60 km/h, the time is \frac{d}{60} hours. At 80 km/h, the time is \frac{d}{80} hours. The second time is 1 hour less:

\frac{d}{60} - \frac{d}{80} = 1

LCM of 60 and 80 is 240. Multiply both sides by 240:

4d - 3d = 240
d = 240

The distance is 240 km. Check: at 60 km/h the time is 4 hours, at 80 km/h the time is 3 hours. The difference is indeed 1 hour.

Four-step process for solving word problemsFour boxes arranged horizontally, connected by arrows, showing the four steps of solving a word problem: Name the unknown, Write the equation, Solve, and Check. Each box contains a brief description of the step. Step 1 Name the unknown (x) Step 2 Write the equation Step 3 Solve for x Step 4 Check in the original context Translation is the hard part; once the equation is written, the algebra is mechanical.
The four steps of every word problem. The crucial work happens at Step 2 — translating the English sentence into an algebraic equation. After that, solving is a routine application of the rules you already know.

Extraneous solutions

Sometimes the algebra hands you a value that does not actually work in the original equation. This happens most often when you clear denominators involving the variable, because multiplying both sides by an expression that might be zero can introduce a fake solution.

Take the equation \frac{x^2 - 4}{x - 2} = x + 3.

Factor the numerator: x^2 - 4 = (x - 2)(x + 2). So the left side becomes \frac{(x-2)(x+2)}{x-2}, which simplifies to x + 2 — but only when x \neq 2, because at x = 2 the denominator is zero and the original expression is undefined.

After simplification, the equation reads x + 2 = x + 3, which gives -1 = 0 — a contradiction. No value of x satisfies the equation.

But suppose you had instead cross-multiplied without noticing the restriction: (x^2 - 4) = (x - 2)(x + 3), expanding the right side to x^2 + x - 6, and then solving x^2 - 4 = x^2 + x - 6 gives x = 2. This is the extraneous solution — the algebra says x = 2, but plugging it back in produces \frac{0}{0} on the left side, which is undefined. The answer does not survive the check.

The rule is simple: always check your answer in the original equation, especially when you have multiplied both sides by an expression containing the variable. If the value makes any denominator zero, it is extraneous and must be discarded.

Here is a subtler case. Take \frac{5}{x - 1} + 2 = \frac{x + 9}{x - 1}.

Multiply both sides by (x - 1):

5 + 2(x - 1) = x + 9
5 + 2x - 2 = x + 9
2x + 3 = x + 9
x = 6

Check: left side = \frac{5}{5} + 2 = 1 + 2 = 3. Right side = \frac{15}{5} = 3. Both sides equal 3, so x = 6 is a valid solution — not extraneous.

The difference between the two cases: in the first, the candidate x = 2 made the denominator zero; in the second, the candidate x = 6 did not. The check catches the bad one and confirms the good one.

The solution on the number line

Every linear equation ax + b = 0 (with a \neq 0) has exactly one solution: x = -b/a. On the number line, this solution is a single point. You can see this by plotting the left-hand side as a function and asking where it crosses zero.

The interactive figure below shows the line y = ax + b. Drag the red point along the line and watch the readout. The solution is the x-value where y hits zero — the point where the line crosses the horizontal axis.

Interactive graph of y equals 3x minus 9 showing the root at x equals 3A coordinate plane showing the line y equals 3x minus 9. The line crosses the x-axis at x equals 3. A draggable red point on the line displays the current x and y values as the reader drags it. When the point reaches x equals 3, the y-readout shows zero, confirming the solution. x y −4 −3 −2 −1 0 1 2 3 4 5 6 7 10 20 5 ↔ drag the red point
The line $y = 3x - 9$. Drag the red point along the line. When $x = 3$, the readout shows $y = 0$ — that is the solution of $3x - 9 = 0$. To the left of $x = 3$, $y$ is negative; to the right, $y$ is positive. A linear equation in one variable always has exactly one crossing point, which is its unique solution.

Two worked examples

Example 1: Solve $\frac{2x + 5}{3} - \frac{x - 1}{4} = 2$

A fractional equation — the first move is to clear the denominators.

Step 1. Find the LCM of the denominators 3 and 4.

\text{LCM}(3, 4) = 12

Why: the LCM is the smallest number that both 3 and 4 divide into evenly. Multiplying through by 12 will turn every fraction into a whole-number expression.

Step 2. Multiply every term by 12.

12 \cdot \frac{2x + 5}{3} - 12 \cdot \frac{x - 1}{4} = 12 \cdot 2
4(2x + 5) - 3(x - 1) = 24

Why: 12 / 3 = 4, so the first fraction becomes 4(2x + 5). 12 / 4 = 3, so the second becomes 3(x - 1). The fractions are gone.

Step 3. Distribute and simplify.

8x + 20 - 3x + 3 = 24
5x + 23 = 24

Why: the distributive law clears the brackets (4 \times 2x = 8x, 4 \times 5 = 20, -3 \times x = -3x, -3 \times (-1) = +3), and then like terms combine (8x - 3x = 5x, 20 + 3 = 23).

Step 4. Isolate x.

5x = 24 - 23 = 1
x = \frac{1}{5}

Why: subtract 23 from both sides, then divide by 5. Two applications of the do-the-same-to-both-sides rule.

Result. x = \frac{1}{5}.

Step-by-step solution of a fractional linear equationA vertical flowchart showing four boxed stages of solving the equation (2x+5)/3 minus (x-1)/4 equals 2. The first box shows the original equation. The second box shows the equation after multiplying by 12: 4(2x+5) minus 3(x-1) equals 24. The third box shows the expanded and simplified form 5x plus 23 equals 24. The fourth box, highlighted in red, shows the solution x equals one-fifth. (2x + 5)/3 − (x − 1)/4 = 2 multiply both sides by 12 4(2x + 5) − 3(x − 1) = 24 distribute and combine like terms 5x + 23 = 24 subtract 23, divide by 5 x = 1/5
Four stages, each named by the rule it uses. The fractions vanish in one move (multiply by the LCM), and the rest is routine algebra. The answer $x = 1/5$ can be verified by substituting back into the original equation: $\frac{2(1/5)+5}{3} - \frac{(1/5)-1}{4} = \frac{27/5}{3} - \frac{-4/5}{4} = \frac{9}{5} + \frac{1}{5} = 2$.

The answer lives on the number line at the single point x = 1/5. If you graphed y = \frac{2x+5}{3} - \frac{x-1}{4} - 2, the line would cross the x-axis right there.

Example 2: Age problem — Anil and his father

Anil's father is 28 years older than Anil. In 5 years, the father's age will be twice Anil's age. Find their current ages.

Step 1. Name the unknown.

Let Anil's current age be x years. Then his father's current age is x + 28 years.

Why: the first sentence tells you the father is 28 years older, so his age is x + 28. One variable captures both unknowns.

Step 2. Write the equation from the second condition.

In 5 years: Anil's age will be x + 5, father's age will be (x + 28) + 5 = x + 33. The father's future age is twice Anil's future age:

x + 33 = 2(x + 5)

Why: "twice Anil's age" translates to 2(x + 5), not 2x + 5. The factor of 2 applies to the entire future age, not just to x.

Step 3. Solve.

x + 33 = 2x + 10
33 - 10 = 2x - x
23 = x

Why: distribute the 2, then collect x-terms on one side and constants on the other. The equation collapses to a single step.

Step 4. Interpret.

Anil is 23 years old. His father is 23 + 28 = 51 years old.

Why: check the future-age condition. In 5 years, Anil will be 28 and his father will be 56. Is 56 = 2 \times 28? Yes.

Result. Anil is 23, his father is 51.

Timeline showing current ages and ages in 5 years for Anil and his fatherTwo horizontal timelines, one for Anil and one for his father. Each timeline shows the current age on the left and the age in 5 years on the right. Anil's line shows 23 now and 28 in 5 years. His father's line shows 51 now and 56 in 5 years. An annotation shows that 56 is twice 28, confirming the equation. Age Timeline Now In 5 years 23 28 Anil +5 years → 51 56 Father +5 years → 56 = 2 × 28 ✓
The timeline makes the check visual. Both people age by $5$ years, and in the future column, the father's $56$ is exactly twice Anil's $28$. The equation $x + 33 = 2(x + 5)$ captured this relationship, and the algebra extracted the answer $x = 23$.

The key translation step was recognising that "twice Anil's age in 5 years" means 2(x + 5), not 2x + 5. Misplacing the bracket is the most common word-problem error — and the timeline diagram catches it, because you can verify the doubled quantity before you even start solving.

Common confusions

Going deeper

If you came here to learn the mechanics of solving linear equations — clearing fractions, handling word problems, spotting extraneous solutions — you have everything you need. What follows is for readers who want to see the deeper structure.

Why the solution is unique

A linear equation ax + b = 0 has exactly one solution because the function f(x) = ax + b is a straight line with slope a \neq 0. A non-horizontal line crosses the x-axis exactly once. This geometric fact — one crossing, one solution — is the reason linear equations are the simplest type of equation to solve, and why the whole process is so mechanical.

In contrast, a quadratic equation ax^2 + bx + c = 0 corresponds to a parabola, which can cross the x-axis zero, one, or two times. That is why quadratics need the quadratic formula and have a discriminant — the parabola might miss the axis entirely.

Linear equations as functions

When you plot y = ax + b, you get a straight line. The solution of ax + b = 0 is the x-intercept of that line. But the line also tells you something else: the sign of ax + b at every other point. To the left of the solution (if a > 0), ax + b is negative; to the right, it is positive. This is the idea behind solving linear inequalities — you find the root of the corresponding equation, then pick the correct side of the root based on the sign of a.

The general strategy: inverse operations

Every solving step is an inverse operation. Adding is undone by subtracting. Multiplying is undone by dividing. Squaring is undone by taking a square root. This is why the properties from Operations and Properties — additive inverse, multiplicative inverse — are the foundation of all equation-solving. Linear equations use only the first two inverses. Quadratics bring in the third. As equations get more complex, you need more kinds of inverse — but the fundamental idea never changes: peel off layers by applying the inverse of each operation, one at a time.

Equations with parameters

Sometimes a linear equation contains a parameter — a letter that is not the variable you are solving for. Take ax + b = cx + d, and solve for x. Subtract cx from both sides: (a - c)x + b = d. Subtract b: (a - c)x = d - b. Divide by (a - c): x = \frac{d - b}{a - c}, provided a \neq c. If a = c, the equation has no x-term, and it either has no solution (if b \neq d) or infinitely many (if b = d). The algebra is the same as before — the only new wrinkle is the condition a \neq c for a unique solution.

Where this leads next

Linear equations in one variable are the first rung of a ladder that extends through all of algebra.