PYQ Vault

MHT-CET Maths · Sets, Relations and Functions

Composite Functions — f∘g, Iteration and Functional Identities

(f∘g)(x) = f(g(x)): apply the inner function first, then the outer — evaluate numerically from the inside out, recover f from a given f(g(x)) by matching shapes, and prove a functional identity by simplifying the argument.

Why this matters

21 PYQs at 10% HARD. The stems are a chain like f(g(g(f(1)))) evaluated step by step, f(f(x)) = x used to fix a parameter, and the log identity f(2x/(1 + x²)) = 2f(x) with its cubic twin. One HARD question asks for g∘g∘f as a formula and is answered by composing in two steps rather than one. Nothing here is more than substitution done in the right order.

Concept 1 of 4: Evaluate a Composite at a Point: Innermost First

f(g(g(f(1))))f(g(g(f(1)))) is four separate evaluations. Start with f(1)f(1), feed the number into gg, feed that into gg again, then into ff. Never expand the formula.

Definition

  • f(x)=x2+1f(x) = x^2 + 1, g(x)=1xg(x) = \dfrac1x: f(1)=2→g(2)=12→g ⁣(12)=2→f(2)=5f(1) = 2 \to g(2) = \dfrac12 \to g\!\left(\dfrac12\right) = 2 \to f(2) = 5.
  • f(x)=3x−25x+3f(x) = \dfrac{3x - 2}{5x + 3}: f(1)=18f(1) = \dfrac18, f ⁣(18)=3/8−25/8+3=−13/829/8=−1329f\!\left(\dfrac18\right) = \dfrac{3/8 - 2}{5/8 + 3} = \dfrac{-13/8}{29/8} = -\dfrac{13}{29}.
  • g(f(x))g(f(x)) where ff is a trigonometric expression that simplifies to a CONSTANT: sin⁡2x+sin⁡2 ⁣(x+π3)+cos⁡xcos⁡ ⁣(x+π3)=54\sin^2 x + \sin^2\!\left(x + \tfrac{\pi}{3}\right) + \cos x\cos\!\left(x + \tfrac{\pi}{3}\right) = \dfrac54 for all xx, so g(f(x))=g ⁣(54)g(f(x)) = g\!\left(\dfrac54\right), whatever gg is.
  • Order matters: f∘g≠g∘ff \circ g \ne g \circ f in general; when they ARE equal (f(x)=3x+45x−7f(x) = \dfrac{3x + 4}{5x - 7}, g(x)=7x+45x−3g(x) = \dfrac{7x + 4}{5x - 3}), it is because each is the other's inverse and both composites equal xx.

Composition

(f∘g)(x)=f(g(x))evaluate inside→outside(f \circ g)(x) = f(g(x)) \qquad \text{evaluate inside} \to \text{outside}
(f ∘ g)(x) = f(g(x)) — do g firstxgg(x)ff(g(x))Reverse the order and you usually get a different result: f∘g ≠ g∘f.

Worked example

If f(x)=2x−1f(x) = 2x - 1 and g(x)=x2g(x) = x^2, find f(g(f(2)))f(g(f(2))).
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

MHT-CET · 2024 · 12th May Shift 2 · Q126Easy

Example 1 · Sets, Relations and Functions · Composite Functions — f∘g, Iteration and Functional Identities

If f(x)=x2+1f(x) = x^2+1 and g(x)=1xg(x) = \frac{1}{x}, then the value of f(g(g(f(x))))f(g(g(f(x)))) at x=1x = 1 is

Reading f(g(g(f(x)))) as (f∘g)² or as f²g²

It is a four-step chain, evaluated one function at a time from the inside. Option (A) 44 is f(g(1))f(g(1))-style short-cutting; the chain gives 55.

Concept 2 of 4: Composite as a Formula: Substitute in Two Steps, Then Simplify

For g∘g∘fg \circ g \circ f, first find g(g(u))g(g(u)) in terms of uu, then put u=f(x)u = f(x). Composing a rational function with itself first keeps the algebra to one fraction.

