I have a polynomial B in u that I want to solve, where u is an operator. It’s of degree three so there will be three operators that solve it, and I want the solutions given as matricies.
My current code is
L[u_] = Array[L, {3, 3}] + {{u, 0, 0}, {0, u, 0}, {0, 0, u}}
t[\[Epsilon]] = {{1, \[Epsilon]1, \[Epsilon]2}, {-\[Epsilon]1,
1, \[Epsilon]3}, {-\[Epsilon]2, -\[Epsilon]3, 1}}
T[u_] = L[u].t[\[Epsilon]]
The polynomial for B is
B = T[u][[2, 3]] (T[u][[1, 2]] T[u - I][[2, 3]] -
T[u][[1, 3]] T[u - I][[2, 2]]) -
T[u][[1, 3]] (T[u][[1, 3]] T[u - I][[2, 1]] -
T[u][[1, 1]] T[u - I][[2, 3]])
The L[i, j] are also matricies given by
L[1, 1] = I/3 {{2, 0, 0}, {0, -1, 0}, {0, 0, -1}}
L[2, 2] = I/3 {{-1, 0, 0}, {0, 2, 0}, {0, 0, -1}}
L[3, 3] = I/3 {{-1, 0, 0}, {0, -1, 0}, {0, 0, 2}}
L[1, 2] = I {{0, 0, 0}, {1, 0, 0}, {0, 0, 0}}
L[1, 3] = I {{0, 0, 0}, {0, 0, 0}, {1, 0, 0}}
L[2, 1] = I {{0, 1, 0}, {0, 0, 0}, {0, 0, 0}}
L[2, 3] = I {{0, 0, 0}, {0, 0, 0}, {0, 1, 0}}
L[3, 1] = I {{0, 0, 1}, {0, 0, 0}, {0, 0, 0}}
L[3, 2] = I {{0, 0, 0}, {0, 0, 1}, {0, 0, 0}}
I tried don’t know how to tell it that u is a 3x3 matrix and how to find that matrix. Up until now I was writing u= x {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}} and B resulted in me having a 3x3 matrix with a polynomial of degree 3 on each element of the diagonal which isn’t what I want.
Any help appreciated, thanks.