The Wayback Machine - https://web.archive.org/web/20241120020949/https://www.geeksforgeeks.org/composite-functions-relations-and-functions/
Open In App

Composite functions – Relations and functions

Last Updated : 21 Dec, 2020
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

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

Composite-Functions

Clearly, dom(g o f) = dom(f).

Also, g o f is defined only when range(f) is a subset of dom(g).

Evaluating composite functions

We know composite function is written as f o g(x), g o f(x) and so on. Here f o g(x) will be evaluated as f{g(x)} and g o f(x) will be evaluated as g{f(x)}.

Problem 1: Let f : {2, 3, 4, 5} -> {3, 4, 5, 9} and g : {3, 4, 5, 9} -> {7, 11, 15} be functions defined as 

f(2) = 3, f(3) = 4, f(4) = f(5) = 5 and g (3) = g(4) = 7 and g(5) = g(9) = 11. Find g o f(x).

Solution:

g o f(x) = g{ f(x)}. So first we find the inner bracket which is f(x) here.

We have the values of f(2), f(3), f(4) and f(5), hence we have to find the values of g o f(x) for all these values.

g o f(2) = g{ f(2) } = g(3) = 7,

g o f (3) = g{ f(3) } = g(4) = 7,

g o f(4) = g{ f(4) } = g(5) = 11 

And g o f(5) = g(5) = 11.

Problem 2: Show that if f : A -> B and g : B -> C are onto, then g o f : A -> C is also onto.

Solution 

Given an arbitrary element z ∈ C, there exists a pre-image y of z under g such that g(y) = z, since g is onto. 

Further, for y ∈ B, there exists an element x in A with f(x) = y, since f is onto. 

Therefore, g o f(x) = g{ f(x) } = g(y) = z, showing that g o f is onto.

Problem 3: Let ƒ: R->R:f(x) = (x2 – 3x + 2). Find f o f(x).

Solution:

f o f(x) = f {f(x) } = f(x2 – 3x + 2) = f(y)      (let y = x2 – 3x + 2)

                          = y2 – 3y + 2

                          = (x2 – 3x + 2) – 3(x2 – 3x + 2) + 2

                          = x4 – 6x3 + 10x2 – 3x.

Evaluating Composite Functions: Using Tables

In this type of questions, we will be given a table with values of x, f(x), g(x) and we will need to find the composite of f(x) and g(x) like in example 1 we are asked to find f o g(1). 

To find the solution, we will start from the inner bracket and find its value in the table given, so we will find the value of g(1) from the table which is 4. Then for the outer bracket again we will find its value from the given table, so we will find the value of f(4) from the table which is 2. Hence, we will get the required answer which is 2 in this case.

Problem 1: Using the table below, evaluate f o g(1) and g o f(4).

x f(x) g(x)
1 5 4
2 8 5
3 4 3
4 2 8

Solution:

So, f o g(1) = f{g(1)} and g  o f(4) = g{f(4)}.

We first evaluate the inner bracket then the outer bracket, using the values given in table.

For f{g(1)},  g(1) = 4. Now f(4) = 2.

Hence, f{g(1)} = 2.

Similarly, for g{f(4)}, f(4) = 2. Now g(2) = 8.

Hence, g{f(4)} = 8.

Therefore, f o g(1) = f{g(1)} = f(4) = 2 and g o f(4) = g{f(4)} = g(2) = 8.

Problem 2: Using the table below, evaluate f o g(3) and f o f(1).

x f(x) g(x)
1 3 2
2 7 3
3 8 5
4 6 7
5 2 9

Solution: 

So, f o g(3) = f{g(3)} and f o f(1) = f{f(1)}.

We first evaluate the inner bracket then the outer bracket, using the values given in table.

For f{g(3)}, g(3) = 5. Now f(5) = 2.

Hence, f{g(3)} = 2.

Similarly, for f{f(1)}, f(1) = 3. Now f(3) = 8.

Hence, f{f(1)} = 8.

Therefore, f o g(3) = f{g(3)} = f(5) = 2 and f o f(1) = f{f(1)} = f(3) = 8.

Evaluating composite functions: Using Graphs

In this type of questions, we will be given a graph having f(x) and g(x) curve, and we will be asked to find a composite of f(x) and g(x) like in example 1 we have to find f o g(2).

