Solving AM=MB for 3x3 Matrices: Vectorize M & Find 9 Equations

  • Thread starter daviddoria
  • Start date
In summary, the conversation discusses solving the equation AM = MB for 3x3 matrices A, B, and M. The suggestion is to equate every entry in C to the corresponding entry in D, where C = AM and D = MB. One approach is to vectorize M and create a 9x9 matrix on both sides, but this may be difficult to code. Ultimately, the conversation concludes that there is no better or simpler way to solve the equation without any specific properties of the matrices.
  • #1
daviddoria
97
0
I would like to solve AM = MB where A,B,M are 3x3 matrices.

What I came up with was to equate every entry in C to the corresponding entry in D (where C = AM and D = MB).

You can then vectorize M (call it Mv) and figure out the 9 equations to fill a 9x9 matrix on both sides

9x9 matrix times Mv = 9x9 matrix times Mv

Each row on the right can be subtracted from the same row on the left, leaving

9x9 times Mv = 0

The problem is, I could construct this matrix easily by hand, but this seems like an obnoxious process to write in code (a couple of loops or something?) Is there a better/different way to do this so that I can use normal algebra notation to express this?

Thanks,
Dave
 
Physics news on Phys.org
  • #2
Without any specific properties of ##A,B##, or ##M##, the answer is: no. You have a linear equation system, so there should be plenty of good algorithms out there to solve it.
 

FAQ: Solving AM=MB for 3x3 Matrices: Vectorize M & Find 9 Equations

What does "Solving AM=MB" mean?

"Solving AM=MB" refers to finding the values of the matrices A and B that satisfy the equation AM=MB. This is known as matrix equation or system of linear equations.

What does it mean to "Vectorize M"?

Vectorizing M means converting the 3x3 matrix M into a vector form. This is done by stacking the columns of the matrix on top of each other, resulting in a 9x1 vector.

Why is it important to find 9 equations?

Finding 9 equations is important because it allows us to solve for the 9 unknown variables in the matrix equation AM=MB. Each equation represents a relationship between the elements of matrices A and B, and finding all 9 equations ensures that we have enough information to solve for the unknown variables.

What is the significance of a 3x3 matrix in this problem?

In this problem, the 3x3 matrix represents a system of three equations and three unknowns. This means that there are three variables that are being solved for, and each equation provides information about the relationships between these variables. In order to solve for all three variables, we need to have at least three equations.

How can this problem be applied in real-world situations?

The process of solving AM=MB for 3x3 matrices and finding 9 equations can be applied in various fields such as engineering, physics, and economics. It can be used to model and solve linear systems in order to understand and predict real-world phenomena, such as the movement of particles, the flow of electricity, or the behavior of financial markets.

Similar threads

Back
Top