Skip to main content
Logo image

Applied Discrete Structures

Section 5.4 Matrix Oddities

Subsection 5.4.1 Dissimilarities with elementary algebra

We have seen that matrix algebra is similar in many ways to elementary algebra. Indeed, if we want to solve the matrix equation AX=B for the unknown X, we imitate the procedure used in elementary algebra for solving the equation ax=b. One assumption we need is that A is a square matrix that has an inverse. Notice how exactly the same properties are used in the following detailed solutions of both equations.
Table 5.4.1.
Equation in the algebra of real numbers Equation in matrix algebra
ax=b AX=B
a1(ax)=a1b if a0 A1(AX)=A1B if A1 exists
(a1a)x=a1b Associative Property (A1A)X=A1B
1x=a1b Inverse Property IX=A1B
x=a1b Identity Property X=A1B
Certainly the solution process for solving AX=B is the same as that of solving ax=b.
The solution of xa=b is x=ba1=a1b. In fact, we usually write the solution of both equations as x=ba. In matrix algebra, the solution of XA=B is X=BA1 , which is not necessarily equal to A1B. So in matrix algebra, since the commutative law (under multiplication) is not true, we have to be more careful in the methods we use to solve equations.
It is clear from the above that if we wrote the solution of AX=B as X=BA, we would not know how to interpret BA. Does it mean A1B or BA1? Because of this, A1 is never written as IA.

Observation 5.4.2. Matrix Oddities.

Some of the main dissimilarities between matrix algebra and elementary algebra are that in matrix algebra:
  1. AB may be different from BA.
  2. There exist matrices A and B such that AB=00, and yet A00 and B00.
  3. There exist matrices A where A00, and yet A2=00.
  4. There exist matrices A where A2=A with AI and A00
  5. There exist matrices A where A2=I, where AI and AI

Exercises 5.4.2 Exercises

1.

Discuss each of the “Matrix Oddities” with respect to elementary algebra.
Answer.
In elementary algebra (the algebra of real numbers), each of the given oddities does not exist.
  • AB may be different from BA. Not so in elementary algebra, since ab=ba by the commutative law of multiplication.
  • There exist matrices A and B such that AB=00, yet A00and B00. In elementary algebra, the only way ab=0 is if either a or b is zero. There are no exceptions.
  • There exist matrices A, A00, yet A2=00. In elementary algebra, a2=0a=0.
  • There exist matrices A2=A. where A00 and AI. In elementary algebra, a2=aa=0 or 1.
  • There exist matrices A where A2=I but AI and AI. In elementary algebra, a2=1a=1 or 1.

2.

Determine 2×2 matrices which show that each of the “Matrix Oddities” are true.

3.

Prove or disprove the following implications.
  1. A2=A and detA0A=I
  2. A2=I and detA0A=I or A=I.
Answer.
  1. detA0A1 exists, and if you multiply the equation A2=A on both sides by A1 , you obtain A=I.
  2. Counterexample: A=(1001)

4.

Let Mn×n(R) be the set of real n×n matrices. Let PMn×n(R) be the subset of matrices defined by AP if and only if A2=A. Let QP be defined by AQ if and only if detA0.
  1. Determine the cardinality of Q.
  2. Consider the special case n=2 and prove that a sufficient condition for APM2×2(R) is that A has a zero determinant (i.e., A is singular) and tr(A)=1 where tr(A)=a11+a22 is the sum of the main diagonal elements of A.
  3. Is the condition of part b a necessary condition?

5.

Write each of the following systems in the form AX=B, and then solve the systems using matrices.
  1. 2x1+x2=3x1x2=1
  2. 2x1x2=4x1x2=0
  3. 2x1+x2=1x1x2=1
  4. 2x1+x2=1x1x2=1
  5. 3x1+2x2=16x1+4x2=1
Answer.
  1. A1=(1/31/31/32/3) x1=4/3, and x2=1/3
  2. A1=(1112) x1=4, and x2=4
  3. A1=(1/31/31/32/3) x1=2/3, and x2=1/3
  4. A1=(1/31/31/32/3) x1=0, and x2=1
  5. The matrix of coefficients for this system has a zero determinant; therefore, it has no inverse. The system cannot be solved by this method. In fact, the system has no solution.

6.

Recall that p(x)=x25x+6 is called a polynomial, or more specifically, a polynomial over R, where the coefficients are elements of R and xR. Also, think of the method of solving, and solutions of, x25x+6=0. We would like to define the analogous situation for 2×2 matrices. First define where A is a 2×2 matrix p(A)=A25A+6I. Discuss the method of solving and the solutions of A25A+6I=00.

7.

For those who know calculus:
  1. Write the series expansion for ea centered around a=0.
  2. Use the idea of exercise 6 to write what would be a plausible definition of eA where A is an n×n matrix.
  3. If A=(1100) and B=(0100) , use the series in part (b) to show that eA=(ee101)and eB=(1101).
  4. Show that eAeBeBeA.
  5. Show that eA+B=(e001).
  6. Is eAeB=eA+B?
Solution.
The power series expansion of ea is k=0akk!. Therefore, it is reasonable to define the matrix exponential eA to be k=0Akk!, assuming this sum converges.
If A=(1100), then we observe that Ak=A for all positive k. Therefore
eA=I+k=1Ak!=I+k=1(1k!1k!00)=I+(k=11k!amp;k=11k!00)=I+(e1e100),
which agrees with the stated value in the problem. The value of eB is even easier to derive since Bk is the zero matrix for k2. Thus, eB=I+B, which equals the matrix that is given in the problem.
We observe that eAeBeA+B. They disagree in the first row, second column.