I don't know Mathematica very well, I have an equation involving matrices of the following form: given two $5\times5$ matrices $A,B$ where $B$ is nilpotent we want to find a matrix $X$ such that
k X + B.X-X.B + A = 0
for an integer $k$.
Is there a command solving such an equation?
I tried with Solve
and LinearSolve
, but it does not work.
[B,X]
? What does not work? $\endgroup$[B,X]
is supposed to be the commutator bracket. In Mathematica code that would beB.X - X.B
. $\endgroup$