Integrating ma+kx=0 to get x(t)

  • Thread starter Thread starter teme92
  • Start date Start date
  • Tags Tags
    Integrating
Click For Summary
SUMMARY

The discussion focuses on solving the second-order linear homogeneous ordinary differential equation (ODE) represented by the equation ma + kx = 0. Participants clarify that the correct approach involves integrating with respect to time and recognizing that the acceleration a is the second derivative of position x with respect to time. The solution to the ODE is x(t) = A*cos(√(k/m) * t) + B*sin(√(k/m) * t), where A and B are constants determined by initial conditions. Misinterpretations regarding the integration process and the role of constants of integration are also addressed.

PREREQUISITES
  • Understanding of second-order linear homogeneous ordinary differential equations (ODEs)
  • Familiarity with integration techniques in calculus
  • Knowledge of the relationship between acceleration, velocity, and position
  • Basic concepts of harmonic motion and trigonometric functions
NEXT STEPS
  • Study the method of solving second-order linear ODEs with constant coefficients
  • Learn about the application of initial conditions in determining constants in ODE solutions
  • Explore the relationship between differential equations and physical systems, particularly in mechanics
  • Investigate the use of separation of variables in solving first-order ODEs
USEFUL FOR

Students studying differential equations, physics enthusiasts exploring motion dynamics, and educators teaching calculus and ODEs will benefit from this discussion.

teme92
Messages
185
Reaction score
2

Homework Statement



As stated in the title, I'm having trouble integrating ma+kx=0 to get x(t)

Homework Equations

The Attempt at a Solution



So I know I have to integrate twice but I'm not getting the answer required.

∫a = -k/m∫x

v = (-k/m)[(x²/2) + C]
∫v = (-k/2m)∫x² + (-kC/m)
x = (-k/2m)x³/3 + (-kC/m)

This is clearly wrong because I have no time variables. Any help would be much appreciated.
 
Physics news on Phys.org
Integral of a is meaningless if you don't specify the variable of integration. Same for integral of x.
And you need to integrate over the same variable on both sides to maintain the equality.
If you integrate over time you have
\int a dt = -k/m \int x dt
The second integral is not x^2/2.
 
Hey nasu thanks for the reply.

∫xdt = xt +C

Then after integrating the second time:

∫vdt = (-k/m)∫xtdt
x = (-k/m)xt²/2 +C

I'm unsure about the constant of integration and whether there should be two or not.
 
teme92 said:

Homework Statement



As stated in the title, I'm having trouble integrating ma+kx=0 to get x(t)

Homework Equations

The Attempt at a Solution



So I know I have to integrate twice but I'm not getting the answer required.

∫a = -k/m∫x

v = (-k/m)[(x²/2) + C]
∫v = (-k/2m)∫x² + (-kC/m)
x = (-k/2m)x³/3 + (-kC/m)

This is clearly wrong because I have no time variables. Any help would be much appreciated.

You are trying to solve \frac{d^2 x}{dt^2} + \frac km x = 0. This is a second-order linear homogenous ODE with constant coefficients, so its solution is Ae^{\lambda_1 x} + Be^{\lambda_2 x} where \lambda_1, \lambda_2 are the roots of \lambda^2 + \frac km = 0. You will want to use the relations <br /> \cos x = \frac{e^{ix} + e^{-ix}}{2}, \\<br /> \sin x = \frac{e^{ix} - e^{-ix}}{2i}.<br />

Alternatively, first multiply by dx/dt and only then integrate with respect to time. The result on taking square roots is a first-order separable ODE.
 
Hey pasmith, thanks for the reply. So the solution you posted is equal to x(t)? The answer given is 0.5a + b
 
One of us is confused. If a is constant, then \frac{d^2x}{dt^2} = a yields x(t) = \frac12 at^2 + bt + c. However the problem which appears in the OP is ma + kx = 0, which can only be interpreted as an equation of motion if a(t) = \frac{d^2x}{dt^2}, and the solution is then x(t) = A\cos(\sqrt{\tfrac km} t) + B\sin(\sqrt{\tfrac km} t).
 
Well I remember from class that the constant of integration can basically be removed from the equation depending on where you set your reference frame. I'll ask my professor to clarify the question tomorrow in class. Thanks for the help guys.
 
teme92 said:
Hey nasu thanks for the reply.

∫xdt = xt +C

Then after integrating the second time:

∫vdt = (-k/m)∫xtdt
x = (-k/m)xt²/2 +C

I'm unsure about the constant of integration and whether there should be two or not.

No, x is not a constant but a function of t. You cannot integrate that way.
This is why you have to do what pasmith showed you.
And the constant of integration cannot avoid this.
 

Similar threads

Replies
16
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
1K
Replies
2
Views
830
Replies
30
Views
2K
Replies
8
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K