🎓 BookMCQ
← Back to 1. Basics before calculus

📝 Composition of Functions (17 MCQs)

Nested Functions and Successive Input Transformations

Composition of functions forms a new function by using the output of one function as the input of another. Written as (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)), it belongs to the algebra of functions and provides a foundation for the chain rule in differential calculus. Composition describes multistage relationships in which one transformation feeds directly into a second transformation.

Why Functions Are Applied in a Specific Order

Many mathematical processes involve successive transformations rather than a single direct operation. A measurement may first be converted into another unit and then used in a physical formula. The order matters because the inner function determines the value supplied to the outer function. Reversing the order generally changes the resulting relationship.

Evaluating a Composition from Inner to Outer Function

For (f∘g)(x)(f\circ g)(x), first calculate g(x)g(x), then substitute that expression into ff. The domain requires xx to belong to the domain of gg and g(x)g(x) to belong to the domain of ff. The reverse composition (g∘f)(x)(g\circ f)(x) must be evaluated separately and may have a different domain.

Calculating Two Compositions with Linear Functions

Let f(x)=2x+1f(x)=2x+1 and g(x)=x2g(x)=x^2. Then (f∘g)(x)=2x2+1(f\circ g)(x)=2x^2+1, while (g∘f)(x)=(2x+1)2(g\circ f)(x)=(2x+1)^2. At x=2x=2, the results are 9 and 25, respectively. The unequal values demonstrate that composition is generally not commutative.

Composition in Modelling and the Chain Rule

Compositions model connected processes in which one quantity influences another indirectly. In calculus, the chain rule differentiates nested functions according to ddxf(g(x))=f′(g(x))g′(x)\frac{d}{dx}f(g(x))=f'(g(x))g'(x), when the required derivatives exist. The formula accounts for the combined rates of change of the inner and outer transformations.

Errors in the Order and Domain of Composition

'Composition is the same as multiplication' is false because f(g(x))f(g(x)) applies one function to another's output. 'Changing the order makes no difference' ignores the general noncommutativity of composition. 'The domain is always the intersection of the original domains' is incorrect because the inner output must also belong to the outer function's domain.

Composition Problems in Calculus Examinations

Practise evaluating f(g(x))f(g(x)) and g(f(x))g(f(x)) separately, simplifying nested expressions, and determining their domains. Recognise compositions from formulas, tables, and applied situations. For differentiation questions, identify the inner and outer functions before applying the chain rule, and evaluate the outer derivative at the inner function rather than at the original input.

Key Terms of Function Composition

  • Composition - Application of one function to another's output.
  • Inner function - Function evaluated first.
  • Outer function - Function applied to the inner output.
  • Composite function - Function produced by composition.
  • Chain rule - Rule for differentiating nested functions.
  • Noncommutative - Property where reversing order changes results.
5
Easy
7
Medium
5
Hard

📝 All Composition of Functions MCQs

Q1. What is the definition of the composition \(f \\circ g)(x)\?

A.\(f \\circ g)(x)=f(x)+g(x)\
B.\(f \\circ g)(x)=f(g(x))\ ✅
C.\(f \\circ g)(x)=g(f(x))\
D.\(f \\circ g)(x)=f(x)\\cdot g(x)\
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The composition \(f\\circ g)\ means we first apply \g\ to \x\ and then apply \f\ to the result, giving the formula \(f\\circ g)(x)=f(g(x))\. This is the standard definition used throughout calculus.

Q2. The domain of \f\\circ g\ consists of all \x\ such that ...

A.\x\ is in the domain of \f\ and \g(x)\ is in the domain of \g\
B.\x\ is in the domain of \g\ and \g(x)\ is in the domain of \f\
C.\x\ is in the domain of \f\ only ✅
D.\x\ is in the domain of \g\ only
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: For the composition to be defined, \x\ must first belong to the domain of \g\; after evaluating \g(x)\, that value must lie in the domain of \f\. Hence the correct condition is that \x\ is in the domain of \g\ and \g(x)\ is in the domain of \f\.

Q3. Given \f(x)=\\sqrt{x}\ and \g(x)=x-2\, what is the domain of \(f\\circ g)(x)\?

A.\( -\\infty,2)\
B.\[2,\\infty)\ ✅
C.\( -\\infty,\\infty)\
D.\(0,\\infty)\
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: To have \\\sqrt{g(x)}\ defined we need \g(x)\\ge 0\; that is \x-2\\ge0\ which gives \x\\ge2\. There are no other restrictions, so the domain is the interval \[2,\\infty)\.

