Solving "y''(x) +y(x)=0" w/ BC's of y(1)+y(-1)=0 & y'(1)+y'(-1)=2

  • Thread starter Thread starter jt316
  • Start date Start date
jt316
Messages
32
Reaction score
0
how would i find the exact solution to:

y''(x) +y(x)=0

with BC's of:

y(1)+y(-1)=0

y'(1)+y'(-1)=2

a little confussing because the BC's I am used to dealing with are like:
y(0)=0
y(1)=0
 
Physics news on Phys.org
You really have to think a little. You know, I hope, that the general solution to y"+ y= 0 is y(x)= Ccos(x)+ Dsin(x) so that y'(x)= -Csin(x)+ Dcos(x). Now put those functions into your boundary conditions:
y(1)+ y(-1)= Ccos(1)+ Dsin(1)+ Ccos(-1)+ Dsin(-1)= 0
y'(1)+ y'(-1)= -Csin(1)+ Dcos(1)- Csin(-1)+ Dcos(-1)= 2.
Using the fact that cosine is an even function and sine is an odd function will simplify these a lot.

Didn't we just do this in another thread?
 
HallsofIvy said:
You really have to think a little. You know, I hope, that the general solution to y"+ y= 0 is y(x)= Ccos(x)+ Dsin(x) so that y'(x)= -Csin(x)+ Dcos(x). Now put those functions into your boundary conditions:
y(1)+ y(-1)= Ccos(1)+ Dsin(1)+ Ccos(-1)+ Dsin(-1)= 0
y'(1)+ y'(-1)= -Csin(1)+ Dcos(1)- Csin(-1)+ Dcos(-1)= 2.
Using the fact that cosine is an even function and sine is an odd function will simplify these a lot.

Didn't we just do this in another thread?


I see where I was messing up. I found y(1),y(-1),y'(1) & y'(-1) but I was trying to plug the boundry conditions into these equations instead of pluging these into my boundry conditions. Thanks for the insight.
 
Are there any good visualization tutorials, written or video, that show graphically how separation of variables works? I particularly have the time-independent Schrodinger Equation in mind. There are hundreds of demonstrations out there which essentially distill to copies of one another. However I am trying to visualize in my mind how this process looks graphically - for example plotting t on one axis and x on the other for f(x,t). I have seen other good visual representations of...
Back
Top