Function Composition

In mathematics, function composition is the application of one function to the results of another. For instance, the functions f: XY and g: YZ can be composed by computing the output of g when it has an argument of f(x) instead of x. Intuitively, if z is a function g of y and y is a function f of x, then z is a function of x.

Thus one obtains a composite function gf: XZ defined by (gf)(x) = g(f(x)) for all x in X. The notation gf is read as "g circle f", or "g composed with f", "g after f", "g following f", or just "g of f".

The composition of functions is always associative. That is, if f, g, and h are three functions with suitably chosen domains and codomains, then f ∘ (gh) = (fg) ∘ h, where the parentheses serve to indicate that composition is to be performed first for the parenthesized functions. Since there is no distinction between the choices of placement of parentheses, they may be safely left off.

The functions g and f are said to commute with each other if gf = fg. In general, composition of functions will not be commutative. Commutativity is a special property, attained only by particular functions, and often in special circumstances. For example, only when .

Considering functions as special cases of relations (namely functional relations), one can analogously define composition of relations, which gives the formula for in terms of and .

Derivatives of compositions involving differentiable functions can be found using the chain rule. Higher derivatives of such functions are given by Faà di Bruno's formula.

The structures given by composition are axiomatized and generalized in category theory.

Read more about Function Composition:  Example, Functional Powers, Composition Monoids, Alternative Notations, Composition Operator

Famous quotes containing the words function and/or composition:

    My function in life is not to be a politician in Parliament: it is to get something done.
    Bernadette Devlin (b. 1947)

    There is singularly nothing that makes a difference a difference in beginning and in the middle and in ending except that each generation has something different at which they are all looking. By this I mean so simply that anybody knows it that composition is the difference which makes each and all of them then different from other generations and this is what makes everything different otherwise they are all alike and everybody knows it because everybody says it.
    Gertrude Stein (1874–1946)