Suppose that all the eigenvalues of A and B are in the open left half plane {λ∈𝐂:ℜλ<0}. Then
gives the unique solution to
MATLAB gives Y=lyap(A,B,C), so lyap(A,B,C)=∫0∞exp(tA)Cexp(tB)𝑑t.