Solve for X Step by Step
Three identical sealed envelopes plus $7 balance exactly with $22. Remove $7 from both sides, split what remains into three equal shares, and each envelope must hold $5.
Three sealed envelopes
Solving for x is not symbol relocation. It is a sequence of equivalent transformations, each justified by applying the same valid operation to both sides.
3x + 7 = 22 → 3x = 15 → x = 5If a = b, applying the same valid operation to both sides preserves equality.
Equality is a relationship, not a command to move terms.
Test the numbers while keeping the written reasoning beside them.Open solve for x calculator
Equality Is a Relationship, Not a Command
If you subtract seven from only the left side, is the new statement still equivalent to the original equation?
An equation says that two expressions have the same value. The equals sign is not an arrow pointing toward an answer, and a term does not literally jump across it.
Nothing jumps across the equals sign. Each frame performs the same operation on both sides, so the balance—and the solution—survives.
When 7 appears to change sign in the familiar shortcut, the real operation is subtracting 7 from both sides. Writing that operation preserves the relationship and explains why the new equation has the same solutions.
This view matters most when the arithmetic becomes less friendly. Negative coefficients, fractions, and parentheses are easier to manage when every step has a reason.
It also exposes dangerous moves, such as dividing by an expression that might be zero. Algebra becomes less about remembering where symbols go and more about protecting equivalence from one line to the next.
Picture the equals sign as the center of a balance. Removing weight from only one pan changes the claim. Removing the same amount from both pans creates a simpler equation while preserving the original balance.
Simplifying one side is different from changing both sides. Combining 2x + 3x into 5x merely rewrites one expression. Subtracting 7 is an operation on the equation, so it must be shown on both sides.
Solve 3x + 7 = 22. Subtract 7 on both sides: 3x = 15. Divide both sides by 3: x = 5. Substituting gives 3 × 5 + 7 = 22, equal to the right side.
Work Outward from the Variable
Why is undoing the outer operation first safer than attacking whichever number looks easiest?
In a linear equation such as 3x + 7 = 22, x is multiplied by 3 and then increased by 7.
- 01 · Clear the denominator2(x − 3) = 20Multiply both sides by 5.
- 02 · Undo multiplicationx − 3 = 10Divide both sides by 2.
- 03 · Undo subtractionx = 13Add 3 to both sides.
- 04 · Substitute2(13 − 3)/5 = 4The original equation balances.
Each line applies one valid inverse operation to both complete sides. The final substitution returns the original right side.
Isolation reverses those outer operations: subtract 7 from both sides to obtain 3x = 15, then divide both sides by 3 to obtain x = 5. The order is not arbitrary.
It unwinds the construction of the expression from the outside inward.
Parentheses invite a judgment call. In 4(x − 2) + 3 = 2x + 9, distributing first reveals 4x − 5 = 2x + 9.
In another problem, isolating the grouped expression before distributing may produce fewer opportunities for sign errors. The best step is the one that preserves equivalence while making the next structure easier to see.
Think of the variable as an object wrapped in layers. Addition is the outer wrapping, so undo it first; multiplication sits closer to x and is undone next. Each inverse operation removes one layer.
Fractions can often be cleared by multiplying every term by a common denominator. The word every matters: multiplying only the fractional term changes the equation. Write the multiplier beside both complete sides before simplifying.
Solve 3(x − 2)/4 + 1 = 7. Multiply both complete sides by 4: 3(x − 2) + 4 = 28. Then 3(x − 2) = 24, x − 2 = 8, and x = 10.
Substitution gives 6 + 1 = 7.
When x Appears on Both Sides
Must every variable term move left, or can a deliberate choice make the remaining arithmetic safer?
A variable on both sides does not require a new kind of algebra. Subtract one variable term from both sides, collect constants, and continue.
For the equation above, subtracting 2x gives 2x − 5 = 9; adding 5 gives 2x = 14; division gives x = 7.
Each line remains equivalent to the original because both sides received the same operation.
Signs deserve deliberate attention. If −2x = 6, division by −2 gives x = −3. Parentheses around negative substitutions and coefficients make the calculation readable.
A calculator may confirm the arithmetic, but it should not replace the written transformation: the written line is what shows that the equation, rather than an isolated collection of numbers, is being solved.
You may collect variable terms on either side. Choosing the side that leaves a positive coefficient often makes later arithmetic easier, but both choices are valid when the same subtraction is applied across the equation.
After every line, scan the signs before moving on. A missed negative is easier to repair immediately than after three more transformations. Reading the new equation aloud can expose a sign that no longer fits.
For -2x + 4 = 10, subtract 4 to get -2x = 6. Divide by -2 to obtain x = -3. Check: -2 × (-3) + 4 = 10.
Cancellation Is Evidence
When every x disappears, does the leftover statement prove no solution, or could it prove infinitely many?
Sometimes every x term disappears. That is not a failed solution; it is information about the equation.
Cancellation is evidence. Do not stop at “the x disappeared”; read whether the remaining statement is solvable, always true, or impossible.
If simplification leaves a true statement such as 5 = 5, every permitted value of x satisfies the original equation. If it leaves a false statement such as 5 = 8, no value can satisfy it.
Dividing by a vanished coefficient would hide this distinction and may amount to dividing by zero.
The final substitution is the proof that the candidate survived the entire chain.
For x = 7 in 4(x − 2) + 3 = 2x + 9, the left side is 4(5) + 3 = 23 and the right side is 14 + 9 = 23.
Checking the original equation—not merely the last simplified line—can catch a copied sign or distribution error that otherwise travels unnoticed to the answer.
A true leftover statement is an identity for the permitted domain; a false statement is a contradiction. These are conclusions, not unfinished work, and should be written explicitly as infinitely many solutions or no solution.
Some equations have restrictions before solving begins. A denominator cannot equal zero, and squaring both sides can create an extra candidate. Substitution into the original equation checks the arithmetic and those hidden restrictions.
For 2(3x − 1) = 6x + 5, expansion gives 6x − 2 = 6x + 5. Subtracting 6x from both sides leaves −2 = 5, a contradiction.
Therefore no value of x satisfies the original equation.
Substitution Is the Proof
A complete algebra solution is more than the line x = 7. It is an argument that every transformation preserved the solution set and that the final value makes the original two sides equal.
The substitution check closes that argument with direct evidence.
Shortcuts are useful after their meaning is understood. “Move the term” can save writing, but the underlying operation should remain visible in your reasoning.
When a result is uncertain, return to the relationship: do the same valid thing to both sides, simplify honestly, and let substitution decide.
References
The numerical cases are CalcSolver explanations. Read our calculation and correction method, or report an error with the input and expected result.