General solution of harmonic oscillations

Click For Summary
SUMMARY

The general solution for a harmonic oscillator governed by the equation of motion $$m \ddot{x} = -\omega^2 x$$ can be expressed as a linear combination of two linearly independent solutions: $$x(t) = A \exp(i \omega t) + B \exp(-i \omega t)$$. This can also be represented in terms of sine and cosine functions as $$x(t) = A' \cos(\omega t) + B' \sin(\omega t)$$. The sine term arises from the need for two independent solutions, which can be derived using Euler's formula. Initial conditions such as position and velocity at time t=0 are essential for determining the unique solution.

PREREQUISITES
  • Understanding of harmonic oscillators and their equations of motion
  • Familiarity with Euler's formula and complex exponentials
  • Knowledge of linear independence in the context of differential equations
  • Basic principles of initial conditions in mechanics
NEXT STEPS
  • Study the derivation of solutions for second-order linear differential equations
  • Learn about the application of initial conditions in solving differential equations
  • Explore the relationship between complex exponentials and trigonometric functions
  • Investigate the physical implications of harmonic oscillators in mechanics
USEFUL FOR

Students of physics, mechanical engineers, and anyone studying the dynamics of harmonic oscillators will benefit from this discussion.

skyesthelimit
Messages
5
Reaction score
0
For a harmonic oscillator with a restoring force with F= -mω2x, I get that the solution for the x-component happens at x=exp(±iωt). But why is it that you can generalise the solution to x= Ccosωt+Dsin(ωt)? Where does the sine term come from because when I use Euler's formula, the only real part seems to be the cosine term?
 
Last edited:
Physics news on Phys.org
Well, you need two linearly independent solutions of the equation of motion
$$m \ddot{x}=F \; \Rightarrow \; \ddot{x}=-\omega^2 x$$
(BTW you forgot the ##x## in your force formula).

You can use any two linearly independent solutions. Obviously your two functions will do. The general solution of the equation of motion is given by all possible linear combinations, i.e.,
$$x(t)=A \exp(\mathrm{i} \omega t) + B \exp(-\mathrm{i} \omega t).$$
Obviously also ##\cos(\omega t)## and ##\sin(\omega t)## solve the equations, and since they are linearly independent the complete solution is also given as superpositions of them, i.e., also
$$x(t)=A' \cos(\omega t) + B' \sin(\omega t)$$
give the complete set of solutions.

You can make the solution unique by assuming the appropriate initial conditions, which is of course the natural thing for a typical mechanics problem: You need to give the position and velocity of the particle at some initial time, say ##t=0##, i.e., you give the values ##x(0)=x_0## and ##\dot{x}(0)=v_0##. Now you can use both superpositions to evaluate the now unique solution ##x(t)## for these initial conditions. You'll see that of course you get the same result.

Another way to see this is to express the one set of linearly independent functions in terms of the other. For that just remember how cos and sin are expressed in terms of exponential functions or use Euler's formula to derive them.
 
oh right! thanks I just edited the equation! this was super helpful - i didn't quite think about it in terms of linearly independent solutions!
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 25 ·
Replies
25
Views
5K
  • · Replies 7 ·
Replies
7
Views
2K