Analytical First and Second Derivatives for a Fully Polarizable QM/Classical Hamiltonian