Q4. If \(f\\circ g)(2)=5\ and \g(2)=1\, what is \f(1)\?

A.2
B.5 ✅
C.1
D.0
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Since \(f\\circ g)(2)=f(g(2))\, we have \f(1)=5\. The given values directly determine the needed output of \f\ at the argument \1\.

Q5. Suppose \f\ is increasing and \g\ is decreasing on an interval where the composition is defined. What can be said about \f\\circ g\ on that interval?

A.It is increasing
B.It is decreasing ✅
C.It is constant
D.Cannot be determined
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: A decreasing function \g\ reverses the order of inputs; applying an increasing function \f\ to those outputs preserves the reversal, so the overall composition \f\\circ g\ is decreasing on the interval.

Q6. If \(f\\circ g)(x)=x\ for every \x\ in the domain of \g\, which statement is true?

A.\g\ is a right inverse of \f\ ✅
B.\g\ is a left inverse of \f\
C.\f\ and \g\ are identical
D.No specific relationship can be inferred
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The equation \(f\\circ g)(x)=x\ means that applying \g\ then \f\ returns the original \x\; therefore \g\ acts as a right inverse of \f\ (i.e., \f\∘\g\=Id).

Q7. Let \f(x)=\\begin{cases}x+2,&x<0\\\\x-1,&x\\ge0\\end{cases}\ and \g(x)=\\begin{cases}-x,&x\\le1\\\\x^2,&x>1\\end{cases}\. For which \x\ are both \(f\\circ g)(x)\ and \(g\\circ f)(x)\ defined and equal?

A.{0}
B.{1}
C.{0,1} ✅
D.\\\varnothing\
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Evaluating each piece shows that at \x=0\ we have \g(0)=-0=0\ and \f(0)=-1\; both compositions give \-1\. At \x=1\, \g(1)=-1\ and \f(1)=0\; again both yield \0\. No other \x\ satisfy the equality, so the set is \\{0,1\\}.

Q8. For \f(x)=x^{2}\ and \g(x)=x+3\, solve \(f\\circ g)(x)=(g\\circ f)(x)\.

A.-1 ✅
B.0
C.1
D.No solution
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Compute \f(g(x))=(x+3)^{2}=x^{2}+6x+9\ and \g(f(x))=x^{2}+3\. Equating gives \6x+9=3\ so \6x=-6\ and \x=-1\. Thus \-1\ is the unique solution.

Q9. If \f(x)=\\dfrac{1}{x-1}\ and \g(x)=\\sqrt{x}\, what are the domains of \f\\circ g\ and \g\\circ f\?

A.Domain of \f\\circ g\: \[0,\\infty)\\setminus\\{1\\}\; Domain of \g\\circ f\: \(1,\\infty)\ ✅
B.Domain of \f\\circ g\: \(1,\\infty)\; Domain of \g\\circ f\: \[0,\\infty)\
C.Both compositions have domain \(1,\\infty)\
D.Both compositions have domain \[0,\\infty)\
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: For \f\\circ g\ we need \x\\ge0\ for \\\sqrt{x}\ and \\\sqrt{x}\\neq1\ (i.e., \x\\neq1\). Hence \[0,\\infty)\\setminus\\{1\\}\. For \g\\circ f\ we require \x\\neq1\ and \1/(x-1)\\ge0\, which holds when \x>1\. Thus the domain is \(1,\\infty)\.

Q10. Is composition of functions associative, i.e., does \f\\circ(g\\circ h) = (f\\circ g)\\circ h\ always hold?

A.Always true ✅
B.True only when codomains match
C.false
D.Depends on \x\
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Associativity follows from the definition: \f\\circ(g\\circ h)(x)=f(g(h(x)))\ and \(f\\circ g)\\circ h)(x)=f(g(h(x)))\. Since both expressions are identical for any \x\ where the compositions are defined, the property holds whenever the individual compositions are defined.

Q11. For invertible functions \f\ and \g\, which statement about \(f\\circ g)^{-1}\ is correct?

A.\(f\\circ g)^{-1}=g^{-1}\\circ f^{-1}\ ✅
B.\(f\\circ g)^{-1}=f^{-1}\\circ g^{-1}\
C.True only for linear functions
D.True only when \f\ and \g\ commute
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: If \y=(f\\circ g)(x)=f(g(x))\, applying \g^{-1}\ first gives \g^{-1}(f^{-1}(y))\. Hence the inverse of the composition is \g^{-1}\\circ f^{-1}\. This holds for any bijections, not just linear ones.

