# Engineering Analysis/Matrix Functions

If we have functions, and we use a matrix as the input to those functions, the output values are not always intuitive. For instance, if we have a function *f(x)*, and as the input argument we use matrix *A*, the output matrix is not necessarily the function *f* applied to the individual elements of *A*.

## Diagonal Matrix

editIn the special case of diagonal matrices, the result of *f(A)* is the function applied to each element of the diagonal matrix:

Then the function *f(A)* is given by:

## Jordan Cannonical Form

editMatrices in Jordan Canonical form also have an easy way to compute the functions of the matrix. However, this method is not nearly as easy as the diagonal matrices described above.

If we have a matrix in Jordan Block form, *A*, the function *f(A)* is given by:

The matrix indices have been removed, because in Jordan block form, all the diagonal elements must be equal.

If the matrix is in Jordan Block form, the value of the function is given as the function applied to the individual diagonal blocks.