Example 1. Solve
the linear system of equations
Solution 1.
Enter the equations into Mathematica.
![[Graphics:../Images/EchelonFormMod_gr_14.gif]](../Images/EchelonFormMod_gr_14.gif)
Identify the matrix of coefficients A and column vector B for the matrix problem AX = B.
![]()
Form the augmented matrix M = [A, B] and perform Gauss-Jordan elimination with row interchanges.
Find the reduced row echelon form of the augmented matrix M = [A, B].
The 3×3 identity matrix appears in the left 3 columns
of M, and the given
linear system is equivalent to:
The solution vector is the fourth column of M.
Verify the solution.
We are done.
Aside. We can let
Mathematica find the reduced row echelon
matrix. This is just for fun !
Aside. We check
out
.
Looking at the above calculations we see
that
and
.
Since
the
theorem guarantees a unique solution.
We are really done.
Aside. The
following Mathematica steps will also solve the problem
automatically.
It starts with the equations, creates the matrices, and ends up with
the vector form of the solution.
This is just for fun !
![]()
(c) John H. Mathews 2004