Again we will start from the inner bracket, so we have to find g(2). So we will see the g(x) curve. So at x=2, we find that y=3. Now we will need to find f(3). So we will see the f(x) curve. Now we will look at x=3, there we find y=4. Hence, we get the required solution which is 3 in example 1.

Problem 1: Using the graphs below, evaluate f o g(2).

Composite-Functions-2

Composite-Functions-3

Solution:

So, f o g(2) = f{ g(2) }

From the graph of g(x), we need to find g(2), 

when x = 2, y = 3, hence g(2) = 3

Now f o g(2) = f(g(2)) = f(3).

From the graph of f(x), we need to find f(3),

when x = 3, y = 4, hence f(3) = 4

Therefore, f o g(2) = f{g(2)} = f(3) = 4.

Problem 2: Using the graph below, evaluate g o h(5).

Composite-Functions-4

Solution:

So, g o h(5) = g{ h(5) }

From the graph of h(x), we need to find h(5),

When x = 5, y = -2, hence h(5) = -2

Now g o h(5) = g{h(5)} = g(-2).

From the graph of g(x), we need to find g(-2),

when x = -2, y = 3, hence g(-2) = 3

Therefore, g o h(5) = g{h(5)} = g(-2) = 3.



Previous Article
Next Article

Similar Reads

