Introduction to Composition
Composition is the process of applying one function to the result of another. It's like an assembly line 🏭 where the output of one machine becomes the input for the next.
If we have two functions, and , the composition of with (denoted as ) is a new function that maps an element from the domain of directly to an element in the codomain of .
1. Composition of Functions
Let and be two functions. The composition of f and g, denoted by (read as "g composed with f" or "g of f"), is a new function that maps an element from set A directly to an element in set C.
How it works: To find , you first compute the inner function , and then you use that result as the input for the outer function .
Condition for Existence: For the composition to be defined, the range of f must be a subset of the domain of g. In our factory analogy, this means the parts produced by the first machine () must fit into the second machine ().
Non-Commutative: The order of composition matters. In general, .
Example: Let and .
- .
- .
As you can see, .
2. Invertible Functions
A function is invertible if we can define an "undo" operation that takes any output and maps it back to its original input. This "undo" function is called the inverse, denoted by .
Condition for Invertibility: A function is invertible if and only if it is a bijective function (i.e., it must be both one-one and onto).
- Why One-one? For the inverse to be a function, each output must map back to a single, unique input. If the original function were many-one, its inverse would have to map one input to multiple outputs, which violates the definition of a function.
- Why Onto? For the inverse to be defined for every element in its domain (which is the codomain of ), the original function's range must be equal to its codomain. If is 'into', there would be elements in the inverse's domain with nowhere to map to.
Properties of Inverse Functions:
- If is invertible, then is also bijective.
- The domain of is the range (codomain) of .
- The range of is the domain of .
- .
- (the "socks and shoes" rule - you undo the last operation first).
Graphical Property: The graph of is the reflection of the graph of across the line .
3. How to Find the Inverse of a Function ↔️
To find the inverse of a function algebraically:
- Check for Bijectivity: First, verify that the function is both one-one and onto in its given domain and codomain.
- Replace f(x) with y: Write the equation as .
- Swap x and y: Interchange the variables and in the equation. This is the key step that represents the inversion.
- Solve for y: Make the subject of the new equation. This new expression for is the inverse function, .
Example: Find the inverse of the bijective function .
Replace f(x) with y: .
Swap x and y: .
Solve for y:
.
State the Inverse: .
Example 1: Finding Compositions
Question: Let and (Greatest Integer Function). Find and .
Explanation: Function composition means we apply the inner function first, and then apply the outer function to the result.
Part 1: Find
Evaluate the inner function: First, find . .
Evaluate the outer function: Now, use the result from step 1 as the input for .
.
Part 2: Find
Evaluate the inner function: First, find .
.
Evaluate the outer function: Now, use the result from step 1 as the input for .
.
Example 2: Proving a Function is Bijective
Question: Show that the function defined by is bijective.
Explanation: A function is bijective if it is both one-one (injective) and onto (surjective).
1. Check for One-one (Injective): We must show that if , then .
- Assume .
- . Since the condition holds, the function is one-one.
2. Check for Onto (Surjective): We must show that for any in the codomain , there exists a pre-image in the domain such that .
- Let .
- Solve for : .
- For any real number , the expression produces a valid real number . Thus, every element in the codomain has a pre-image.
- The function is onto.
Conclusion: Since f is both one-one and onto, it is bijective.
Example 3: Finding the Inverse of a Linear Function
Question: Find the inverse of the function .
Explanation: From the previous example, we know this function is bijective, so an inverse exists.
- Replace with y: .
- Swap the variables x and y: .
- Solve for the new y: .
- State the inverse function: The new expression for y is the inverse function, .
Example 4: Finding the Inverse of a Rational Function
Question: Let be defined by . Find its inverse.
Explanation: We assume the function is bijective as defined by its specific domain and codomain.
- Replace with y: .
- Swap x and y: .
- Solve for y:
- .
- State the inverse function:
Example 5: Composition of a Function and its Inverse
Question: Let . Verify that .
Explanation: An important property of inverse functions is that composing a function with its inverse (in either order) results in the identity function, .
Recall the Functions:
- From Example 3, we know .
Perform the Composition: This means we substitute the entire expression for into the 'x' of .
.
Simplify: The '4's cancel out: .
Conclusion: We have verified that .
Example 6: Finding Inverse of a Quadratic Function
Question: Let be a function defined by . Find the inverse of f.
Explanation: 1. Check Bijectivity:
- The standard function is many-one. However, by restricting the domain to , we ensure that no two x-values produce the same y-value, making it one-one.
- The range of on this domain is , which is equal to the given codomain. This makes the function onto.
Since the function is bijective on the given domain/codomain, an inverse exists.
2. Find the Inverse:
- Set y=f(x): .
- Swap x and y: .
- Solve for y: .
3. Choose the Correct Root: The range of the inverse function, , must be the domain of the original function, . The domain of was given as . Therefore, the output of our inverse function () must be non-negative. To ensure this, we must choose the positive root.
.
Answer: .
Example 6: Finding Inverse of a Quadratic Function
Question: Let be a function defined by . Find the inverse of f.
Explanation: 1. Check Bijectivity:
- The standard function is many-one. However, by restricting the domain to , we ensure that no two x-values produce the same y-value, making it one-one.
- The range of on this domain is , which is equal to the given codomain. This makes the function onto. Since the function is bijective on the given domain/codomain, an inverse exists.
2. Find the Inverse:
- Set y=f(x): .
- Swap x and y: .
- Solve for y: .
3. Choose the Correct Root: The range of the inverse function, , must be the domain of the original function, . The domain of was given as . Therefore, the output of our inverse function () must be non-negative. To ensure this, we must choose the positive root. .
Answer: .
Example 7: Composition with Itself
Question: If , find .
Explanation: We solve this by composing the function in stages.
Stage 1: Calculate
.
Substitute this into the function's definition:
Stage 2: Calculate
This is the same as . We use the result from Stage 1 as the input.
Answer: .
Example 8: Finding Domain of a Composition
Question: Let and . Find the domain of .
Explanation: 1. Define the Composite Function:
.
2. Determine the Condition for the Domain: The expression is defined in the real numbers only if the quantity inside the square root is non-negative.
Condition: .
3. Solve the Inequality: .
Formal Approach: The domain of is the set of all in the domain of such that the output is in the domain of .
- Domain of is .
- Domain of is .
- We need the output of , which is , to be in the domain of . So, , which means . This gives .
Answer: The domain is .
Example 9: Finding a Value in a Composition
Question: If and , find a value of x for which .
Explanation: 1. Calculate :
2. Calculate :
3. Set the Expressions Equal and Solve: This is a quadratic equation. We use the quadratic formula Here, . .
Answer: Two possible values are and .
Example 10: Inverse of a Bijective Piecewise Function
Question: Find the inverse of the function .
Explanation: We find the inverse for each piece separately, paying close attention to the domains and ranges.
1. Analyze the First Piece:
- Function: for the domain .
- Range: For this domain, the range is also .
- Inverse: Swapping and gives , so . The domain of this inverse piece is the range of the original piece, so this is valid for .
2. Analyze the Second Piece:
- Function: for the domain .
- Range: For this domain, the range is .
- Inverse: Swapping and gives , so . Since the range of the inverse must be the domain of the original (), we choose the positive root. So, . The domain of this inverse piece is the range of the original piece, so this is valid for .
3. Combine the Inverse Pieces: We combine the results from each part to define the complete inverse function.
Answer: