A control apparatus (24, 28) for a rotary electric machine that is applicable to a vehicle, the vehicle being equipped with a drivetrain that includes a transmission for transmitting power output from rotation of a rotating member of the rotary electric machine to a driving wheel according to a variable speed change ratio, the control apparatus comprising: an extractor that extracts, based on a rotational speed of the rotating member, a vibration component included in the rotational speed of the rotating member, the vibration component being based on vibrations of the drivetrain; a compensation torque calculator that calculates, according to the vibration component extracted by the extractor, compensation torque for compensating the vibrations of the drivetrain; a controller (24d, 24e) that performs drive control of the rotary electric machine according to the compensation torque; and a suppressor that comprises: a time-dependent quantity calculator that calculates a time-dependent quantity in accordance with the rotational speed, the time-dependent quantity representing the changed quantity of the rotational speed during a predetermined time; and a target change amount calculator that calculates a target change amount in accordance with the rotational speed, the target change amount representing a changed amount of the rotational speed associated with change of the speed change ratio during the predetermined time, the suppressor being configured to perform, as a suppression, a task of subtracting the target change amount from the time-dependent quantity, thus outputting a processed rotational speed signal (X(n)) indicative of a value of the time-dependent quantity from which the target change amount has been subtracted; and the extractor extracts the vibration component by inputting a value of the time-dependent quantity from which the target change amount has been subtracted, which is the processed rotational speed signal (X(n)). an extractor that extracts, based on a rotational speed of the rotating member, a vibration component included in the rotational speed of the rotating member, the vibration component being based on vibrations of the drivetrain; a compensation torque calculator that calculates, according to the vibration component extracted by the extractor, compensation torque for compensating the vibrations of the drivetrain; a controller (24d, 24e) that performs drive control of the rotary electric machine according to the compensation torque; and a suppressor that comprises: a time-dependent quantity calculator that calculates a time-dependent quantity in accordance with the rotational speed, the time-dependent quantity representing the changed quantity of the rotational speed during a predetermined time; and a target change amount calculator that calculates a target change amount in accordance with the rotational speed, the target change amount representing a changed amount of the rotational speed associated with change of the speed change ratio during the predetermined time, a time-dependent quantity calculator that calculates a time-dependent quantity in accordance with the rotational speed, the time-dependent quantity representing the changed quantity of the rotational speed during a predetermined time; and a target change amount calculator that calculates a target change amount in accordance with the rotational speed, the target change amount representing a changed amount of the rotational speed associated with change of the speed change ratio during the predetermined time, the suppressor being configured to perform, as a suppression, a task of subtracting the target change amount from the time-dependent quantity, thus outputting a processed rotational speed signal (X(n)) indicative of a value of the time-dependent quantity from which the target change amount has been subtracted; and the extractor extracts the vibration component by inputting a value of the time-dependent quantity from which the target change amount has been subtracted, which is the processed rotational speed signal (X(n)).