Using Matrix Multiplication to Obtain Another Matrix

annpaulveal
Messages
15
Reaction score
0

Homework Statement



I need to use matrix multiplication of matrices A-D to obtain matrix E. I also need to set a equal to some value that would allow me to perform this multiplication.


Homework Equations



The matrixes I need to multiply:
A = [1, 1; 0, 1]
B = [1, 0; 1, 1]
C = [a, 0; 0, 1]
D = [1, 0; 0, a]

By multiplying the above matrices in some order, I need to obtain the following matrix:

E = [0, 1; 1, 0]

The Attempt at a Solution



I have tried setting a = 0, 1, -1, 2, and -2 (since those seemed like the most logical choices) and tried all combinations of multiplication. For the life of me, I can't figure out the order the multiplication should go in and which of the four matrices to multiply together to get matrix E. There has to be a simpler way of approaching the problem, right? I just need some help getting onto the right path.
 
Physics news on Phys.org
Note that ##CD = DC = aI## (i.e., the scalar ##a## times the identity matrix), and ##AB(aI) = A(aI)B = (aI)AB##. None of these will work, because ##AB## is not a multiple of ##E##. Similarly, ##BA## is not a multiple of ##E##. So you know ##C## and ##D## can't be adjacent.

Maybe you can make some other observations which will help you reduce the possibilities further. Anything has to be better than just randomly trying different arrangements, because there are a lot of them (##4! = 24##).

Another observation is that ##E^2 = I##, not sure if that will be helpful.
 
Last edited:
Thanks for your help, but I'm still struggling tremendously. I understand that a will most likely be 0 or -1 (or maybe 1, but that would make C and D the same identity matrix). Is there any other guidance I could get?
 
annpaulveal said:
Thanks for your help, but I'm still struggling tremendously. I understand that a will most likely be 0 or -1 (or maybe 1, but that would make C and D the same identity matrix). Is there any other guidance I could get?

It might be easier to look at the transformations the matrices induce. If
x= \pmatrix{x_1\\x_2} then
A: x \longrightarrow \pmatrix{x_1+x_2\\x_2}\\<br /> B: x \longrightarrow \pmatrix{x_1\\x_1+x_2}\\<br /> C: x \longrightarrow \pmatrix{ax_1\\x_2}\\<br /> D: x \longrightarrow \pmatrix{x_1\\ax_2}<br /> and you want to find a sequences of such transformations (and a value of 'a') that gives
\pmatrix{x_1\\x_2} \: \longrightarrow \pmatrix{x_2\\x_1}
 
Last edited:
You can use determinants to find the possible value(s) for ##a##.
 
Sorry, I still haven't been able to make any progress at all. Thanks anyway.
 
annpaulveal said:
Sorry, I still haven't been able to make any progress at all. Thanks anyway.
Not even in finding the possible value(s) for ##a##? Did you try taking determinants of both sides as I suggested? The answer might surprise you: ##a## can't even be a real number, assuming I did the calculation correctly.
 
I haven't been taught how to use determinants like you said, and it wouldn't be possible for a to be an imaginary number for this solution. If I wasn't clear, I have to figure out some kind of combination of multiplying matrixes A-D in order to get E as the result. First, I have to figure out what a should be. So, for example, a solution would be (A*B)*(C*D), or some similar combination.

I've tried everything and I've been working on this for hours. I just want to cry.
 
I don't think a solution exists. Here is how you use determinants to find ##a##. Regardless of the order in which you multiply ##A##, ##B##, ##C##, and ##D##, the resulting product will have the same determinant, namely ##\det(A)\det(B)\det(C)\det(D)##, where for a general matrix ##[a\textrm{ }b; c\textrm{ }d]##, the determinant is ##ad - bc##. Using this formula, we get ##\det(A) = \det(B) = 1##, ##\det(C) = \det(D) = a##, and ##\det(E) = -1##. As ##\det(A)\det(B)\det(C)\det(D) = \det(E)##, we have ##a^2 = -1##, so ##a = i## or ##a = -i##.

Out of curiosity, I wrote a brute-force Matlab script which computes the products of all 24 possible permutations, assuming either ##a = i## or ##a = -i##. No permutation even resulted in a real-valued matrix, let alone ##E##. So either I made a coding error or there is no solution.
 
  • #10
annpaulveal said:

Homework Statement



I need to use matrix multiplication of matrices A-D to obtain matrix E. I also need to set a equal to some value that would allow me to perform this multiplication.


Homework Equations



The matrixes I need to multiply:
A = [1, 1; 0, 1]
B = [1, 0; 1, 1]
C = [a, 0; 0, 1]
D = [1, 0; 0, a]

By multiplying the above matrices in some order, I need to obtain the following matrix:

E = [0, 1; 1, 0]

The Attempt at a Solution



I have tried setting a = 0, 1, -1, 2, and -2 (since those seemed like the most logical choices) and tried all combinations of multiplication. For the life of me, I can't figure out the order the multiplication should go in and which of the four matrices to multiply together to get matrix E. There has to be a simpler way of approaching the problem, right? I just need some help getting onto the right path.

You can do it, but you need more than 4 multiplications. Recall how the matrices transform vectors:
A:\pmatrix{x\\y}\rightarrow\pmatrix{x+y\\y}\\<br /> B: \pmatrix{x\\y} \rightarrow \pmatrix{x\\x+y}\\<br /> C: \pmatrix{x\\y} \rightarrow \pmatrix{ax\\y}\\<br /> D: \pmatrix{x\\y} \rightarrow \pmatrix{x\\ay}<br />
If we set ##a = -1## we can transform
\pmatrix{x\\y} \rightarrow \pmatrix{y\\x}
through a sequence of such moves:
\pmatrix{x\\y} \rightarrow \pmatrix{-x\\y} \rightarrow \pmatrix{-x\\y-x}<br /> \rightarrow \pmatrix{x\\y-x} <br /> \rightarrow \pmatrix{y\\y-x} \rightarrow \pmatrix{-y\\y-x} \rightarrow \pmatrix{-y\\-x}<br /> \rightarrow \pmatrix{y\\-x} \rightarrow \pmatrix{y\\x}.
 
Back
Top