Descriptor approach for eliminating spurious eigenvalues in hydrodynamic equations