In this research a proportional integral differential classic (PID controller) and state feedback controller was designed to control the in the inverted pendulum and a comparison between all the cases and choose the most suitable controller using MATLAB / SIMULINK program