In mathematics, function composition is the pointwise application of one function to the result of another to produce a third function. ... Intuitively, composing two functions is a chaining process in which the output of the inner function becomes the input of the outer function.