How to Solve for x in Algebraic Equations

#Algebra
TL;DR
To solve for xx means to isolate xx on one side of an equation using legal moves. The method depends on the equation type — linear, quadratic, radical, rational, or exponential — but the underlying logic is always the same: undo operations in reverse order until xx stands alone.
BT
Bhanzu TeamLast updated on May 19, 20267 min read

What Does "Solve for x" Mean?

To solve for xx means to find the value (or values) of xx that make the equation true. Geometrically, you're finding where the left side equals the right side.

The four legal moves that preserve equality:

  1. Add the same quantity to both sides.

  2. Subtract the same quantity from both sides.

  3. Multiply both sides by the same non-zero quantity.

  4. Divide both sides by the same non-zero quantity.

Every algebraic solving step is one of these four — or a combination. Master those, and you can solve almost any equation.

The General Process

For any equation:

  1. Simplify each side separately — combine like terms, distribute, clear fractions.

  2. Move all xx-terms to one side, all constants to the other.

  3. Isolate xx by undoing operations in reverse order of how they were applied.

  4. Check by substituting back into the original equation.

The four steps look the same regardless of equation type — the specifics differ.

How to Solve for x in a Linear Equation

A linear equation has xx to the first power: ax+b=cax + b = c.

Worked example. Solve 5x−3=2x+125x - 3 = 2x + 12.

Step 1: Subtract 2x2x from both sides → 3x−3=123x - 3 = 12. Step 2: Add 33 to both sides → 3x=153x = 15. Step 3: Divide both sides by 33 → x=5x = 5. Step 4: Check. 5(5)−3=225(5) - 3 = 22 and 2(5)+12=222(5) + 12 = 22 ✓.

How to Solve for x in a Quadratic Equation

A quadratic equation has x2x^2 as its highest power: ax2+bx+c=0ax^2 + bx + c = 0. Three methods:

Method 1: Factoring

Find numbers that multiply to give acac and add to give bb.

Example. Solve x2−5x+6=0x^2 - 5x + 6 = 0.

Look for two numbers multiplying to 66 and adding to −5-5: those are −2-2 and −3-3. So (x−2)(x−3)=0(x - 2)(x - 3) = 0, giving x=2x = 2 or x=3x = 3.

Method 2: Quadratic Formula

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Works for any quadratic. Use when factoring isn't obvious.

Method 3: Completing the Square

Rewrite the quadratic as a perfect square plus a constant. Useful for understanding the formula's derivation; less common for routine problem-solving.

How to Solve for x in a Radical Equation

A radical equation has xx inside a square root (or higher root): x+3=5\sqrt{x + 3} = 5.

Process. Isolate the radical, then square (or cube) both sides to eliminate it.

Worked example. Solve x+3=5\sqrt{x + 3} = 5.

Step 1: Square both sides → x+3=25x + 3 = 25. Step 2: Subtract 33 → x=22x = 22. Step 3: Check (essential — squaring can introduce extraneous roots). 22+3=25=5\sqrt{22 + 3} = \sqrt{25} = 5 ✓.

How to Solve for x in a Rational Equation

A rational equation has xx in a denominator: 2x−1=43\dfrac{2}{x - 1} = \dfrac{4}{3}.

Process. Multiply both sides by the common denominator to clear the fractions, then solve as a linear or polynomial equation.

Worked example. Solve 2x−1=43\dfrac{2}{x - 1} = \dfrac{4}{3}.

Step 1: Cross-multiply → 2⋅3=4(x−1)2 \cdot 3 = 4(x - 1), i.e., 6=4x−46 = 4x - 4. Step 2: Solve → 4x=104x = 10, so x=52x = \tfrac{5}{2}. Step 3: Check x=5/2x = 5/2 doesn't make any denominator zero (x≠1x \neq 1) ✓.

Three Worked Examples — Quick, Standard, Stretch

Quick — Linear

Solve 4(x−2)=3x+64(x - 2) = 3x + 6.

Distribute: 4x−8=3x+64x - 8 = 3x + 6. Subtract 3x3x: x−8=6x - 8 = 6. Add 8: x=14x = 14.

Standard — Quadratic

Solve x2−4x−21=0x^2 - 4x - 21 = 0.

Use the quadratic formula with a=1,b=−4,c=−21a = 1, b = -4, c = -21:

x=4±16+842=4±102=7 or −3x = \frac{4 \pm \sqrt{16 + 84}}{2} = \frac{4 \pm 10}{2} = 7 \text{ or } -3

Stretch — Rational + Quadratic

Solve x+1x−2=3\dfrac{x + 1}{x - 2} = 3.

Cross-multiply: x+1=3(x−2)=3x−6x + 1 = 3(x - 2) = 3x - 6. So −2x=−7-2x = -7, giving x=72x = \tfrac{7}{2}.

Check: at x=7/2x = 7/2, denominator x−2=3/2≠0x - 2 = 3/2 \neq 0 ✓; left side =(7/2+1)/(7/2−2)=(9/2)/(3/2)=3= (7/2 + 1)/(7/2 - 2) = (9/2)/(3/2) = 3 ✓.

