Solving Boundary Value ODE: y''+λy=0

Click For Summary

Homework Help Overview

The discussion revolves around solving the boundary value problem for the ordinary differential equation (ODE) given by y'' + λy = 0, with boundary conditions y(0) = 0 and y(π) - y'(π) = 0. The participants explore different cases for the parameter λ, specifically when it is less than, equal to, and greater than zero.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss testing different values of λ and the implications for the ODE's solutions. There are attempts to derive solutions for each case of λ, with some participants questioning the correctness of their boundary condition applications and suggesting alternative forms for the solutions, such as using hyperbolic functions for λ < 0.

Discussion Status

The discussion is active, with participants providing insights and suggestions for refining their approaches. Some participants have pointed out potential errors in the original poster's reasoning and boundary condition applications, while others have introduced new perspectives on how to handle the cases for λ.

Contextual Notes

Participants are navigating the complexities of boundary conditions and the implications of different signs for λ. There is an emphasis on ensuring non-trivial solutions and the use of determinants to analyze the system of equations derived from the boundary conditions.

WendysRules
Messages
35
Reaction score
3

Homework Statement


## y''+\lambda y = 0 ; y(0) = 0, y(\pi)-y'(\pi) = 0##

Homework Equations

The Attempt at a Solution


So, we have to test when lambda is equal to, less than and greater than 0.
Let ## \lambda = 0## thus, the ODE becomes ## y'' = 0 ## which implies solutions of the form ## y(t) = C_1t+C_2 ## which would make the derivative ## y'(t) = C_1 ##. When we apply our boundary conditions we see that ## y(0) = C_2 = 0 ## and ##y(\pi)-y'(\pi) = C_1 \pi - C_1= 0## therefore ##C_1 = 0## which are trivial solutions.

Let ## \lambda < 0 ## thus, the ODE becomes ## y''- \lambda y = 0 ## which implies solutions of the form ## y(t) = C_1e^{\sqrt{\lambda}t}+C_2e^{-\sqrt{\lambda}t} ## which would make the derivative ## y'(t) = \sqrt{\lambda}C_1e^{\sqrt{\lambda}t}-\sqrt{\lambda}C_2e^{-\sqrt{\lambda}t} ##. When we apply our boundary conditions we see that ## y(0) = C_1+C_2 = 0 ## therefore ## C_2=-C_1 ## and ## y(\pi)-y'(\pi) = C_1e^{\sqrt{\lambda}\pi}+C_2e^{-\sqrt{\lambda}\pi}-[\sqrt{\lambda}C_1e^{\sqrt{\lambda}\pi}-\sqrt{\lambda}C_2e^{-\sqrt{\lambda}\pi}].## If i make my substitution from the first boundary condition, we see this become ## C_1e^{\sqrt{\lambda}\pi}-C_1e^{-\sqrt{\lambda}\pi}-\sqrt{\lambda}C_1e^{\sqrt{\lambda}\pi}-\sqrt{\lambda}C_1e^{-\sqrt{\lambda}\pi}## The two positive square root terms cancel out and we get ## C_1[-e^{-\sqrt{\lambda}\pi}-e^{-\sqrt{\lambda}\pi} = 0 ## Since the exponentials can't ever be zero, it implies that ## C_1 = 0 ## this, these solutions are trivial.

But this is wrong, so I must've done something wrong in this step. If anyone could point out my error, I'd appreciate it. Am I allowed to say ##\sqrt{\lambda}C_1 = C_1##? Maybe I should convert to hyperbolic trig functions? That would be my guess, but I don't want to do more work if I just made a silly algebra error. I also got the next part wrong.

Let ## \lambda > 0 ## thus, the ODE becomes ## y''+\lambda y = 0 ## which implies solutions of the form ## y(t) = C_1\cos{\sqrt{\lambda}t}+ C_2\sin{\sqrt{\lambda}t}. ##Which would make the derivative ## y'(t) = -\sqrt{\lambda}C_1\sin{\sqrt{\lambda}t} + \sqrt{\lambda}C_2\cos{\sqrt{\lambda}t} ##. When I apply my boundary conditions, we see that ## y(0) = C_1 = 0 ## and ## y(\pi)-y'(\pi) = 0-C_2 \cos \pi \sqrt{\lambda} = 0 ## Now we solve for ## \lambda ## to see that ## \sqrt{\lambda} pi = \frac{npi}{2} ## which makes ## \lambda = \frac{n^2}{4} ## which would make our solutions ## y(t) = C \sin {\frac{n}{2}} t ## which is wrong, but I don't quite understand the answer for this one.