Definition

  • g(x)=x+1x+2g(x) = \dfrac{x + 1}{x + 2}: g(g(u))=u+1u+2+1u+1u+2+2=2u+33u+5g(g(u)) = \dfrac{\frac{u + 1}{u + 2} + 1}{\frac{u + 1}{u + 2} + 2} = \dfrac{2u + 3}{3u + 5}. With u=f(x)=x2−xu = f(x) = \dfrac{x}{2 - x}: 2u+3=6−x2−x2u + 3 = \dfrac{6 - x}{2 - x} and 3u+5=10−2x2−x3u + 5 = \dfrac{10 - 2x}{2 - x}, so (g∘g∘f)(x)=6−x10−2x(g \circ g \circ f)(x) = \dfrac{6 - x}{10 - 2x} — the denominators cancel in the ratio, which is why the answer is clean.\n- f(f(x))f(f(x)) for f(x)=αxx+1f(x) = \dfrac{\alpha x}{x + 1}: α2x(α+1)x+1\dfrac{\alpha^2 x}{(\alpha + 1)x + 1}. Equal to xx for all xx needs α+1=0\alpha + 1 = 0 and α2=1\alpha^2 = 1: α=−1\alpha = -1.
  • (f∘g)(x)(f \circ g)(x) with f(x)=2x−3f(x) = 2x - 3, g(x)=x3+5g(x) = x^3 + 5: 2x3+72x^3 + 7. With f(x)=3x+10f(x) = 3x + 10, g(x)=x2−1g(x) = x^2 - 1: 3x2+73x^2 + 7.
  • Simplify the inner composite fully before substituting the outer; a nested fraction left unsimplified is where sign errors live.

Two-step composition

(g∘g∘f)(x)=g(g(u))∣u=f(x)(g \circ g \circ f)(x) = g\big(g(u)\big)\Big|_{u = f(x)}

Worked example

If f(x)=x+1f(x) = x + 1 and g(x)=xx+1g(x) = \dfrac{x}{x + 1}, find (g∘g∘f)(x)(g \circ g \circ f)(x).
Practise this conceptself-check · 4 quick reps

The same idea in a real exam question:

MHT-CET · 2023 · 10th May Shift 2 · Q147Moderate

Example 2 · Sets, Relations and Functions · Composite Functions — f∘g, Iteration and Functional Identities

Let f(x)=αxx+1, x≠−1f(x) = \frac{\alpha x}{x+1},\, x \neq -1, then for α= ?\alpha = \,?, f(f(x))=xf(f(x)) = x.

Matching α² = 1 alone

α=1\alpha = 1 satisfies α2=1\alpha^2 = 1 but not α+1=0\alpha + 1 = 0; f(f(x))=xf(f(x)) = x needs BOTH coefficient equations, so α=−1\alpha = -1, option (D).

Concept 3 of 4: Recover f From f(g(x)): Match the Shape, or Evaluate at the Right x

If f(g(x))f(g(x)) can be rewritten as an expression in g(x)g(x) alone, that expression IS ff. If only a number is asked, pick the xx that makes g(x)g(x) the wanted input.

Definition

  • g(x)=1+xg(x) = 1 + \sqrt x, f(g(x))=3+2x+x=(1+x)2+2=g(x)2+2f(g(x)) = 3 + 2\sqrt x + x = (1 + \sqrt x)^2 + 2 = g(x)^2 + 2, so f(x)=x2+2f(x) = x^2 + 2 and f(f(x))=(x2+2)2+2=x4+4x2+6f(f(x)) = (x^2 + 2)^2 + 2 = x^4 + 4x^2 + 6.
  • g(x)=x2+x−1g(x) = x^2 + x - 1, (g∘f)(x)=4x2−10x+5(g \circ f)(x) = 4x^2 - 10x + 5, find f(2)f(2): put x=2x = 2: g(f(2))=16−20+5=1g(f(2)) = 16 - 20 + 5 = 1, so f(2)2+f(2)−2=0f(2)^2 + f(2) - 2 = 0, f(2)=1f(2) = 1 or −2-2; the option list carries 11.
  • Look for a perfect square or a known expansion in the given composite; 3+2x+x3 + 2\sqrt x + x is (1+x)2+2(1 + \sqrt x)^2 + 2, not a coincidence.

Shape matching

f(g(x))=Φ(g(x)) ⇒ f=Φf(g(x)) = \Phi\big(g(x)\big) \ \Rightarrow\ f = \Phi

Worked example

If g(x)=2x+1g(x) = 2x + 1 and f(g(x))=4x2+4x+3f(g(x)) = 4x^2 + 4x + 3, find f(x)f(x).
Practise this conceptself-check

