Control theory

of a Watt steam engine, of 1788.]]
**Control theory** is an interdisciplinary branch of engineering and mathematics. It deals with the behavior of systems. The desired output of a system is called the *reference*. In that context, a system can be influenced by certain input values. Depending on the input values, the system may change its state or its behavior. Common questions control theory asks: 

* Is a system in a stable state? 
* How sensitive is the system to changed of input parameters? 
* Are all variables within a given range? 
* Is it possible to reach a predefined target state? 
* If the target state can be reached, what must the input variables be set to, so that the target state is reached? 

One of the first modern people to talk about control theory was James Clerk Maxwell. In his work On Governors, of 1868, he looked at the dynamic properties of centrifugal governors, as they were used by steam engines. Such governors were already used to regulate the speed of windmills.

## Mathematical model
A system is a model used to describe the behaviour of something in the real world that takes inputs and produces outputs. For example, a car is a system in that the driver chooses how hard to press on the gas pedal (the input) and the car drives along the road at a certain speed (the output). In the case of a car, the input to the gas pedal does not fully determine the speed of the car. The weight in the car, the incline of the road, the traction of the tires, the current speed of the car, and other factors can all change the output received for a particular input. Control theory attempts to determine what inputs will result in a desired output, or reference. This is accomplished using differential equations, linear algebra, and other branches of math. Control theory relies heavily on computational models and software.

## Control system
In a control system a controller manipulates the inputs to a system. In the control systems one or more output variables of a system need to follow a certain reference over time. By manipulating the input, the controller wants to obtain the desired effect on the output of the system. If we were to take a system without a controller it would simply have an input and an output. As there is no way to track the output relative to the input then the system is practically useless. If we add a controller, by feeding the output through the controller back to the input the output can be manipulated to meet the desired criteria. For example, if a kettle did not have a controller and it were switched on it would continue to boil the water indefinitely. By adding a controller, the boiling water (reference) is fed back to the input through the controller. The controller then tells the input to turn off the power as the water is already boiling. The system without the controller is called the open-loop system. When you add a controller in a feedback loop you create a closed-loop system. Open-loop systems are rarely ever considered stable as they cannot be controlled based on their output. Closed-loop systems incorporate a controller or series of controllers which, depending on the current output, configure the input such that the output will have the desired response.

## References