HexMathv1.0.4

Solve linear equations with steps

This linear equation calculator solves equations in one variable with the unknown on one or both sides, including brackets, decimals and fractions. Type the equation or scan it. HexMath returns the value of x with every step shown, and tells you when an equation has no solution or is true for every number.

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 (see the equation solver) and inequalities (see the inequality calculator).

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: Solve 4(x - 1) - 3 = 2x + 5.

Problem

Solve 4(x−1)−3=2x+5\displaystyle 4(x - 1) - 3 = 2x + 5.

Answer

Verified

The answer is

x=6x = 6

Explanation

  1. Distribute and simplify the left side
    4x−4−3=4x−74x - 4 - 3 = 4x - 7, so the equation is 4x−7=2x+54x - 7 = 2x + 5.
  2. Collect the xx terms on one side
    Subtract 2x2x
    2x−7=52x - 7 = 5
  3. Collect the numbers
    Add 77
    2x=122x = 12
  4. Divide
    x=6x = 6
  5. Check
    Left: 4(6−1)−3=20−3=174(6 - 1) - 3 = 20 - 3 = 17. Right
    2⋅6+5=172 \cdot 6 + 5 = 17

Example 2: Solve 0.4x + 1.2 = 0.1x + 2.7.

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: Solve (2x + 1)/3 - (x - 2)/4 = 2.

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 example in the solver above, 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.
  • HexMath 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.

Yes. The steps multiply both sides by the least common denominator to clear the fractions, then solve the equation that is left.

Ready to solve your next math problem?

Create a free account for 3 math questions a day in your browser. No card.

Get HexMath on your phone

The same solver and camera scan on iPhone and Android.

Last updated: · HexMath