Q12. Compute \(f\\circ g\\circ h)(2)\ where \f(x)=\\sqrt{x},\\;g(x)=\\dfrac{1}{x},\\;h(x)=x^{3}\.

A.\\\dfrac{1}{2\\sqrt{2}}\ ✅
B.\\\sqrt{8}\
C.\\\dfrac{1}{8}\
D.2
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: First evaluate \h(2)=2^{3}=8\. Then \g(8)=1/8\. Finally \f(1/8)=\\sqrt{1/8}=1/(2\\sqrt{2})\. Hence the composition yields \1/(2\\sqrt{2})\.

Q13. If \p = f\\circ g\ with \f(x)=x^{2}\ and \g(x)=\\ln x\, what is \p(x)\ and its natural domain?

A.\p(x)=(\\ln x)^{2},\\;x>0\ ✅
B.\p(x)=x^{2}+\\ln x,\\;x\\in\\mathbb{R}\
C.\p(x)=e^{x},\\;x\\in\\mathbb{R}\
D.\p(x)=\\ln(x^{2}),\\;x>0\
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Applying \g\ first gives \g(x)=\\ln x\ (defined for \x>0\). Then \f\ squares this result, so \p(x)=(\\ln x)^{2}\. The composition inherits the domain of \g\, namely all positive real numbers.

Q14. Construct functions \f\ and \g\ such that \f\\circ g\ is the identity on \\\mathbb{R}\ but \g\\circ f\ is not. Which pair achieves this?

A.\g(x)=e^{x},\\;f(y)=\\ln y\ ✅
B.\g(x)=x^{3},\\;f(y)=\\sqrt[3]{y}\
C.\g(x)=x+1,\\;f(y)=y-1\
D.\g(x)=x^{2},\\;f(y)=\\sqrt{y}\
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Take \g:\\mathbb{R}\\to(0,\\infty)\ defined by \g(x)=e^{x}\ and \f:(0,\\infty)\\to\\mathbb{R}\ defined by \f(y)=\\ln y\. Then \(f\\circ g)(x)=\\ln(e^{x})=x\ for every real \x\, while \(g\\circ f)(y)=e^{\\ln y}=y\ only for \y>0\; thus \g\\circ f\ is not the identity on all of \\\mathbb{R}\.

Q15. Why is function composition generally not commutative?

A.Because \f\\circ g\ and \g\\circ f\ always produce different formulas
B.Because there exist functions where \f\\circ g\\neq g\\circ f\ ✅
C.Because only linear functions commute
D.None of the above
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A simple counterexample, such as \f(x)=x^{2}\ and \g(x)=x+1\, gives \(f\\circ g)(x)=(x+1)^{2}\ and \(g\\circ f)(x)=x^{2}+1\, which are not equal. Hence composition does not generally satisfy the commutative property.

Q16. Let \f(x)=e^{x}\ and \g(x)=\\ln x\. State the domain and result of \(f\\circ g)(x)\ and \(g\\circ f)(x)\.

A.\f\\circ g:\\ x>0,\\;=x;\\;g\\circ f:\\ all\\;x,\\;=x\ ✅
B.Both have domain all real and result \x\
C.Both are undefined
D.\f\\circ g\ undefined, \g\\circ f\ defined for all real
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Since \g\ requires \x>0\, \(f\\circ g)(x)=e^{\\ln x}=x\ for \x>0\. The composition \g\\circ f\ uses \f(x)=e^{x}>0\ for any real \x\, so \(g\\circ f)(x)=\\ln(e^{x})=x\ with domain \\\mathbb{R}\.

Q17. If \h=f\\circ g\ and both \f\ and \g\ are bijections, which expression gives \h^{-1}\?

A.\h^{-1}=g^{-1}\\circ f^{-1}\ ✅
B.\h^{-1}=f^{-1}\\circ g^{-1}\
C.\h\ may not be bijective
D.Inverse does not exist
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The composition of two bijections is itself a bijection. Its inverse reverses the order of application: first apply \f^{-1}\ then \g^{-1}\. Hence \h^{-1}=g^{-1}\\circ f^{-1}\. This follows directly from the definition of inverses for one-to-one and onto functions.

🔗 Related Topics (MCQs)