The trigonometric functions (especially sine and cosine) for complex square matrices occur in solutions of second-order systems of differential equations. They are defined by the same Taylor series that hold for the trigonometric functions of complex numbers:
with Xn being the nth power of the matrix X, and I being the identity matrix of appropriate dimensions.
Equivalently, they can be defined using the matrix exponential along with the matrix equivalent of Euler's formula, eiX = cos X + i sin X, yielding
For example, taking X to be a standard Pauli matrix,
one has
as well as, for the cardinal sine function,