Composition of Functions - Definition, Properties and Examples (2024)

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.

Let’s have a look at the definition of a composite function.

Composite Functions Definition

Let f : A → B and g : B → C be two functions. Then the composition of f and g, denoted by g ∘ f, is defined as the function g ∘ f : A → C given by g ∘ f (x) = g(f (x)), ∀ x ∈ A.

The below figure shows the representation of composite functions.

Composition of Functions - Definition, Properties and Examples (1)

The order of function is an important thing while dealing with the composition of functions since (f ∘ g) (x) is not equal to (g ∘ f) (x).

The relation and function is an important concept of Class 11 and 12. See below the function composition symbol and domain with example.

Symbol: It is also denoted as (g∘f)(x), where ∘ is a small circle symbol. We cannot replace ∘ with a dot (.), because it will show as the product of two functions, such as (g.f)(x).

Domain: f(g(x)) is read as f of g of x. In the composition of (f o g) (x) the domain of function f becomes g(x). The domain is a set of all values which go into the function.

Example: If f(x) = 3x+1 and g(x) = x2 , then f of g of x, f(g(x)) = f(x2) = 3x2+1.

If we reverse the function operation, such as f of f of x, g(f(x)) = g(3x+1) = (3x+1)2

Also, read:

  • Domain, Codomain and Range of a Function
  • Relations And Functions Class 11
  • Relations And Functions For Class 12
  • Composite and Inverse Functions

Properties of Function Compositions

Associative Property: As per the associative property of function composition, if there are three functions f, g and h, then they are said to be associative if and only if;

f ∘ (g ∘ h) = (f ∘ g) ∘ h

Commutative Property: Two functions f and g are said to be commute with each other, if and only if;

g ∘ f = f ∘ g

Few more properties are:

  • The function composition of one-to-one function is always one to one.
  • The function composition of two onto function is always onto
  • The inverse of the composition of two functions f and g is equal to the composition of the inverse of both the functions, such as (f ∘ g)-1 = ( g-1 ∘ f-1).

How to Solve Composite Functions

In maths, solving a composite function signifies getting the composition of two functions. A small circle (∘) is used to denote the composition of a function.

Go through the below-given steps to understand how to solve the given composite function.

Step 1: First write the given composition in a different way.

Consider f(x) = x2 and g(x) = 3x

Now,

(f ∘ g) (x) can be written as f[g(x)].

Step 2: Substitute the variable x that is there in the outside function with the inside function by taking the individual functions as a reference.

That means,

(f ∘ g)(x) = f(3x) {since g(x) = 3x}

Step 3: Finally, simplify the obtained function.

(f ∘ g)(x) = f(3x) = (3x)2{since f(x) = x2}

= 9x2

Function Composition With Itself

It is possible to compose a function with itself. Suppose f is a function, then the composition of function f with itself will be

(f∘f)(x) = f(f(x))

Let us understand this with an example:

Example: If f(x) = 3x2, then find (f∘f)(x).

Solution: Given: f(x) = 3x2

(f∘f)(x) = f(f(x))

= f (3x2)

= 3(3x)2

= 3.9x2

= 27x2

Example of Composition of Functions

Q.1: If f (x) = 2x and g(x) = x+1, then find (f∘g)(x) if x = 1.

Solution: Given, f(x) = 2x

g(x) = x+ 1

Therefore, the composition of f from g will be;

(f∘g)(x) = f(g(x)) = f(x+1) = 2(x+1)

Now putting the value of x = 1

f(g(1)) = 2(1+1) = 2 (2) = 4

Q.2: If f(x) = 2x +1 and g(x) = -x2, then find (g∘f)(x) for x = 2.

Solution: Given,

f(x) = 2x+1

g(x) = -x2

To find: g(f(x))

g(f(x)) = g(2x+1) = -(2x+1)2

Now put x =2 to get;

g(f(2)) = -(2.2+1)2

= -(4+1)2

=-(5)2

=-25

Q.3: If there are three functions, such as f(x) = x, g(x) = 2x and h(x) = 3x. Then find the composition of these functions such as [f ∘ (g ∘ h)] (x) for x = -1.

Solution: Given,

f(x) = x

g(x) = 2x

h(x) = 3x

To find: [f ∘ (g ∘ h)] (x)

[f ∘ (g ∘ h)] (x) = f ∘ (g(h(x)))

= f ∘ g(3x)

= f(2(3x))

= f(6x)

= 6x

If x = -1, then;

[f ∘ (g ∘ h)] (-1) = 6(-1) = -6
Composition of Functions - Definition, Properties and Examples (2024)

FAQs

Composition of Functions - Definition, Properties and Examples? ›

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 are the properties of function composition? ›

Composition of functions is associative. Composition of functions is not commutative. The composition of a function and its inverse is the identity function ( f(x) = x ). The composition of two linear functions is also linear.

What is an example of composition of a function? ›

What is an example of a composite function? Given f(x) = 2x and g(x) = x+4, f(g(x)) = 2(x+4) = 2x + 8. The function f(g(x)) is called a composite function.

What are composite functions? ›

Given two functions, we can combine them in such a way so that the outputs of one function become the inputs of the other. This action defines a composite function.

What is the definition of a function and its properties? ›

Definition of function: A function is a relationship between two sets of data, one input and the other output. A relation is said to be a function if and only if each of the input data is related to exactly one output data.

Which best describes what a composition of functions is? ›

Function composition involves substituting one function into the variable in the other function. This process is the same as if you are evaluating a function for a specific value. The notation used to indicate the composition of functions f(x) and g(x) may look like f(g(x)), (f ∘ g)(x), g(f(x)), or (g ∘ f)(x).

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

One common everyday life example is unit conversion. If I know how many miles and hours I have been walking, but want to decide what my average speed is in feet per second, generally what ends up happening is I combine several functions to get my result.

What is composition of functions simple? ›

The composition of two functions f and g is the new function h, where h(x) = f(g(x)), for all x in the domain of g such that g(x) is in the domain of f. The notation for function composition is h = f • g or h(x) = (f • g)(x) and is read as 'f of g of x'.

What are the four examples of composition? ›

The four main types of composition writing are description, narration, exposition, and argumentation. A descriptive composition relates details of a person or a place. In a composition of narration, a writer tells a chronology of events as a first-person narrative.

What is the composition of a function 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 ) .

What kind of math is composite functions? ›

Composition is a binary operation that takes two functions and forms a new function, much as addition or multiplication takes two numbers and gives a new number. However, it is important not to confuse function composition with multiplication because, as we learned above, in most cases f(g(x))≠f(x)g(x).

What are the four properties of functions? ›

The Properties of Functions
  • The Domain and Range of a Function.
  • The Increase and Decrease of a Function.
  • The Maximum and Minimum of a Function.
  • The Sign of a Function.
  • The Intercepts of a Function.
  • The Asymptotes of a Function.

What are examples of functions? ›

An example of a simple function is f(x) = x2. In this function, the function f(x) takes the value of “x” and then squares it. For instance, if x = 3, then f(3) = 9. A few more examples of functions are: f(x) = sin x, f(x) = x2 + 3, f(x) = 1/x, f(x) = 2x + 3, etc.

How do you define a function example? ›

In particular, a function maps each input to exactly one output. A function can be expressed as an equation, a set of ordered pairs, as a table, or as a graph in the coordinate plane. One simple example of a function is multiplication by 3. As an equation, this would be written f(x) = 3x.

What are the rules for function composition? ›

The composite function rule shows us a quicker way. If f(x) = h(g(x)) then f (x) = h (g(x)) × g (x). In words: differentiate the 'outside' function, and then multiply by the derivative of the 'inside' function. To apply this to f(x)=(x2 + 1)17, the outside function is h(·)=(·)17 and its derivative is 17(·)16.

What are the conditions for a composite function to exist? ›

Composite functions exist when another function is wrapped inside another function. Functions are built by replacing one function with another one. The composite function combining f (x) and g (x) is, for example, f [g (x)] (x).

What is the law of composition of functions? ›

The composition of two functions f and g is the new function h, where h(x) = f(g(x)), for all x in the domain of g such that g(x) is in the domain of f. The notation for function composition is h = f • g or h(x) = (f • g)(x) and is read as 'f of g of x'.

Top Articles
Latest Posts
Article information

Author: Stevie Stamm

Last Updated:

Views: 5795

Rating: 5 / 5 (60 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.