Subject: Class 12 Mathematics Chapter: Composite Functions Topic: 1.7 Composite Functions – Find and evaluate composite functions
When we have two functions, we can apply them one after the other to create a new function. This process is called composition of functions. If f and g are two functions, then the composition f composed with g, written as f of g, is the function that first applies g and then applies f. Composition allows us to build complex behavior from simple building blocks, and it is one of the most powerful ideas in mathematics.
Composition is used everywhere: the chain rule in calculus is a rule for differentiating composite functions, and the notion of inverse functions is closely tied to composition, since a function and its inverse compose to give the identity. Understanding how to evaluate and simplify compositions is therefore essential for the whole of Class 12 mathematics.
In this chapter we define composite functions, learn the notation f(g(x)), study the domain of a composite function, and investigate the fact that composition is generally not commutative. We solve many worked examples step by step, including cases with three functions and cases where we must decide which functions can be composed.
Let f : B to C and g : A to B be two functions such that the range of g is contained in the domain of f. The composite function f composed with g, written as f of g, is the function from A to C defined by (f of g)(x) = f(g(x)). We first evaluate g at x, then apply f to the result.
The notation can be confusing because the order is read from right to left: f of g means g first, then f. It is essential to remember this order, because composition is not commutative: f of g is generally different from g of f.
Example 1: Let f(x) = 2x + 1 and g(x) = x squared. Find (f of g)(3) and (g of f)(3). Solution: - Step 1: First compute g(3) = 3 squared = 9. - Step 2: Then (f of g)(3) = f(9) = 2(9) + 1 = 19. - Step 3: Now compute f(3) = 2(3) + 1 = 7. - Step 4: Then (g of f)(3) = g(7) = 7 squared = 49. - Step 5: Since 19 is not equal to 49, f of g differs from g of f.
Example 2: Let f(x) = x + 3 and g(x) = 2x. Find the formula for (f of g)(x). Solution: - Step 1: Evaluate g(x) = 2x. - Step 2: Apply f: f(g(x)) = f(2x) = 2x + 3. - Step 3: Hence (f of g)(x) = 2x + 3. - Step 4: Note that (g of f)(x) = g(x + 3) = 2(x + 3) = 2x + 6, which is different.
Example 3: Let f(x) = x squared and g(x) = x + 1. Find (g of f)(x) and (f of g)(x). Solution: - Step 1: (g of f)(x) = g(f(x)) = g(x squared) = x squared + 1. - Step 2: (f of g)(x) = f(g(x)) = f(x + 1) = (x + 1) squared = x squared + 2x + 1. - Step 3: The two composites are different, confirming non-commutativity. - Step 4: Always apply the inner function first.
For the composite f of g to be defined, the outputs of g must be acceptable inputs of f. In real-valued functions, this means we must sometimes restrict the domain of x. To find the domain of (f of g)(x), we take the domain of x that makes g(x) valid and such that g(x) lies in the domain of f.
A common examination problem asks whether a given composition is defined and, if so, to find its domain. For example, if f(x) = square root of x and g(x) = x - 4, then (f of g)(x) = square root of (x - 4), which is defined only when x is greater than or equal to 4.
Example 4: If f(x) = square root of x and g(x) = x - 2, find (f of g)(x) and its domain. Solution: - Step 1: (f of g)(x) = f(g(x)) = f(x - 2) = square root of (x - 2). - Step 2: The square root is defined only when x - 2 is greater than or equal to 0. - Step 3: Hence the domain is x is greater than or equal to 2. - Step 4: The range is all non-negative real numbers.
Example 5: If f(x) = 1/x and g(x) = x + 1, find (f of g)(x) and its domain. Solution: - Step 1: (f of g)(x) = f(x + 1) = 1/(x + 1). - Step 2: The expression is undefined when x + 1 = 0, that is, x = -1. - Step 3: The domain is all real numbers except -1. - Step 4: Note that x = -1 must be excluded even though g itself is defined everywhere.
Example 6: Let f(x) = 2x and g(x) = 3x - 1. Find (f of f)(x), the composition of f with itself. Solution: - Step 1: (f of f)(x) = f(f(x)) = f(2x) = 2(2x) = 4x. - Step 2: The composition doubles the input twice. - Step 3: Similarly (g of g)(x) = g(3x - 1) = 3(3x - 1) - 1 = 9x - 4. - Step 4: Composing a function with itself is a useful way to model repeated application.
Composition is associative but not commutative. Associativity means that (f of g) of h = f of (g of h), so the grouping of three functions does not matter as long as the order is preserved. This allows us to write f of g of h without ambiguity.
The identity function, denoted I, has the property that f of I = f and I of f = f for any function f. This is why the identity behaves like the number 1 for composition, and it is the key to defining inverse functions.
Example 7: Let f(x) = 2x, g(x) = x + 1 and h(x) = x squared. Verify that composition is associative for these functions. Solution: - Step 1: Compute (f of g) of h by applying h first, then g, then f: g(h(x)) = g(x squared) = x squared + 1, then f gives 2(x squared + 1) = 2x squared + 2. - Step 2: Compute f of (g of h) by applying h first, then g, then f: g(h(x)) = x squared + 1, then f gives 2(x squared + 1) = 2x squared + 2. - Step 3: Both groupings produce the same result, 2x squared + 2. - Step 4: This confirms associativity: the grouping of functions does not change the final composite.
Example 8: If I(x) = x is the identity function and f(x) = x squared + 1, verify that f of I = f and I of f = f. Solution: - Step 1: (f of I)(x) = f(I(x)) = f(x) = x squared + 1. - Step 2: (I of f)(x) = I(f(x)) = f(x) = x squared + 1. - Step 3: Both equal f(x), confirming the identity acts neutrally. - Step 4: This neutrality is the basis for inverse functions.
Example 9: Let f(x) = x + 5 and g(x) = x - 5. Find (f of g)(x) and (g of f)(x). Solution: - Step 1: (f of g)(x) = f(x - 5) = (x - 5) + 5 = x. - Step 2: (g of f)(x) = g(x + 5) = (x + 5) - 5 = x. - Step 3: Both composites equal the identity function. - Step 4: Hence f and g are inverses of each other.
| Composition | Meaning | Value at x |
|---|---|---|
| (f of g) | Apply g first, then f | f(g(x)) |
| (g of f) | Apply f first, then g | g(f(x)) |
| (f of f) | Apply f twice | f(f(x)) |
| (f of g) of h | Apply h, then g, then f | f(g(h(x))) |
| Property | Statement | Meaning |
|---|---|---|
| Not commutative | f of g is not generally g of f | Order matters |
| Associative | (f of g) of h = f of (g of h) | Grouping does not matter |
| Identity | f of I = I of f = f | I is neutral |
| Inverse | f of f inverse = f inverse of f = I | Undoes the function |
flowchart TD
A[Composite Functions] --> B[Definition]
A --> C[Order Matters]
A --> D[Domain]
A --> E[Properties]
B --> F[f of g x = f g x]
B --> G[Apply inner function first]
C --> H[Not commutative]
D --> I[g x must be in domain of f]
E --> J[Associative]
E --> K[Identity function]
E --> L[Leads to inverses]
Composite functions extend the power of single functions by chaining them together, and the rules for composing them form a small but crucial algebra of operations. The most important ideas are the order of application, which makes composition non-commutative, and the identity function, which behaves as the neutral element of composition. Associativity ensures that chains of three or more functions can be evaluated in any grouping as long as the order is preserved. These properties are not merely theoretical; they are the foundation of the chain rule in calculus and of the theory of inverse functions. By practicing substitutions and domain checks, a student builds fluency with composition that will be needed throughout Class 12 and beyond. The worked examples in this chapter provide a reliable pattern for solving every composition problem in the board examination.