I'm trying to solve the following matrix equation for $L$:
$$A\cdot L + L^T = 0$$ where A is non-singular and both $A,L \in \mathbb{R}^{n\times n}$. I'm wondering if this could have a closed-form solution.
This seems close to Sylvester's equation but not quite the same.
I begin by three examples showing that the solutions of
$$AL+L^T=0\tag{1}$$
can depend on parameters.
a) If we take
$$A=\pmatrix{1&0&0\\0&1&1\\0&0&-1},$$
then the general solution of (1) is :
$$L=\pmatrix{0&a&0\\-a&b&-2b\\0&-2b&4b},$$
with $\det(L)=4a^2b$.
b) If $$A=\pmatrix{1&0&0&0\\0&0&1&0\\0&1&0&0\\0&0&0&1}$$ (in fact it is a commutation matrix that will be used later on), the general solution depends on 4 parameters :
$$L=\pmatrix{0&a&a&c\\-a&b&-b&d\\-a&-b&b&d\\-c&-d&-d&0}$$
with $\det(L)=0.$
c) For the $6 \times 6$ matrix :
$$A=\pmatrix{1&0&0&0&0&0\\0&0&0&0&0&1\\0&0&0&0&1&0\\0&0&0&1&0&0\\0&0&1&0&0&0\\0&1&0&0&0&0}$$
the general solution depends on $9 $ (!) parameters :
$$L=\pmatrix{0&e&b&a&b&e\\ -e&i&-f&-g&-h&-i\\ -b&h&d&-c&-d&f\\ -a&g&c&0&c&g\\ -b&f&-d&-c&d&h\\ -e&-i&-h&-g&-f&i}$$
with the interesting factorization of
$$\det(L)=(2ce - 2bg + af + ah)^2(2fh + 4di - f^2 - h^2)$$
Please note that in the three examples, the solutions are the sum of a symmetric matrix and a skew-symmetric matrix (see the connection with the answer by @user1551).
How such solutions can be obtained ? By the following method :
Begin by "vectorizing" relationship (1) :
$$vec(AL)+vec(L^T)=vec(0)\tag{2}$$
(vectorization of a $n \times n$ matrix means : "stacking its columns into a $n^2 \times 1$ vector").
Based on classical relationship $vec(AXB)=(B^T \otimes A) vec(X)$ where $\otimes$ is Kronecker product, (2) can be written under the form :
$$(I_n \otimes A) . vec(L) + U . vec(L) = vec(0),\tag{3}$$
where $C$ is the ($n^2 \times n^2$) commutation matrix : see here or here.
$$\underbrace{(I_n \otimes A+C)}_D . vec(L) = vec(0),$$
Otherwise said, $vec(L)$ is any vector of the kernel of $$D:=I_n \otimes A + C,$$
with possible dimensions $0,1,2 ...$ (even more than $n$) in the examples given above, the dimensions are $2$ and $4$ resp.). The dimension of the kernel can be
This gives you a way to obtain a general form for $L$ using software tools where Kronecker product is implemented (see general Matlab program below).
Remark : Writing the initial relationship under the form
$$AL=-L^T,$$
and taking the determinant on both sides, one sees that either $\det(L)=0$ or, if $\det(L) \ne 0$, a necessary condition on $A$ for having solutions to (1) is : $\det(A)=(-1)^n$.
Here is a (Matlab) program with the matrix of the first example, but which can be used for any matrix :