Why Does Solving for x Matter? (The Real-World GROUND)

"Algebra is the intellectual instrument for converting questions into answers." — adapted.

Solving for xx — finding the value of an unknown — is the operational core of applied mathematics:

  • Physics. Solving for the time a projectile lands, for the resistance in a circuit, for the period of a pendulum — all are solve-for-xx problems.

  • Economics. Equilibrium prices, break-even quantities, optimal allocations — all reduce to solving equations for an unknown.

  • Engineering. Designing for a specific load, dose, or tolerance is the question "what value of xx makes this equation balance?"

  • Computer science. Numerical algorithms (Newton's method, bisection) are sophisticated automations of solve-for-xx.

The systematic solve-for-xx method comes from Al-Khwarizmi's 820 CE Al-Jabr — the book whose title gave us algebra. His central insight was that moving terms across an equals sign (al-jabr = "restoration") gives a systematic way to isolate unknowns.

Learn more: Equation in Math

A Worked Example

Solve 3x+5=143x + 5 = 14.

The intuitive (wrong) approach. A student "deals with the 33 first" and divides both sides by 33:

3x+53=143  ⟹  x+53=143\frac{3x + 5}{3} = \frac{14}{3} \implies x + \frac{5}{3} = \frac{14}{3}

The work goes nowhere useful — fractions everywhere, equation not simpler.

Why it fails. Operations should be undone in reverse order of how they were applied. The 55 was added to 3x3x last, so subtract first. The 33 multiplied xx first, so divide last.

The correct method. Step 1: 3x+5−5=14−53x + 5 - 5 = 14 - 5 → 3x=93x = 9. Step 2: 3x/3=9/33x / 3 = 9/3 → x=3x = 3.

Check. 3(3)+5=143(3) + 5 = 14 ✓.

What Are the Most Common Mistakes With "Solve for x"?

Mistake 1: Doing the same operation to one side only

Where it slips in: Adding 55 to one side and forgetting the other.

Don't do this: 3x=14−53x = 14 - 5 in one line that started as 3x+5=143x + 5 = 14.

The correct way: Every operation on the left must be done on the right too. Show the move explicitly: 3x+5−5=14−5  ⟹  3x=93x + 5 - 5 = 14 - 5 \implies 3x = 9.

Mistake 2: Forgetting to check for extraneous roots in radical equations

Where it slips in: Solving x=−2\sqrt{x} = -2 and writing x=4x = 4 without checking.

Don't do this: Treating x=4x = 4 as a valid solution.

The correct way: Substitute back: 4=2≠−2\sqrt{4} = 2 \neq -2. The equation x=−2\sqrt{x} = -2 has no solution because square roots are non-negative.

Mistake 3: Dividing by zero implicitly

Where it slips in: Cancelling (x−2)(x - 2) from both sides without noting that x≠2x \neq 2.

Don't do this: From (x−2)(x+3)=0(x - 2)(x + 3) = 0, dividing by (x−2)(x - 2) to get x+3=0x + 3 = 0.

The correct way: Don't divide by (x−2)(x - 2) — instead, conclude x−2=0x - 2 = 0 OR x+3=0x + 3 = 0. Dividing loses the root x=2x = 2.

Key Takeaways

  • "Solve for xx" means isolate xx using the four legal moves (add, subtract, multiply, divide both sides).

  • Method depends on equation type: linear, quadratic, radical, rational, exponential — each has a specific approach.

  • Undo operations in reverse order of how they were applied.

  • Check for extraneous roots when squaring both sides or multiplying by expressions containing xx.

  • Always verify by substituting back into the original equation.

A Practical Next Step

Try these three before moving on to systems of equations.

  1. Solve 4x−7=2x+114x - 7 = 2x + 11.

  2. Solve x2+5x+6=0x^2 + 5x + 6 = 0 by factoring.

  3. Solve 2x+7=5\sqrt{2x + 7} = 5 and check for extraneous roots.

If problem 3 felt tricky, square both sides: 2x+7=252x + 7 = 25, so x=9x = 9. Check: 2(9)+7=25=5\sqrt{2(9) + 7} = \sqrt{25} = 5 ✓. Want a Bhanzu trainer to walk through more solve-for-xx problems? Book a free demo class — online globally.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What does "solve for x" mean?
It means find the value (or values) of xx that make the equation true. You do this by isolating xx on one side of the equation using the four legal moves (add, subtract, multiply, divide both sides equally).
How do I know which method to use?
By the type of equation. Linear → legal moves. Quadratic → factor, formula, or complete the square. Radical → isolate and square. Rational → multiply by common denominator. Exponential → take logs.
What is an extraneous root?
A value that satisfies the transformed equation but not the original — usually introduced when you square both sides or multiply by an expression containing the variable. Always check solutions in the original equation.
Can an equation have no solution?
Yes. x=−2\sqrt{x} = -2 has no real solution (square roots can't be negative). 0=10 = 1 after simplification means the original equation is inconsistent.
How do I check my solution?
Substitute the value back into the original equation (not a simplified form). If both sides match, the solution is correct.
✍️ 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 →