Background
If $\dot{x}(t)=A \,x(t)$, then we know the solution is $x(t)=e^{At}x(0)$.
Question
Now let $\dot{P}(t)=A^TP(t)+P(t)A$, what is $P(t)$?
Attempt
If we take $P(t)$ as common factor (I'm not sure I'm doing this correctly though) ,then we have: $$ \dot{P}(t)=A^TP(t)+P(t)A=(A^T+A)P(t) $$ and using the same rationale in the background section, we have $$ P(t)=e^{(A^T+A) t}P(0)=e^{A^T t}P(0)e^{At} $$ Is this a correct solution?
Note
I know the answer is $P(t)=e^{A^T t}P(0)e^{At}$ but I'm not sure how to find it.
For small time increment you get approximately $$ P(t+dt)=P(t)+(A^TP(t)+P(t)A)dt+O(dt^2)=(I+A^T\,dt)P(t)(I+A\,dt)+O(dt^2) $$ which means that from time step to time step you get an accumulation of these factors on both sides, $$ P(N\,dt)=(I+A^T\,dt)^NP(t)(I+A\,dt)^N+O(Ndt^2) $$ Now if $N\,dt=\Delta t$ we get, using $(I+B/N)^N=\exp(B)+O(B^2/N)$ $$ P(t+Δt)=e^{A^T\,Δt}P(t)e^{A\,Δt}+O(Δt\,dt) $$ so that for $dt\to 0$ one gets exactly the claimed solution form.