I am struggling understanding the validity of the solution that my professor gave to the following exercise.
A heavy symmetric top rotating about a fixed point has Lagrangian: $$ \mathcal L=\frac{I_1}{2}\left(\dot \theta ^2 + \dot \phi ^2 \sin^2 \theta\right) + \frac{I_3} 2 \left(\dot \psi+ \dot \phi \cos \theta \right)^2 - mgl \cos \theta $$ where $I_1=I_2, I_3$ are its principal moments of inertia and $(\phi, \theta, \psi)$ are the Euler angles. Write down the two conserved generalised momenta $p_ \phi$ and $p_\psi$ and show that $\theta$ obeys the equation $$ I_1 \ddot \theta = - \frac{\partial V_{eff}}{\partial \theta}$$ where $$V_{eff}(\theta)= \frac{\left(p_ \phi - p_ \psi \cos \theta\right)^2}{2I_1 \sin ^2 \theta} + mgl \cos \theta$$
The solution my professor offers, says the following:
$$p_ \phi= \frac{\partial \mathcal L}{\partial \dot \phi}= I_1 \dot \phi \sin ^2 \theta + I_3 (\dot \psi + \dot \phi \cos \theta)\cos \theta$$ $$p_ \psi= \frac{\partial \mathcal L}{\partial \dot \psi} = I_3 (\dot \psi + \dot \phi \cos \theta)$$ From which we get the relation: $$\dot \phi = \frac{p_ \phi - p_ \psi \cos \theta}{I_1 \sin^2 \theta}$$ Then he proceeds to use the E-L equation in theta: $$\frac {d}{dt}\frac{\partial \mathcal L }{\partial \dot \theta}= \frac{\partial \mathcal L}{\partial \theta}$$ And after some algebra and derivatives: $$I_1 \ddot \theta = \frac{(p_ \phi - p_ \psi \cos \theta)^2}{I_1 \sin^3 \theta} \cos \theta - \frac{p_ \psi(p_ \phi - p_ \psi \cos \theta)}{I_1 \sin^2 \theta} \sin \theta - \frac{\partial }{\partial \theta} (mgl \cos \theta)$$ Then, he asserts that the RHS is indeed $$- \frac{\partial }{\partial \theta} \left \{ \frac{\left(p_ \phi - p_ \psi \cos \theta\right)^2}{2I_1 \sin ^2 \theta} + mgl \cos \theta \right \}$$
However, I believe that this last step is controversial. This equality can be easily proved under the assumption $\frac{\partial p_ \phi}{\partial \theta}=\frac{\partial p_ \psi}{\partial \theta} = 0 $. This would be the case in Hamiltonian mechanics where we consider momenta and positions to be independent, but in the Lagrangian formalism the independent variables are positions and velocities. One could calculate directly the derivatives of the momenta wrt theta which are non-zero. Is my professor just being sloppy with the notation of the partial derivatives (*), or is there some more fundamental physics which I am unaware of?
(*) I.e. he means in the E-L equation: $$ \frac d {dt} \left (\frac{\partial \mathcal L}{\partial \dot \theta}\right) _{q_i, \dot \psi, \dot \phi} = \left(\frac{\partial \mathcal L}{\partial \theta}\right) _{\psi, \phi, \dot q_i}$$ But then $$I_1 \ddot \theta = - \left (\frac{\partial V_{eff}}{\partial \theta} \right) _{\phi, \psi, p_i}$$