Today, electric machines are becoming increasingly important in all sectors (industrial drives, the automotive industry, aviation, traction systems, and agriculture, etc.). Among these machines, permanent magnet synchronous machines (PMSMs) hold a significant place in the control of industrial mechanisms, automated systems, and in the fields of renewable energy like (wind energy, solar energy, and hybrid systems, etc ). Currently, in variable speed drives, the use of PMSM, especially for low power and certain special industrial applications, is replacing DC motors and asynchronous motors because they offer higher efficiency, power factor, and torque density. Moreover, PMSM do not have an excitation circuit in the rotor, which leads to reduced maintenance demands. The control of permanent magnet synchronous machines (PMSM) presents significant challenges due to their nonlinear behavior. Classical linear controllers, such as PI, perform well with linear systems that have constant parameters. However, for nonlinear systems with varying parameters, the conventional control methods may prove insufficient and exhibit a lack of robustness. To address the issues and achieve decoupled machine control, various methods have been proposed. Nonlinear robust control techniques have been extensively explored within the domain of power electronics and drive systems. Included in these, sliding mode control and nonlinear input-output feedback linearization (IOFL). Sliding mode control (SMC) is a control technique known for its excellent dynamic performance in PMSM drives. It offers high robustness and straightforward implementation in both software and hardware. However, a significant drawback of this method is the chattering phenomenon. By the way the input/output linearization control can provide good behavior in steady and dynamic regimes and also provides good decoupling between system variables. This article presents a design of tow control laws based on sliding mode and feedback linearization controller based on input-output feedback linearization to adjust the speed of a permanent magnet synchronous motor (PMSM). To highlight the effectiveness of the designed controllers, a comparison was carried out Matlab Simulink, revealing that the feedback linearization controller outperforms the SMC.