How to make a matrix B such that AB=BA

  • Thread starter Thread starter yooyo
  • Start date Start date
  • Tags Tags
    Matrix
Click For Summary
To find a matrix B such that AB=BA for given matrix A, it is suggested that B can be any polynomial in A, which guarantees commutativity. Other potential solutions include matrices that share eigenvectors with A, but this requires A to have a complete set of eigenvectors. The discussion highlights the frustration among participants regarding the clarity of previous answers and the need for detailed explanations for those unfamiliar with the concepts. Some participants propose numerical methods and coding solutions for finding B, emphasizing the variety of possible choices. Ultimately, the conversation reflects a mix of theoretical insights and practical approaches to solving the problem.
  • #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 33 ·
2
Replies
33
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
27
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K