What does the following matrix expression equal to after differentiating it wrt. $dot{mathrm{x}}$ and then...











up vote
0
down vote

favorite












Suppose I have the following expression:



$$dot{mathbf{x}}^intercalleft(mathbf{A}-mathbf{B}mathbf{D}^{-1}mathbf{B}^intercalright)dot{mathbf{x}}$$



where $mathbf{x}(t)in mathbb{R}^{m}$ is a vector and $mathbf{A}in mathbb{R}^{mtimes m}, mathbf{B}in mathbb{R}^{mtimes (m-n)}$ and $mathbf{D}in mathbb{R}^{(m-n)times(m-n)}$ are matrices that are dependent on $mathbf{x}(t)$.



Derivation of the expression with respect to $dot{mathbf{x}}$ yields



$$2dot{mathbf{x}}^intercalleft(mathbf{A}-mathbf{B}mathbf{D}^{-1}mathbf{B}^intercalright)$$



according to the rules discussed in this Wikipedia article about matrix calculus.



What happens if I would like to further derive this expression w.r.t. time?



So my question in short: What does this expression equal to?



$$dfrac{text{d}}{text{d}t}left(dfrac{partial}{partial dot{mathbf{x}}}left(dot{mathbf{x}}^intercalleft(mathbf{A}(mathbf{x}(t))-mathbf{B}(mathbf{x}(t))mathbf{D}^{-1}(mathbf{x}(t))mathbf{B}^intercal(mathbf{x}(t))right)dot{mathbf{x}}right)right)$$



Thank you in advance!










