Solution: Solving Harmonic Oscillation Differential Equation

Click For Summary

Discussion Overview

The discussion revolves around the solutions to the differential equation related to harmonic oscillation, specifically examining the forms of the general solution and the implications of using phase angles. The scope includes theoretical aspects of differential equations and mathematical reasoning.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant questions whether the solution form Y(x) = A cos(kx + φ1) + B sin(kx + φ2) is more general than Y(x) = A cos(kx) + B sin(kx), suggesting there may be reasoning to simplify the phase angles.
  • Another participant asserts that the general solution to a second-order differential equation has two arbitrary coefficients, implying that the two forms are equivalent and cannot be more general than each other.
  • A further explanation is provided that the expressions involving phase angles can be rewritten in terms of constants P and Q, indicating that both forms represent the same solution.
  • One participant introduces the idea of expressing the solution using complex exponentials, suggesting that the solution can be written as Y(x) = A · e^(ikx) + A* · e^(-ikx), where A is complex.
  • It is noted that there is no mathematical requirement for the solution to be real, allowing for complex constants in the expression.

Areas of Agreement / Disagreement

Participants express differing views on the generality of the solution forms, with some asserting equivalence while others propose that the phase angle representation offers a broader perspective. The discussion remains unresolved regarding the necessity of phase angles in the solution.

Contextual Notes

The discussion includes assumptions about the nature of the solutions and the definitions of the constants involved. There are also unresolved mathematical steps in the transformation between the different forms of the solution.

Runei
Messages
193
Reaction score
17
Hello,

When I have the differential equation

\frac{dY(x)}{dx} = -k^2 Y(x)

The solution is of course harmonic oscillation, however, looking at various places I see the solution given as:
Y(x) = A cos(kx) + B sin(kx)
instead of
Y(x) = A cos(kx + \phi_1) + B sin(kx + \phi_2)

Isnt Equation 2 a more general solution than Equation 1? Or is there some reasoning (probably is) to make the phase angles go away?

Thank you.
 
Physics news on Phys.org
The general solution to a second order differential equation has 2 arbitrary coefficients, so you can't have a "more general solution" than ##A \cos kx + B \sin kx##.

For your second solution, you have ##\cos(kx + \phi_1) = \cos\phi_1\cos kx - \sin\phi_1\sin kx##, and a similar expression for ##\sin(kx + \phi_2)##, so you can rewrite the whole expression as ##P\cos kx + Q\sin kx##, where ##P## and ##Q## are constants containing ##A##, ##B##, and ##\cos## and ##\sin## of ##\phi_1## and ##\phi_2##. That is the same as your first solution.

Note, ##A\cos(kx + \phi)## or ##A\sin(kx + \phi)## are both general solutions (with two arbitrary constants), and those forms are sometimes nicer to use than ##A \cos kx + B \sin kx##.
 
  • Like
Likes   Reactions: 1 person
Thank you AlephZero!

As a side-note then, if I wanted to rewrite the solution in terms of complex exponentials, that the solution would be

Y(x) = A \cdot e^{ikx} + A^*\cdot e^{-ikx}

Where the constant A this time is complex.
 
Runei said:
Hello,

When I have the differential equation

\frac{dY(x)}{dx} = -k^2 Y(x)

The solution is of course harmonic oscillation, however, looking at various places I see the solution given as:

Isnt Equation 2 a more general solution than Equation 1? Or is there some reasoning (probably is) to make the phase angles go away?

Thank you.
I suppose that the equation is \frac{d^2Y(x)}{dx^2} = -k^2 Y(x)
The two equations :
Y(x) = A cos(kx) + B sin(kx)\\<br /> Y(x) = A cos(kx + \phi_1) + B sin(kx + \phi_2)
are equivalent :
A cos(kx + \phi_1) + B sin(kx + \phi_2) = A&#039; cos(kx) + B&#039; sin(kx)\\<br /> A&#039; =A cos(\phi_1)+B sin(\phi_2)\\<br /> B&#039; =-A sin(\phi_1)+B cos(\phi_2)
 
Runei said:
Thank you AlephZero!

As a side-note then, if I wanted to rewrite the solution in terms of complex exponentials, that the solution would be

Y(x) = A \cdot e^{ikx} + A^*\cdot e^{-ikx}

Where the constant A this time is complex.

There is no mathematical reason why the solution has to be real, so you could just write
Y(x) = A \cdot e^{ikx} + B\cdot e^{-ikx}
where ##A## and ##B## are complex constants.

In this case, both the real and imaginary parts of ##Y(x)## satisfy the differential equation.
You can interpret the real part of ##Y(x)## as a physical displacement, and the real part of ##dY(x)/dx## as a physical velocity, etc.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
873
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K