Operator (mathematics)
In genetics an operator is the site on DNA to which a specific repressor protein binds and prevents the initiation of transcription at the adjacent promoter.
In mathematics, an operator is some kind of function; if it comes with a specified type of operand as function domain, it is no more than another way of talking of functions of a given type. The most frequently met usage is a mapping between vector spaces; this kind of operator is distinguished by taking one vector and returning another. For example, consider an enlargement, say by a factor of √2; such as is required to take one size of paper to another. It can also be applied geometrically to vectors as operands.
In many important cases, operators transform functions into other functions. We also say an operator maps a function to another. The operator itself is a function, but has an attached type indicating the correct operand, and the kind of function returned. This extra data can be defined formally, using type theory; but in everyday usage saying operator flags its significance. Functions can therefore conversely be considered operators, for which we forget some of the type baggage, leaving just labels for the domain and codomain.
Operators and levels of abstraction
To begin with, the usage of operator in mathematics is subsumed in the usage of function: an operator can be taken to be some special kind of function. The word is probably used to call attention to some aspect of its nature as function. Since there are several such aspects that are of interest, there is no completely consistent terminology. Common are these:
- To draw attention to the function domain, which may itself consist of vectors or functions, rather than just numbers. The expectation operator in probability theory, for example, has random variables as domain (and is also a functional).
- To draw attention to the fact that the domain consists of pairs or tuples of some sort, in which case operator is synonymous with the usual mathematical sense of operation.
- To draw attention to the function codomain; for example a vector-valued function might be called an operator.
A single operator might conceivably qualify under all three of these. Other important ideas are:
- Overloading, in which addition, say, is thought of as a single operator able to act on numbers, vectors, matrices ... .
- Operators are often in practice just partial functions, a common phenomenon in the theory of differential equations since there is no guarantee that the derivative of a function exists.
- Use of higher operations on operators, meaning that operators are themselves combined.
These are abstract ideas from mathematics, and computer science. They may however also be encountered in quantum mechanics. There Dirac drew a clear distinction between q-number or operator quantities, and c-numbers which are conventional complex numbers. The manipulation of q-numbers from that point on became basic to theoretical physics.
Describing operators
Operators are described usually by the number of operands:
- monodic, or unary: one argument
- dyadic, or binary: two arguments
- triadic, or ternary: three arguments
and so on.
Notations
There are three major systematic ways of writing operators and their arguments. These are
- prefix: where the operator name comes first and the arguments follow, for example:
- Q(x1, x2,...,xn).
- In prefix notation, the brackets are sometimes omitted if it is known that Q is a n-ary operator.
- postfix: where the operator name comes last and the arguments precede, for example:
- (x1, x2,...,xn) Q
- In postfix notation, the brackets are sometimes omitted if it is known that Q is a n-ary operator.
- infix: where the operator name comes between the arguments. This is not commonly used for operators taking greater than 2 arguments, ie binary operators. Trivially for an operator taking 1 argument, writing infix is equivalent to writing prefix. Infix style is written, for example:
- x1 Q x2
There are other notations commonly met. In some literature, a small uphat is written over the operator name. In certain circumstances, they are written unlike functions, when an operator has a single argument or operand. For example, if the operator name is Q and the operand a function f, we write Qf and not usually Q(f); this latter notation may however be used for clarity if there is a product — for instance, Q(fg). Later on we will use Q to denote a general operator, and xi to denote the i-th argument.
Notations for operators include the following. If f(x) is a function of x and Q is the general operator we can write Q acting on f as (Qf)(x) also.
Operators in programming
Programming languages have a set of operators that perform arithmetical operations, and others such as Boolean operations on truth values, and string operators manipulating strings of text. Computers are mathematical devices, but compilers and interpreters require a full syntactic theory of all operations in order to parse formulae involving any combinations correctly. In particular they depend on operator precedence rules, on order of operations, that are tacitly assumed in mathematical writing.
Conventionally, the computing usage of operator also goes beyond the mathematical usage (for functions). The C programming language syntax for pointers, uses the operators * and &. sizeof is sometimes considered an operator, and in C++, new and delete are also operators. In object oriented languages, such as C++, you can define your own uses for operators.
In certain programming languages, such as PostScript, the use of the word "operator" has more specific meaning, in that an operator is an executable element in the stack. Because operators here are always written postfix, the need for brackets is redundant as the way objects are taken from the stack ensures correct evaluation. This is an example of Reverse Polish notation.
Examples of mathematical operators
This section concentrates on illustrating the expressive power of the operator concept in mathematics. Please refer to individual topics pages for further details.
Linear operators
- See Linear transformation for the main article
The most common kind of operator encountered are linear operators. In talking about linear operators, the operator is signified generally by the letters T or L. Linear operators are those which satisfy the following conditions; take the general operator T, the function acted on under the operator T, written as f(x), and the constant a:
Many operators are linear. For example, the differential operator and Laplacian operator, which we will see later.
Linear operators are also known as linear transformations or linear mappings. Many other operators one encounters in mathematics are linear, and linear operators are the most easily studied (Compare with nonlinearity).
Such an example of a linear transformation between vectors in R2 is reflection, given a vector x=(x1, x2)
- Q(x1, x2)=(-x1, x2)
We can also make sense of linear operators between generalisations of finite-dimensional vector spaces. For example, there is a large body of work dealing with linear operators on Hilbert spaces and on Banach spaces. See also operator algebra.
Operators in probability theory
- See Probability theory for the main article
Operators are also involved in probability theory. Such operators as expectation, variance, covariance, factorials, et al.
Operators in calculus
Calculus is, essentially, the study of one particular operator, and its behavior embodies and exemplifies the idea of the operator very clearly. The key operator studied is the differential operator. It is linear, as are many of the operators constructed from it.
The differential operator
- See Differential operator for the main article
The differential operator is an operator which is fundamentally used in Calculus to denote the action of taking a derivative. Common notations are such d/dx, y'(x) to denote the derivative of y(x). However here we will use the notation that is closest to the operator notation we have been using, that is, using D f to represent the action of taking the derivative of f.
Integral operators
Given that integration is an operator as well (inverse of differentiation), we have some important operators we can write in terms of integration.
Convolution
- See Convolution for the main article
The convolution of two functions is a mapping from two functions to one other, defined by an integral as follows:
If x1=f(t) and x2=g(t), define the operator Q such that;
which we write as .
Fourier transform
- See Fourier transform for the main article
The Fourier transform is used in many areas, not only in mathematics, but in physics and in signal processing, to name a few. It is another integral operator; it is useful mainly because it converts a function on one (spatial) domain to a function on another (frequency) domain, in a way that is effectively invertible. Nothing significant is lost, because there is an inverse transform operator. In the simple case of periodic functions, this result is based on the theorem that any continuous periodic function can be represented as the sum of a series of sine waves:
- f(x) = ∑ A1 sin ω + A2 sin ω/2 + A3 sin ω/3 + ... .
Laplacian transform
- See Laplace transform for the main article
The Laplace transform is another integral operator and is involved in simplifying the process of solving differential equations.
Given f=f(s), it is defined by:
Fundamental operators on scalar and vector fields
- See Vector calculus, scalar field, gradient, divergence, and curl'.
Three main operators are key to vector calculus, the operator ∇, known as gradient, where at a certain point in a scalar field forms a vector which points in the direction of greatest change of that scalar field. In a vector field, the divergence is an operator that measures a vector field's tendency to originate from or converge upon a given point. Curl, in a vector field, is a vector operator that shows a vector field's tendency to rotate about a point.
Operators in physics
- See operator (physics) for the main article
In physics, an operator often takes on a more specialized meaning than in mathematics. Operators as observables are a key part of the theory of quantum mechanics. In that context operator often means a linear transformation from a Hilbert space to another, or (more abstractly) an element of a C* algebra.