ArticleslgStudy

mathematics

Function composition

Function composition is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Function composition rather than just read about it. In short: In mathematics, the composition operator ∘ takes two functions, f and g, and returns a new function f∘g. When the composite function f∘g (pronounced "f of g") is evaluated at an input x, the result is (f∘g)(x)=f(g(x)).

Function composition — main illustration
Function composition — illustration

Key takeaways

  • Function composition belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Function composition to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Function composition from memory before moving on to harder problems.

Reference excerpt

In mathematics, the composition operator ∘ takes two functions, f and g, and returns a new function f∘g. When the composite function f∘g (pronounced "f of g") is evaluated at an input x, the result is (f∘g)(x)=f(g(x)). That is, the function f is applied after applying g to x. The composition of functions is a special case of the composition of relations, sometimes also denoted by ∘. As a result, all properties of composition of relations are true of composition of functions, such as associativity.

Examples

Composition of functions on a finite set: If f = {(1, 1), (2, 3), (3, 1), (4, 2)}, and g = {(1, 2), (2, 3), (3, 1), (4, 2)}, then g ∘ f = {(1, 2), (2, 1), (3, 2), (4, 3)}, as shown in the figure. Composition of functions on an infinite set: If f: R → R (where R is the set of all real numbers) is given by f(x) = 2x + 4 and g: R → R is given by g(x) = x3, then: If an airplane's altitude at time t is a(t), and the air pressure at altitude x is p(x), then (p ∘ a)(t) is the pressure around the plane at time t. Function defined on finite sets which change the order of their elements such as permutations can be composed on the same set, this being composition of permutations.

Properties The composition of functions is always associative—a property inherited from the composition of relations. That is, if f, g, and h are composable, then f ∘ (g ∘ h) = (f ∘ g) ∘ h. Since the parentheses do not change the result, they are generally omitted. In a strict sense, the composition g ∘ f is only meaningful if the codomain of f equals the domain of g; in a wider sense, it is sufficient that the former be an improper subset of the latter. Moreover, it is often convenient to tacitly restrict the domain of f, such that f produces only values in the domain of g. For example, the composition g ∘ f of the functions f : R → (−∞,+9] defined by f(x) = 9 − x2 and g : [0,+∞) → R defined by g(x)=x can be defined on the interval [−3,+3].

The functions g and f are said to commute with each other if g ∘ f = f ∘ g. Commutativity is a special property, attained only by particular functions, and often in special circumstances. For example, |x| + 3 = |x + 3| only when x ≥ 0. The picture shows another example. The composition of one-to-one (injective) functions is always one-to-one. Similarly, the composition of onto (surjective) functions is always onto. It follows that the composition of two bijections is also a bijection. The inverse function of a composition (assumed invertible) has the property that (f ∘ g)−1 = g−1∘ f−1. 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. Composition of functions is sometimes described as a kind of multiplication on a function space, but has very different properties from pointwise multiplication of functions (e.g. composition is not commutative).

Composition monoids

Suppose one has two (or more) functions f: X → X, g: X → X having the same domain and codomain; these are often called transformations. Then one can form chains of transformations composed together, such as f ∘ f ∘ g ∘ f. Such chains have the algebraic structure of a monoid, called a transformation monoid or (much more seldom) a composition monoid. In general, transformation monoids can have remarkably complicated structure. One particular notable example is the de Rham curve. The set of all functions f: X → X is called the full transformation semigroup or symmetric semigroup on X. (One can actually define two semigroups depending how one defines the semigroup operation as the left or right composition of functions.)

If the given transformations are bijective (and thus invertible), then the set of all possible combinations of these functions forms a transformation group (also known as a permutation group); and one says that the group is generated by these functions. The set of all bijective functions f: X → X (called permutations) forms a group with respect to function composition. This is the symmetric group, also sometimes called the composition group. A fundamental result in group theory, Cayley's theorem, essentially says that any group is in fact just a subgroup of a symmetric group (up to isomorphism). In the symmetric semigroup (of all transformations) one also finds a weaker, non-unique notion of inverse (called a pseudoinverse) because the symmetric semigroup is a regular semigroup.

Functional powers

If Y ⊆ X, then f:X→Y may compose with itself; this is sometimes denoted as f2. That is:

More generally, for any natural number n ≥ 2, the nth functional power can be defined inductively by f n = f ∘ f n−1 = f n−1 ∘ f, a notation introduced by Hans Heinrich Bürmann and John Frederick William Herschel. Repeated composition of such a function with itself is called function iteration.

… excerpt ends here. Continue reading the full article.

Illustrations

Function composition: Compositions of two real functions, the absolute value and a cubic function, in different orders, show a non-commutativity of composition.
Compositions of two real functions, the absolute value and a cubic function, in different orders, show a non-commutativity of composition.
Function composition: Composition of a shear mapping (red) and a clockwise rotation by 45° (green). On the left is the original object. Above is shear, then rotate. Below is rotate, then shear.
Composition of a shear mapping (red) and a clockwise rotation by 45° (green). On the left is the original object. Above is shear, then rotate. Below is rotate, then shear.

Worked examples

Example 1 — a first encounter with Function composition

Start with the simplest possible case. Write down what Function composition claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Function composition before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Function composition ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Function composition

In research
Function composition appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Function composition in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Function composition is common in secondary-school and first-year university syllabi. It links to neighbouring topics Basic concepts in set theory, Binary operations, Functions and mappings, so understanding it makes those chapters shorter.
In everyday life
Look for Function composition outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Function composition” →

How to study Function composition in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Function composition means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Function composition out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Function composition in simple terms?

In mathematics, the composition operator ∘ takes two functions, f and g, and returns a new function f∘g. When the composite function f∘g (pronounced "f of g") is evaluated at an input x, the result is (f∘g)(x)=f(g(x)).

Why does Function composition matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Function composition?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Function composition.

Tags

  • Basic concepts in set theory
  • Binary operations
  • Functions and mappings

Keep exploring