Strategies for solving Hamilton's equations

  • Context: Graduate 
  • Thread starter Thread starter jjustinn
  • Start date Start date
Click For Summary
SUMMARY

This discussion focuses on strategies for solving Hamilton's equations, particularly in non-trivial systems where the force function F(x) is either a delta function or a step function. The equations of motion are often complex, requiring numerical integration rather than analytical solutions. A specific example discussed involves elastic collisions in one dimension, where the Hamiltonian is expressed as H = p²/2m + Kθ(x), with K approaching infinity. The challenge lies in deriving the known solutions from the Hamiltonian framework, especially when dealing with discontinuities in force functions.

PREREQUISITES
  • Understanding of Hamiltonian mechanics and Hamilton's equations
  • Familiarity with numerical integration techniques
  • Knowledge of delta functions and step functions in physics
  • Basic proficiency in calculus, particularly integration
NEXT STEPS
  • Research numerical integration methods for Hamiltonian systems
  • Study the application of delta functions in classical mechanics
  • Explore the derivation of solutions for elastic collisions in one dimension
  • Learn about the Euler-Lagrange equations and their applications
USEFUL FOR

Physicists, mechanical engineers, and students studying classical mechanics who are looking to deepen their understanding of Hamiltonian systems and numerical methods for solving complex equations of motion.

jjustinn
Messages
160
Reaction score
3
When solving virtually any non-trivial system via Hamilton's equations, it seems that I'm ending up with equations of the form

## ∂H/∂p = dx/dt = p/m ##
## ∂H/∂x = -dp/dt = -F(x) ##
## p(t) = ∫(dp/dt)dt ##
## d^2x/dt^2 = F(x) ##
E.g., everything is given as a function of x, but we need to solve for t. I can change the variable of integration to x and get e.g. p(x), but that doesn't really help (especially since you can often directly solve for p(x)). One particular problem that's been irking me is where F(x) is either a delta function or a step function.

So...are there any tricks for solving Hamilton's equations (or Euler/Lagrange) for systems that are NOT like the ## d^2x/dt^2 = -Kx ## that invariably show up in textbooks?
 
Physics news on Phys.org
Well, there's really only a very small number of systems that have exact analytical solutions. Most systems have to be integrated numerically. If you post a specific example someone might be able to help you solve it, but I don't think there's really much general advice one can give.
 
dipole said:
Well, there's really only a very small number of systems that have exact analytical solutions. Most systems have to be integrated numerically. If you post a specific example someone might be able to help you solve it, but I don't think there's really much general advice one can give.

Actually, the system that brought me here is one where the equations of motion are well known: elastic collisions in one dimension -- either between two particles or between a particle and a potential barrier (possibly infinite).

I'm afraid to give too specific / complete a derivation, as it will probably get deleted as "homework-like", but one problem I've been wrestling with has ## H = p^2/2m + Kθ(x) ##, where θ(x) is a step function, and K → ∞...so in the above example, F(x) would be -Kδ(x), and the equations of motion would be the particle moving from -∞ toward zero at constant momentum ##p_0##, then at x = 0, it immediately changes to ##-p_0##, and moves back towards -∞. So, ## dp/dt = -2p(x)δ(x) ##, and ## x(t) = -|p_0t/m| ##. But, for the reasons stated above, I can't get from H to the (known) solution...and I'm having similar problems with "simpler" problems (e.g. a ramp instead of a delta function). If you're really interested, there's another thread on that particular problem here: https://www.physicsforums.com/showthread.php?p=4568733#post4568733...but I think the root of the problem there is I suck at integrals -- so if I get this figured out, that should follow.

Thanks,
Justin
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
611
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
966
  • · Replies 3 ·
Replies
3
Views
1K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
908
  • · Replies 3 ·
Replies
3
Views
2K