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

  • Context: Graduate 
  • Thread starter Thread starter jt316
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on solving the second-order differential equation y''(x) + y(x) = 0 with boundary conditions y(1) + y(-1) = 0 and y'(1) + y'(-1) = 2. The general solution is identified as y(x) = Ccos(x) + Dsin(x), leading to the derivatives y'(x) = -Csin(x) + Dcos(x). The boundary conditions are applied correctly by substituting the general solution into them, utilizing the properties of even and odd functions to simplify the equations.

PREREQUISITES
  • Understanding of second-order differential equations
  • Familiarity with boundary conditions in differential equations
  • Knowledge of trigonometric functions, specifically sine and cosine
  • Ability to manipulate algebraic expressions and solve for constants
NEXT STEPS
  • Study the method of solving second-order linear differential equations
  • Learn about boundary value problems and their applications
  • Explore the properties of even and odd functions in mathematical analysis
  • Investigate the use of Fourier series in solving differential equations
USEFUL FOR

Mathematicians, physicists, and engineering students who are working on differential equations and boundary value problems will benefit from this discussion.

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 boundary conditions into these equations instead of pluging these into my boundary conditions. Thanks for the insight.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 1 ·
Replies
1
Views
955
  • · Replies 2 ·
Replies
2
Views
3K
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K