Solving the matrix equation












2












$begingroup$


How can I solve the matrix equation of the form



$$
mathbf{SXK} + mathbf{X} = mathbf{Y}
$$



Here $mathbf{S}$ and $mathbf{K}$ are symmetric matrices, in addition $mathbf{K}$ is a sparse symmetric matrix. $X$ is the variable. Though $mathbf{S}$ and $mathbf{K}$ are symmetric, it is not invertible in general and $mathbf{X}$ is not symmetric. Is it possible to find a closed-form solution for $mathbf{X}$ ?. Is there any relevant literature study about solving such equations ?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Are all square matrices? $S,K$ are invertible?
    $endgroup$
    – Exodd
    Dec 23 '18 at 19:45










  • $begingroup$
    @Exodd, S and K are not invertible in general. though S and K are symmetric, X is not symmetric.
    $endgroup$
    – Shew
    Dec 23 '18 at 20:05
















2












$begingroup$


How can I solve the matrix equation of the form



$$
mathbf{SXK} + mathbf{X} = mathbf{Y}
$$



Here $mathbf{S}$ and $mathbf{K}$ are symmetric matrices, in addition $mathbf{K}$ is a sparse symmetric matrix. $X$ is the variable. Though $mathbf{S}$ and $mathbf{K}$ are symmetric, it is not invertible in general and $mathbf{X}$ is not symmetric. Is it possible to find a closed-form solution for $mathbf{X}$ ?. Is there any relevant literature study about solving such equations ?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Are all square matrices? $S,K$ are invertible?
    $endgroup$
    – Exodd
    Dec 23 '18 at 19:45










  • $begingroup$
    @Exodd, S and K are not invertible in general. though S and K are symmetric, X is not symmetric.
    $endgroup$
    – Shew
    Dec 23 '18 at 20:05














2












2








2





$begingroup$


How can I solve the matrix equation of the form



$$
mathbf{SXK} + mathbf{X} = mathbf{Y}
$$



Here $mathbf{S}$ and $mathbf{K}$ are symmetric matrices, in addition $mathbf{K}$ is a sparse symmetric matrix. $X$ is the variable. Though $mathbf{S}$ and $mathbf{K}$ are symmetric, it is not invertible in general and $mathbf{X}$ is not symmetric. Is it possible to find a closed-form solution for $mathbf{X}$ ?. Is there any relevant literature study about solving such equations ?










share|cite|improve this question











$endgroup$




How can I solve the matrix equation of the form



$$
mathbf{SXK} + mathbf{X} = mathbf{Y}
$$



Here $mathbf{S}$ and $mathbf{K}$ are symmetric matrices, in addition $mathbf{K}$ is a sparse symmetric matrix. $X$ is the variable. Though $mathbf{S}$ and $mathbf{K}$ are symmetric, it is not invertible in general and $mathbf{X}$ is not symmetric. Is it possible to find a closed-form solution for $mathbf{X}$ ?. Is there any relevant literature study about solving such equations ?







linear-algebra matrices matrix-equations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 23 '18 at 20:08







Shew

















asked Dec 23 '18 at 19:33









ShewShew

577413




577413








  • 1




    $begingroup$
    Are all square matrices? $S,K$ are invertible?
    $endgroup$
    – Exodd
    Dec 23 '18 at 19:45










  • $begingroup$
    @Exodd, S and K are not invertible in general. though S and K are symmetric, X is not symmetric.
    $endgroup$
    – Shew
    Dec 23 '18 at 20:05














  • 1




    $begingroup$
    Are all square matrices? $S,K$ are invertible?
    $endgroup$
    – Exodd
    Dec 23 '18 at 19:45










  • $begingroup$
    @Exodd, S and K are not invertible in general. though S and K are symmetric, X is not symmetric.
    $endgroup$
    – Shew
    Dec 23 '18 at 20:05








1




1




$begingroup$
Are all square matrices? $S,K$ are invertible?
$endgroup$
– Exodd
Dec 23 '18 at 19:45




$begingroup$
Are all square matrices? $S,K$ are invertible?
$endgroup$
– Exodd
Dec 23 '18 at 19:45












$begingroup$
@Exodd, S and K are not invertible in general. though S and K are symmetric, X is not symmetric.
$endgroup$
– Shew
Dec 23 '18 at 20:05




$begingroup$
@Exodd, S and K are not invertible in general. though S and K are symmetric, X is not symmetric.
$endgroup$
– Shew
Dec 23 '18 at 20:05










2 Answers
2






active

oldest

votes


















2












$begingroup$

The symmetry of $S$ and $K$ allow for you to write them as diagonalized matrices. Suppose we have



