An operator is a mapping that acts on elements from a set and returns an element in a (possibly different) set. In mathematics, operators commonly act on vectors, matrices, or functions. Examples include adding numbers, multiplying by a scalar, applying a matrix to a vector, differentiating a function, or integrating a function.