Solving system X'=-x+y, Y'=-x-y with initial conditions

13 replies · 4K views · last reply
aeroguy2008
Messages
46
Reaction score
0

SOLVE THE SYSTEM OF DIFFERENTIAL EQUATIONS:

X'= -x+y
Y'= -x-y

WHEN x(0)=2 och y(0)=3.



The Attempt at a Solution



HELP...I don't know how to go about this. I have used the matrix
A= [-1 1
-1 -1]

and got a lambda1=-1+i
lambda2=-1-i and eigenvectors: [1
i] for lambda1
and [i
1] for lambda2

I need to get the solution in a general form. Please help!

Homework Equations

 
Last edited:
Hey Aeroguy! Welcome:smile:

So if you have the Eigenvectors, what is the solution to the system? You should have two arbitrary constants right?

Now just plug in the given conditions and solve for C1 and C2!
 
Thanks for your reply and for the welcome. I guess my problem is that I don't really know what the system should look like. I can't figure out which of the following four cases I'm dealing with.

Case 1)

[x [a [c
y] = b]exp*(t)+ d]exp*(-t) ?

Case 2)

[x [a [c
y] = b]cos(t)+ d]sin(t) ?

Case 3)

[x [a [c
y] = b]exp*(t)*cos(t)+ d] exp*(t)sin(t) ?

Case 4)

[x [a [c
y] = b]exp*(-t)*cos(t)+ d] exp*(-t)sin(t) ?

Further I know that I should use 2 and 3 as a Left Hand Side in Two Linear Equations since x(0)=2 och y(0)=3 is given. But, unfortunately I don't quite know where to use them:(
 
one minute AG, I am just looking in my text. BTW, I have a stupid question: what is OCH?
 
OH... OCH means AND in Swedish. I mixed up the languages:P sorry about that!
 
Alrighty-then!:smile:

Here we go! I believe that in with the case of complex Eigenvalues of lambda, you will need only to establish one Eigenvector. It is due to the fact that complex Eigenvalues will always show up in conjugate pairs

Now let's take your first one and make some use of it:

[tex]K_1=<br /> \left[\begin{array}{c}1\\i\end{array}\right][/tex]

This column vector can be split up into its real and imaginary parts, that is:
[tex]\left[\begin{array}{c}1\\i\end{array}\right]=\left[\begin{array}{c}1\\0\end{array}\right]+\left[\begin{array}{c}0\\1\end{array}\right]i[/tex]

Do you follow so far?
 
Well, I don't know what kind of approaches your teacher has you take, but there is a pretty straight forward formula to these kinds of problems:

[tex]X=C_1[B_1\cos\beta t-B_2\sin\beta t]e^{\alpha t}[/tex]

[tex]Y=C_2[B_2\cos\beta t+B_1\sin\beta t]e^{\alpha t][/tex]

Where B1 is the column vector that is the REAL part of your Eigenvector i.e [tex]\left[\begin{array}{c}1\\0\end{array}\right][/tex]

B2 is the column vector that is the IMAGINARY part i.e. [tex]\left[\begin{array}{c}0\\1\end{array}\right][/tex]

[itex]\alpha[/itex] is the REAL term in [itex]\lambda=-1+i[/itex] which is of course -1

and [tex]\beta[/tex] is the COEFFICIENT of the imaginary term in lambda which is +1


Now plug it all in and apply those initial conditions and solve for C1 and C2!
 
Thanks for trying to help me. To be honest I don't not know how to get C1 and C2? Do I put t=0? If you can, could you please tell me what values C1 and C2 will get? Thanks...
 
aeroguy2008 said:
Thanks for trying to help me. To be honest I don't not know how to get C1 and C2? Do I put t=0? If you can, could you please tell me what values C1 and C2 will get? Thanks...

From the initial conditions you know that when t=0--->x=2 AND when t=0---->y=3


Plug those values in. Two equations and two unknowns. :smile:
 
Saladsamurai said:
From the initial conditions you know that when t=0--->x=2 AND when t=0---->y=3

Plug those values in. Two equations and two unknowns. :smile:

Hello. I have tried your method with regards to my earlier attempts. But the problem I am facing is that I can't get C1 and C2 without setting c1=2 and c2 =3 according to the equations. Yet, I don't think my C1 and C2 are correct.
 
Attachments
  • Handwritten-style worked solution of a 2x2 linear ODE system: X = C1 [1;0] cos t e^-t - C2 [0;1] sin t e^-t, then setting t = 0 giving X = C1 [1;0], and with X(0) = 2 giving 2 = C1 [1;0].
    Salad.jpg
    8.9 KB · Views: 423
  • Handwritten derivation of a solution to a linear system: Y = C2 [0;1] cos t e^(-t) + [1;0] sin t e^(-t); at t = 0 the cos and sin terms reduce, giving Y = C2 [0;1] and then 3 = C2 [0;1].
    Salad1.jpg
    8.2 KB · Views: 443
aeroguy2008 said:
Yet, I don't think my C1 and C2 are correct.

What makes you think that these are incorrect? Why don't you take the first derivative of the solution and plug it back into the original system and see what happens:wink::smile:
 
I did that. Thanks. So now I have to chose between these options (found as an attachment):
I would say the correct answer to this problem is D with

a=2, b=0, c=3, d=0. But I know that is not correct. Yet, I can't figure out why. Can you pls tell me what I am doing wrong?
 
Attachments
  • Four multiple-choice options A to D, each giving a 2x1 vector [x; y] as a sum of a constant vector [a; b] times a function and a vector [c; d] times another function, with exponential and trigonometric terms.
    system.jpg
    10.4 KB · Views: 440
Ok I got it now:

a=2
b=0
c=3
d=-2

What has to be taken into account is to sum of X and Y to a general solution. This problem is thus solved.