If both AB and BA are defined, must A and B be square matrices?

  • Thread starter Thread starter Bashyboy
  • Start date Start date
  • Tags Tags
    Matrix
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
4 replies · 2K views
Bashyboy
Messages
1,419
Reaction score
5

Homework Statement


What do we know about the sizes of the matrices A and
B if both of the products AB and BA are defined?


Homework Equations





The Attempt at a Solution


I determined the sizes, of which were correct; but I was wondering if A and B would always be squares. Well, would they always be squares?
 
Physics news on Phys.org
Well, when is the product AB defined? How about BA?
 
Bashyboy said:

Homework Statement


What do we know about the sizes of the matrices A and
B if both of the products AB and BA are defined?


Homework Equations





The Attempt at a Solution


I determined the sizes, of which were correct; but I was wondering if A and B would always be squares. Well, would they always be squares?

Suppose A is m X n (m rows and n columns), and B is r X s. For AB to be defined, what relationship must there be between A's rows or columns and B's rows or columns? How many rows and columns will AB have?

For BA to be defined, what relationship must there be between B's rows or columns and A's rows or columns? How many rows and columns will BA have?
 
For AB to be defined, n = r. For BA to be defined, s = m. Right?