Matrix Algebra and the Algebra of Numbers

- A comparative study: continued -

Linear Algebra Project

Objective:

This is the continuation of the previous lab with the same title. You will discover more subtle similarities and differences between the algebra of numbers and the algebra of matrices.

1. Experimenting with matrices that act like 0's and 1's.

> with(linalg):

Warning, new definition for norm
Warning, new definition for trace

a. Solving the equation M X = M

In the algebra of numbers the equation [Maple Math] has exactly one solution, [Maple Math] , if m is not zero.

Is X = I the only solution?

Let us look at the matrix M:

> M:=matrix(3,3,[[1,-1,2],[2,1,-1],[4,-1,3]]);

[Maple Math]

[Maple Math] , the identity matrix, is certainly a solution of [Maple Math] .

Since M is not zero must I be the only solution?

The answer is: NO! Here is another solution:

> X:= matrix(3,3,[[2,-2,3],[-5,11,-15],[-3,6,-8]]);

[Maple Math]

You can check this by finding [Maple Math]

> multiply(M,X);

[Maple Math]

More solutions for MX = M

Note that if X is a solution of the equation [Maple Math] , then so is [Maple Math] .

You can verify this by taking the matrix X given in the preceding section, squaring it and using Maple to see if it is indeed a solution.

In fact any power of X will be a solution.

Working it out:

Raise X to the power 2. This is how Maple does powers:

> X2:=evalm(X^2);

[Maple Math]

Now let us check to see if X2 is a solution of [Maple Math] .

> multiply(M,X2);

[Maple Math]

Let us recall the matrix M :

> evalm(M);

[Maple Math]

Indeed X2 is a solution of the equation.

How many solutions does the equation have?

Find another solution.

Find, if possible, two solutions for the matrix equation, [Maple Math] , where R is

[Maple Math]

> R:= matrix(3,3,[[1,1,2],[1,0,1],[0,1,1]]);

[Maple Math]

Solution:

[Maple Math] is actually a system of three linear equations, and the Gauss-Jordan method of our first lab may be used to solve them by reducing the augmented matrix ( [Maple Math] ) to its echelon form:

> augment(R,R);

[Maple Math]

> gaussjord(R,R);

[Maple Math]

This shows that the system has infinitely many solutions. Here is one of them:

> X:= matrix(3,3,[[2,-1,3],[1,0,3],[-1,1,-2]]);

[Maple Math]

Now we verify that this is a solution of [Maple Math] :

> multiply(R,X);

[Maple Math]

This is our matrix R given above. (You will have to press enter again in front of R again before entering the multiply(R,X) command, so that R is in the memory again. Otherwise you will get an error message.)

b. Can the product of two non-zero matrices be zero?

If the product of two numbers is zero, then at least one of them has to be zero. What about matrices?

Problems:

If [Maple Math] , then [Maple Math] . Use matrices M and ( X-I ) from part a. to do the multiplication.

What do you get?

What do you expect the product [Maple Math] to be equal to? Try it.

A paper and pencil exercise: For the matrix V given below, find a non-zero matrix Y so that their product is zero.

V:= matrix(2,2,[[1, 2],[-1, 1]]).

What do you conclude?

c. Does Zero have cube roots?

If [Maple Math] , what is N ?

You say N must be 0. That certainly is true. In fact if N were a real number that would be the only solution. What about matrices?

Find powers of N, where

[Maple Math]

> N:= matrix(3,3,[[-22,-3,-25],[40,6,44],[16,3,16]]);

[Maple Math]

Find [Maple Math] and [Maple Math] . (To find M to the power n in Maple write: evalm(M^n);)

What do you notice? What will you get for [Maple Math] ?

Use paper and pencil to find a 2 by 2 non-zero matrix such that its square is the zero matrix.

d. Two more abnormalities to experiment with:

d1. If AB=AC , what do you conclude?

If a, b and c are non-zero numbers and [Maple Math], we would conclude that [Maple Math]. Now we are going to take three matrices and test this algebraic result for them:

> A:=matrix(2,2,[[1,2],[3,6]]);

[Maple Math]

> B:=matrix(2,2,[[1,2],[-1,3]]);

[Maple Math]

> C:=matrix(2,2,[[-9,6],[4,1]]);

[Maple Math]

Compute AB and AC .

When you compare the results, you will see that this example shows that another multiplicative property of the real numbers does not carry over to matrices. Which property of real numbers is it?

Check to see if [Maple Math] and [Maple Math] are equal for the matrices given below.

d2. What is special about this matrix?

> Q := matrix([[-744, -496, -1736], [-300, -200, -700], [405, 270, 945]]);

If you discover its secret, then use pencil and paper to create a 2 by 2 matrix with the same property.

[Maple Math]

2. Experimenting with the transpose of a matrix

Maple uses "transpose(A)" to denote [Maple Math] , the transpose of A.

Do you think [Maple Math] is equal to [Maple Math] ?

The following A, B and C are imported from the previous lab:

> A:= matrix(4,4,[[1,0,-1,3],[2,1,4,-2],[0,-5,0,1],[-1,2,-1,3]]);

[Maple Math]

> B:= matrix(4,4,[[2,1,0,7],[-2,5,1,2],[4,1,3,-6],[-1,1,-8,2]]);

[Maple Math]

> C:= matrix(4,4,[[2,1,-5,-2],[-3,4,-1,3],[0,2,0,1],[7,13,-52,3]]);

[Maple Math]

Finding [Maple Math] and [Maple Math]

> At:= transpose(A);

[Maple Math]

> Bt:= transpose(B);

[Maple Math]

Now let us check to see if [Maple Math] is equal to [Maple Math] . Let us name the matrix [Maple Math] as ABt .

> ABt:=transpose(multiply(A,B));

[Maple Math]

> AtBt:= multiply(At,Bt);

[Maple Math]

The two matrices are not the same.

Discovering a relationship between [Maple Math] and its components [Maple Math] and [Maple Math]

Lab assignment: Use Maple to experiment with different ways you can multiply the above matrices. See if you can come up with a formula that connects [Maple Math] to some combination of [Maple Math] and [Maple Math].

If you have discovered a formula, bring matrix C into play to test it.

If your formula still works, then generate some random matrices to verify it. If it still works, there is a very high probability that your formula is true. However, in mathematics the truth can only be established by a rigorous proof. If that challenges you, then try to prove your formula or look it up in a linear algebra book.

_________________________________________________________________

A Writing Assignment

On the basis of your observations and results gained in the previous projects, write a paper titled "A Comparative Study of the Algebra of Numbers and Matrices."

Do not assume that your reader has studied linear algebra, but has mathematical maturity on the level of calculus.

___________________________________________________________________

MSIP Grant #120A80089-98: "Three Urban Calculus Reform Programs: Adopting the Best" 1998-2001