Matrix Multiplication: A, B, and C - Exchange and Identity Solutions

In summary, the author suggests that instead of exchanging row 1 and row 3, we could exchange them and then multiply.
  • #1
robertjford80
388
0

Homework Statement


Multiply the following matrices

Multiply A * B * C

A =
0 0 1
0 1 0
1 0 0

B =
1 2 3
4 5 6
7 8 9

C =
0 0 1
0 1 0
1 0 0


The Attempt at a Solution



Why not just exchange row 1 with row 3 and then you get an identity matrix and the answer will be

7 8 9
4 5 6
1 2 3?

The book says the answer is

9 8 7
6 5 4
3 2 1

Essentially it looks like they're exchanging column 3 with 1.
 
Physics news on Phys.org
  • #2
Wait a second, maybe my answer and the book's answer is the same. If so, I'd like to know.
 
  • #3
hi robertjford80! :smile:
robertjford80 said:
Multiply A * B * C

Why not just exchange row 1 with row 3 and then you get an identity matrix …

Essentially it looks like they're exchanging column 3 with 1.

do you mean A*C = I ?

yes, but that doesn't help because A*B*C ≠ A*C*B​

put A (or C) on the left, it exchanges row 1 with row 3

put A (or C) on the right, it exchanges column 1 with column 3 :wink:
 
  • #4
I don't understand, TT, are you saying my strategy was illegal? And if so, why?
 
  • #5
i'm not sure what your strategy was

if I'm understanding it correctly, you've only calculated A*B :confused:
 
  • #6
Well in that case, why not exchange rows 1 and 3 for A and B, multiply, then exchange rows 1 and 3 again for B and C and multiply. In that case B would be the same in the beginning as in the end.
 
  • #7
multiply what?

(exchanging the rows or the columns was the multiplication)

(and i said columns for C !)
 
  • #8
never mind, I give up.
 
  • #9
Multiplying B on the left (premultiplying) by A causes the 1st and 3rd rows of B to be swapped.

Multiplying AB on the right (postmultiplying) by C (= A) causes the 1st and 3rd rows of AB to be swapped, taking you right back to B.

The net result is that ABC = B.
 
  • #10
Mark44 said:
Multiplying AB on the right (postmultiplying) by C (= A) causes the 1st and 3rd rows of AB to be swapped

no, columns :wink:
 
  • #11
Mark44 said:
Multiplying B on the left (premultiplying) by A causes the 1st and 3rd rows of B to be swapped.

Multiplying AB on the right (postmultiplying) by C (= A) causes the 1st and 3rd rows of AB to be swapped, taking you right back to B.

The net result is that ABC = B.

No. Multiplying by A on the left swaps rows; multiplying by C on the right swaps columns.

RGV
 
  • #13
here's an interesting way of doing it …

number the rows and columns -1, 0, 1 (instead of 1, 2, 3) …

then Ai,j = Ci,j = δi,-j, so (ABC)i,j = … :smile:
 

FAQ: Matrix Multiplication: A, B, and C - Exchange and Identity Solutions

What is matrix multiplication?

Matrix multiplication is a mathematical operation that combines two matrices to produce a third matrix. It is denoted by A*B or AB, where A and B are matrices and * or no sign between them represents multiplication.

What are the rules for matrix multiplication?

The rules for matrix multiplication are:

  • The number of columns in the first matrix must be equal to the number of rows in the second matrix.
  • The resulting matrix will have the same number of rows as the first matrix and the same number of columns as the second matrix.
  • The order of multiplication matters, AB is not equal to BA.
  • The elements of the resulting matrix are calculated by multiplying the elements in the corresponding rows and columns of the two matrices and then adding them together.

What is the identity matrix in matrix multiplication?

The identity matrix is a square matrix with 1s on the diagonal and 0s everywhere else. When this matrix is multiplied with any other matrix, the result is the same matrix.

What is the exchange solution for matrix multiplication?

The exchange solution for matrix multiplication is a method in which the order of the matrices is changed before performing the multiplication. This is done when the number of columns in the first matrix is not equal to the number of rows in the second matrix, and it allows for the multiplication to be carried out without violating the rules of matrix multiplication.

How do I solve a matrix multiplication problem?

To solve a matrix multiplication problem, follow these steps:

  • Check if the number of columns in the first matrix is equal to the number of rows in the second matrix.
  • If they are equal, multiply the corresponding elements in each row and column of the two matrices and add them together to get the elements of the resulting matrix.
  • If they are not equal, use the exchange solution by changing the order of the matrices to make the multiplication possible.
  • Double-check the resulting matrix to ensure it has the correct number of rows and columns.

Similar threads

Back
Top