Hotmath
Math Homework. Do It Faster, Learn It Better.

Representing Systems of Linear Equations using Matrices

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

Consider the system,

2 x + 3 y = 8 5 x y = 2 .

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 standard form with the constant term on right.

Then, the coefficient matrix for the above system is

[ 2 3 5 1 ] .

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

On the right side of the equality we have the constant terms of the equations, 8 and 2 . The two numbers in that order correspond to the first and second equations, and therefore take the places at the first and the second rows in the constant matrix. So, the matrix becomes [ 8 2 ] .

Now, the system can be represented as [ 2 3 5 1 ] [ x y ] = [ 8 2 ] .

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

[ 2 3 5 1 ] [ x y ] = [ 2 ( x ) + 3 ( y ) 5 ( x ) + ( 1 ) y ] = [ 2 x + 3 y 5 x y ]

That is, [ 2 x + 3 y 5 x y ] = [ 8 2 ] .

Equating the corresponding entries of the two matrices we get:

2 x + 3 y = 8 5 x y = 2

Now let us understand what this representation means.

If you consider this as a function of the vector [ x y ] , it can be defined as

f ( [ x y ] ) = [ 2 3 5 1 ] [ x y ]

Then, by solving the system what we are finding a vector [ x y ] for which f ( [ x y ] ) = [ 8 2 ] .

This representation can make calculations easier because, if we can find the inverse of the coefficient matrix, the input vector [ x y ] can be calculated by multiplying both sides by the inverse matrix.

In a similar way, for a system of three equations in three variables,

a 1 x + b 1 y + c 1 z = d 1 a 2 x + b 2 y + c 2 z = d 2 a 3 x + b 3 y + c 3 z = d 3

The matrix representation would be

[ a 1 b 1 c 1 a 2 b 2 c 2 a 3 b 3 c 3 ] [ x y z ] = [ d 1 d 2 d 3 ] .

We can generalize the result to n variables.