Composition of Function (2024)

In this lesson, I will go over eight (8) worked examples to illustrate the process involved in function composition.

If we are given two functions, it is possible to create or generate a “new” function by composing one into the other. The step involved is similar when a function is being evaluatedfor a given value. For instance, evaluate the function below for [latex]x = 3[/latex].

Composition of Function (1)

It is obvious that I need to replace each [latex]x[/latex] with the given value and then simplify.

Composition of Function (2)

The key idea in function composition is that the input of the function is not a numerical value, instead, the input is also another function.

General Rule of Composition of Function

Suppose the two given functions are [latex]f[/latex] and [latex]g[/latex], the composition of [latex]f \circ g[/latex] is defined by

Composition of Function (3)

Also, the composition of [latex]g \circ f[/latex] is defined by

Composition of Function (4)

Few notesabout the symbolic “formula” above:

  • The order in function composition matters! You always compose functions from right to left. Therefore, given a function, its input is always the one to its right side. In other words, the right function goes inside the left function.
Composition of Function (5)
  • Notice in [latex]f \circ g = f\left[ {g\left( x \right)} \right][/latex] , the input or “inner function” is function [latex]g[/latex] because it is to the right of function [latex]f[/latex]which is the main or “outer function”.
  • In terms of the order of composition, do you see the same pattern in[latex]g \circ f = g\left[ {f\left( x \right)} \right][/latex] ? That’s right! The function [latex]f[/latex] is the inner function of the outer function [latex]g[/latex].

Let us go over a few examples to see how function composition works. You will realize later that it is simply an exercise of algebraic substitution and simplification.

Examples of How to Compose Functions

Example 1: Perform the indicated function composition:

Composition of Function (6)

The order of composition is important. Notice that in [latex]f \circ g[/latex], we want the function [latex]g\left( x \right)[/latex] to be the input of the main function [latex]{f\left( x \right)}[/latex].

It should look like this:

Composition of Function (7)

I start by writing down the main or outer function [latex]f\left( x \right)[/latex], and in every instance of [latex]x[/latex], I will substitute the full value of [latex]g\left( x \right)[/latex].

Then, I’ll do whatever is needed to simplify the expressions such as squaring the binomial, applying the distributive property, and combining like terms. Other than that, there’s really nothing much to it.

Let me show you what I meant by that.

Composition of Function (8)

Example 2: Perform the indicated function composition:

Composition of Function (9)

I need to find the composite function [latex]g \circ f[/latex] which means function [latex]f[/latex] is the input of function [latex]g[/latex].

Composition of Function (10)

Example 3: Perform the indicated function composition:

Composition of Function (11)

This is an example of function composition where the input is a square root function. Let’s see how it works out.

Again, in [latex]f \circ g[/latex] we want to plug in function [latex]g[/latex] into the function [latex]f[/latex].

Composition of Function (12)

Example 4: Perform the indicated function composition:

Composition of Function (13)

This composition of function is quite interesting. I hope you can see that we will have a situation where a square root function goes inside another square root function.

The key to correctly composing this function is to recognize that the square root symbol can be expressed as an exponential expression with a fractional exponent equaling to [latex]{1 \over 2}[/latex].

Thus, we have [latex]\sqrt {x – 1} = {\left( {x – 1} \right)^{{1 \over 2}}}[/latex] and [latex]\sqrt x = {\left( x \right)^{{1 \over 2}}}[/latex].

Composition of Function (14)

Example 5: Perform the indicated function composition:

Composition of Function (15)

So far in our previous examples, we have performed function compositions using two distinct functions. However, it is also possible to compose a function with itself.

Composition of Function (16)

Example 6: Perform the indicated function composition:

Composition of Function (17)

Let us work out an example of a function composition that deals with rational functions. The algebra involved is a bit tedious, however, you should be okay as long as you are careful in simplifying the expressions in every step of the way.

In this example, you willapply the procedures on how to add or subtractrational expressions, and also on how to multiply rational expressions.

Here we go…

Composition of Function (18)

That wasn’t too bad, right?

Example 7: Perform the indicated function composition:

Composition of Function (19)

If you think that our last example of rational function composition was messy, wait till you see this next example. It can be a bit messier but still very manageable. So don’t fret! Always have that “laser” focus in everysimplification process in order to successfully work this out correctly.

The input function [latex]f[/latex] will be substituted into every [latex]x[/latex] of the main function [latex]g[/latex].

Composition of Function (20)

That was easy, wasn’t it?

For more practice, I suggest that you try reversing the order of function composition. In other words, find [latex]f \circ g[/latex].

Composition of Function (21)

Do you also get?

Composition of Function (22)

If that’s the case where [latex]g \circ f = f \circ g = x[/latex],then we conclude that functions [latex]g[/latex] and [latex]f[/latex] are inverses of each other. I have a separate tutorial on how to prove or verify if two functions are inverse of each other.

Example 8: Find the composite function:

Composition of Function (23)

In this example, we are going to compose three functions. Observing the notation of the desired composite function [latex]f \circ g \circ h[/latex], we are going to work it out from right to left.

