How to Represent Systems of Linear Equations Using Matrices?

A system of linear equations can be represented as a matrix. In this step-by-step guide, you learn how to represent systems of linear equations using matrices.

How to Represent Systems of Linear Equations Using Matrices?
Tutor-style math help

Represent Systems of Linear Equations Using Matrices: what to notice and how to work it

Matrices skill
Matrix work starts with dimensions. The rows and columns tell you whether an operation is allowed before you calculate anything.

What to notice first

Write the matrix size first. Addition, multiplication, determinants, and inverses all have dimension rules.

Common student mistake

Do not multiply matrices entry by entry. Matrix multiplication uses each row of the first matrix with each column of the second.

Key formulas and cues

(m×n)+(m×n) is allowed
(m×n)(n×p)=m×p
det(abcd)=ad−bc
A−1A=I
[ 2 1 ][ 3 4 ] x [ 5 ][ 6 ] = rowdot

A reliable path

  1. Check dimensionsRows by columns determines what operation is legal.
  2. Use the correct ruleAddition is entry-by-entry; multiplication is row-by-column.
  3. Interpret the resultFor systems, translate the matrix answer back into variables.

Worked examples

Add matrices

Example: [1 4]+[2 3]
  1. The matrices have the same size.
  2. Add matching entries.
  3. Compute each position.
Answer: [3 7]

Multiplication size

Example: 2 by 3 matrix times 3 by 2 matrix
  1. Inner dimensions match: 3 and 3.
  2. The product is allowed.
  3. Outer dimensions give the result size.
Answer: 2 by 2 matrix
Try one before moving on
Try: What is the size of a 4×2 matrix times a 2×5 matrix?
Answer: 4×5.
Next step: do the matching worksheet or quiz while the method is still fresh, then come back and explain the first step in your own words.

A matrix equation consists of three matrices: the first matrix shows the values of the coefficients of the variables, the second lists the symbols of the variables themselves, and following an equal sign the third matrix represents the constant values to the right of the equal signs in the equations.

Try it

System of Equations Calculator

Open the full calculator →

Type the problems from this lesson and check each step.

Related Topics

A step-by-step guide to representing systems of linear equations using matrices

A system of linear equations can be represented as a matrix using a coefficient matrix, a variable matrix, and a constant matrix.

Consider the system:

{2x+5y=114x−2y=−26

The coefficient matrix can be formed by aligning the coefficients of the variables of each equation in a row. Make sure that each equation is written in the standard form with a constant expression on the right. Then the coefficient matrix for the above system:

[254−2]

The variables we have are x and y. So we can write the variable matrix [xy].

To the right of the equation, we have the constant terms of equations, 11 and −26. The two numbers correspond to the first and second equations, respectively, and therefore take the place of the first and second rows in the constant matrix. So, the matrix becomes [11−26].

Now, the system can be displayed as:

[254−2] + [xy]= [11−26]

Using matrix multiplication we can see that the matrix representation is equivalent to the system of equations.

[254−2] [xy] =[2(x)+5(y)4(x)−2(y)] =[2x+5y4x−2y]

That is,  [2x+5y4x−2y]= [11−26]

Similarly, for a system of three equations in three variables:

{a1x+b1y+c1z=d1a2x+b2y+c2z=d2a3x+b3y+c3z=d3

The matrix representation would be:

[a1b1c1a2b2c2a3b3c3] [xyz] = [d1d2d3]

Original price was: $27.99.Current price is: $17.99.

We can generalize the result to n variables.

Representing Systems of Linear Equations Using Matrices, Example 1:

Represent the system of linear equations as a matrix. {3x−4y=−20−x+2y=10

solution:

[3−4−12] [xy] = [−2010]

Representing Systems of Linear Equations Using Matrices, Example 2:

What linear system of equations does the matrix represent? [5201] [xy] = [79]

solution:

[5201] [xy] = [5(x)+2(y)0(x)+1(y)] =[5x+2y1y]

{5x+2y=7y=9

Exercises for Representing Systems of Equations with Matrices

Try these 10 questions one at a time. After each answer you will see a step-by-step explanation, so you can learn from every question, right or wrong.

Question 1 of 10

1. Which augmented matrix represents 2x + 3y = 5 and x − y = 1? (Matrices are written row by row, with rows separated by semicolons.)

  1. [2 3 | 5; 1 −1 | 1]
  2. [2 3 | 1; 1 −1 | 5]
  3. [2 1 | 5; 3 −1 | 1]
  4. [5 3 | 2; 1 −1 | 1]
Show the answer and explanation

Answer: A. [2 3 | 5; 1 −1 | 1]

Each row holds one equation: the x-coefficient, the y-coefficient, then the constant after the bar.

Row 1: 2, 3 | 5. Row 2: 1, −1 | 1.

Notice x − y means the y-coefficient is −1.

2. In the matrix equation for 4x − 2y = 7 and x + 5y = 3, what is the coefficient matrix entry in row 1, column 2?

Type your answer.

Show the answer and explanation

Answer: −2

The coefficient matrix is [4 −2; 1 5].

Row 1 comes from the first equation; column 2 holds the y-coefficients.

So the entry is −2.

3. The system x + 2y = 4, 3x + 4y = 10 is written as AX = B. What is B?

  1. [4; 10]
  2. [1 2; 3 4]
  3. [x; y]
  4. [4 10]
Show the answer and explanation

Answer: A. [4; 10]

A is the coefficient matrix and X = [x; y] is the variable column.

B is the column of constants on the right side.

So B = [4; 10].

4. Solve the system from the augmented matrix [1 0 | 3; 0 1 | −2]. What is x?

Type your answer.

Show the answer and explanation

Answer: x = 3

Row 1 says 1x + 0y = 3, so x = 3.

Row 2 says 0x + 1y = −2, so y = −2.

This is reduced row echelon form, where the answers can be read directly.

5. Which system does [3 −1 | 4; 2 5 | 0] represent?

  1. 3x − y = 4 and 2x + 5y = 0
  2. 3x + 2y = 4 and −x + 5y = 0
  3. 3x − y = 0 and 2x + 5y = 4
  4. 3 − x = 4 and 2 + 5y = 0
Show the answer and explanation

Answer: A. 3x − y = 4 and 2x + 5y = 0

Read each row as coefficients of x and y, then the constant.

Row 1: 3x − y = 4. Row 2: 2x + 5y = 0.

Choice B reads down the columns instead of across the rows.

6. Solve: x + y = 5 and x − y = 1. What is y?

Type your answer.

Show the answer and explanation

Answer: y = 2

Add the two equations: 2x = 6, so x = 3.

Then 3 + y = 5, so y = 2.

In matrix terms, the row operation R1 + R2 does the same elimination.

7. For AX = B with A invertible, how is X found?

  1. X = A⁻¹B
  2. X = BA⁻¹
  3. X = B − A
  4. X = A/B
Show the answer and explanation

Answer: A. X = A⁻¹B

Multiply both sides on the left by A⁻¹: A⁻¹AX = A⁻¹B.

A⁻¹A = I, so X = A⁻¹B.

The order matters, because matrix multiplication is not commutative.

8. How many rows does the augmented matrix of a system with 3 equations and 3 unknowns have?

Type your answer.

Show the answer and explanation

Answer: 3

Each equation becomes one row.

So 3 equations give 3 rows.

It has 4 columns: 3 for coefficients and 1 for constants.

9. What does the row [0 0 | 5] mean in an augmented matrix?

  1. The system has no solution
  2. x = 5
  3. Infinitely many solutions
  4. y = 5
Show the answer and explanation

Answer: A. The system has no solution

The row says 0x + 0y = 5, which means 0 = 5.

That is impossible.

So the system has no solution (it is inconsistent).

10. Solve: 2x = 8 and 3y = 9 (matrix [2 0 | 8; 0 3 | 9]). What is x + y?

Type your answer.

Show the answer and explanation

Answer: 7

Row 1: 2x = 8, so x = 4.

Row 2: 3y = 9, so y = 3.

x + y = 4 + 3 = 7. When the matrix has zeros off the diagonal, each row gives one variable directly.

Related to This Article

What people say about "How to Represent Systems of Linear Equations Using Matrices"?

No one replied yet.

Leave a Reply