Second order differential equation solution

In summary, the solution to the given second order differential equation (1) can be written in terms of exponential functions or sine and cosine functions as shown in equation (2). The usual method to solve this type of equation is by trying the function f(x)=exp(kx) or by using separation of variables.
  • #1
Ron Burgundypants
23
0
Homework Statement
Looking at Griffiths quantum mechanics chapter 2.1 and 2.5, how do we get to the solution to the second order differential equation?
Relevant Equations
(1) d^2Psi/dx^2 = -k^2 Psi
(2) Psi(x) = Asin(kx) + Bcos(kx) || Ae^-kx + Be^kx
(3) (1/Psi) d^2 Psi = -k^2 Psi dx^2
(4) ln(Psi) d Psi = -x k^2 Psi dx + c
I know the solution to the equation (1) below can be written in terms of exponential functions or sin and cos as in (2). But I can't remember exactly how to get there using separation of variables. If I separate the quotient on the left and bring a Psi across, aka separation of variables (as I was taught by physicists), and then integrate once I get (4), but then I'm still left with an operator I need to get rid of. I can of course then exponentiate away the log but then if i integrate again I'm going to get a right mess. So any ideas what to do?
 
Physics news on Phys.org
  • #2
Ron Burgundypants said:
Homework Statement:: Looking at Griffiths quantum mechanics chapter 2.1 and 2.5, how do we get to the solution to the second order differential equation?
Relevant Equations:: (1) d^2Psi/dx^2 = -k^2 Psi
(2) Psi(x) = Asin(kx) + Bcos(kx) || Ae^-kx + Be^kx
(3) (1/Psi) d^2 Psi = -k^2 Psi dx^2
(4) ln(Psi) d Psi = -x k^2 Psi dx + c

I know the solution to the equation (1) below can be written in terms of exponential functions or sin and cos as in (2). But I can't remember exactly how to get there using separation of variables. If I separate the quotient on the left and bring a Psi across, aka separation of variables (as I was taught by physicists), and then integrate once I get (4), but then I'm still left with an operator I need to get rid of. I can of course then exponentiate away the log but then if i integrate again I'm going to get a right mess. So any ideas what to do?
##y"+k^2y=0##
##y'y"+k^2y'y=0##
Integrate, then trig substitution.
 
  • #3
I don't understand what you've written or how you get there.
 
  • #4
Separation of variables is limited to 1st order ODE's (can be non-linear).

You can reduce a 2nd order ODE to two 1st order ones but only if the zero order derivative coefficient is zero. So you can solve y''(x) + y'(x) = A but not y'' + y = A by separation if separation is possible for both 1st order ODE's. There may be other methods I don't know about.

Perhaps haruspex accomplishes this his way but I don't offhand see it either.

This being a linear ODE the best way is Laplace transformation typically encountered in engineering curricula only. All boundary or initial conditions automatically included and very extensive inverse tables readily available. Only way to fly!
 
  • #5
Ron Burgundypants said:
I don't understand what you've written or how you get there.
Sorry, for some reason I got no alert that you had replied.
You have an equation of the form ##y''+k^2y=0##.
Multiplying both sides by y' gives ##y''y'+k^2yy'=0##.
Both terms are directly integrable:
##\frac 12y'^2+\frac 12k^2y^2=C^2/2##.
##y'=\sqrt{C^2-k^2y^2}##
This suggests a trig substitution, ##y=\frac Ck\sin(\theta)##:
##\frac 1k\cos(\theta)\theta'=\cos(\theta)##
##\theta'=k##.
 
  • #6
Ron Burgundypants said:
Homework Statement:: Looking at Griffiths quantum mechanics chapter 2.1 and 2.5, how do we get to the solution to the second order differential equation?
Relevant Equations:: (1) d^2Psi/dx^2 = -k^2 Psi
(2) Psi(x) = Asin(kx) + Bcos(kx) || Ae^-kx + Be^kx
I know the solution to the equation (1) below can be written in terms of exponential functions or sin and cos as in (2). But I can't remember exactly how to get there using separation of variables.
The differential equation is a second order, linear,homogeneous one, with constant coefficients.. The usual way of solution is trying the function f(x)=exp(kx) . Substitute into the differential equation, you get the "characteristic equation" for k, a quadratic one. Usually, you get two different roots, either both real, or both complex, imaginary in this case, . The general solution of the ode is linear combination of the two exponential functions, exp(k1x) and exp(k2x), or linear combination of a sine and a cosine function: Asin(kx)+Bcos(kx).
 
  • #7
haruspex said:
Sorry, for some reason I got no alert that you had replied.
You have an equation of the form ##y''+k^2y=0##.
Multiplying both sides by y' gives ##y''y'+k^2yy'=0##.
Both terms are directly integrable:
##\frac 12y'^2+\frac 12k^2y^2=C^2/2##.
##y'=\sqrt{C^2-k^2y^2}##
This suggests a trig substitution, ##y=\frac Ck\sin(\theta)##:
##\frac 1k\cos(\theta)\theta'=\cos(\theta)##
##\theta'=k##.
Or, easily separable:
$$ \frac {dy} {(c^2 - k^2y^2)^{1/2}} = dx $$ etc.

EDIT: Forget this. We need ## \psi(x) ##, not ## x(\psi) ##.
 
Last edited:

Related to Second order differential equation solution

1. What is a second order differential equation?

A second order differential equation is a mathematical equation that involves a second derivative of a function. It is used to model many physical phenomena, such as motion, heat transfer, and electrical circuits.

2. How do you solve a second order differential equation?

To solve a second order differential equation, you need to find a function that satisfies the equation. This can be done using various methods, such as separation of variables, substitution, or using an integrating factor.

3. What is the general solution of a second order differential equation?

The general solution of a second order differential equation is a solution that contains two arbitrary constants. This solution can be used to find specific solutions by substituting values for the constants.

4. What are the initial conditions in a second order differential equation?

The initial conditions in a second order differential equation refer to the values of the function and its derivatives at a specific point. These conditions are used to find the particular solution that satisfies the given initial conditions.

5. How are second order differential equations used in real-world applications?

Second order differential equations are used in many fields of science and engineering to model and predict various physical phenomena. They are commonly used in areas such as mechanics, thermodynamics, and electricity and magnetism.

Similar threads

  • Introductory Physics Homework Help
Replies
8
Views
1K
  • Introductory Physics Homework Help
Replies
7
Views
102
  • Introductory Physics Homework Help
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
5
Views
867
  • Introductory Physics Homework Help
2
Replies
41
Views
3K
  • Introductory Physics Homework Help
Replies
17
Views
396
Replies
1
Views
427
  • Introductory Physics Homework Help
Replies
14
Views
5K
  • Science and Math Textbooks
Replies
5
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
159
Back
Top