I first need to plug in function [latex]h[/latex] into function [latex]g[/latex] then simplify to get a new function.

The output of the previous step will be substituted further into the main function [latex]f[/latex] to obtain the final answer. Symbolically, it looks like this…

Composition of Function (24)

Here we go…

I will start by finding the composition [latex]g \circ h = g\left( h \right)[/latex].

Composition of Function (25)

The result of [latex]g\left( h \right) = {\Large{{x \over {{x^2} + 1}}}}[/latex]becomes the input of function [latex]f[/latex]

Composition of Function (26)

You may also be interested in these related math lessons or tutorials:

Evaluating Function

How to Determine if a Function is Even, Odd or Neither

Verifying if Two Functions are Inverses of Each Other

Composition of Function (2024)

FAQs

Composition of Function? ›

In mathematics, function composition is an operation ∘ that takes two functions f and g, and produces a function h = g ∘ f such that h(x) = g(f(x)). In this operation, the function g is applied to the result of applying the function f to x.

What is the composition of functions for dummies? ›

The composition of functions is an algebraic operation in which you use one function as the input into another and perform the operations on that input function. You can perform the basic mathematical operations of addition, subtraction, multiplication, and division on the equations used to describe functions.

Which best describes what a composition of functions is? ›

Therefore, a composition of functions occurs when the output, or result, of one function becomes the input of another function. For functions represented by f(x) or g(x), the composition would be represented by f(g(x)) or g(f(x)).

What is an example of a functional composition? ›

Composing function calls

For example, suppose we have two functions f and g, as in z = f(y) and y = g(x). Composing them means we first compute y = g(x), and then use y to compute z = f(y). Here is the example in the C language: float x, y, z; // ... y = g(x); z = f(y);

How to find composition of function? ›

The composition of two functions g and f is the new function we get by performing f first, and then performing g. For example, if we let f be the function given by f(x) = x2 and let g be the function given by g(x) = x + 3, then the composition of g with f is called gf and is worked out as gf(x) = g(f(x)) .

What is the formula for %composition? ›

A chemical compound is the combination of two or more elements. If you are studying a chemical compound, you may want to find the percent composition of a certain element within that chemical compound. The equation for percent composition is (mass of element/molecular mass) x 100.

What is the composition of a function set? ›

In mathematics, the composition of a function is a step-wise application. For example, the function f: A→ B & g: B→ C can be composed to form a function which maps x in A to g(f(x)) in C. All sets are non-empty sets. A composite function is denoted by (g o f) (x) = g (f(x)).

What is the composition of a function and itself? ›

Composing a Function with Itself To compose a function with itself, we simply input a function into itself using the definition of composition of functions. In other words, to compose a function, , with itself, we compute f ( f ( x ) ) or ( f ∘ f ) ( x ) .

How to find the domain and range of a function? ›

Step 1: Write the given function in its general representation form, i.e., y = f(x). Step 2: Solve it for x and write the obtained function in the form of x = g(y). Step 3: Now, the domain of the function x = g(y) will be the range of the function y = f(x). Thus, the range of a function is calculated.

What is the simple definition of composition of functions? ›

In Maths, the composition of a function is an operation where two functions say f and g generate a new function say h in such a way that h(x) = g(f(x)). It means here function g is applied to the function of x. So, basically, a function is applied to the result of another function.

What is a real life example of composition of functions? ›

An example of a real-life composite function is where you're calculating the amount of money you'll have to spend on petrol. The first function will calculate the amount of petrol required by dividing the distance to be travelled (input variable) by the distance that the car can travel per litre(constant).

What is the difference between function and composition? ›

Composition of functions is when you "feed" the result of one function into another function to produce yet a third function. For example, if f(x)=x2 and g(x)=ex then the composition g∘f would be defined by (g∘f)(x)=g(f(x))=g(x2)=ex2. As you can see, the result is a function of x.

What is an example of composition? ›

What is an example of a composition? A composition about the benefits of wind power might present the benefits and drawbacks of wind power. A composition presents a thesis (an assertion plus reasons) about the topic.

What is the domain of the composition of functions? ›

The domain of a composite function f(g(x)) is the set of those inputs x in the domain of g for which g(x) is in the domain of f.

What is the meaning of composite function? ›

A composite function is a complex function created by two or more functions. The output of the inner function becomes the input of the outer function.

Top Articles
Latest Posts
Article information

Author: Pres. Carey Rath

Last Updated:

Views: 5736

Rating: 4 / 5 (61 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Pres. Carey Rath

Birthday: 1997-03-06

Address: 14955 Ledner Trail, East Rodrickfort, NE 85127-8369

Phone: +18682428114917

Job: National Technology Representative

Hobby: Sand art, Drama, Web surfing, Cycling, Brazilian jiu-jitsu, Leather crafting, Creative writing

Introduction: My name is Pres. Carey Rath, I am a faithful, funny, vast, joyous, lively, brave, glamorous person who loves writing and wants to share my knowledge and understanding with you.