Class 12 NCERT Solutions- Mathematics Part I - Chapter 1 Relations And Functions - Exercise 1.1 | Set 2
Content of this article has been merged with Chapter 1 Relations And Functions - Exercise 1.1 as per the revised syllabus of NCERT. Question 11. Show that the relation R in the set A of points in a plane given by R ={ (P,Q): distance of the point P from the origin is the same as the distance of the point Q from the origin}, is an equivalence relati
6 min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 1 Relations And Functions -Miscellaneous Exercise on Chapter 1 | Set 1
Question 1. Let f : R → R be defined as f(x) = 10x + 7. Find the function g : R → R such that g o f = f o g = 1R. Solution: As, it is mentioned here f : R → R be defined as f(x) = 10x + 7 To, prove the function one-one Let's take f(x) = f(y) 10x + 7 = 10y + 7 x = y Hence f is one-one. To, prove the function onto y ∈ R, y = 10x+7 [Tex]x = \frac{y-7}
9 min read
NCERT Solutions Class 12- Mathematics Part I – Chapter 1 Relations And Functions -Miscellaneous Exercise on Chapter 1
Question 1. Show that the function f : R → {x ∈ R : – 1 < x < 1} defined by f(x) = [Tex]\frac{x}{1+|x|} [/Tex], x ∈ R is one one and onto function.Solution: As, it is mentioned here f : R → {x ∈ R : – 1 < x < 1} defined by [Tex]f(x) = \frac{x}{1+|x|} [/Tex], x ∈ R As, we know f is invertible, if and only if f is one-one and onto. ONE-ON
5 min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 1 Relations And Functions - Exercise 1.3
Please note that Exercise 1.3 from Chapter 1, “Relations and Functions” in the NCERT Solutions, has been removed from the revised syllabus. As a result, this exercise will no longer be a part of your study curriculum. Solve The Following Questions NCERT Solutions for Class 12 Math's Chapter 1 Exercise 1.3 (Relations and Functions)Question 1. Let f
11 min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 1 Relations And Functions - Exercise 1.1
Relation and Function are two ways of establishing links between two sets in mathematics. Relation and Function in maths are analogous to the relation that we see in our daily lives i.e., two persons are related by the relation of father-son, mother-daughter, brother-sister, and many more. On a similar pattern, two numbers can be related to each ot
15+ min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 1 Relations And Functions - Exercise 1.2
In Class 12 Mathematics, Chapter 1, "Relations and Functions" students delve into the foundational concepts of relations and functions. Exercise 1.2 focuses on the various problems to enhance understanding of these concepts. This exercise is crucial for grasping how different functions relate to each other and how they can be represented mathematic
8 min read
Class 12 NCERT Solutions - Mathematics Part I - Chapter 1 Relations and Functions - Exercise 1.4
Exercise 1.4 delves into the advanced concepts of function composition and invertible functions, building upon the foundational knowledge of relations and functions established earlier in the chapter. This exercise is crucial for developing a deeper understanding of how functions interact and transform, paving the way for more complex mathematical
15+ min read
Class 12 NCERT Solutions - Mathematics Part I - Chapter 1 Relations and Functions - Exercise 1.4 | Set 2
Exercise 1.4 | Set 2 builds upon the concepts introduced in the first set, focusing on more advanced aspects of function composition and inverse functions. This set challenges students to apply their understanding to more complex scenarios, including composite functions with trigonometric, exponential, and logarithmic elements. It also delves deepe
10 min read
Class 12 NCERT Solutions- Mathematics Part I - Chapter 1 Relations And Functions -Miscellaneous Exercise on Chapter 1 | Set 2
Chapter 1 of NCERT Class 12 Mathematics Part I focuses on Relations and Functions, building upon the foundational concepts introduced in earlier classes. This chapter delves deeper into various types of relations and functions, exploring their properties, compositions, and applications. Students will learn to analyze and manipulate functions, under
9 min read
Derivatives of Composite Functions
Derivatives are an essential part of calculus. They help us in calculating the rate of change, maxima, and minima for the functions. Derivatives by definition are given by using limits, which is called the first form of the derivative. We already know how to calculate the derivatives for standard functions, but sometimes we need to deal with comple
6 min read
Public Relations (PR) : Meaning, Importance, Roles and Tools
What is PR?The full form of PR is Public Relations. It is the deliberate, planned, and sustained effort to establish and maintain mutual understanding between an organisation and its public. It is a continuous activity and it aims to create and manage relations with the public successfully.  According to The Public Association Relations, " Public R
4 min read
Symmetric Relations | Types, Definition, and Examples
Symmetric relation is a type binary relation in discrete Mathematics defined on sets. Which satisfies that if [Tex]aRb[/Tex] exists then [Tex]bRa[/Tex] also exists for all pairs of a, b that belong to set S. which means that if (a, b) belongs to R then (b, a) Also belongs to relation R. Example of symmetric relation includes "is equal to", as if a
7 min read
Discrete Mathematics | Types of Recurrence Relations - Set 2
Prerequisite - Solving Recurrences, Different types of recurrence relations and their solutions, Practice Set for Recurrence Relations The sequence which is defined by indicating a relation connecting its general term an with an-1, an-2, etc is called a recurrence relation for the sequence. Types of recurrence relations First order Recurrence relat
4 min read
Class 11 RD Sharma Solutions - Chapter 2 Relations - Exercise 2.3 | Set 1
Question 1. If A = {1, 2, 3}, B = {4, 5, 6}, which of the following are relations from A to B? Give reasons in support of your answer. (i) {(1, 6), (3, 4), (5, 2)} (ii) {(1, 5), (2, 6), (3, 4), (3, 6)} (iii) {(4, 2), (4, 3), (5, 1)} (iv) A × B Solution: Given: A = {1, 2, 3}, B = {4, 5, 6} A × B = {(1, 4), (1, 5), (1, 6), (2, 4), (2, 5), (2, 6), (3,
12 min read
Plant Water Relations
The transfer of water, nutrients, and other materials from one section of the plant to another is referred to as transport in plants. Plants rely on their transport system for growth, survival, and reproduction. Water transport in plants is critical for sustaining the turgor pressure required for cell structure and function. What are Plant-water Re
4 min read
Degree of Relations in DBMS
We are living in a world where every entity has relationships with one other whether a living or non-living being. For example, you are a single entity but you share different relations with your family and friends. Even within a family, you are the son of your father at the same time you are also a sibling of your brother. Similarly, the relations
4 min read
Reflexive Relations in Mathematics
Reflexive Relation is a mathematical or set-theoretical relation in which every element is related to itself, meaning that for every element 'x' in the set, the pair (x, x) is a part of the relation. Other than Reflexive, there are many types of relations such as Symmetric, Transitive, Identity, etc. In maths, relation is a subset of the cartesian
10 min read
India-China Relations
India gained independence in 1947, meanwhile, China came to be known & rose as the People's Republic of China on 1st October 1949. India became the 1st non-communist country to establish an embassy in China. Since 1950, both India & China have had diplomatic relations. The Panchsheel Agreement (Five Principles of Peaceful Coexistence) was e
10 min read
India’s External Relations| Class 12 Political Science
Class 12 Political Science Notes Chapter 4 India’s External Relations: India's external relations are a complex and ever-evolving topic. In this chapter, we will explore the history, principles, and challenges of India's foreign policy. We will also examine India's relationship with its key partners, including the United States, China, and Russia.
9 min read
Discrete Mathematics | Representing Relations
Prerequisite - Introduction and types of Relations Relations are represented using ordered pairs, matrix and digraphs: Ordered Pairs - In this set of ordered pairs of x and y are used to represent relation. In this corresponding values of x and y are represented using parenthesis. Example: {(1, 1), (2, 4), (3, 9), (4, 16), (5, 25)}This represent sq
2 min read
Equivalence Relations
Equivalence Relation is a type of relation that satisfies three fundamental properties: reflexivity, symmetry, and transitivity. These properties ensure that it defines a partition on a set, where elements are grouped into equivalence classes based on their similarity or equality. Equivalence relations are essential in various mathematical and theo
11 min read
Number of possible Equivalence Relations on a finite set
An equivalence relation is Reflexive, Symmetric and Transitive. Before counting the number of possible equivalence relations on a set |A|=n, let us see an example of a equivalence relation and identify Equivalence Classes in it. Let A = {1, 2, 3, 4} be a set and R = {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (3, 4), (4, 3), (4, 4)} be an equivalence
4 min read
Real Life Examples of Relations
Relations in mathematics becomes easier when we look at real-life examples. A relation, in simple terms, is a set of ordered pairs that show how elements from one set are connected to elements of another set. These connections are all around us in everyday situations. For instance, think about the relationship between students and their grades in a
5 min read
Transitive Relations
Transitive Relation is one of the necessary conditions for equivalence relation, as for any relation to be that needs to to Transitive at first. In Transitive Relation, if element A is related to element B and element B is related to element C, then there must also be a relationship between element A and element C, following the same rule or relati
10 min read
Class 12 RD Sharma Solutions - Chapter 1 Relations - Exercise 1.1 | Set 1
In mathematics, understanding the properties of relations is very fundamental to forming a strong basic. Reflexive, symmetric, and transitive relations form the cornerstone of relational algebra, which finds a huge application in various fields such as computer science, logic finding, and data science. Let's delve into these properties by examining
15+ min read
Class 11 RD Sharma Solutions - Chapter 2 Relations - Exercise 2.3 | Set 2
In Class 11 Mathematics, understanding the concept of relations is crucial for the mastering functions and other higher-level concepts. The Exercise 2.3 from Chapter 2 of RD Sharma's book focuses on the practical problems involving relations. This article provides a detailed solution set for the Exercise 2.3, Set 2 helping the students grasp the in
11 min read
Composition of Relations
Composition of Relations is a mathematical concept that links elements across different sets by combining multiple relations. This powerful tool is fundamental in fields like graph theory, function composition, and system modeling, enabling the exploration of complex connections and relationships within various structures. In this article, we will
13 min read
Class 12 RD Sharma Solutions - Chapter 1 Relations - Exercise 1.2 | Set 2
Question 11. Let O be the origin . We define a relation between two points P and Q in a plane if OP = OQ . Show that the relation, so defined is an equivalence relation.Solution: Let A be the set of points on plane and let R = {(P, Q): OP = OQ} be a relation on A where O is the origin. now (i) reflexibility: let P ∈ A since, OP = OP :. P, P ∈ R so,
10 min read
Class 12 RD Sharma Solutions - Chapter 1 Relations - Exercise 1.2 | Set 1
Question 1. Show that the relation R = {(a,b): a-b is divisible by 3;, a, b ∈ Z} is an equivalence relation. Solution: According to question, relation R = {(a,b): a-b is divisible by 3;, a, b ∈ Z} We have to show that R is an equivalence relation. (i) reflexibity: let a = z => a - a = 0 => 0 is divisible by 3 :. a is divisible by 3 (a, a) ∈ R
15+ min read
Class 12 RD Sharma Solutions - Chapter 1 Relations - Exercise 1.1 | Set 2
Question 11. Is it true every relation which is symmetric and transitive is also reflexive? Give reasons.Solution: We will verify this by taking an example. Consider a set A = {1, 2, 3} and a relation R on A such that R = { (1, 2), (2,1), (2,3), (1,3) } The relation R over the set A is symmetric and transitive. But, it is not reflexive. (1,1),(2, 2
14 min read
three90RightbarBannerImg