This is the Sylvester equation. A simple explicit solution is possible under certain conditions (no common eigenvalues of the matrices $C^{-1}A$ and $-DB^{-1}$), as explained in the Wikipedia page. There are more complicated general methods, see
Carlo Beenakker
- 188.1k
- 18
- 448
- 651