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.
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top