share|cite|improve this question


























    up vote
    0
    down vote

    favorite












    Suppose I have the following expression:



    $$dot{mathbf{x}}^intercalleft(mathbf{A}-mathbf{B}mathbf{D}^{-1}mathbf{B}^intercalright)dot{mathbf{x}}$$



    where $mathbf{x}(t)in mathbb{R}^{m}$ is a vector and $mathbf{A}in mathbb{R}^{mtimes m}, mathbf{B}in mathbb{R}^{mtimes (m-n)}$ and $mathbf{D}in mathbb{R}^{(m-n)times(m-n)}$ are matrices that are dependent on $mathbf{x}(t)$.



    Derivation of the expression with respect to $dot{mathbf{x}}$ yields



    $$2dot{mathbf{x}}^intercalleft(mathbf{A}-mathbf{B}mathbf{D}^{-1}mathbf{B}^intercalright)$$



    according to the rules discussed in this Wikipedia article about matrix calculus.



    What happens if I would like to further derive this expression w.r.t. time?



    So my question in short: What does this expression equal to?



    $$dfrac{text{d}}{text{d}t}left(dfrac{partial}{partial dot{mathbf{x}}}left(dot{mathbf{x}}^intercalleft(mathbf{A}(mathbf{x}(t))-mathbf{B}(mathbf{x}(t))mathbf{D}^{-1}(mathbf{x}(t))mathbf{B}^intercal(mathbf{x}(t))right)dot{mathbf{x}}right)right)$$



    Thank you in advance!










    share|cite|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Suppose I have the following expression:



      $$dot{mathbf{x}}^intercalleft(mathbf{A}-mathbf{B}mathbf{D}^{-1}mathbf{B}^intercalright)dot{mathbf{x}}$$



      where $mathbf{x}(t)in mathbb{R}^{m}$ is a vector and $mathbf{A}in mathbb{R}^{mtimes m}, mathbf{B}in mathbb{R}^{mtimes (m-n)}$ and $mathbf{D}in mathbb{R}^{(m-n)times(m-n)}$ are matrices that are dependent on $mathbf{x}(t)$.



      Derivation of the expression with respect to $dot{mathbf{x}}$ yields



      $$2dot{mathbf{x}}^intercalleft(mathbf{A}-mathbf{B}mathbf{D}^{-1}mathbf{B}^intercalright)$$



      according to the rules discussed in this Wikipedia article about matrix calculus.



      What happens if I would like to further derive this expression w.r.t. time?



      So my question in short: What does this expression equal to?



      $$dfrac{text{d}}{text{d}t}left(dfrac{partial}{partial dot{mathbf{x}}}left(dot{mathbf{x}}^intercalleft(mathbf{A}(mathbf{x}(t))-mathbf{B}(mathbf{x}(t))mathbf{D}^{-1}(mathbf{x}(t))mathbf{B}^intercal(mathbf{x}(t))right)dot{mathbf{x}}right)right)$$



      Thank you in advance!










      share|cite|improve this question













      Suppose I have the following expression:



      $$dot{mathbf{x}}^intercalleft(mathbf{A}-mathbf{B}mathbf{D}^{-1}mathbf{B}^intercalright)dot{mathbf{x}}$$



      where $mathbf{x}(t)in mathbb{R}^{m}$ is a vector and $mathbf{A}in mathbb{R}^{mtimes m}, mathbf{B}in mathbb{R}^{mtimes (m-n)}$ and $mathbf{D}in mathbb{R}^{(m-n)times(m-n)}$ are matrices that are dependent on $mathbf{x}(t)$.



      Derivation of the expression with respect to $dot{mathbf{x}}$ yields



      $$2dot{mathbf{x}}^intercalleft(mathbf{A}-mathbf{B}mathbf{D}^{-1}mathbf{B}^intercalright)$$



      according to the rules discussed in this Wikipedia article about matrix calculus.



      What happens if I would like to further derive this expression w.r.t. time?



      So my question in short: What does this expression equal to?



      $$dfrac{text{d}}{text{d}t}left(dfrac{partial}{partial dot{mathbf{x}}}left(dot{mathbf{x}}^intercalleft(mathbf{A}(mathbf{x}(t))-mathbf{B}(mathbf{x}(t))mathbf{D}^{-1}(mathbf{x}(t))mathbf{B}^intercal(mathbf{x}(t))right)dot{mathbf{x}}right)right)$$



      Thank you in advance!







      matrix-calculus






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Nov 15 at 23:35









      Sphery

      628




      628






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Define the variables
          $$eqalign{
          v &= {dot x},,,,,,M&=A-BD^{-1}B^T cr
          {mathcal E} &= v^TMv &= M:vv^T cr
          }$$

          where colon is a convenient product notation for the trace, i.e. $,,A:B={rm Tr}(A^TB)$



          Now calculate the differential and gradient of the scalar function
          $$eqalign{
          d{mathcal E}
          &= M:(dv,v^T+v,dv^T) cr
          &= (M+M^T):(dv,v^T) cr
          &= (M+M^T)v:dv cr
          p=frac{partial{mathcal E}}{partial v} &= (M+M^T)v cr
          }$$

          NB:   If $M=M^T$ we can simplify this to $,,p = 2Mv$.



          Now take the time derivative of the $p$ vector
          $$eqalign{
          {dot p} &= 2{dot M}v + 2M{dot v} cr
          }$$

          Since you were vague on how your matrices depend on the $x$-vector, that's about as far as I can take it.






          share|cite|improve this answer








          New contributor




          john316 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • I would have been more intrigued by what is $dot{mathbf{M}}$ in terms of $mathbf{A}$, $mathbf{B}$ and $mathbf{D}$. I have since discovered, that $dfrac{text{d}mathbf{A}(mathbf{x}(t))}{text{d}t} = dfrac{partialmathbf{A}}{partial mathbf{x}}left(mathbf{I}_motimesmathbf{dot{mathbf{x}}}right)$ if $mathbf{x}(t)in mathbb{R}^{m}$.
            – Sphery
            Nov 17 at 18:29











          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',
          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%2f3000495%2fwhat-does-the-following-matrix-expression-equal-to-after-differentiating-it-wrt%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          Define the variables
          $$eqalign{
          v &= {dot x},,,,,,M&=A-BD^{-1}B^T cr
          {mathcal E} &= v^TMv &= M:vv^T cr
          }$$

          where colon is a convenient product notation for the trace, i.e. $,,A:B={rm Tr}(A^TB)$



          Now calculate the differential and gradient of the scalar function
          $$eqalign{
          d{mathcal E}
          &= M:(dv,v^T+v,dv^T) cr
          &= (M+M^T):(dv,v^T) cr
          &= (M+M^T)v:dv cr
          p=frac{partial{mathcal E}}{partial v} &= (M+M^T)v cr
          }$$

          NB:   If $M=M^T$ we can simplify this to $,,p = 2Mv$.



          Now take the time derivative of the $p$ vector
          $$eqalign{
          {dot p} &= 2{dot M}v + 2M{dot v} cr
          }$$

          Since you were vague on how your matrices depend on the $x$-vector, that's about as far as I can take it.






          share|cite|improve this answer








          New contributor




          john316 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • I would have been more intrigued by what is $dot{mathbf{M}}$ in terms of $mathbf{A}$, $mathbf{B}$ and $mathbf{D}$. I have since discovered, that $dfrac{text{d}mathbf{A}(mathbf{x}(t))}{text{d}t} = dfrac{partialmathbf{A}}{partial mathbf{x}}left(mathbf{I}_motimesmathbf{dot{mathbf{x}}}right)$ if $mathbf{x}(t)in mathbb{R}^{m}$.
            – Sphery
            Nov 17 at 18:29















          up vote
          1
          down vote













          Define the variables
          $$eqalign{
          v &= {dot x},,,,,,M&=A-BD^{-1}B^T cr
          {mathcal E} &= v^TMv &= M:vv^T cr
          }$$

          where colon is a convenient product notation for the trace, i.e. $,,A:B={rm Tr}(A^TB)$



          Now calculate the differential and gradient of the scalar function
          $$eqalign{
          d{mathcal E}
          &= M:(dv,v^T+v,dv^T) cr
          &= (M+M^T):(dv,v^T) cr
          &= (M+M^T)v:dv cr
          p=frac{partial{mathcal E}}{partial v} &= (M+M^T)v cr
          }$$

          NB:   If $M=M^T$ we can simplify this to $,,p = 2Mv$.



          Now take the time derivative of the $p$ vector
          $$eqalign{
          {dot p} &= 2{dot M}v + 2M{dot v} cr
          }$$

          Since you were vague on how your matrices depend on the $x$-vector, that's about as far as I can take it.






          share|cite|improve this answer








          New contributor




          john316 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















          • I would have been more intrigued by what is $dot{mathbf{M}}$ in terms of $mathbf{A}$, $mathbf{B}$ and $mathbf{D}$. I have since discovered, that $dfrac{text{d}mathbf{A}(mathbf{x}(t))}{text{d}t} = dfrac{partialmathbf{A}}{partial mathbf{x}}left(mathbf{I}_motimesmathbf{dot{mathbf{x}}}right)$ if $mathbf{x}(t)in mathbb{R}^{m}$.
            – Sphery
            Nov 17 at 18:29













          up vote
          1
          down vote










          up vote
          1
          down vote









          Define the variables
          $$eqalign{
          v &= {dot x},,,,,,M&=A-BD^{-1}B^T cr
          {mathcal E} &= v^TMv &= M:vv^T cr
          }$$

          where colon is a convenient product notation for the trace, i.e. $,,A:B={rm Tr}(A^TB)$



          Now calculate the differential and gradient of the scalar function
          $$eqalign{
          d{mathcal E}
          &= M:(dv,v^T+v,dv^T) cr
          &= (M+M^T):(dv,v^T) cr
          &= (M+M^T)v:dv cr
          p=frac{partial{mathcal E}}{partial v} &= (M+M^T)v cr
          }$$

          NB:   If $M=M^T$ we can simplify this to $,,p = 2Mv$.



          Now take the time derivative of the $p$ vector
          $$eqalign{
          {dot p} &= 2{dot M}v + 2M{dot v} cr
          }$$

          Since you were vague on how your matrices depend on the $x$-vector, that's about as far as I can take it.






          share|cite|improve this answer








          New contributor




          john316 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          Define the variables
          $$eqalign{
          v &= {dot x},,,,,,M&=A-BD^{-1}B^T cr
          {mathcal E} &= v^TMv &= M:vv^T cr
          }$$

          where colon is a convenient product notation for the trace, i.e. $,,A:B={rm Tr}(A^TB)$



          Now calculate the differential and gradient of the scalar function
          $$eqalign{
          d{mathcal E}
          &= M:(dv,v^T+v,dv^T) cr
          &= (M+M^T):(dv,v^T) cr
          &= (M+M^T)v:dv cr
          p=frac{partial{mathcal E}}{partial v} &= (M+M^T)v cr
          }$$

          NB:   If $M=M^T$ we can simplify this to $,,p = 2Mv$.



          Now take the time derivative of the $p$ vector
          $$eqalign{
          {dot p} &= 2{dot M}v + 2M{dot v} cr
          }$$

          Since you were vague on how your matrices depend on the $x$-vector, that's about as far as I can take it.







          share|cite|improve this answer








          New contributor




          john316 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|cite|improve this answer



          share|cite|improve this answer






          New contributor




          john316 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Nov 16 at 17:16









          john316

          111




          111




          New contributor




          john316 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          john316 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          john316 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • I would have been more intrigued by what is $dot{mathbf{M}}$ in terms of $mathbf{A}$, $mathbf{B}$ and $mathbf{D}$. I have since discovered, that $dfrac{text{d}mathbf{A}(mathbf{x}(t))}{text{d}t} = dfrac{partialmathbf{A}}{partial mathbf{x}}left(mathbf{I}_motimesmathbf{dot{mathbf{x}}}right)$ if $mathbf{x}(t)in mathbb{R}^{m}$.
            – Sphery
            Nov 17 at 18:29


















          • I would have been more intrigued by what is $dot{mathbf{M}}$ in terms of $mathbf{A}$, $mathbf{B}$ and $mathbf{D}$. I have since discovered, that $dfrac{text{d}mathbf{A}(mathbf{x}(t))}{text{d}t} = dfrac{partialmathbf{A}}{partial mathbf{x}}left(mathbf{I}_motimesmathbf{dot{mathbf{x}}}right)$ if $mathbf{x}(t)in mathbb{R}^{m}$.
            – Sphery
            Nov 17 at 18:29
















          I would have been more intrigued by what is $dot{mathbf{M}}$ in terms of $mathbf{A}$, $mathbf{B}$ and $mathbf{D}$. I have since discovered, that $dfrac{text{d}mathbf{A}(mathbf{x}(t))}{text{d}t} = dfrac{partialmathbf{A}}{partial mathbf{x}}left(mathbf{I}_motimesmathbf{dot{mathbf{x}}}right)$ if $mathbf{x}(t)in mathbb{R}^{m}$.
          – Sphery
          Nov 17 at 18:29




          I would have been more intrigued by what is $dot{mathbf{M}}$ in terms of $mathbf{A}$, $mathbf{B}$ and $mathbf{D}$. I have since discovered, that $dfrac{text{d}mathbf{A}(mathbf{x}(t))}{text{d}t} = dfrac{partialmathbf{A}}{partial mathbf{x}}left(mathbf{I}_motimesmathbf{dot{mathbf{x}}}right)$ if $mathbf{x}(t)in mathbb{R}^{m}$.
          – Sphery
          Nov 17 at 18:29


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3000495%2fwhat-does-the-following-matrix-expression-equal-to-after-differentiating-it-wrt%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

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei