From ControlTheoryPro.com

Contents
1 Introduction to Standard Controller Forms
There are several standard controller types and there is no need to reinvent the wheel. This article details the form of proportional, integral, derivative, PID and various other controller forms.
Note: Controllers are not magic. It should not be assumed that every system can be controlled or that desired performance can be achieved for any given system if only the correct controller were employed. Proper system design is always required.
1.1 Proportional Action^{[1]}
Proportional action provides an instantaneous response to the control error. This is useful for improving the response of a stable system but cannot control an unstable system by itself. Additionally, the gain is the same for all frequencies leaving the system with a nonzero steadystate error.
1.2 Integral Action^{[2]}
Integral action drives the steadystate error towards 0 but slows the response since the error must accumulate before a significant response is output from the controler. Since an integrator introduces a system pole at the origin, an integrator can be detrimental to loop stability. Only controllers with integrators can windup where, through actuator saturation, the loop is unable to comply with the control command and the error builds until the situation is corrected.
1.3 Derivative Action^{[3]}
Derivative action acts on the derivative or rate of change of the control error. This provides a fast response, as opposed to the integral action, but cannot accomodate constant errors (i.e. the derivative of a constant, nonzero error is 0). Derivatives have a phase of +90 degrees leading to an anticipatory or predictive repsonse. However, derivative control will produce large control signals in response to high frequency control errors such as set point changes (step command) and measurement noise.
In order to use derivative control the transfer functions must be proper. This often requires a pole to added to the controller (this pole is not present in the equations below).
2 Proportional Control
Feedback control signal is linearly proportional to the error.
P^{[4]} 
where
 is the proportional control gain.
2.1 Limitations
Higherorder systems can become unstable with large values of .^{[5]} Simply turning up the gain will often lead to instability or undesirable ringing  i.e. unacceptable steadystate error.
Also, keep in mind that any noise in the system will get amplified by this same gain. Consider the reference command to be exactly 1 for all time. Then consider a noise sensor output of approximately 1.
where
 is the reference command,
 is the sensor output,
 is the error, and
 is the controller output.
The sensor noise is only 1% of the desired output. However, for a large gain the 1% error becomes substantial.
3 Integral Control
An integrator is used to drive the steadystate error towards 0. However, this comes at a cost of worse transient response.^{[6]} Often the transient response degradation comes in the for of a longer rise time and more overshoot.
I 
where
 is the integral control gain and
 is the Laplace variable.
4 Derivative Control
Derivative control differentiates the error. With noise present this is usually undesirable. Also, if the error were to remain constant (and nonzero) then derivative control would output a 0 control command effectively turning off the system.
Derivative control can be used in combination with other controllers to increase damping and an anticipatory response (i.e. the phase is +90 deg).
D 
where
 is the integral control gain and
5 PI Control
ProportionalIntegral or PI control combines proportional control and integral control in parallel.
PI^{[7]} 
where
 is the PI control gain and
 is the reset time.
To Eqn. PI equal to Eqn. I then
6 PD Control
ProportionalDerivative or PD control combines proportional control and derivative control in parallel.
PD^{[8]} 
where
 is the PID control gain and
 is the derivative gain or derivative time.
7 PID Control
ProportionalIntegralDerivative or PID control combines proportional control, integral control, and derivative control in parallel.
PID^{[9]} 
where
 is the PID control gain,
 is the reset time, and
 is the derivative gain or derivative time.
If the 1 is replaced by a gain, k and replace , then the PID control can also be thought of an all inclusive form of the other controllers.
From this generic form we can do the following:
 set and Eqn. PID becomes equal to Eqn. PI
 set and Eqn. PID becomes equal to Eqn. PD
 set and Eqn. PID becomes an integralderivative controller
 set and Eqn. PID becomes equal to Eqn. D
 set and Eqn. PID becomes equal to Eqn. I
PID control is popular since it provides access to all the benefits of all the previously described controllers and through tuning many of the downsides of the previously described controllers can be mitigated.
7.1 Alternative forms of PID Control
Standard form similar to Eqn. PID except that a pole has been added to the derivative action to ensure a proper transfer function.
PID Alt 1^{[10]} 
Note: Typically
Series Form
PID Alt 2  Series Form^{[11]} 
Parallel Form
PID Alt 3  Parallel Form^{[12]} 
8 Lead or Lag Control
Lead and lag control are used to add or reduce phase between 2 frequencies. Typically these frequencies are centered around the open loop crossover frequency. A lead filter typically has unity gain (0 dB) are low frequencies while the lag provides a nonunity gain at low frequencies.^{[13]}
Lead^{[14]} 
where
 makes this a lead filter and
 makes this a lag filter.
8.1 LeadLag Control
This is an extension of the Lead and Lag network described above. We can always stick a gain in front of something so reformulate above to look like this
Then a leadlag controller would have the form
^{[15]} 
where
 is a gain,
 makes the first part a lead filter and
 makes the last part a lag filter.
9 See Also
10 References
 Goodwin, G. C., Graebe, S. F., and Salgado, M. E. 2000 Control System Design. 1st. Prentice Hall PTR. ISBN 0139586539
 Franklin, G. F., EmamiNaeini, A., and Powell, J. D. 1993 Feedback Control of Dynamic Systems. 3rd. AddisonWesley Longman Publishing Co., Inc. ISBN 0201527472
10.1 Notes
 ↑ Goodwin et all, pg. 160
 ↑ Goodwin et all, pg. 161
 ↑ Goodwin et all, pg. 161
 ↑ Goodwin et all, pg. 160, Eqn. 6.2.1
 ↑ Franklin et all, pg. 180
 ↑ Franklin et all, pg. 181
 ↑ Goodwin et all, pg. 160, Eqn. 6.2.2
 ↑ extrapolation from Franklin et all, pg. 185, Eqn. 4.31
 ↑ Franklin et all, pg. 185, Eqn. 4.31
 ↑ Goodwin et all, pg. 160, Eqn. 6.2.4
 ↑ Goodwin et all, pg. 160, Eqn. 6.2.5
 ↑ Goodwin et all, pg. 160, Eqn. 6.2.6
 ↑ Franklin et all, pg. 412
 ↑ Goodwin et all, pg. 170, Eqn. 6.6.1
 ↑ Goodwin et all, pg. 170, Eqn. 6.6.1