Simultaneous Linear Equation Solver (2024)

Solving Simultaneous Linear Equations

See also: matrix, Gauss-Jordan elimination, Geometric Linear Transformation

The calculator below will solve simultaneous linear equations with two, three and up to 10 variables if the system of equation has a unique solution.
For systems of equations with many solutions, please use the Gauss-Jordan Elimination method to solve it.

Please scroll down to read about various methods to solve simultaneous linear equations.

Simultaneous Linear Equation Solver

Choose the size of the system.

loading . . .

Calculating . . .

Please report any error to [emailprotected]

Methods to solve simultaneous linear equations

There are at least five methods to solve simultaneous linear equations.

  • Elimination
  • Substitution
  • Graphical
  • Inverse matrix
  • Gaussian elimination / Gauss-Jordan elimination

For example, let's try to find the solution for the following set of simultaneous linear equations with 3 variables

{x+yz=1 (1) 8x+3y6z=1 (2) 4xy+3z=1 (3)

Elimination method

As the name suggest, this method tries to eliminate variables until there's only 1 variable left.

First, look at the equations and try to find 2 equations which has the same coefficient (plus or minus) for the same variables. For example, see equations (1) and (3) . The coefficient for y is 1 and 1 respectively. We can add the two equations to eliminate y and we get equation (4) .

x+yz=1 (1) 4xy+3z=1 (3) ------------------------ +3x+0+2z=2 (4)

Note that equation (4) consists of variables x and z. Now we need another equation that has the same variables as equation (4) . To get this we will eliminate y from equation (1) and (2) . In equation (1) and (2) , the coefficients of y are 1 and 3 respectively. In order to eliminate y, we multiply equation (1) by 3 and then subtract equation (2) from equation (1) .

x+yz=1 (1) × 3 8x+3y6z=1 (2)
3x+3y3z=3 (1) 8x+3y6z=1 (2) ------------------------5x+0y+3z=2 (5)

With equations (4) and (5) , we can now eliminate z.

3x+2z=2 (4) × 3 5x+3z=2 (5) × 2
9x+6z=6 (4) 10x+6z=4 (5) ------------------------+01x+0z=2 (6)

From equation (6) we get x=2. Now we can substitute this value of x to equation (4) to get the value for z.

3(2)+2z=2 (4) 6+2z=22z=2+62z=8z=8÷2z=4

Finally, we can substitute the values of x and z to equation (1) to get y.

2+y4=1 (1) y=12+4y=3

Hence the solution to the system of linear equations isx=2,y=3,z=4.

Substitution method

First, let's re-arrange equation (1) such that only 1 variable is on the left hand side.

x=1y+z (1)

Now let's substitute this x to equation (2) .

8(1y+z)+3y6z=1 (2) 88y+8z+3y6z=15y+2z=185y+2z=7 (4)

Similarly, substitute x to equation (3) .

4(1y+z)y+3z=1 (3) 4+4y4zy+3z=13yz=1+43yz=5 (5)

Now let's re-arrange equation (5) so that only 1 variable is on the left hand side.

z=3y5 (5)

Next, substitute this value of z to equation (4) .

5y+2(3y5)=7 (4) 5y+6y10=7y=7+10y=3

Now that we have found y, we can substitute this to equation (5) to find z.

z=3(3)5 (5) z=95z=4

Finally, we can substitute the value of y and z to equation (1) to get the value of x.

x=13+4 (1) x=2

Graphical method

Solving a system of linear equation using graphical method is done by drawing the lines or planes that represent each equation. The solution is the coordinates of the intersection of the lines or planes.

For simplicity sake, let's consider a system of linear equations with two variables.

{x+y=32xy=3

Plot the lines of these two equations.

Simultaneous Linear Equation Solver (1)

As shown on the graph, the two lines intersect at point (0,3). This is the solution to the system of linear equations, i.e. x=0,y=3.

For system of linear equations with three variables, the solution is the point of intersection of the three planes that represent each equation.

Inverse Matrix Method

The system of linear equations defined by equations (1) , (2) and (3) can be expressed in matrix form as follows.

AB=C121836413xyz=111

The solutions set is the matrix B. To isolate B alone on one side of the equation, we multiply both sides of the equation with the inverse of matrix A.

A1AB = A1CB = A1C

Now to find B we need to find A1. Please check the matrix page to learn how to find the inverse of a matrix.

A1 = 323012435B = 323012435111B = 234

Hence the solution set isx=2,y=3,z=4.

Gaussian Elimination / Gauss-Jordan Elimination

The system of linear equations defined by equations (1) , (2) and (3) can be expressed in augmented matrix form as follows.

A=111|1836|1413|1

By performing a series of row operations (Gaussian elimination), we can reduce the above matrix to its row echelon form.

A=10.3750.75|0.125010.4|1.4001|4

We can then do back substitution to get the value of all the unknowns / variables or we can perform further row operations untilthe matrix is in reduced row echelon form (using Gauss-Jordan Elimination).

A=100|2010|3001|4

By doing the Gauss-Jordan elimination, we get the solution of the system of equations on the last column: x=2,y=3,z=4.

To see step by step row operations involved, please see the Gauss-Jordan Elimination page.

Confused andhave questions? We’ve got answers. With Chegg Study, you can get step-by-step solutions to your questions from an expert in the field.

By Jimmy Sie

See also: matrix, Gauss-Jordan elimination, Geometric Linear Transformation


Simultaneous Linear Equation Solver (2024)
Top Articles
Latest Posts
Article information

Author: Merrill Bechtelar CPA

Last Updated:

Views: 5994

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Merrill Bechtelar CPA

Birthday: 1996-05-19

Address: Apt. 114 873 White Lodge, Libbyfurt, CA 93006

Phone: +5983010455207

Job: Legacy Representative

Hobby: Blacksmithing, Urban exploration, Sudoku, Slacklining, Creative writing, Community, Letterboxing

Introduction: My name is Merrill Bechtelar CPA, I am a clean, agreeable, glorious, magnificent, witty, enchanting, comfortable person who loves writing and wants to share my knowledge and understanding with you.