How to solve 2nd order diff. equation for simple harmonic motion

In summary, the author found two solutions to the differential equation by solving for the superposition of the two linearly independent solutions.
  • #1
cjurban
7
0
In my physics class we're talking about LC and LRC circuits, and the equations are analogous to those for SHM. However, I don't see how x=Acos(ωt+[itex]\varphi[/itex]) satisfies m(d^2x/dt^2)+(k/m)x=0. I've never done differential equations and in the book it seemed like the author just guessed and checked until he found the right solution, and this doesn't seem like a satisfactory answer. How did he solve this equation?
 
Physics news on Phys.org
  • #2
Take the assumed solution, do the requisite manipulation, and see if it satisfies the ODE. Any unknown constants can be determined using initial conditions. You have taken derivatives of trig functions, haven't you?
 
  • #3
Well, solving differential equations is an art. You just have to practice it to find solutions. There is of course a lot of work done by the mathematicians to provide general theorems about their structure and that of their solutions.

In your case of circuit theory or the harmonic oscillator you have a particularly nice class of differential equations, namely a linear differential equation. Here, it's even the kind with constant coefficients. For the undamped harmonic oscillator it reads
[tex]\ddot{x}+\omega^2 x=0.[/tex]

Here the standard ansatz to find a solution is
[tex]x(t)=A \exp(\lambda t).[/tex]
Plugging this into the equation you find
[tex]\lambda^2+\omega^2=0.[/tex]
There are two solutions for [itex]\lambda[/itex], namely
[tex]\lambda_{1/2}=\pm \mathrm{i} \omega.[/tex]
Now the mathematicians have proven that any solution is given as the superposition of two linearly independent solutions, and these we just have found! So the general solution is
[tex]x(t)=A_1 \exp(\mathrm{i} \omega t) + A_2 \exp(-\mathrm{i} \omega t).[/tex]
The constants [itex]A_1[/itex] and [itex]A_2[/itex] are determined by giving initial values, e.g., position and velocity at [itex]t=0[/itex].
 
  • #4
I have a book that does something similar and I'm not sure the book was guessing and checking. I think they were showing why other functions don't satisfy the given ODE.
 
  • #5


I can understand your confusion and frustration with the solution to the second order differential equation for simple harmonic motion. It may seem like the author simply guessed and checked until they found the right solution, but in reality, there is a systematic method for solving these types of equations.

The equation you mentioned, m(d^2x/dt^2)+(k/m)x=0, is a second order linear homogeneous differential equation. This type of equation can be solved using the technique of separation of variables. This involves separating the variables on each side of the equation and then integrating both sides to find the general solution.

In the case of simple harmonic motion, the general solution can be expressed as x=Acos(ωt+\varphi), where A is the amplitude, ω is the angular frequency, and φ is the phase angle. This solution is derived by substituting x=Acos(ωt+\varphi) into the differential equation and solving for the constants A, ω, and φ.

It is important to note that the solution x=Acos(ωt+\varphi) is not guessed, but rather derived from the mathematical principles of differential equations. This solution satisfies the differential equation because when you take the second derivative of x with respect to time, you end up with -ω^2Acos(ωt+\varphi), which is equal to -(k/m)x, as required by the original equation.

In conclusion, the solution to the second order differential equation for simple harmonic motion is not a mere guess, but rather a systematic approach based on mathematical principles. I encourage you to further explore the techniques of solving differential equations in order to fully understand the solution to this equation and its applications in physics.
 

Related to How to solve 2nd order diff. equation for simple harmonic motion

1. How do I determine the general solution for a second-order differential equation for simple harmonic motion?

The general solution for a second-order differential equation for simple harmonic motion can be determined by using the characteristic equation and the initial conditions of the system. This involves finding the roots of the characteristic equation and then using these roots to construct the general solution.

2. Can I use any method to solve a second-order differential equation for simple harmonic motion?

Yes, there are various methods that can be used to solve a second-order differential equation for simple harmonic motion. Some common methods include the characteristic equation method, the undetermined coefficients method, and the variation of parameters method.

3. How do I solve for the constants in the general solution of a second-order differential equation for simple harmonic motion?

The constants in the general solution can be solved by using the initial conditions of the system. These conditions provide the values for the position and velocity of the system at a given time, which can be substituted into the general solution to solve for the constants.

4. What are some real-life applications of solving second-order differential equations for simple harmonic motion?

Second-order differential equations for simple harmonic motion have many real-life applications, such as modeling the motion of a mass on a spring, the motion of a pendulum, and the behavior of electrical circuits. They are also used in fields such as engineering, physics, and mathematics.

5. How do I know if my solution to a second-order differential equation for simple harmonic motion is correct?

You can check the correctness of your solution by substituting it back into the original differential equation. If it satisfies the equation, then it is a valid solution. Additionally, you can also graph the solution to see if it fits the expected behavior for simple harmonic motion.

Similar threads

Replies
1
Views
490
Replies
4
Views
1K
Replies
6
Views
967
Replies
11
Views
12K
Replies
3
Views
5K
  • Mechanics
Replies
6
Views
5K
Replies
2
Views
1K
  • Introductory Physics Homework Help
2
Replies
51
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
928
  • Introductory Physics Homework Help
Replies
16
Views
481
Back
Top