Solving differential equations through matrix

Click For Summary

Discussion Overview

The discussion revolves around solving the differential equation d²x/dt² + w²x = 0 using matrix methods. Participants explore the formulation of the problem, the transformation into a matrix equation, and the implications of matrix exponentials in the solution process.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Exploratory

Main Points Raised

  • One participant asks how to solve the equation d²x/dt² + w²x = 0 using matrices and inquires about the method's name.
  • Another participant clarifies the equation and proposes defining y = dx/dt, leading to a system of equations that can be expressed in matrix form.
  • A participant presents the matrix representation of the system and discusses finding eigenvalues to solve the matrix equation.
  • Further clarification is sought regarding the transformation into the matrix equation and the mechanics of matrix multiplication.
  • Another participant elaborates on the matrix exponential solution, providing a detailed breakdown of the series expansion and its application to the matrix form of the differential equation.

Areas of Agreement / Disagreement

Participants generally agree on the formulation of the differential equation and the approach to using matrices, but there are points of confusion regarding the steps involved in the transformation and solution process. The discussion remains unresolved in terms of fully clarifying the matrix multiplication and the implications of the matrix exponential.

Contextual Notes

Some participants express uncertainty about specific steps in the matrix formulation and multiplication, indicating a need for further clarification on these mathematical processes.

devoured_elysium
Messages
15
Reaction score
0
Hello

I'd like to know how to solve the following equation with matrix, if possible at all:

d ( x^2 ) / dt^2 + w^2 x = 0

I know how to solve it without having to use a matrix, but I heard it is possible to do it with matrix. How about doing it? How is this method called?

Thanks
 
Physics news on Phys.org
Is that d ( x^2 ) / dt^2 + w^2 x = 0
or d^2 x/dt^2+ w^2x= 0?

I'm going to assume it is the latter. Define y= dx/dt so dy/dt= d^2x/dt^2 and the equation becomes dy/dt= -w^2x. You now have the two equations dx/dt= y and dy/dt= -w^2x. If you write
[tex]X= \left(\begin{array}{c} x \\ y\end{array}\right)[/tex]
Then the two equations become the single matrix equation
[tex]\frac{dX}{dt}= \left(\begin{array}{ccc}0 && 1 \\-w^2 && 0\end{array}\right)X[/tex]
To solve that, find the eigenvalues of the coefficient array (they are [itex]\pm w i[/itex]). The general solution then can be written as exponentials of those eigenvalues times t or, since they are imaginary, sine and cosine.
 
it's the latter one, as you thought. thanks by the response!
 
Hi again

Sorry but I could not follow the step X=(x, y) and why then it becomes the next equation.
 
[tex]\left(\begin{array}{c}\frac{dx}{dt} \\ \frac{dy}{dt}\end{array}\right)= \left(\begin{array}{ccc}0 && 1 \\-w^2 && 0\end{array}\right)\left(\begin{array}{c}x \\ y\end{array}\right)[/tex]

Do you see how the matrix multiplication on the right works out?
 
HallsofIvy said:
[tex]\left(\begin{array}{c}\frac{dx}{dt} \\ \frac{dy}{dt}\end{array}\right)= \left(\begin{array}{ccc}0 && 1 \\-w^2 && 0\end{array}\right)\left(\begin{array}{c}x \\ y\end{array}\right)[/tex]

Taking this one step further, define [itex]\mathbf X[/itex] and [itex]\mathbf A[/itex] as
[tex]\begin{array}{rl}<br /> \mathbf X &\equiv \bmatrix x\\y\endbmatrix \\[12pt]<br /> \mathbf A &\equiv \bmatrix 0&&1\\-w^2&&0\endbmatrix<br /> \endarray[/tex]

then

[tex]\frac {d\mathbf X}{dt}= \mathbf A\mathbf X[/tex]

If [itex]\mathbf X[/itex] and [itex]\mathbf A[/itex] were scalars, the solution to the above would be the exponential

[tex]\mathbf X = e^{\mathbf A t}\mathbf X|_{t=0}[/tex]

The series expansion of the exponential function works for matrices as well as scalars (for example, see http://mathworld.wolfram.com/MatrixExponential.html" ).

In this case,

[tex]\mathbf A^2 = -w^2 \mathbf I[/tex]

where [itex]\mathbf I[/itex] is the identity matrix. Thus

[tex]\begin{array}{rl}<br /> (\mathbf A t)^{2n} &= (-1)^n (wt)^{2n} \mathbf I \\<br /> (\mathbf A t)^{2n+1} &= (-1)^n \frac 1 w (wt)^{2n+1} \mathbf A\\<br /> \end{array}[/tex]

The matrix exponential is thus

[tex]\begin{array}{rl}<br /> e^{\mathbf A t} &=\sum_{n=0}^{\infty} \frac {(\mathbf At)^n}{n!}<br /> \\[12pt]<br /> &= \sum_{n=0}^{\infty} \frac {(\mathbf At)^{2n}}{(2n)!} +<br /> \sum_{n=0}^{\infty} \frac {(\mathbf At)^{2n+1}}{(2n+1)!}<br /> \\[12pt]<br /> &= \sum_{n=0}^{\infty} (-1)^n\frac {(wt)^{2n}}{(2n)!} \mathbf I +<br /> \frac 1 w\sum_{n=0}^{\infty}(-1)^n\frac{(wt)^{2n+1}}{(2n+1)!} \mathbf A<br /> \\[12pt]<br /> &= \cos(wt) \mathbf I +\frac 1 w\sin(wt) \mathbf A<br /> \end{array}[/tex]
 
Last edited by a moderator:

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 14 ·
Replies
14
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K