How to solve this 2nd order ODE?

  • #1
101
30
Homework Statement
Solve for ##\frac{d^{2}\psi}{d\xi^2} =\xi^2\psi##
Relevant Equations
For unequal roots 2nd order ODE, the solution is: ##y=c_{1}e^{-kx}+c_{2}e^{kx}##
This is a very simple question: I would like to solve for ##\psi## in this equation $$\frac{d^{2}\psi}{d\xi^2} =\xi^2\psi$$
I so apply ##y=c_{1}e^{-kx}+c_{2}e^{kx}## and ##\psi## should be equal to ##\psi=c_{1}e^{-\xi^2}+c_{2}e^{\xi^2}##, because ##(D^2-\xi^2)\psi=0##. However the answer is ##\psi(\xi) = c_{1}e^{-\frac{\xi^2}{2}}+c_{2}e^{\frac{\xi^2}{2}}##. Why is it so?
 

Answers and Replies

  • #2
Your relevant equation is for constant coefficients. Your ODE does not have constant coefficients.

Try the substitution [itex]\psi = e^{f(\xi)}[/itex].

EDIT: Also, [itex](D - \xi)(D + \xi) \neq (D^2 - \xi^2)[/itex] since multiplication by [itex]\xi[/itex] and differentiation wrt [itex]\xi[/itex] do not commute: By the product rule, [tex]
D\xi = \xi D + 1.[/tex]
 
Last edited:
  • Like
Likes Tony Hau and Delta2
  • #3
Additionally, [itex]e^{\pm\xi^2/2}[/itex] are not solutions, as can be determined by inspection: if [itex]\psi = e^{\pm\xi^2/2}[/itex] then [tex]\begin{align*}
\psi' &= \pm \xi \psi \\
\psi'' &= \pm(\psi + \xi \psi') = (\xi^2 \pm 1)\psi \\
&\neq \xi^2 \psi.
\end{align*}[/tex] If you want to sove this ODE I suspect you will need to look for a power series. (My proposed substitution will lead to a first -order ODE in [itex]f'[/itex], but it has the drawback of being non-linear.)
 
  • #4
Try tweaking pasmith's non solution. I.e. try e^(x^2/2) + f, and see what f needs to be to kill off the extra terms coming from the first part. Maybe the solution is not "elementary", since you need an antiderivative of e^(x^2/2).
 
  • #5
Try tweaking pasmith's non solution. I.e. try e^(x^2/2) + f, and see what f needs to be to kill off the extra terms coming from the first part. Maybe the solution is not "elementary", since you need an antiderivative of e^(x^2/2).
I think it will turn out that ##f=e^{-\frac{x^2}{2}}##. In the OP he claims that the correct solution is ##\psi=c_1e^{\frac{x^2}{2}}+c_2e^{-\frac{x^2}{2}}## and I think that's correct.
 
  • #6
I think I was wrong up to a constant, the solution seems to be $$\psi=c\left (e^{\frac{x^2}{2}}+e^{-\frac{x^2}{2}}\right )$$
 
  • #7
Nope I was totally wrong this solution doesn't work. SORRY!
 
  • #8
I think I was wrong up to a constant, the solution seems to be $$\psi=c\left (e^{\frac{x^2}{2}}+e^{-\frac{x^2}{2}}\right )$$
The solution is same as I stated. Actually this is from a proof on my textbook on quantum mechanics, where the proof is about solving the simple harmonic oscillator. ##\psi(x)## refers to the wave function; ##\xi## refers to the constant ##\sqrt{\frac{m\omega}{\hbar}}x##
 
  • #9
The solution is same as I stated. Actually this is from a proof on my textbook on quantum mechanics, where the proof is about solving the simple harmonic oscillator. ##\psi(x)## refers to the wave function; ##\xi## refers to the constant ##\sqrt{\frac{m\omega}{\hbar}}x##
Can you post a screenshot from the book's page, cause the solution you state at the OP doesn't verify the differential equation.
 
  • #10
WhatsApp Image 2021-01-22 at 11.47.24.jpeg
WhatsApp Image 2021-01-22 at 11.47.23.jpeg
 
  • #11
Can you post a screenshot from the book's page, cause the solution you state at the OP doesn't verify the differential equation.
By the way, it would be very nice if you could explain what asymptotic form is in the second picture. I don't understand the transition from ##\psi = Ae^{\frac{-\xi^2}{2}}+Be^{\frac{\xi^2}{2}}## to ##\psi = h(\xi)e^{\frac{-\xi^2}{2}}##
 
  • #12
By the way, it would be very nice if you could explain what asymptotic form is in the second picture. I don't understand the transition from ##\psi = Ae^{\frac{-\xi^2}{2}}+Be^{\frac{\xi^2}{2}}## to ##\psi = h(\xi)e^{\frac{-\xi^2}{2}}##
TO be honest I don't understand that transition myself, however the book says that the solution you give at the OP is an approximate solution for large ##\xi##, something that you didn't tell us from start!
 
  • #13
TO be honest I don't understand that transition myself, however the book says that the solution you give at the OP is an approximate solution for large ##\xi##, something that you didn't tell us from start!
I am sorry. I thought the approximation only refers to ##\frac{d^2\psi}{d\xi^2} \approx \xi^2\psi##; with regards to the approximation ##\frac{d^2\psi}{d\xi^2} \approx \xi^2\psi## , the following ##\psi = Ae^{-\frac{\xi^2}{2}}+ Be^{\frac{\xi^2}{2}}## is exact and is not an approximation.
 
  • #14
I am sorry. I thought the approximation only refers to ##\frac{d^2\psi}{d\xi^2} \approx \xi^2\psi##; with regards to the approximation ##\frac{d^2\psi}{d\xi^2} \approx \xi^2\psi## , the following ##\psi = Ae^{-\frac{\xi^2}{2}}+ Be^{\frac{\xi^2}{2}}## is exact and is not an approximation.
No, ##\psi = Ae^{-\frac{\xi^2}{2}}+ Be^{\frac{\xi^2}{2}}## is not an exact solution of the ODE ##\frac{d^2\psi}{d\xi^2} = \xi^2\psi##. If you plug it in and calculate ##\frac{d^2\psi}{d\xi^2}## you ll find that it is equal to ##(\xi^2+1)\psi## as @pasmith first noted at post #3. But for large ##\xi## it is ##\xi^2+1\approx \xi^2## so it is indeed an approximate solution for large ##\xi## always.
 
  • #15
This is a very simple question: I would like to solve for ##\psi## in this equation $$\frac{d^{2}\psi}{d\xi^2} =\xi^2\psi$$

This is a special case of Titchmarsh's Equation, the solution of which is in terms of special functions. In your case, the solution of ##y''-x^2y=0## is
$$y(x)=c_1 D[-1/2,\sqrt{2} x]+c_2 D[-1/2,i\sqrt{2}x]$$
where ##D[v,u]## is the parabolic cylinder function: Parabolic Cylinder function
Might be interesting to study how the approximate solution differs from this solution.
 
  • Like
Likes Tony Hau and Delta2

Suggested for: How to solve this 2nd order ODE?

Replies
4
Views
317
Replies
11
Views
923
Replies
3
Views
479
Replies
8
Views
549
Replies
33
Views
2K
Replies
8
Views
290
Replies
12
Views
770
Replies
4
Views
682
Back
Top