Solving a separable matrix ODE.

Click For Summary

Homework Help Overview

The discussion revolves around solving a separable matrix ordinary differential equation (ODE) of the form \( P' = QP \), where \( Q \) and \( P \) are matrices. Participants are exploring similarities to scalar ODEs and the implications of matrix properties on the solution process.

Discussion Character

  • Exploratory, Conceptual clarification, Assumption checking

Approaches and Questions Raised

  • The original poster attempts to draw parallels between matrix ODEs and scalar ODEs, questioning the validity of their approach to separation of variables. Other participants raise concerns about the non-commutative nature of matrix multiplication and its impact on the solution method, suggesting the need for caution in applying results from scalar calculus to matrices.

Discussion Status

Participants are actively engaging with the problem, with some providing insights into the limitations of the original poster's approach. There is an exploration of different methods, including the use of integrating factors, but no consensus has been reached on a definitive solution.

Contextual Notes

There are discussions about the validity of certain steps in the solution process, particularly regarding the assumptions about the commutativity of matrices and the properties of the matrix exponential function. The original poster's reliance on a Wikipedia solution is also noted.

docnet
Messages
796
Reaction score
486
Homework Statement
Solve ##P'=QP## where Q and P are ##n \times n\in## matrices over the reals.
Relevant Equations
##P'=QP##.
I have never solved a matrix ODE before, and am wondering if solving it is similar to solving ##y'=ay## where ##a## is a constant and ##y:\mathbb{R} \longrightarrow \mathbb{R}## is a function. The solution is right according to wikipedia, and I am just looking for your inputs. Thanks

$$\begin{align*}
\frac{d}{dt}P(t)&=QP(t)\\
\frac{1}{P(t)}dP(t)&=Qdt\\
\int\frac{1}{P(t)}dP(t)&=\int Qdt\\
\ln{P(t)}&=Qt+C\\
P(t)&=Ce^{Qt}\\
P(0)&=I\\
\Longrightarrow &Ce^0=I\\
\Longrightarrow &C=I\\
P(t)&=e^{Qt}.
\end{align*}$$

Line 2: Separation of variables.
Lines 3 and 4: Integration with respect to ##t##.
Line 5: Rule of exponents.
Lines 6-8: Determination of the matrix ##C##.
 
Last edited:
Physics news on Phys.org
Why not leave it here for someone else?
 
docnet said:
Homework Statement: Solve ##P'=QP## where Q and P are ##n \times n\in## matrices over the reals.
Relevant Equations: ##P'=QP##.

I have never solved a matrix ODE before, and am wondering if solving it is similar to solving ##y'=ay## where ##a## is a constant and ##y:\mathbb{R} \longrightarrow \mathbb{R}## is a function. The solution is right according to wikipedia, and I am just looking for your inputs. Thanks

$$\begin{align*}
\frac{d}{dt}P(t)&=QP(t)\\
\frac{1}{P(t)}dP(t)&=Qdt\\
\end{align*}$$

This is invalid. On the left hand side you are multiplying by P^{-1} on the left, but on the right hand side you are multiplying by P^{-1} on the right. You do not know that P or P^{-1} commutes with Q. Also, the matrix exponential function does not have an inverse: a matrix may not have a logarithm, or it may have more than one.

If <br /> P&#039; = QP for constant Q, then multiply on the left by the integrating factor e^{-Qt}, which commutes with Q, to obtain <br /> 0 = e^{-Qt}P&#039; - e^{-Qt}QP = (e^{-Qt}P)&#039;. Now integrate to obtain C = e^{-Qt}P(t), and finally multiply on the left by e^{Qt} to obtain <br /> P(t) = e^{Qt}C = e^{Qt}P(0). This is consistent with the case where P is a column vector and Q is square.
 
Last edited:
  • Informative
Likes   Reactions: docnet
The fact that matrix multiplication is not commutative means that certain results from calculus of real-valued functions may not carry over. For example. from first principles \begin{split}<br /> \frac{d}{dt}A^2 &amp;= \lim_{\delta t \to 0} \frac{(A + \delta A)^2 - A^2}{\delta t} \\<br /> &amp;= \lim_{\delta t \to 0} \frac{A\delta A + (\delta A) A + \delta A^2}{\delta t} \\<br /> &amp;= A\frac{dA}{dt} + \frac{dA}{dt} A \end{split} and it is not generally the case that this equals either 2A\frac{dA}{dt} or 2\frac{dA}{dt}A. The product rule does carry over, but one must be careful to preserve the order of factors: (AB)&#039; = A&#039;B + AB&#039;. It follows that in general the derivative of \exp(A(t)) is neither A&#039;\exp(A) nor \exp(A)A&#039;.
 
  • Informative
Likes   Reactions: docnet

Similar threads

  • · Replies 6 ·
Replies
6
Views
1K
Replies
4
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
9
Views
2K
Replies
6
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K