Question regarding matrix multiplication

Click For Summary

Homework Help Overview

The discussion revolves around the rules and definitions of matrix multiplication, particularly focusing on the conditions under which two matrices can be multiplied. The original poster presents a scenario involving a 2x3 matrix and a 3x3 matrix, questioning the validity of their multiplication and the resulting dimensions.

Discussion Character

  • Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to understand the conditions for matrix multiplication, specifically questioning the legality of multiplying matrices of different sizes and the implications of their dimensions on the resulting matrix.

Discussion Status

Participants have provided insights into the requirements for matrix multiplication, emphasizing that the number of columns in the first matrix must equal the number of rows in the second. There is an ongoing exploration of the definitions and rules governing matrix dimensions and multiplication.

Contextual Notes

Some participants note that the original poster's confusion may stem from a misunderstanding of the fundamental rules of matrix multiplication, particularly regarding the dimensions of the matrices involved.

Mathman23
Messages
248
Reaction score
0
Hi

When one is trying to multiply two matrices of different sizes e.g. a 2x3 and a 3x3. I know that one has to use the column-row-rule which states:

[tex]AB_{ij} = a_{i1} b_{1j} + a_{i2} b_{2j} + \cdots + a_{i n} b_{m j}[/tex]

Looking at the following example:

[tex]A= \left[ \begin{array}{ccc} 7 & 2 & 0 \\ -4 & 6 & 2 \\ -1 & \frac{2}{5} & \frac{7}{5} \end{array} \right] \ \ \ B = \left[ \begin{array}{ccc} 7 & 2 & 0 \\ -4 & 6 & 2 \\ \end{array} \right][/tex]

Using the column-row-rule I calculate the matrix-product AB:

[tex]AB= \left[ \begin{array}{ccc} 7 & 2 & 0 \\ \\ \\ \end{array} \right] \cdot \left[ \begin{array}{cc} -4 &7 \\ 6 &2 \\ 2 & 0 \end{array} \right] = \left[ \begin{array}{cc} -16 & 53 \\ \\ \\ \end{array} \right][/tex]

But if I then write the B-matrix upside-down I get:

[tex]AB= \left[ \begin{array}{ccc} 7 & 2 & 0 \\ \\ \\ \end{array} \right] \cdot \left[ \begin{array}{cc} 0 &2 \\ 2 & 6 \\ 7 & -4 \end{array} \right] = \left[ \begin{array}{cc} 4 & 30 \\ \\ \\ \end{array} \right][/tex]

Which of the two results is the correct approach to compute the matrix-product AB ?

Does there exist a rule in linear algebra which allows me to predetermain if the product of two matrices A and B both not of the same size ( A is n x n and B is m x n ) gives the resulting matrix C which has a different size than A and B ?

Many thanks in advance :smile:

Sincerley
Fred
 
Last edited:
Physics news on Phys.org
you can't do A*B, you can do B*A but A*B is impossible.

its pretty easy to remember 2x3*3x3 is a 2x3 (just look at the outer numbers, also the inner ones must be the same to be able to multiplicate em)
 
Okay then the operation I did by tilting the matrix B is illegal. SORRY.

Then the rows of the matrices A and B has to be equal in-order for the matrix-product AB to be legal??

In general terms I guess that implies if a matrix A is n x n and a matrix B is m x n then the matrix-product AB is m x n ?

But there isn't a rule/theorem which details this??

Sincerely

Fred

allistair said:
you can't do A*B, you can do B*A but A*B is impossible.

its pretty easy to remember 2x3*3x3 is a 2x3 (just look at the outer numbers, also the inner ones must be the same to be able to multiplicate em)
 
If a matrix A is n x n and a matrix B is m x n then the matrix-product AB does't exist at all. You can compute only BA.
In general. If A is m x k, and B is k x n, than AB is m x n. But BA isn't defined. Number of columns of first matrix must be equal to number of rows of second
 
Mathman,

I think you're still confused.

For A*B to be defined, the # of columns in A has to equal the # of rows in B. So A(j,k)*B(k,m) = C(j,m). But A(j,k)*B(m,n) is not defined unless k=m.

No theory is really required for this; it's just the definition of matrix multiplication.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K