The same idea in a real exam question:

MHT-CET · 2024 · 12th May Shift 1 · Q106Moderate

Example 3 · Sets, Relations and Functions · Composite Functions — f∘g, Iteration and Functional Identities

If g(x)=1+xg(x)=1+\sqrt{x} and f(g(x))=3+2x+xf(g(x))=3+2\sqrt{x}+x, then f(f(x))f(f(x)) is

Solving for f(x) when only f(2) is asked

Finding ff as a formula from (g∘f)(x)=4x2−10x+5(g \circ f)(x) = 4x^2 - 10x + 5 needs a square root of a quadratic. One substitution, x=2x = 2, gives a quadratic in the number f(2)f(2).

Concept 4 of 4: Functional Identities: f(2x/(1 + x²)) = 2f(x) and the Cubic Twin

For f(x)=log⁡1−x1+xf(x) = \log\dfrac{1 - x}{1 + x}, substituting a rational expression and factoring 1∓u1 \mp u turns the argument into a power of 1−x1+x\dfrac{1 - x}{1 + x}; the log pulls the power out front.

Definition

  • u=2x1+x2u = \dfrac{2x}{1 + x^2}: 1−u=(1−x)21+x21 - u = \dfrac{(1 - x)^2}{1 + x^2}, 1+u=(1+x)21+x21 + u = \dfrac{(1 + x)^2}{1 + x^2}, so 1−u1+u=(1−x1+x)2\dfrac{1 - u}{1 + u} = \left(\dfrac{1 - x}{1 + x}\right)^2 and f(u)=2f(x)f(u) = 2f(x).
  • f(x)=log⁡1+x1−xf(x) = \log\dfrac{1 + x}{1 - x}, g(x)=3x+x31+3x2g(x) = \dfrac{3x + x^3}{1 + 3x^2}: 1+g=(1+x)31+3x21 + g = \dfrac{(1 + x)^3}{1 + 3x^2}, 1−g=(1−x)31+3x21 - g = \dfrac{(1 - x)^3}{1 + 3x^2}, so (f∘g)(x)=3f(x)(f \circ g)(x) = 3f(x).
  • The pattern: 2x1+x2\dfrac{2x}{1 + x^2} is the tanh⁡\tanh-double-angle shape, 3x+x31+3x2\dfrac{3x + x^3}{1 + 3x^2} the triple; the log of the ratio scales by 22 and 33 respectively.
  • Compute 1−u1 - u and 1+u1 + u SEPARATELY over the common denominator; the denominators cancel in the ratio, which is why the answer is clean.

The two identities

f(x)=log⁡1−x1+x:f ⁣(2x1+x2)=2f(x),f ⁣(3x+x31+3x2)=3f(x)f(x) = \log\frac{1 - x}{1 + x}:\quad f\!\left(\frac{2x}{1 + x^2}\right) = 2f(x),\qquad f\!\left(\frac{3x + x^3}{1 + 3x^2}\right) = 3f(x)

Worked example

If f(x)=log⁡1+x1−xf(x) = \log\dfrac{1 + x}{1 - x}, show that f(a)+f(b)=f ⁣(a+b1+ab)f(a) + f(b) = f\!\left(\dfrac{a + b}{1 + ab}\right).
Practise this conceptself-check

The same idea in a real exam question:

MHT-CET · 2023 · 4th May Shift 1 · Q133Moderate

Example 4 · Sets, Relations and Functions · Composite Functions — f∘g, Iteration and Functional Identities

If f(x)=log⁡e ⁣1−x1+x, ∣x∣<1f(x)=\log_e\!\frac{1-x}{1+x},\,|x|<1, then f ⁣(2x1+x2)f\!\left(\frac{2x}{1+x^2}\right) is equal to

Reading the sign of the ratio backwards

1−u1+u\dfrac{1 - u}{1 + u} with u=2x1+x2u = \dfrac{2x}{1 + x^2} is (1−x1+x)2\left(\dfrac{1 - x}{1 + x}\right)^2, positive power. Option (B) −2f(x)-2f(x) is the inverted ratio.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (4)

Watch out for (4)

Test yourself on Sets, Relations and Functions

15 past MHT-CET questions from this chapter, timed at 27 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.