Find solutions for an differential equation system

215 Views Asked by At

I have a differential equation system

$x_1'(t) = -x_2(t)$

$x_2'(t) = -x_1(t)$

I see that I can write $\dot{x} = Ax$ where

$A = \begin{pmatrix}0 & -1 \\ -1 & 0\end{pmatrix}$

The complete real solution will be

$x(t) = c_1 e^{-t} \begin{pmatrix}1 \\ 1\end{pmatrix} + c_2 e^t \begin{pmatrix}-1 \\ 1\end{pmatrix}$

where $c_1,c_2 \in \mathbb{R}$.

It this correct?

Now I need to find the solution such that $x_1(0) = -1$ and $x_2(0) = 1$.

How can I do this?

I think I could split my complete solution in

$x_1(t) = c_1 e^t - c_2 e^{-t}$

and

$x_2(t) = c_1 e^t + c_2 e^{-t}$

and then find $c_1$ and $c_2$ by solving $x_1(0) = -1$ and $x_2(0) = 1$ with respect to $c_1$ and $c_2$ and finally substitute these values in the complete solution $x(t)$.

Is this correct?

2

There are 2 best solutions below

0
On

The solution here is even simpler than that: $x_1''=x_1$. Solutions are linear combinations of $e^t$ and $e^{-t}$, or even better, linear combinations of $\cosh(t)$ and $\sinh(t)$.

In the general case, you are right to use a matrix etc. But no need to use that here.

0
On

In general form general solution should be:

$$x(t)=c_{1}e^{\lambda_{1}}\overrightarrow{v_{1}}+c_{2}e^{\lambda_{2}}\overrightarrow{v_{2}}$$

According to my calculations, I find $\lambda_1=1$ and $\lambda_2=-1$. Thus, resulting eigenvectors are:

$$x(t) = c_1 e^{t} \begin{pmatrix}1 \\ -1\end{pmatrix} + c_2 e^{-t} \begin{pmatrix}1 \\ 1\end{pmatrix}$$

You should check your results. And yes you find $c_1$ and $c_2$ from initial values.

Edit: I didn't realize your edit. Your results are now true.