Let's say I have two rotations matrices (in 3D) $R_1$ and $R_2$, as well as two scaling (of the form $\text{diag}(s_x,s_y,s_z)$) matrices $S_1$ and $S_2$. Then, I can define two spatial transformations $T_1 = R_1S_1$ and $T_2 = R_2S_2$.
Now, let $T=T_2T_1$. As a composition of spatial transformations, $T$ is still a spatial transformation. However, it is not clear to me if $T$ can in turn be decomposed as $T=RS$, with some rotation $R$ and some scaling $S$.
I am aware of this question and answer, but my question is not "how can I decompose $T$" but rather "can $T$ still be decomposed" ? Obviously, if $T$ cannot be decomposed, there is no point in searching $R$ and $S$ - for example, if there are not unique. If it can, then I know how to do it by using the link above - assuming the answer there is correct.