Control theory is an interdisciplinary branch of engineering and mathematics that deals with the behavior of dynamical systems with inputs. The desired trajectory of the output of a system is called the reference. When one or more output variables of a system need to follow a certain reference over time, a controller should manipulate the inputs to the system to obtain the desired effect on the output of the system
Control theory deals with the control of dynamical systems in engineered processes and machines. The objective is to develop a model or algorithm governing the application of system inputs to drive the system to the desired state, while minimizing any delay, overshoot, or steady-state error and ensuring a level of control stability; often with the aim to achieve a degree of optimality.