Let A, B ∈ $M_{n}(ℝ)$ be given. $M_{n}(ℝ)$ stands for the set of n x n matrices with real entries. Solve in $M_{n}(ℝ)$ the matrix equation:
$X = Tr(X)A + B$
Note Tr denotes the trace of the matrix.
What I've done so far:
$Tr(X) = Tr(Tr(X)A + B)$
$Tr(X) = Tr(X)Tr(A) + Tr(B)$
I don't know how to proceed from here.
Write the given matrix equation component wise
$X_{ij} = (\displaystyle \sum_{k=1}^n X_{kk} ) A_{ij} + B_{ij} $
This gives you a linear system of $n^2$ equations in $n^2$ variables, so it can be solved using the standard Gauss-Jordan elimination method.