If we consider a particle that starts at $(0,d)$ and moves along $y=d$ at constant speed $v=v\hat i$ then in polar co-ordinates, $r=((vt)^2 + d^2)^{1/2}$ and $\tan \theta = \frac {d}{vt}$
Its $a_r=0$ and $a_\theta=0$ which is easily calculated by using the formulas $$a_r =\ddot r - r \dot\theta^2$$ and $$a_\theta= r \ddot \theta+2\dot r\dot \theta$$
The Hamiltonian for this case in polar coordinates can be written as: $$H=\frac{p_r^2}{2m} + \frac{p_\theta^2}{2mr^2}$$ where ${p_r}=m \dot r$ and ${p_\theta}=mr^2 \dot \theta $
From this, $$\frac{\partial H}{\partial r}=-\dot p_r\neq 0 $$ since there is $r^2$ in denominator of the 2nd term , this implies that $a_r$ shouldn't be zero. But in fact, it is.
What is the discrepancy when I apply the Hamiltonian approach?
I got this doubt due to a discussion in Liboff's "Introductory QM" where he writes:
We may also consider the dynamics of a free particle in spherical coordinates. The Hamiltonian is $$H=\frac{p_r^2}{2m} + \frac{p_\theta^2}{2mr^2}+\frac{p_\phi^2}{2mr^2\sin^2 \theta}$$ Only $\phi$ is cyclic, and we immediately conclude that $p_\phi$ (or equivalently, $L_z$) is constant. However, $p_r$ and $p_\theta$ are not constant. From Hamilton's equations, we obtain $$\dot p_r=\frac{p_\theta^2}{mr^3}+\frac{p_\phi^2}{mr^3\sin^2 \theta}$$ $$\dot p_\theta=\frac{p_\phi^2 \cos \theta}{mr^2\sin^3 \theta}$$ These centripetal terms were interpreted above. In this manner we find that the rectilinear, constant-velocity motion of a free particle, when cast in a spherical coordinate frame, involves accelerations in the r and $\theta$ components of motion. These accelerations arise from an inappropriate choice of coordinates. In simple language: Fitting a straight line to spherical coordinates gives peculiar results.
Doesn't this reasoning also apply for a $2-D$2D case as I have mentioned above?
The considerations are same : a rectilinearly moving point at constant velocity. In the 3-D3D case mentioned in the book, the non-zero radial and azimuthal components of acceleration come out non-zero but they come out zero in my case. What's the difference? (apart from moving from 3-D3D to 2-D2D which I think shouldn't make a difference)