Solution to Linear Time-invariant Matrix ODE \frac{d\mathbf{P}}{dt} = \mathbf{A}\mathbf{P} + \mathbf{B}

Sullivan Pearson

Sullivan Pearson

Answered question

2022-04-20

Solution to Linear Time-invariant Matrix ODE
dPdt=AP+B

Answer & Explanation

potomakavkl

potomakavkl

Beginner2022-04-21Added 11 answers

Step 1
Guessing the solution is a time-honored way of solving differential equations.
Prove that your ansatz is correct by calculating its time derivative
AP=AeAtP0+eAtB-B
AP+B=AeAtP0+eAtB
AP˙=A2eAtP0+AeAtB
=A(AP+B) (Eq#1)
P˙=AP+B (QED)
If A is singular, try substituting the pseudoinverse A+
P=eAtP0+A+(eAtI)B (ansatz)
AP=AeAtP0+(eAtI)B (recall :AA+A=A)
AP˙=A2eAtP0+AeAtB (time derivative)
=A(AP+B) (simplify)
So this assumption yielded a solution of (Eq 1)
AP˙=A(AP+B)
if not the original ODE.

ophelialee4xn

ophelialee4xn

Beginner2022-04-22Added 14 answers

Step 1
Assuming A is constant (i.e. independent of t), you can use exp(At) as an integrating factor; left-multiplying by it gives
ddt(eAtP(t))=eAtB(t), so that
eAtP(t)P(0)=0teAsB(s),ds,
and hence
P(t)=eAtP(0)+0teA(ts)B(s),ds,
which holds in general, and reduces to your formula if A is invertible and B is constant.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?