Solving Systems of Equations

Consider the set of equations
     x + 2y +  z  +  t  = a
    -x + 4y - 2z         = b
     x + 3y + 4z + 5t = c
     x          +  z  +   t = d
We illustrate how to use a matrix representation to write these out and solve them…     

Start with the matrix of coefficients of the variables, mymatrix:

"index_1.gif"

"index_2.gif"

The system of equations will only have a unique solution if the determinant of mymatrix is nonzero.

"index_3.gif"

"index_4.gif"

"index_5.gif"

"index_6.gif"

"index_7.gif"

The left-hand side of the first equation will be

"index_8.gif"

"index_9.gif"

and the left-hand side of all four equations will be

"index_10.gif"

"index_11.gif"

Now define an indexed variable linsys with four entries, each being one of the equations in the system of interest:

"index_12.gif"

"index_13.gif"

"index_14.gif"

Solving the set of equations for the unknowns "index_15.gif"

"index_16.gif"

"index_17.gif"


Created by Wolfram Mathematica 6.0  (06 September 2007) Valid XHTML 1.1!