## Meaning of composition

In mathematics, we can generate a singular, more complex function from multiple simple functions. This process is known as composition, where we consider the output of one function as the input of another function.

A** composition of functions** is a mathematical process where two functions are combined to generate a composite function. The output of one function is used as the input of another.

We can denote composite functions as $f\circ g$ or $T\circ S$, where f and g are functions and T and S are transformations. The composition can also be denoted as $f\left(g\right(x\left)\right).$ The composition of two functions f and g gives a new function h. It is important to know the functions' order, as this affects the production of the new composite function. For example, using the output of function f as the input of function g to obtain composite function h is **not** the same as using function g as the input of function f.

We may also use the concept of composition in Geometry, called the composition of transformations, which occurs on shapes (or figures) rather than functions. Transformations in Geometry include translations, reflections, rotations, etc.

A ** composition of transformations** is a process where a combination of transformations is performed on a shape or figure consecutively, with the resulting transformed shape from one transformation used as the starting point in the following transformation.

In this article we explore composition both in terms of transformations and functions.

## Composition of transformations

Let us consider a transformation T which maps from point A to B as well as another transformation S which maps from point B to C. From these transformations T and S, we can produce a new **composite transformation** that can map directly from point A to C, called the composite of S and T. We denote it as $S\circ T$ and state it as "S of T."

Here, we apply transformation T first, and then we apply transformation S. So, we can represent this composition as:$C=S\left(B\right)=S\left(T\right(A\left)\right)=(S\circ T)\left(A\right)$

An example of a composition of transformations is a glide reflection. It is the composition of a reflection and a translation.

### Statements regarding composition of transformations

Let's take a look at some of the theorems concerning the composition of transformations.

__Theorem 1__: Composition Theorem

A composition of two isometries is an isometry.

__Theorem 2__: Reflections in Parallel Lines Theorem

A composition of reflections in two parallel lines is a translation. That is, for two parallel lines l and m, the reflection in l and then the reflection in m is the same as a translation.

__Theorem 3__: Reflection in Intersecting Lines Theorem

A composition of reflections in two intersecting lines is a rotation about the point of intersection of those two lines. In other words, if l and m are two lines intersecting at point O, then reflection in l and then the reflection in m is the same as a rotation about point O.

__Theorem 4__: Reflection in Perpendicular Lines

A composition of reflections in perpendicular lines is a half-turn about the point where the lines intersect.

__Theorem 5__: Composition of Rotation

The composition for two rotations with respect to the same point is again a rotation.

__Theorem 6__: Composition of Translation

The composition of two translations is also a translation.

### Composition of translation examples

Let's look at a worked example regarding the composition of translations.

Find the composition in the given rotation.

**Solution:** Here, the rotation degree for arc PP' is given as $90\xb0$ and the rotation degree for arc P'P'' is given as $45\xb0.$Then, for the rotation degree of arc PP'', we use the composition of rotation. This simply means that we add the degrees of rotation for both of the two rotations to obtain our composition of rotation.

$\Rightarrow (RC,90\xb0\circ RC,45\xb0)=(RC,135\xb0)$

## Composition of functions

If two functions $f\left(x\right)$ and $g\left(x\right)$ are given, we can combine the functions to create a new, composite function. This means that we take function g and use it as an input for the other function f. Then, the composition of these functions is denoted as $f\left(g\right(x\left)\right)$ or $(f\circ g)\left(x\right).$ We call it "f of g of x."

We can also form a composite function using a reverse order, where we consider function f as the input for function g. In this case, we represent it the composite function as $g\left(f\right(x\left)\right)$ or $(g\circ f)\left(x\right).$

Note that ${g}{\left(}{f}{\right(}{x}{\left)}{\right)}$ and ${f}{\left(}{g}{\right(}{x}{\left)}{\right)}$ will yield different functions unless they are perfect inverse (opposite) of each other in which ${f}{\left(}{g}{\right(}{x}{\left)}{\right)}{=}{g}{\left(}{f}{\right(}{x}{\left)}{\right)}{=}{x}{.}$

### Order of composition of functions

When dealing with composition, the order of the functions f and g is important to note and should be kept in mind. Here an example is presented to understand this concept better.

Consider two functions $f\left(x\right)={x}^{2}$ and $g\left(x\right)=x+2.$ Now, we will find the compositions $f\circ g$ and $g\circ f$ and check whether they give the same answers or different ones.

$f\circ g\left(x\right)=f\left(g\right(x\left)\right)=f(x+2)={(x+2)}^{2}={x}^{2}+2x+4$

In the above equation, we use function g as an input for function f. Now, let us consider a composite function in which we use function f as the input for function g.

$g\circ f\left(x\right)=g\left(f\right(x\left)\right)=g\left({x}^{2}\right)={x}^{2}+2$

We can see the difference between both compositions. In other words, $f\circ g\left(x\right)doesnotequalg\circ f\left(x\right)$.

### Domain of composite functions

All the values which are accepted by the particular function are called the * domain* of that function. However, for a composition of functions, we are dealing with two different functions. So, it is necessary to consider both functions when dealing with the domain of a composite function.

There are times when we cannot compose some particular functions for all the values of x. So, in this situation, we will restrict some values of x in order to use composition. Those restricted values become the domain for that function. In compositions, the domain of the second function can either be the same as the first function or lie within it.

We consider two functions $f\left(x\right)=4x-6,g\left(x\right)=x.$ Here let's find the domain for the composition $g\left(f\right(x\left)\right).$

As function g is the square root, we can only consider greater than or equal to zero values for x.

Now for the function f, it will become the input of function g. So f should have values greater than or equal to zero.

