Chapter 16: Problem 23
The first order ODE system introduced in the previous exercise for \(\mathbf{q}\) and \(\mathbf{v}\) is in partitioned form. It is also a Hamiltonian system with a separable Hamiltonian; i.e., the ODE for \(\mathbf{q}\) depends only on \(\mathbf{v}\) and the \(\mathrm{ODE}\) for \(\mathbf{v}\) depends only on \(\mathbf{q}\). This can be used to design special discretizations. Consider a constant step size \(h\). (a) The symplectic Euler method applies backward Euler to the \(\mathrm{ODE} \mathbf{q}^{\prime}=\mathbf{v}\) and forward Euler to the other ODE. Show that the resulting method is explicit and first order accurate. (b) The leapfrog, or Verlet, method can be viewed as a staggered midpoint discretization and is given by $$ \begin{aligned} \mathbf{q}_{i+1 / 2}-\mathbf{q}_{i-1 / 2} &=h \mathbf{v}_{i} \\ M\left(\mathbf{q}_{i+1 / 2}\right)\left(\mathbf{v}_{i+1}-\mathbf{v}_{i}\right) &=h \mathbf{f}\left(\mathbf{q}_{i+1 / 2}\right) \end{aligned} $$ Thus, the mesh on which the q-approximations "live" is staggered by half a step compared to the \(\mathbf{v}\) -mesh. The method can be kick-started by $$ \mathbf{q}_{1 / 2}=\mathbf{q}_{0}+h / 2 \mathbf{v}_{0} $$ To evaluate \(\mathbf{q}_{i}\) at any mesh point, the expression $$ \mathbf{q}_{i}=\frac{1}{2}\left(\mathbf{q}_{i-1 / 2}+\mathbf{q}_{i+1 / 2}\right) $$ can be used. Show that this method is explicit and second order accurate.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.