Start Maple from Start Menu/Program Files/ or using the icon in f:\math 1204 We are now ready to do some matrix algebra... Load all of the linear algebra progams with the command: > with(LinearAlgebra); All the new commands listed are now known by Maple, we will use some. We can create a 2x3 matrix by using the following command > A:=Matrix([[-5,-2,1],[-3,-1,2]]); It gives the matrix in terms of its rows. Notice that we again use ":=" to assign a value to A. I recommend using a capital letter for all matrices, but Maple will not insist on that. Recall that Maple is case sensitive, so A is different from a. All of the LinearAlgebra commands also begin with a capital letter, although "matrix" is also defined, it will not always work properly. Remember that to know more about a Maple command, you can use the web or the help menu: (? is still slow, I would advise you to avoid it) http://www.maplesoft.com/support/help/Maple/view.aspx?path=Matrix We can do the three different row operations as follows: > A1:=RowOperation(A,[1,2]); will swap row 1 and row 2 of A and make it into a new matrix A1. > A2:=RowOperation(A1,1,-1); would take this new A1 and multiply row 1 by -1 and make A2 (this creates a +1 in row 1 column 2 that we can pivot around) > A3:=RowOperation(A2,[2,1],-3); will replace row 2 of A2 by itself minus 3 times row 1 to make A3 In general, RowOperation(M,[i,j],k) will replace row i by itself plus k times row j. Note that the given operation will not give you the desired 0 in row 2 of column 2, so change this operation to make an A4 with a 0 there, then continue to reduce your matrix to have two zeros on the left hand side. Next we create a random matrix B, with integer entries between -4 and +5 > Seed:=randomize(): B:=RandomMatrix(2,3,generator=rand(-4..5)); The 2 and 3 are the numbers of rows and columns of the matrix, the -4 is the lowest possible integer allowed and 5 is the highest possible. Use RowOperation to produce as many zeros as possible from B and avoid creating fractions until you have to. check your final answer with > ReducedRowEchelonForm(B); Define > K:=Matrix([[2, 3, 1], [-1, -5, -5], [1, -2, -4]]); We can augment a column to our matrix K (but not make a dotted line unfortunately) using the "|" symbol: > K0:=< K | Matrix(3,1,[5,-4,1]) >; Use RowOperation to find the solution to this system of equations. Check your answer with > ReducedRowEchelonForm(K0); Create, using Maple, a random 3x3 matrix J with integers between 1 and 9 and use RowOperation to get J0:=; to RREF Now define > L:=Matrix([[-2, 2, 1, -5], [4, 6, 7, 7], [7, -2, 1, 3]]); > y:=Vector([7, -4, 0]); and make > L0:=; as the system of equations we are planning to solve. Now we will use Pivot, which is just a set of row operations which uses one entry to make all others in that column zero. Try > L1:=Pivot(L0,1,3); and find a set of Row Operations which give the same matrix. Starting again with L0, choose appropriate entries to pivot around and create an equivalent of Reduced Row Echelon Form. (Remember to use the RowOperation which multiplies rows by a number to make a 1) Check your answer against Maple's: > ReducedRowEchelonForm(L0); Note the same ratios of numbers appear even if the numbers are different. The key numbers should be <4,9,-10,0> for this matrix. Pivot by a set of columns different from both your first choice and Maple's and see the same numbers appear again.