Solve for X Calculator

One-step, two-step and multi-step equations with every operation shown
3x + 7 = 22
5x - 3 = 2x + 9
4(x + 3) - 2x = 3x - 5
(x + 2)/3 = 4

What "Solve for X" Means

An equation is a balance. Whatever you do to one side you must do to the other, and the balance still holds. Solving for xx means peeling operations off xx — using the inverse of each one — until xx stands alone on one side.

The inverses are the obvious pairs: addition undoes subtraction, multiplication undoes division, and squaring undoes a square root.

In 3x+7=223x + 7 = 22, two things have been done to xx: it was multiplied by 3, then 7 was added. Undo them in reverse order, like taking off shoes after socks — subtract the 7 first, then divide by the 3:

3x+7=22    3x=15    x=53x + 7 = 22 \;\Rightarrow\; 3x = 15 \;\Rightarrow\; x = 5

That reverse order is the whole idea behind "two-step" equations, and it does not change no matter how many steps get added.

Multi-Step: Tidy First, Then Undo

Before undoing anything, clean up each side:

  1. Distribute through any brackets: 4(x+3)=4x+124(x + 3) = 4x + 12. Multiply the outside term by every term inside.
  2. Combine like terms on each side separately: 4x+122x4x + 12 - 2x becomes 2x+122x + 12. Only terms with the identical variable part combine — 2x2x and 2x22x^2 do not.
  3. Clear fractions by multiplying every term by the least common denominator. x+23=4\frac{x+2}{3} = 4 becomes x+2=12x + 2 = 12 in one move.
  4. Gather the variables on one side by adding or subtracting a variable term from both sides. Move them to whichever side keeps the coefficient positive — it prevents sign errors.
  5. Undo the remaining two operations in reverse order.
  6. Substitute your answer back into the original equation. This catches nearly every slip, and it costs ten seconds.

Common Mistakes to Avoid

  • Distributing to only the first term. 4(x+3)4(x + 3) is 4x+124x + 12, never 4x+34x + 3.
  • Dropping a negative through brackets. 2(x5)=2x+10-2(x - 5) = -2x + 10; the minus hits both terms.
  • Operating on one side only. Subtracting 7 from the left means subtracting 7 from the right in the same line.
  • Combining unlike terms. 3x+53x + 5 is already finished; it does not become 8x8x.
  • Dividing only part of a side. From 2x+6=102x + 6 = 10, dividing by 2 gives x+3=5x + 3 = 5, not x+6=5x + 6 = 5.
  • Panicking when xx disappears. If you end at 0=80 = 8 there is no solution; if you end at 0=00 = 0 every value of xx works. Both are legitimate answers, not errors.

示例题目

Step 1: Undo the addition: subtract 7 from both sides. 3x+77=2273x + 7 - 7 = 22 - 7
Step 2: 3x=153x = 15
Step 3: Undo the multiplication: divide both sides by 3. x=153=5x = \frac{15}{3} = 5
Step 4: Check: 3(5)+7=15+7=223(5) + 7 = 15 + 7 = 22
Answer: x=5x = 5

Step 1: Variables appear on both sides, so subtract 2x2x from each side: 3x3=93x - 3 = 9.
Step 2: Add 3 to both sides: 3x=123x = 12.
Step 3: Divide by 3: x=4x = 4.
Step 4: Check both sides separately: left =5(4)3=17= 5(4) - 3 = 17; right =2(4)+9=17= 2(4) + 9 = 17
Answer: x=4x = 4

Step 1: Distribute on the left: 4x+122x=3x54x + 12 - 2x = 3x - 5.
Step 2: Combine like terms on the left: 2x+12=3x52x + 12 = 3x - 5.
Step 3: Subtract 2x2x from both sides to keep the coefficient positive: 12=x512 = x - 5.
Step 4: Add 5 to both sides: x=17x = 17.
Step 5: Check: left =4(20)34=8034=46= 4(20) - 34 = 80 - 34 = 46; right =3(17)5=515=46= 3(17) - 5 = 51 - 5 = 46
Answer: x=17x = 17

常见问题

The reverse of the order they were applied. Since the order of operations builds an expression by doing multiplication before addition, you unwind it by removing the addition or subtraction first and the multiplication or division last.

Add or subtract one of the variable terms so all the x ends up on a single side, then finish normally. Choose the side that leaves a positive coefficient, because it removes the most common source of sign errors.

If you are left with a false statement such as 0 = 8, the equation has no solution. If you are left with a true statement such as 0 = 0, every number is a solution and the equation is an identity. Neither outcome means you made a mistake.

Multiply every term on both sides by the least common denominator, which clears all the fractions in one step. Be careful to multiply whole sides, not just the fractional terms, and remember that a fraction bar groups everything above it like a bracket.

相关求解器

免费试用 AI-Math

任何数学问题都能获得分步解答。拍照上传或输入问题即可。

开始解题