This article introduces a dynamic impedance-aligned phase-angle compensation (DIA-PAC) for the targeted harmonic mitigation (PACTHM) control method, which is designed to enhance the performance of interior permanent-magnet synchronous motor (IPMSM) drives by effectively suppressing critical 6n±1\textbf{6}\boldsymbol{n} \pm \textbf{1} har