Concept 07 / 10Sets, Relations and Functions
Composition of Functions and Inverse Functions
How gof is formed and what its domain really is, why composition is associative but not commutative, when an inverse exists, how to compute it, the reflection of graphs in y = x, and solving f(x) = f^-1(x) correctly.
Composition means feeding the output of one function into another. If and , then is defined by . Read it right to left: apply first, then . The composite makes sense for an input only if lands inside the domain of . So for real functions given by formulas,
.
It is a serious mistake to find the domain by simplifying the formula for first. For and , the formula looks as though it is defined everywhere, but is only defined for , because is.
Algebraic properties. Composition is associative: , since both mean 'apply , then , then '. It is not commutative: with and , while . The identity function is neutral: . Properties carry through composition: the composite of two one-one functions is one-one, and of two onto functions is onto. Partial converses: if is one-one then must be one-one, and if is onto then must be onto. These are the favourite true/false options in JEE multiple-correct questions.
Inverse functions. The inverse of is a function that undoes : for all and for all . For to be a function on all of , each needs exactly one pre-image. 'At least one' is onto-ness and 'at most one' is one-one-ness, so has an inverse if and only if it is a bijection. The inverse is then unique and is itself a bijection, with . For a composition, : to undo 'put on socks, then shoes', you take off the shoes first.
Computing the inverse: write , solve for in terms of , then rename the variable. For from to : gives , so . When the function is not one-one on its natural domain, restrict the domain to a piece where it is monotonic and take the inverse there. This is exactly how inverts on , and how the inverse trigonometric functions are defined.
Graphs. The point lies on the graph of exactly when lies on the graph of , and swapping coordinates is reflection in the line . So the graph of is the mirror image of the graph of in , as shown for and : the point on one matches on the other. Consequently the domain and range swap, and at mirrored points the slopes are reciprocals: .
Solving . If is strictly increasing, the two graphs can meet only on the line , so the equation reduces to . Proof: suppose with , and let , so . Then , and since is increasing this forces . So , and . The case is symmetric. If is decreasing, this shortcut fails: the graphs can also meet off the line , at pairs of points symmetric about it. Brain-Teaser 3 shows this happening.
Key Takeaways:
- : apply first. .
- Composition is associative but not commutative.
- one-one one-one; onto onto.
- exists is bijective; .
- The graph of is the reflection of the graph of in ; domain and range swap.
- For increasing : . Not valid for decreasing .
- on the codomain, and on the domain; these are different identity maps when .
- Pitfall: finding the domain of a composite from its simplified formula.
Brain-Teaser 1: Let and . Find and with their domains. Are they the same function?
Solution: , defined only where is, so . , defined for all real , since always. These are different functions: different domains, and different values would appear if both were defined at negative . The key fact is , not . The square root always returns the non-negative root, so it undoes squaring only for non-negative inputs.
Brain-Teaser 2: Let be . Find and solve .
Solution: Write . On it is increasing, and its range is , so it is a bijection. Solving with gives , so . Because is increasing, reduces to : , so or . Check: and . Solving directly would also work, but it leads to a quartic; the monotonicity shortcut turns it into a quadratic.
Brain-Teaser 3: Let on . Solve . Why does the shortcut fail here?
Solution: is a strictly decreasing bijection with . The equation gives , so , and . At , , so the graphs meet at , which is not on . Similarly they meet at . Meanwhile gives only , so the shortcut would have lost two solutions. For a decreasing function, reflecting the graph in can create crossing points that come in mirror pairs, and . The shortcut depended on monotonic increase, which is why the hypothesis matters.
Practice this concept
Free · no account required · instant solutions