HexMathv1.0.4

System of equations calculator with steps

This system of equations calculator solves two or three linear equations together. Type the equations or scan them. HexMath solves by substitution or elimination, returns the value of every unknown and shows each step, and it tells you when a system has no solution or infinitely many instead of forcing a single answer.

Loading math input...

What this page covers

  • Two linear equations in two unknowns, solved by substitution or by elimination.
  • Three equations in three unknowns, reduced to two equations and then to one.
  • Systems with no solution or with infinitely many, which the steps identify rather than force a single answer.
  • Not covered here: one equation in one unknown (see the equation solver) and the matrix method (see the matrix calculator).

How to enter the problem

  • Type each equation on its own line, or separate the equations with a comma.
  • 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 the system 2x + y = 7, x - y = 2.

Problem

Solve the system 2x+y=7\displaystyle 2x + y = 7, x−y=2\displaystyle x - y = 2.

Answer

Verified

The answer is

x=3,y=1x = 3, y = 1

Explanation

  1. Choose a method
    The yy coefficients are +1+1 and −1-1, so adding the equations eliminates yy at once.
  2. Add the equations
    (2x+y)+(x−y)=7+2(2x + y) + (x - y) = 7 + 2, so 3x=93x = 9 and x=3x = 3.
  3. Substitute back
    In x−y=2x - y = 2: 3−y=23 - y = 2, so y=1y = 1.
  4. Check in the other equation
    2⋅3+1=72 \cdot 3 + 1 = 7

Example 2: Solve by elimination: 4x + 3y = 10 and 2x - 5y = 18.

Problem

Solve by elimination: 4x+3y=10\displaystyle 4x + 3y = 10 and 2x−5y=18\displaystyle 2x - 5y = 18.

Answer

Verified

The answer is

x=4,y=−2x = 4, y = -2

Explanation

  1. Match the xx coefficients
    Multiply both sides of the second equation by 2
    4x−10y=364x - 10y = 36
  2. Subtract to remove xx
    (4x+3y)−(4x−10y)=10−36(4x + 3y) - (4x - 10y) = 10 - 36, so 13y=−2613y = -26.
  3. Solve for yy
    y=−2y = -2
  4. Back-substitute
    4x+3(−2)=104x + 3(-2) = 10, so 4x=164x = 16 and x=4x = 4.

Example 3: Solve x + y + z = 6, 2x - y + z = 3 and x + 2y - z = 2.

Problem

Solve x+y+z=6\displaystyle x + y + z = 6, 2x−y+z=3\displaystyle 2x - y + z = 3 and x+2y−z=2\displaystyle x + 2y - z = 2.

Answer

Verified

The answer is

x=1,y=2,z=3x = 1, y = 2, z = 3

Explanation

  1. Remove zz using the first two equations
    Second minus first
    x−2y=−3x - 2y = -3
  2. Remove zz using the first and third
    First plus third
    2x+3y=82x + 3y = 8
  3. Solve the two-unknown system
    From x=2y−3x = 2y - 3: 2(2y−3)+3y=82(2y - 3) + 3y = 8, so 7y=147y = 14, y=2y = 2 and x=1x = 1.
  4. Find zz
    z=6−x−y=6−1−2=3z = 6 - x - y = 6 - 1 - 2 = 3

Common mistakes

  • Scaling only one side of an equation for elimination. Twice 2x−5y=182x - 5y = 18 is 4x−10y=364x - 10y = 36, right-hand side included.
  • Losing a sign when subtracting equations: 3y−(−10y)=13y3y - (-10y) = 13y, not −7y-7y.
  • Stopping after one unknown. The system is solved only when every unknown has a value.
  • Treating 0=50 = 5 as an arithmetic slip. It means the system has no solution, while 0=00 = 0 means infinitely many.

Checks, assumptions and limits

  • Substitute into every original equation, not just one: x=3,y=1x = 3, y = 1 gives 2(3)+1=72(3) + 1 = 7 and 3−1=23 - 1 = 2.
  • A linear system in two unknowns has exactly one solution, none, or infinitely many.
  • Values stay exact: a solution such as x=73x = \frac{7}{3} is kept as a fraction unless you ask for a decimal.
  • HexMath can make mistakes. Double check important steps.

Frequently asked questions

Yes. Write "by substitution" or "by elimination" before the system. To see the other method afterwards, ask a follow-up in the same thread; a typed follow-up needs sign-in.

Yes. The steps remove one unknown at a time until a single equation in one unknown is left, then work back to find the others.

The steps reach a false statement such as 0 = 5 and say there is no solution. A true statement such as 0 = 0 means there are infinitely many.

This page uses substitution and elimination. For row reduction, the matrix calculator covers reduced row echelon form.

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