Solving Diff.Eq. with Boundary Conditions: y(x) = x

Click For Summary
SUMMARY

The forum discussion centers on solving the differential equation y''(x) + y(x) = 0 with boundary conditions y(1) + y(-1) = 0 and y'(1) + y'(-1) = 2. The proposed solution is y(x) = x + (1/2)∫(from -1 to 1) (1 - |x - u|) y(u) du, which requires verification against the boundary conditions. Participants discuss the application of the Fundamental Theorem of Calculus and Leibniz's rule to differentiate integrals involving y(u). Ultimately, the solution y(x) = sin(x) / cos(1) is confirmed as valid.

PREREQUISITES
  • Understanding of differential equations, specifically second-order linear ODEs.
  • Familiarity with boundary value problems and their conditions.
  • Knowledge of the Fundamental Theorem of Calculus and Leibniz's rule for differentiation under the integral sign.
  • Proficiency in symbolic computation, particularly in manipulating integrals and derivatives.
NEXT STEPS
  • Study the method of solving second-order linear ordinary differential equations with constant coefficients.
  • Learn about boundary value problems and their applications in physics and engineering.
  • Explore the use of symbolic computation tools like MATLAB for solving differential equations.
  • Investigate the Green's function method for solving differential equations with boundary conditions.
USEFUL FOR

Mathematicians, physicists, and engineers dealing with differential equations, particularly those focused on boundary value problems and numerical solutions using computational tools.

  • #31
Well, in fact is easy to come up with such solution.

The general solution for y''(x)+y(x)=0 is y(x)=A\cos x+ B\sin x. Evaluating the boundary conditions, the constants A,\,B are determined. After doing that, one can conclude that A=0 and B=\cos^{-1}(1).
 
Physics news on Phys.org
  • #32
am not sure how to apply this type of boundary condition
 
Last edited:
  • #33
If y(x) = Acos(x) + Bsin(x)

y'(x) = Bcos(x) - Asin(x)

y''(x) = -Acos(x) - Bsin(x)

y(1)= - y(-1)
y'(1) = 2-y'(-1)
but I'm still not sure about this type of boundary condition...
 
  • #34
Just evaluate:

y(-1)+y(1)=A\cos(-1)+B\sin(-1)+A\cos(1)+B\sin(-1)=2A\cos(1)=0,

so A=0. What is B?
 
  • #35
I see what I'm doing wrong. I was trying to put the boundary conditions into y(x) and y'(x) instead of puting those two into the boundary conditions.

B= 1/cos(1)

Thanks for the help

oh yeah [I hope it's the last question :) ] but how did you find the general solution to y''(x) + y(x)=0 to be y(x)= Acos(x) + Bsin(x) ?
 
  • #36
Well, you propose (like in any linear second order ode with constant coefficients) an exponential solution y(x)=e^{rx}, and then find out what is the value of r, i.e.

y''(x)+y(x)=(r^2+1)e^{rx}=0.

That way, r=\pm i and the solution is y(x)=Ae^{ix}+Be^{-ix}. As you only want real solutions, then y(x)=C\cos x+D\sin x.

You should really check a book on ODE's. I recommend you the one written by Boyce and DiPrima Elementary Differential Equations. It should be in your library.
 
  • #37
I'll try to find that book. Thanks again for the help.
 

Similar threads

  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
498
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K