In mathematics, a function maps an input value to an output value. In the case of a matrix function, the input and the output values are matrices. One example of a matrix function occurs with the Algebraic Riccati equation, which is used to solve certain optimal control problems. 