$$S=PDP^{-1},;;;;K=QCQ^{-1}$$



for diagonal matrices $C$ and $D$. We also may write $X$ as



$$X=PP^{-1}XQQ^{-1}$$



which gives us



$$PDP^{-1}XQCQ^{-1}+PP^{-1}XQQ^{-1}=Y$$



Letting $Z=P^{-1}XQ$, we have



$$PDZCQ^{-1}+PQ^{-1}Z=Y$$



or



$$DZC+Z=P^{-1}YQ$$



The matrix $DZC$ is the matrix $Z$ with rows scaled by elements of $D$ and columns scaled by elements of $C$. This leads to a system of equations that look like



$$[D]_i[Z]_{ij}[C]_j+[Z]_{ij}=[P^{-1}YQ]_{ij}$$



The existence and uniqueness of a solution can now be seen, as it is dependent upon the value of $[D]_i[C]_j$. Provided that this is not $-1$, then



$$[Z]_{ij}=frac{[P^{-1}YQ]_{ij}}{[D]_i[C]_j+1}$$



The matrix $X$ may the be recovered by $X=PZQ^{-1}$.






share|cite|improve this answer









$endgroup$





















    2












    $begingroup$

    This equation is similar to the discrete Lyapunov equation and can be solved in a similar way. Using the equality
    $$ operatorname{vec}(ABC)=(C^{T} otimes A)operatorname{vec}(B) $$
    one obtains the system of linear equations
    $$
    left( K^T otimes S+I_{n^2} right)operatorname{vec}(X)=operatorname{vec}(Y).
    $$






    share|cite|improve this answer









    $endgroup$













      Your Answer





      StackExchange.ifUsing("editor", function () {
      return StackExchange.using("mathjaxEditing", function () {
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      });
      });
      }, "mathjax-editing");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "69"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3050630%2fsolving-the-matrix-equation%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2












      $begingroup$

      The symmetry of $S$ and $K$ allow for you to write them as diagonalized matrices. Suppose we have



      $$S=PDP^{-1},;;;;K=QCQ^{-1}$$



      for diagonal matrices $C$ and $D$. We also may write $X$ as



      $$X=PP^{-1}XQQ^{-1}$$



      which gives us



      $$PDP^{-1}XQCQ^{-1}+PP^{-1}XQQ^{-1}=Y$$



      Letting $Z=P^{-1}XQ$, we have



      $$PDZCQ^{-1}+PQ^{-1}Z=Y$$



      or



      $$DZC+Z=P^{-1}YQ$$



      The matrix $DZC$ is the matrix $Z$ with rows scaled by elements of $D$ and columns scaled by elements of $C$. This leads to a system of equations that look like



      $$[D]_i[Z]_{ij}[C]_j+[Z]_{ij}=[P^{-1}YQ]_{ij}$$



      The existence and uniqueness of a solution can now be seen, as it is dependent upon the value of $[D]_i[C]_j$. Provided that this is not $-1$, then



      $$[Z]_{ij}=frac{[P^{-1}YQ]_{ij}}{[D]_i[C]_j+1}$$



      The matrix $X$ may the be recovered by $X=PZQ^{-1}$.






      share|cite|improve this answer









      $endgroup$


















        2












        $begingroup$

        The symmetry of $S$ and $K$ allow for you to write them as diagonalized matrices. Suppose we have



        $$S=PDP^{-1},;;;;K=QCQ^{-1}$$



        for diagonal matrices $C$ and $D$. We also may write $X$ as



        $$X=PP^{-1}XQQ^{-1}$$



        which gives us



        $$PDP^{-1}XQCQ^{-1}+PP^{-1}XQQ^{-1}=Y$$



        Letting $Z=P^{-1}XQ$, we have



        $$PDZCQ^{-1}+PQ^{-1}Z=Y$$



        or



        $$DZC+Z=P^{-1}YQ$$



        The matrix $DZC$ is the matrix $Z$ with rows scaled by elements of $D$ and columns scaled by elements of $C$. This leads to a system of equations that look like



        $$[D]_i[Z]_{ij}[C]_j+[Z]_{ij}=[P^{-1}YQ]_{ij}$$



        The existence and uniqueness of a solution can now be seen, as it is dependent upon the value of $[D]_i[C]_j$. Provided that this is not $-1$, then



        $$[Z]_{ij}=frac{[P^{-1}YQ]_{ij}}{[D]_i[C]_j+1}$$



        The matrix $X$ may the be recovered by $X=PZQ^{-1}$.






        share|cite|improve this answer









        $endgroup$
















          2












          2








          2





          $begingroup$

          The symmetry of $S$ and $K$ allow for you to write them as diagonalized matrices. Suppose we have



          $$S=PDP^{-1},;;;;K=QCQ^{-1}$$



          for diagonal matrices $C$ and $D$. We also may write $X$ as



          $$X=PP^{-1}XQQ^{-1}$$



          which gives us



          $$PDP^{-1}XQCQ^{-1}+PP^{-1}XQQ^{-1}=Y$$



          Letting $Z=P^{-1}XQ$, we have



          $$PDZCQ^{-1}+PQ^{-1}Z=Y$$



          or



          $$DZC+Z=P^{-1}YQ$$



          The matrix $DZC$ is the matrix $Z$ with rows scaled by elements of $D$ and columns scaled by elements of $C$. This leads to a system of equations that look like



          $$[D]_i[Z]_{ij}[C]_j+[Z]_{ij}=[P^{-1}YQ]_{ij}$$



          The existence and uniqueness of a solution can now be seen, as it is dependent upon the value of $[D]_i[C]_j$. Provided that this is not $-1$, then



          $$[Z]_{ij}=frac{[P^{-1}YQ]_{ij}}{[D]_i[C]_j+1}$$



          The matrix $X$ may the be recovered by $X=PZQ^{-1}$.






          share|cite|improve this answer









          $endgroup$



          The symmetry of $S$ and $K$ allow for you to write them as diagonalized matrices. Suppose we have



          $$S=PDP^{-1},;;;;K=QCQ^{-1}$$



          for diagonal matrices $C$ and $D$. We also may write $X$ as



          $$X=PP^{-1}XQQ^{-1}$$



          which gives us



          $$PDP^{-1}XQCQ^{-1}+PP^{-1}XQQ^{-1}=Y$$



          Letting $Z=P^{-1}XQ$, we have



          $$PDZCQ^{-1}+PQ^{-1}Z=Y$$



          or



          $$DZC+Z=P^{-1}YQ$$



          The matrix $DZC$ is the matrix $Z$ with rows scaled by elements of $D$ and columns scaled by elements of $C$. This leads to a system of equations that look like



          $$[D]_i[Z]_{ij}[C]_j+[Z]_{ij}=[P^{-1}YQ]_{ij}$$



          The existence and uniqueness of a solution can now be seen, as it is dependent upon the value of $[D]_i[C]_j$. Provided that this is not $-1$, then



          $$[Z]_{ij}=frac{[P^{-1}YQ]_{ij}}{[D]_i[C]_j+1}$$



          The matrix $X$ may the be recovered by $X=PZQ^{-1}$.







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Dec 23 '18 at 20:33









          Josh B.Josh B.

          1,0298




          1,0298























              2












              $begingroup$

              This equation is similar to the discrete Lyapunov equation and can be solved in a similar way. Using the equality
              $$ operatorname{vec}(ABC)=(C^{T} otimes A)operatorname{vec}(B) $$
              one obtains the system of linear equations
              $$
              left( K^T otimes S+I_{n^2} right)operatorname{vec}(X)=operatorname{vec}(Y).
              $$






              share|cite|improve this answer









              $endgroup$


















                2












                $begingroup$

                This equation is similar to the discrete Lyapunov equation and can be solved in a similar way. Using the equality
                $$ operatorname{vec}(ABC)=(C^{T} otimes A)operatorname{vec}(B) $$
                one obtains the system of linear equations
                $$
                left( K^T otimes S+I_{n^2} right)operatorname{vec}(X)=operatorname{vec}(Y).
                $$






                share|cite|improve this answer









                $endgroup$
















                  2












                  2








                  2





                  $begingroup$

                  This equation is similar to the discrete Lyapunov equation and can be solved in a similar way. Using the equality
                  $$ operatorname{vec}(ABC)=(C^{T} otimes A)operatorname{vec}(B) $$
                  one obtains the system of linear equations
                  $$
                  left( K^T otimes S+I_{n^2} right)operatorname{vec}(X)=operatorname{vec}(Y).
                  $$






                  share|cite|improve this answer









                  $endgroup$



                  This equation is similar to the discrete Lyapunov equation and can be solved in a similar way. Using the equality
                  $$ operatorname{vec}(ABC)=(C^{T} otimes A)operatorname{vec}(B) $$
                  one obtains the system of linear equations
                  $$
                  left( K^T otimes S+I_{n^2} right)operatorname{vec}(X)=operatorname{vec}(Y).
                  $$







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 23 '18 at 20:42









                  AVKAVK

                  2,1111517




                  2,1111517






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3050630%2fsolving-the-matrix-equation%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Wiesbaden

                      Marschland

                      Dieringhausen