So $f\left(x\right)\ge 0$ will be only possible when the value x as $x\ge \frac{3}{2}$ is considered.

Here the value of x is obtained as:

$f\left(x\right)\ge 0\phantom{\rule{0ex}{0ex}}\Rightarrow 4x-6\ge 0\phantom{\rule{0ex}{0ex}}\Rightarrow 4x\ge 6\phantom{\rule{0ex}{0ex}}\Rightarrow x\ge \frac{6}{4}\Rightarrow x\ge \frac{3}{2}$

Hence, the composition function $g\left(f\right(x\left)\right)$ has a domain of $x\ge \frac{3}{2}.$

### Range of composite functions

The range of a function concerns the output values of that function. We can calculate the range of the composite function just as we do for the range of any other function. The range of the composite function can either be the same as the second function (i.e. outer function) or lie within it.

Let $f\left(x\right)=x-8,g\left(x\right)={x}^{2}.$ We will find the composition $g\left(f\right(x\left)\right).$ Here the function f can take any value. But the second function g is in the form of the square. So the values will be greater than equal to zero. Now for the composition $g\left(f\right(x\left)\right)$ we have:

$g\left(f\right(x\left)\right)=g(x-8)={(x-8)}^{2}={x}^{2}-16x+64$

As f can be anything and applying g to it, where g can be greater than or equal to zero, the range of the composition $g\left(f\right(x\left)\right)$ will be greater than or equal to zero.

### Composition of functions examples

Let's better understand the composition of functions with some worked examples.

Two functions $f\left(x\right)=3x$ and $g\left(x\right)=2{x}^{2}-5$ are given. Find the composition $(g\circ f)\left(x\right).$

**Solution:** Here we have to find $g\circ f.$ So we will first consider function and then we will use it as input for the function g. So we can write it as:

$(g\circ f)\left(x\right)=g\left(f\right(x\left)\right)=g\left(3x\right)=2{\left(3x\right)}^{2}+5=2\left(9{x}^{2}\right)+5=18{x}^{2}+5$

Find $f\left(g\right(-1\left)\right)$ for the functions $f\left(x\right)={x}^{2}-2x$ and $g\left(x\right)=x-5.$

**Solution:** We are asked to calculate the composition of f and g when the value of x is given as $(-1).$First, we use function g as an input for function f. To do this, we replace the variable x in function f with the entire function of g, that is id="2728522" role="math" $g\left(x\right)=x-5$.

__Note__: The input function goes into every x value and not just in the first value.

$f(x-5)={(x-5)}^{2}-2(x-5)\phantom{\rule{0ex}{0ex}}={x}^{2}-10x+25-2x+10\phantom{\rule{0ex}{0ex}}={x}^{2}-12x+35$

For the last step, we simply input the value of x, -1, in the above composite equation.

$f\left(g\right(x\left)\right)={x}^{2}-12x+35\phantom{\rule{0ex}{0ex}}\therefore f\left(g\right(-1\left)\right)={(-1)}^{2}-12(-1)+35=48$

Alternatively, we can also use the following approach to solve the composition. First, we evaluate $g\left(x\right)$:

$\Rightarrow g\left(x\right)=x-5\phantom{\rule{0ex}{0ex}}\therefore g(-1)=-1-5=-6$

Then, we proceed further by using the calculated value above as an input for the function f.

$f\left(g\right(-1\left)\right)=f(-6)\phantom{\rule{0ex}{0ex}}={x}^{2}-2x\phantom{\rule{0ex}{0ex}}={(-6)}^{2}-2(-6)\phantom{\rule{0ex}{0ex}}=36+12=48$

$\therefore f\left(g\right(-1\left)\right)=48$

## Composition - Key takeaways

- A
is a mathematical process where two functions are combined to generate a composite function. The output of one function is used as the input of another.*composition of functions* - A
is a process where a combination of transformations (translations, rotations, reflections, etc.) is performed on a shape or figure consecutively, with the resulting transformed shape from one transformation used as the starting point in the following transformation.*composition of transformations* - When dealing with composition, the order of functions f and g is important.
- In composition, the domain of the second function can either be the same as the first function or lie within it.
- The range of the composite function can either be the same as the second function (i.e. outer function) or lie within it.

###### Learn with 21 Composition flashcards in the free StudySmarter app

We have **14,000 flashcards** about Dynamic Landscapes.

Already have an account? Log in

##### Frequently Asked Questions about Composition

What is composition in maths?

Composition is the combination of two functions or transformations.

What is the rule of composition math?

The rule of composition is that the output of one function should be input for another function.

How do you write a math composition?

We can write composition for functions f(x) and g(x) as f(g(x)). And we call it as "f of g of x."

How do you find the composition of a function?

We can find the composition by substituting one function into another, regarding it as an input.

Why do we use composition of transformations?

We use composition of transformations to create a new image (or figure) using transformations, whereby a combination of transformations is performed on a shape or figure consecutively, using the resulting transformed shape from one transformation as the starting point in the following.

##### About StudySmarter

StudySmarter is a globally recognized educational technology company, offering a holistic learning platform designed for students of all ages and educational levels. Our platform provides learning support for a wide range of subjects, including STEM, Social Sciences, and Languages and also helps students to successfully master various tests and exams worldwide, such as GCSE, A Level, SAT, ACT, Abitur, and more. We offer an extensive library of learning materials, including interactive flashcards, comprehensive textbook solutions, and detailed explanations. The cutting-edge technology and tools we provide help students create their own learning materials. StudySmarter’s content is not only expert-verified but also regularly updated to ensure accuracy and relevance.

Learn more