Where Did I Go Wrong Solving This 2nd Order Homogeneous Differential Equation?

leonida
Messages
10
Reaction score
0

Homework Statement


y"-2y'+5=0, y(∏/2)=0, y'(∏/2)=2

find general solution of this diff eq

Homework Equations





The Attempt at a Solution



i have followed all of the steps for this, rather easy 2nd order diff eq, but i my solution differs from the books solution.

steps:
r2-2r+5=0

r 1/2= 1±2i

y=c1etcos(2t)+c2etsin(2t)
we have y(∏/2)=0, when replaced in eq above gives me
c1=-e-(∏/2)

calculating y' from the above y gives:
y'=et((c2-2c1)sin(2t)+(c1+2c2)cos(2t))
replacing y'(∏/2)=2 i get c2=(3/2)e-(∏/2)

putting back c1 and c2 i get final solution of y=(3/2)e(t-∏/2)sin(2t)-e(t-∏/2)cos(2t)
book saying that the solution of this eq is y=-e(t-∏/2)sin(2t)

can someone point out where i am making mistakes, since i did this problem few times and i always get the same answer...
 
Physics news on Phys.org
leonida said:

Homework Statement


y"-2y'+5=0, y(∏/2)=0, y'(∏/2)=2

find general solution of this diff eq

Homework Equations


The Attempt at a Solution



i have followed all of the steps for this, rather easy 2nd order diff eq, but i my solution differs from the books solution.

steps:
r2-2r+5=0

r 1/2= 1±2i

y=c1etcos(2t)+c2etsin(2t)
we have y(∏/2)=0, when replaced in eq above gives me
c1=-e-(∏/2)
This actually gives you ##y(\pi/2)=0=c_1e^{\pi/2}##. You set it equal to 1, not 0.

calculating y' from the above y gives:
y'=et((c2-2c1)sin(2t)+(c1+2c2)cos(2t))
replacing y'(∏/2)=2 i get c2=(3/2)e-(∏/2)

putting back c1 and c2 i get final solution of y=(3/2)e(t-∏/2)sin(2t)-e(t-∏/2)cos(2t)
book saying that the solution of this eq is y=-e(t-∏/2)sin(2t)

can someone point out where i am making mistakes, since i did this problem few times and i always get the same answer...
 
vela,
thank you.. i knew i made some silly mistake...

after correcting my work i still have discrepancy in sign.. i am getting positiv, while book is saying negative..

After differentiating y I get => y'=et((c2-2c1)sin(2t)+(c1+2c2)cos(2t))

since c1=0 and y'(∏/2)=2

2=2e∏/2c2 which is

c2=e-(∏/2) and i need this to be negative...
 
got it.. cos(pi)=-1 and there i get my negative sign... Vela, thanks a lot for pointing my mistake
 
Glad you figured it out.
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top