I am interested in stating existence of solution of a Sylvester equation
$$ AX - XB = C, $$
where $A$, $B$, $C$, and $X$ are $(n,n)$ matrices.
Existence of a unique solution $X$ is given, if $A$ and $B$ do not have an eigenvalue in common.
But what about the nonregular case. Are there results out there, that consider the case where $A$ and $B$ possibly share an eigenvalue.
I am only aware of the equivalence, that there exists a solution $X$, if and only if $$ \begin{bmatrix} A & C \\ 0 & B \end{bmatrix} \backsim \begin{bmatrix} A & 0 \\ 0 & B \end{bmatrix}, $$ where $\backsim$ is the equivalence relation. However, this didn't give me much insight into my particular setup.