Linear Equations Calculator: a complete guide
What a system of linear equations is
A linear equation is one where every unknown is only multiplied by a number and added, never squared or multiplied by another unknown. 2x + 3y = 8 is linear. A system is a group of such equations that must all be true at the same time. Solving it means finding values of the unknowns that satisfy every equation together.
Systems like this appear whenever several conditions act at once: the forces in a truss joint, the currents in a circuit loop, a mixture or blending problem, the balance of a budget, or the fitting of a line through points.
Three possible outcomes
Every system falls into one of three cases, and the calculator tells you which:
- One solution. The equations meet at exactly one point. For two unknowns, this means two lines that cross once.
- No solution. The equations contradict each other, like two parallel lines that never meet. For example x + y = 2 and x + y = 5.
- Infinitely many solutions. At least one equation adds nothing new, for example when one is just a multiple of another. Some unknowns can take any value, and the rest follow from them.
For infinitely many solutions the answer is written using free variables named s, t and so on. For instance x = 3 - 2t means you can pick any value for t and get a valid x.
How the calculator solves it
It writes the system as an augmented matrix, with the coefficients on the left and the constants on the right, then applies Gauss-Jordan elimination. This uses three row operations: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another. These steps never change the solutions, and they turn the matrix into reduced row echelon form, where the answer can be read straight off.
The arithmetic is done in exact fractions, not rounded decimals, so the result is right even for awkward systems. Open "Show reduced row echelon form" to see the final matrix.
A worked example
Take the system 2x + y - z = 8, -3x - y + 2z = -11 and -2x + y + 2z = -3. Press Load example to enter it. The calculator returns x = 2, y = 3 and z = -1. You can check any equation by substituting: 2 x 2 + 3 - (-1) = 8, which is correct.
With the same equations you can change one number to see how the outcome changes. Make the third equation a copy of the first, and the system loses an independent equation, so there are infinitely many solutions.
Tips
- Line the variables up. Every equation must list the unknowns in the same order, with 0 for any that is missing.
- Move all the unknowns to the left side and the constant to the right before typing.
- You can have more equations than unknowns. If they are all consistent the solution is still found, and if any disagrees the calculator reports no solution.
- Use Fractions format to get exact answers such as 7/3 instead of 2.333333.