System of linear second order differential equations

Click For Summary

Discussion Overview

The discussion revolves around solving systems of linear second-order differential equations, specifically in the form \(\frac{d^2\vec{x}}{dt^2} = A \vec{x}\), where \(A\) is a constant matrix. Participants explore various methods, substitutions, and approaches to find solutions, including the use of matrix exponentials and state vector formulations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests that the solution to \(\frac{d^2\vec{x}}{dt^2} = A \vec{x}\) might follow a form similar to that of a first-order equation, involving matrix exponentials.
  • Another participant proposes a substitution \(y = \frac{d\vec{x}}{dt} + M\vec{x}\), leading to a first-order system \(\frac{d\vec{y}}{dt} = M\vec{y}\).
  • Further contributions refine the solution process, indicating that the initial proposed solution form may not be accurate and presenting alternative formulations involving integrals and constants.
  • Participants discuss the characteristic polynomial and its role in solving higher-order systems, with some expressing uncertainty about how to factorize it for different orders of differential equations.
  • One participant mentions the use of MATLAB commands for matrix operations, indicating a practical approach to finding solutions numerically.
  • Another participant introduces the concept of forming a state vector to convert the second-order system into a first-order system, facilitating the use of numerical methods like the Runge-Kutta method.

Areas of Agreement / Disagreement

Participants express various methods and approaches to solve the differential equations, but there is no consensus on a single solution method. Multiple competing views and techniques remain, with some participants refining or challenging earlier claims.

Contextual Notes

Some participants note limitations in their understanding or the applicability of certain methods, particularly regarding the characteristic polynomial for higher-order systems. There is also mention of specific MATLAB commands that may not be universally known or applicable.

Who May Find This Useful

This discussion may be useful for students and practitioners interested in solving systems of differential equations, particularly those involving matrix methods and numerical solutions in engineering and applied mathematics contexts.

matematikawan
Messages
336
Reaction score
0
I think I know how to solve
[tex]\frac{d\vec{x}}{dt}= A \vec{x}[/tex]

where A is a constant nXn matrix. We just compute the eigenvalues and the corresponding eigenvectors.

But how do we solve
[tex]\frac{d^2\vec{x}}{dt^2}= A \vec{x}[/tex]

Can we say straight away that the solution is (following that of one dependent variable)
[tex]\vec{x}(t) = exp(-Mt) \vec{x}_1+ exp(Mt) \vec{x}_2[/tex]

where M2=A and x1 and x2 are constant vectors.
 
Physics news on Phys.org
Hi matematikawan! :smile:

Try putting y = dx/dt + Mx :wink:
 
This is great. How did you came out with the substitution y = dx/dt + Mx tiny-tim ?. I have try searching the internet for system of DE. Most of them are about first order DE.
With your substitution I obtained
[tex]\frac{d\vec{y}}{dt}=M\vec{y}[/tex]

Using http://en.wikipedia.org/wiki/Matrix_exponential"
[tex]\vec{y} = exp(Mt) \vec{c_1}[/tex]

[tex]\frac{d\vec{x}}{dt} = -M\vec{x} + exp(Mt) \vec{c_1}[/tex]

[tex]\vec{x}=exp(-Mt)\vec{c_2} + exp(-Mt)\int exp(2Mt) \vec{c_1}[/tex]

[tex]\vec{x}=exp(-Mt)\vec{c_2} + exp(-Mt) (2M)^{-1} exp(2Mt) \vec{c_1}[/tex]


So not exactly

[tex]\vec{x}(t) = exp(-Mt) \vec{x}_1+ exp(Mt) \vec{x}_2[/tex]

as I predicted.
 
Last edited by a moderator:
Or it could possible that

[tex]\vec{x}=exp(-Mt)\vec{c_2} + exp(-Mt) exp(2Mt) (2M)^{-1}\vec{c_1}[/tex]

Then it is of the form

[tex]\vec{x}(t) = exp(-Mt) \vec{x}_1+ exp(Mt) \vec{x}_2[/tex]


:smile:
 
Hi matematikawan! :smile:

(btw, we usually write the constant before the exponential, and we usually use A and B if we're expecting more than one :wink:)
matematikawan said:
This is great. How did you came out with the substitution y = dx/dt + Mx tiny-tim ?. I have try searching the internet for system of DE. Most of them are about first order DE.
With your substitution I obtained
[tex]\frac{d\vec{y}}{dt}=M\vec{y}[/tex]

That's right …

now write it dx/dt + Mx = BeMt,

and use the particular solution and general solution method (do you know what that is?) …

the g s gives you Ce-Mt, and the p s of course is (B/M - 1)eMt, or just BeMt. :wink:

And I got it from the "D" method …

we write D instead of d/dt, so the original equation is (D2 - A)x = 0,

then (D + A)(D - A)x = 0,

so either (D + A)x = 0 or (D - A)x = 0 …

this works for any polynomial in D (it's called the characteristic polynomial of the original equation) …

google "characteristic polynomial", or see the recurrence relation page in the PF Library for some details. :smile:
 
That is a clever trick. I have seen in some old DE textbooks where they use similar 'D operator' technique to solve ODE. But that works only for DE with one dependent variable.

In this case of system of DE

[tex]\frac{d^2\vec{x}}{dt^2}= A \vec{x}[/tex]

I'm quite lucky to be able to find M such that M^2=A. To find M in MATLAB we just use the command sqrtm(A).

How about these system of DE
[tex]\frac{d^3\vec{x}}{dt^3}= A \vec{x}[/tex]

or
[tex]\frac{d^2\vec{x}}{dt^2} + \frac{d\vec{x}}{dt}= A \vec{x}[/tex]

How are we going to 'factorise' the so called characteristic polynomial ?
 
matematikawan said:
How are we going to 'factorise' the so called characteristic polynomial ?

(erm :redface: … it's not "so-called" … that really is its name!)

For the first one, use the cube root of A (I don't know whether there's a MATLAB command for that: if not, is there one for lnA or expA?).

The second is easy: the roots are -(1/2)I ±√((1/4)I + A2). :smile:
 
Oh I'm sorry. :shy: I didn't mean to offend anyone. May be I'm not using proper words there. English is not my first language. So it is characteristic polynomial. Really sorry.

But by the way when I Google 'characteristic polynomial'. This term gives the meaning as the polynomial whose roots are the eigenvalues of a given matrix A, i.e. det(A-aI)=0.

In MATLAB we use the command expm(A) for matrix exponential. I'm not aware of commands for cube root or log of A. I'm trying to solve second order pde numerically. I discretise the variables x and t. Solution for the third order system of DE is not that important for me at the moment compare to that of second order.
It looks like that we can factorise the characteristic quadratic by completing the square.

[tex]D^2+D-A =\left(D + \frac{1}{2}I\right)^2 - \frac{1}{4} I - A[/tex]
[tex]= \left(D + \frac{1}{2}I - \sqrt{\frac{1}{4}I+A} \right) \left(D + \frac{1}{2}I + \sqrt{\frac{1}{4}I+A} \right)[/tex]

Thank you for your help. :smile:
 
tiny-tim said:
Hi matematikawan! :smile:

Try putting y = dx/dt + Mx :wink:

Alternatively, form a state vector comprising [itex]\vec x[/itex] and [itex]d\vec x/dt[/itex].

[tex] \vec u = \left [\vec x \\ d\vec x/dt \right][/tex]

Then

[tex] \dot{\vec u} =<br /> \bmatrix \boldsymbol 0_{N\times N} & \boldsymbol 1_{N\times N} \\<br /> \boldsymbol A & \boldsymbol 0_{N\times N} \endbmatrix \vec u[/tex]

where [itex]\boldsymbol 1[/itex] is the NxN identity matrix and [itex]\boldsymbol 0[/itex] is the NxN zero matrix. Denoting

[tex]\boldsymbol B \equiv \bmatrix<br /> \boldsymbol 0_{N\times N} & \boldsymbol 1_{N\times N} \\<br /> \boldsymbol A & \boldsymbol 0_{N\times N} \endbmatrix[/tex]

This is of course a constant matrix. Then

[tex]\dot{\vec u} = \boldsymbol B \vec u[/tex]

and tada! A linear first order equation with a constant matrix.
 
  • #10
D H said:
Alternatively, form a state vector comprising [itex]\vec x[/itex] and [itex]d\vec x/dt[/itex].

[tex] \vec u = \left [\vec x \\ d\vec x/dt \right][/tex]

Then

[tex] \dot{\vec u} =<br /> \bmatrix \boldsymbol 0_{N\times N} & \boldsymbol 1_{N\times N} \\<br /> \boldsymbol A & \boldsymbol 0_{N\times N} \endbmatrix \vec u[/tex]

Of course, we could then solve the equation with Runge-Kutta method, thus avoiding the need for matrix exponential. Although we have double the matrix size but their entries are sparse. Anyway I'm looking for numerical answer. Analytical answer may be suitable for theoretical purposes.

Thanks D H, especially for formulating the equation with nice block matrices. Is there any chance of having B as
[tex]\boldsymbol B \equiv \bmatrix<br /> \boldsymbol A & \boldsymbol 0_{N\times N} \\<br /> \boldsymbol 0_{N\times N} & \boldsymbol 1_{N\times N} \endbmatrix[/tex]

I have try a few permutation but without success.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K