The solution I'm given for ## \lambda > 0 ## is ## y(t) = c \sin \sqrt{\lambda_n} t ## where ##\tan \sqrt{\lambda_n} \pi = \lambda_n ##

Should I start just using determinant to get the solutions to the system of equations? Or am I able to continue down the path as above?

THanks for any help.
 
Physics news on Phys.org
WendysRules said:
The two positive square root terms cancel
They do not. I also suggest that you use cosh and sinh rather than the exponential functions. It will significantly simplify the boundary condition at x=0.

WendysRules said:
Let λ<0λ<0 \lambda < 0 thus, the ODE becomes y
Careful here. You are assuming lambda to be positive when it is negative and rewriting the differential equation using a different definition of lambda. It would be more consistent to introduce ##k>0## such that ##\lambda = -k^2##.

Also double check your boundary condition implementation at ##x=\pi## for the positive case. It is not correct.
 
Let ## \lambda < 0 ## then ## y(t) = C_1 \cosh \sqrt{-\lambda} t + C_2 \sinh \sqrt {-\lambda} t ## and ## y'(t) = \sqrt{-\lambda} C_1 \sinh \sqrt {-\lambda} t + \sqrt{-\lambda} C_2 \cosh \sqrt{-\lambda} t ## Thus for our boundary conditions, we get the system of equations that looks like ## \begin{bmatrix}
1 & 0 \\
\cosh \sqrt{-\lambda} \pi - \sqrt{-\lambda} \sinh \sqrt {-\lambda} \pi & \sinh \sqrt {-\lambda} \pi - \sqrt{-\lambda} \cosh \sqrt{-\lambda} \pi
\end{bmatrix} = \begin{bmatrix} 0 \\
0
\end{bmatrix}##

If we take the determinant (to ensure nonzero solutions for ## C_1, C_2 ##)we see that ## \sinh \sqrt {-\lambda} \pi = \sqrt{-\lambda} \cosh \sqrt{-\lambda} \pi ## So I got this, but now how do I figure out from here what my solution would be? Look for solutions for ## \lambda < 0 ##?

Similarly for ## \lambda > 0 ## then ## y(t) = C_1 \cos \sqrt{\lambda}t + C_2 \sin \sqrt{\lambda} t ## and ## y'(t) = \sqrt{\lambda}C_1 \sin \sqrt{\lambda} t + \sqrt{\lambda}C_2 \cos \sqrt{\lambda}t ## so applying our boundary conditions we get the system of equations that looks like
## \begin{bmatrix}
1 & 0 \\
\cos \sqrt{\lambda} \pi + \sqrt{\lambda} \sin \sqrt{\lambda} \pi & \sin \sqrt{\lambda} \pi - \sqrt{\lambda} \cos \sqrt{\lambda} \pi
\end{bmatrix} = \begin{bmatrix} 0 \\
0
\end{bmatrix}##

If we take the determinant (to ensure nonzero solutions for ## C_1, C_2 ##) we see that ## \sin \sqrt{\lambda} \pi - \sqrt{\lambda} \cos \sqrt{\lambda} \pi = 0 ## therefore ## \sin \sqrt{\lambda} \pi = \sqrt{\lambda} \cos \sqrt{\lambda} \pi ## and now I see where the tan in the answer comes from because if we divide by cos, we see the equation becomes ## \tan \sqrt{\lambda} \pi = \sqrt{\lambda} ## so now I want to find solutions for ## \lambda > 0 ##?

Thanks for the help!
 
Last edited:
If you would write your cases as $$\lambda = \mu^2 > 0,~\lambda = 0,~ \lambda = -\mu^2 < 0$$your writing would be much easier without all the square roots. Your last equation would be from the first case with ##\tan(\mu\pi) = \mu##. If you plot the graphs of ##\tan \pi x## and ##x##, you will see that there are infinitely many positive values of ##x## where they are equal. You can let ##\mu_n## be the values where the graphs cross. Then ##\lambda_n = \mu_n^2## with corresponding eigenfunctions. You can calculate the first few numerically.
 
In addition to what @LCKurtz just said, note that the RHS grows without bound. Consequently, as the sine function is bounded by one, the high n values of ##\mu_n## will occur close to the zeros of the cosine function, ie, close to half-integer values.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
1
Views
1K
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K