Method for operating a drive assembly of a motor vehicle , which drive assembly has an electric machine , wherein a target torque (T Soll ) is specified for the electric machine depending on a torque requirement, and wherein an actual speed (ω EM ) of the electric machine is monitored, and a speed oscillation (ω Osc ) of the electric machine is determined depending on the detected actual speed (ω EM ), and the target torque (T Soll ) is superimposed with a compensation torque (T D ) which is ascertained depending on the speed oscillation (ω Osc ), wherein the speed oscillation (ω Osc ) of the actual speed (ω EM ) is determined using a multidimensional controller having a two-mass oscillation model, an actual torque (T EM ) of the electric machine and the actual speed (ω EM ) of the electric machine , characterized in that the speed oscillation (ω Osc ) of the actual speed (ω EM ) is calculated from the difference between the actual speed (ω EM ) and the wheel speed (ω 2 ) and is calculated using the following equations: ω 2 , T _ EM = s s + K N 4 s + K N 4 ⋅ 4 J EM ⋅ ω Eig 2 ⋅ K N 3 ⋅ T EM ω 2 , ω _ EM = − s + K N 4 ⋅ s 2 + K S ⋅ ω Eig 2 s + K N 4 ⋅ 4 ⋅ K N 3 ω Eig 2 ⋅ ω EM wherein ω 2,T_EM is the calculated portion of the wheel speed (ω 2 ) that can be associated with the actual torque (T EM ) of the electric machine , and wherein ω 2,ω_EM is the calculated portion of the wheel speed (ω 2 ) that can be associated with the determined actual speed (ω EM ) of the electric machine , and wherein ω Eig is the natural frequency of the drive assembly , J EM is the mass inertia of the electric machine , K N , K S are specifiable scaling factors and s is the Laplace operator. wherein a target torque (T Soll ) is specified for the electric machine depending on a torque requirement, and wherein an actual speed (ω EM ) of the electric machine is monitored, and a speed oscillation (ω Osc ) of the electric machine is determined depending on the detected actual speed (ω EM ), and the target torque (T Soll ) is superimposed with a compensation torque (T D ) which is ascertained depending on the speed oscillation (ω Osc ), wherein the speed oscillation (ω Osc ) of the actual speed (ω EM ) is determined using a multidimensional controller having a two-mass oscillation model, an actual torque (T EM ) of the electric machine and the actual speed (ω EM ) of the electric machine , characterized in that the speed oscillation (ω Osc ) of the actual speed (ω EM ) is calculated from the difference between the actual speed (ω EM ) and the wheel speed (ω 2 ) and is calculated using the following equations: ω 2 , T _ EM = s s + K N 4 s + K N 4 ⋅ 4 J EM ⋅ ω Eig 2 ⋅ K N 3 ⋅ T EM ω 2 , ω _ EM = − s + K N 4 ⋅ s 2 + K S ⋅ ω Eig 2 s + K N 4 ⋅ 4 ⋅ K N 3 ω Eig 2 ⋅ ω EM wherein ω 2,T_EM is the calculated portion of the wheel speed (ω 2 ) that can be associated with the actual torque (T EM ) of the electric machine , and wherein ω 2,ω_EM is the calculated portion of the wheel speed (ω 2 ) that can be associated with the determined actual speed (ω EM ) of the electric machine , and wherein ω Eig is the natural frequency of the drive assembly , J EM is the mass inertia of the electric machine , K N , K S are specifiable scaling factors and s is the Laplace operator. <EOS>