The matrix $A$ is a $3 \times 3$ matrix.
$$A = \left [\begin{array}{ccc} 1 & 0 & 1 \\ 0 & 2 & 1 \\ 0 & 1 & 1 \\ \end{array} \right ]$$
How can I solve the following equation:
$$X\,A = A+2\,X$$
- Since $X$ is positioned left of $A$, $X$ must be a row vector, am I right? Wolfram refuses to add the vector $2X = 2\cdot(x_1,x_2,x_3)$ to $A$, claims they are of unequal length.
$$XA=A+2X\implies X(A-2I)=A\implies X=A(A-2I)^{-1} $$
Observe the rightmost matrix is invertible since $\;2\;$ is not an eigenvalue of $\;A\;$