How to make a matrix B such that AB=BA

  • Context: Undergrad 
  • Thread starter Thread starter yooyo
  • Start date Start date
  • Tags Tags
    Matrix
Click For Summary
SUMMARY

The discussion focuses on finding a matrix B such that the product of two matrices A and B commute, specifically AB = BA, where both A and B are 3x3 matrices. Key insights include that any polynomial in matrix A will commute with A, and that B can be expressed as a polynomial in A or any matrix sharing A's eigenvectors. The conversation also highlights the importance of setting up a system of linear equations to derive conditions for AB = BA, with various proposed solutions including B = A, B = I, and B = A^-1.

PREREQUISITES
  • Understanding of matrix multiplication and properties of commutative matrices
  • Familiarity with eigenvalues and eigenvectors of matrices
  • Knowledge of polynomial functions in the context of linear algebra
  • Basic skills in setting up and solving systems of linear equations
NEXT STEPS
  • Explore the concept of matrix polynomials and their properties
  • Learn about eigenvector decomposition and its applications in matrix theory
  • Investigate the Sylvester equation and its relevance to matrix commutation
  • Study numerical methods for solving matrix equations, including MATLAB implementations
USEFUL FOR

Mathematicians, students of linear algebra, and anyone interested in matrix theory and its applications in computational mathematics.

  • #31
B = 0
B = I
B = A
B = A^-1

There are more I suppose
 
Physics news on Phys.org
  • #32
mathwonk said:
enough already! this is a boring question!

here is a more interesting one: prove that a holomorphic map of a riemann surface to itself that induces the identity on homology is the identity map.

Is our surface compact?
 
  • #33
I have a Idea How to Find B that AB=BA!
 
  • #34
Without knowing A?
 
  • #35
hotcommodity already gave the answer, here is another possibility... take a unitary matrix, and let B = A^T plug it in, done !

but if you are desperately looking for numerical values, you can try the following MATLAB code for almost commuting (!?) matrices,

A = rand(5);
B = lyap(A,-A,1e-15*eye(5));
A*B-B*A

I have to perturb the Sylvester equation(since because otherwise it will give the trivial answer B=0. Or you can come up with a automated code that forms the \hat{A}b=0 equation where b is the vectorized entries of B. It is not hard it is just tedious. It will be as

\left\{(I\otimes A) + (-A^T\otimes I)\right\} b= 0

etc... But numerically you should still perturb that and this is not the best way in terms of numerical stability. My favorite will be semidefinite programming... Dig in if you like...

Conclusion, a lot of choices, so pick one, or find the conditions and teach me those.
 
Last edited:
  • #36
trambolin said:
hotcommodity already gave the answer, here is another possibility...

I didn't give the answer (not the first one anyways).

I don't want to get in trouble again, haha :wink:
 
  • #37
I stand by matt_grime. It's frustrating although I'm probably that person from time to time. :smile:

matt_wonk, that's a boring question. :rolleyes: Um... :confused:
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
Replies
3
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K
Replies
27
Views
5K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K