Solve linear equations with steps

Type or scan a linear equation. MathBuddy solves it for x and shows every step.

Loading math input...

What this page covers

  • Linear equations in one variable with the unknown on one or both sides.
  • Brackets, decimals and fractions, cleared step by step.
  • Equations with no solution or with every number as a solution, and how to tell.
  • Not covered here: equations with x squared (use Solve an equation for x) and inequalities (use Inequality calculator with steps).

How to enter the problem

  • Type it with the = sign. Brackets and fractions render as you type, or use the math keyboard.
  • Scan it. Fit the one problem in the frame.
  • Choose a photo. Several problems in one photo are solved as a list.
  • Then tap Solve.

Worked examples

Example 1

Problem

Solve 7x+3=2x−12\displaystyle 7x + 3 = 2x - 12.

Answer

Verified

The answer is

x=−3x = -3

Explanation

  1. Collect the x terms on the left
    Subtract 2x2x
    5x+3=−125x + 3 = -12
  2. Move the constant
    Subtract 33
    5x=−155x = -15
  3. Divide
    x=−3x = -3

Example 2

Problem

Solve 0.4x+1.2=0.1x+2.7\displaystyle 0.4x + 1.2 = 0.1x + 2.7.

Answer

Verified

The answer is

x=5x = 5

Explanation

  1. Clear the decimals
    Multiply every term by 1010
    4x+12=x+274x + 12 = x + 27
  2. Collect the x terms
    Subtract xx
    3x+12=273x + 12 = 27
  3. Move the constant
    Subtract 1212
    3x=153x = 15
  4. Divide
    x=5x = 5

Example 3

Problem

Solve 2x+13−x−24=2\displaystyle \dfrac{2x + 1}{3} - \dfrac{x - 2}{4} = 2.

Answer

Verified

The answer is

x=145x = \frac{14}{5}

Explanation

  1. Clear the fractions
    Multiply every term by 1212
    4(2x+1)−3(x−2)=244(2x + 1) - 3(x - 2) = 24
  2. Expand the brackets
    8x+4−3x+6=248x + 4 - 3x + 6 = 24. Note that −3⋅(−2)=+6-3 \cdot (-2) = +6.
  3. Combine like terms
    5x+10=245x + 10 = 24
  4. Isolate x
    5x=145x = 14, so x=145x = \frac{14}{5}.

Common mistakes

  • Getting the sign wrong when expanding: −3(x−2)-3(x - 2) is −3x+6-3x + 6. Writing −3x−6-3x - 6 leads to x=265x = \frac{26}{5} instead of 145\frac{14}{5}.
  • Changing a term's side but keeping its sign. Moving +5+5 to the other side makes it −5-5.
  • Multiplying only the fractions by the common denominator. In the last worked example the 22 on the right must also be multiplied by 1212.
  • Dividing by the coefficient before the constant has been moved, so only part of a side is divided.

Checks, assumptions and limits

  • Substitute the answer into the original equation. For the runnable example, x=6x = 6 gives 4⋅5−3=174 \cdot 5 - 3 = 17 and 2⋅6+5=172 \cdot 6 + 5 = 17.
  • If the x terms cancel and a false statement such as 1 = 5 is left, there is no solution. A true statement such as 2 = 2 means every number is a solution.
  • Clearing decimals or fractions means multiplying every term on both sides by the same number.
  • MathBuddy can make mistakes. Double check important steps.

Frequently asked questions

The unknown appears only to the first power: no x squared, no x in a denominator and no x under a root. Its graph is a straight line, which is where the name comes from.

Then look at what is left. A false statement, like 3 = 7, means no solution. A true statement, like 4 = 4, means every number is a solution.

Yes. Choose a photo and several problems in one photo are solved as a list. Use the camera on one equation to solve just that one.

1 math question to try today without signing in, 3 a day signed in, unlimited with Pro.

Ready to solve your next math problem?

Try one problem free in your browser. Create a free account for 3 math questions a day.

Last updated: · MathBuddy