Solve this Hamiltonian System in Several Ways

  • #1
ResiRadloff
2
0
Homework Statement
Let us denote by ## \textbf{z} = (x,y) \in \mathbb{R}^2 ## the Cartesian coordinates of a point in the plane.

1. Given the Hamiltonian ## H(\textbf{z}) = \frac{|\textbf{z}|^2}{2} ##, write down the corresponding canonical Hamiltonian system for ##\textbf{z}(t)##.

2. Write down the analytical solution of this system.

In the following, assume that the system reads ##\frac{d}{dt}\textbf{z} = \textbf{F}((\textbf{z}(t)))## where ## \textbf{F} = (F_x,F_y) ##, and let ##t^n = n\Delta t## where ##\Delta t > 0## is the time step size. Also let ## \textbf{z}^n = \textbf{z}(t^n) ##.

3. Solve the Hamiltonian system numerically by using the following numerical methods. For each of them write down the scheme, plot your result vs. the analytical result, and plot energy (= Hamiltonian) and ##L^2 ##-error of the scheme. Start with a random point ##(x_0,y_0) \in [0,1]^2 ## at ## t = 0 ## and evolve ## \textbf{x}(t) ## forward in time. You may use ##\Omega = 2, \Delta t = 0.03 ##, and do 500 time steps.

(a) The explicit Euler method: ##\textbf{z}^{n+1} = \textbf{z}^n + \Delta t \textbf{F}(\textbf{z}^n) ; \textbf{z}^0 = \textbf{z}(t=0) ##

[...]
Relevant Equations
--
Good evening,
unfortunately I can't get to the solution of my task

I wrote for the system:

## \frac{dz}{dt} = \nabla_p H ; \\
\frac{dp}{dt} = - \nabla_z H ##

Then the solution would be (as ## \nabla_p H = 0) ##:

## \frac{dz}{dt} = 0 \Rightarrow z = const. ## and ## p = zt + p_0 ##.

But that can't be as now finding a numerical solution doesn't make sense?.🙁

I would be really happy if someone yould help me?

Thanks a lot
Resi

Danke schonmal und viele Grüße
 
Physics news on Phys.org
  • #2
Are you not looking at [tex]\begin{split}
\frac{dx}{dt} &= \frac{\partial H}{\partial y} \\
\frac{dy}{dt} &= -\frac{\partial H}{\partial x}\end{split}[/tex] That is how I would interpret "hamiltonian System" if given a "hamilonian" which is a function of exactly two variables.
 
  • #3
Okay, thanks, yeah that makes more sense.

Does anyone know how to calculate the Energy-error and what is meant by ##L^2## error?
 

FAQ: Solve this Hamiltonian System in Several Ways

What is a Hamiltonian system?

A Hamiltonian system is a mathematical framework used in classical mechanics to describe the evolution of a dynamical system. It is characterized by a Hamiltonian function, which typically represents the total energy of the system, and is expressed in terms of generalized coordinates and momenta. The system's evolution is governed by Hamilton's equations, which provide a set of first-order differential equations that describe how the coordinates and momenta change over time.

How can I solve a Hamiltonian system analytically?

To solve a Hamiltonian system analytically, one typically follows these steps: first, identify the Hamiltonian function of the system. Then, derive Hamilton's equations from this function. Next, use techniques such as separation of variables, conservation laws, or perturbation methods to find the solutions. In some cases, the system may be integrable, allowing for exact solutions, while in other cases, numerical methods may be required.

What are some numerical methods for solving Hamiltonian systems?

Several numerical methods can be employed to solve Hamiltonian systems, including the symplectic integrators, which preserve the Hamiltonian structure and are particularly effective for long-term simulations. Other methods include the Runge-Kutta methods, Verlet integration, and the leapfrog method. Each of these methods has its advantages and disadvantages, depending on the specific characteristics of the Hamiltonian system being studied.

What role does the phase space play in Hamiltonian systems?

Phase space is a crucial concept in Hamiltonian mechanics, representing the space of all possible states of a system, where each state is defined by its generalized coordinates and momenta. The evolution of the system can be visualized as trajectories in this phase space. The structure of phase space can provide insights into the system's behavior, including stability, periodicity, and chaotic dynamics.

Can Hamiltonian systems be applied to fields outside of classical mechanics?

Yes, Hamiltonian systems have applications beyond classical mechanics. They are used in various fields such as quantum mechanics, statistical mechanics, and even in financial mathematics. In quantum mechanics, the Hamiltonian operator plays a central role in determining the evolution of quantum states. In statistical mechanics, Hamiltonian dynamics can describe the behavior of many-body systems, while in finance, Hamiltonian methods can be used to model and analyze financial derivatives and options pricing.

Similar threads

Back
Top