Let stable real matrix (i.e., its eigenvalues have negative real parts) $B$ and real anti-symmetric matrix $T$ satisfy $$B^\top - T B^\top = B + B T.$$
Prove that $\mbox{tr}(TB) \leq 0$.
What are necessary and sufficient conditions on $B$ such that $\mbox{tr}(TB) = 0$. (e.g. it is sufficient for $B$ to be symmetric. Is that also a necessary condition?)
I had previously posted this in mathoverflow here, which did not get any responses, but now I think it may be a more appropriate question for MSE.
For more details about the motivation of the question, see the original post.
This question was answered in mathoverflow: https://mathoverflow.net/a/288373/116256
First let us check that $T$ exists and is unique. Let $\mathrm{Sym}_n$ be the space of symmetric matrices (with real coefficients), $\mathrm{M}_n$ the space of all matrices and $\mathrm{Alt}_n$ the space of antisymmetric matrices.
Claim: the map $\mathrm{Alt}_n \rightarrow \mathrm{M}_n / \mathrm{Sym}_n, T \mapsto BT$ is injective. Let $T$ be in the kernel, i.e. $BT$ is symmetric. Up to conjugating by an orthogonal matrix, we can assume that $D = BT$ is diagonal, with exactly the first $r$ coefficients non-zero, for a well-defined $0 \leq r \leq n$. Let $C = B^{-1}$. The fact that $CD$ is antisymmetric implies that $C_{i,j} = 0$ for $i>r$ and $j \leq r$, i.e. $C$ is block upper diagonal. If $r >0$, the matrix $C' = (C_{i,j})_{1 \leq i,j \leq r}$ also has the properties that all of its eigenvalues have negative real part. But the fact that $CD$ is antisymmetric implies that $C'$ has vanishing diagonal, contradiction.
Comparing dimensions, the above linear map is an isomorphism, and the preimage of (the class of) $-B$ gives the unique $T \in \mathrm{Alt}_n$ such that $S := B(1+T)$ is symmetric.
The set of $B$ satisfying the assumption is open in $\mathrm{M}_n$ and path-connected ($t \mapsto t-1 + t B$ connects $-1$ to $B$), and the construction of $T$ is continuous, so the invertible symmetric matrix $S$ stays negative definite.
Now write $$ BT = S(1+T)^{-1} T = S T(1-T)(1-T^2)^{-1} = ST(1-T^2)^{-1} - ST^2(1-T^2)^{-1}. $$ The matrix $T(1-T^2)^{-1}$ is antisymmetric (it is the commuting product of an antisymmetric and a symmetric matrix) so by symmetry of $S$ we have $\operatorname{tr}(ST(1-T^2)^{-1}) = 0$, and $\operatorname{tr}(BT) = \operatorname{tr}(-ST^2(1-T^2)^{-1})$. Now $-S$ is positive definite and $T^2(1-T^2)^{-1}$ is negative semi-definite, so this trace is $\leq 0$ (write $-S$ as the square of a positive definite matrix). We also get that we have equality iff $T = 0$, i.e. iff $B$ is symmetric.