PYQ Vault

JEE Mains Maths · Relations and Functions

Composition, Inverse and Iterates

Functions built from other functions: composing two, recovering one from a composite, inverting a function, recognising a self-inverse map, and applying the same function many times.

Why this matters

Eighteen PYQs. Some compose two given functions or recover one from the composite; some find an inverse or the value that makes a function its own inverse; a few apply a function ten or a hundred times, which is only possible once a pattern shows. Three ideas cover the page.

Concept 1 of 3: Composing functions, and recovering one from the other

(f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)): apply gg first, then ff. To find ff when f(g(x))f(g(x)) is given, put t=g(x)t=g(x), write xx in terms of tt, and substitute. When ff and gg are polynomials, the degree of f∘gf\circ g is the product of the degrees, and matching leading coefficients fixes the unknowns.

Definition

  • (f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x)); usually f∘g≠g∘ff\circ g\ne g\circ f.
  • Recover ff: t=g(x)t=g(x), x=g−1(t)x=g^{-1}(t), then f(t)=(f∘g)(g−1(t))f(t)=(f\circ g)(g^{-1}(t)).
  • deg⁡(f∘g)=deg⁡f⋅deg⁡g\deg(f\circ g)=\deg f\cdot\deg g.

Composition

(f∘g)(x)=f(g(x))(f\circ g)(x)=f\big(g(x)\big)

Worked example

f(x)=2x+1f(x)=2x+1, g(x)=x2g(x)=x^2. Find f(g(2))f(g(2)) and g(f(2))g(f(2)).
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2023 · 13 April 2023 · Q74Moderate

Example 1 · Relations and Functions · Composition, Inverse and Iterates

For x∈Rx\in R, two real valued functions f(x)f(x) and g(x)g(x) are such that, g(x)=x+1g(x) =\sqrt{x}+ 1 and f∘g(x)=x+3−xf \circ g(x) = x + 3 -\sqrt{x}. Then f(0)f(0) is equal to

The inner function acts first

f∘gf\circ g means gg first. Reading it left to right gives g∘fg\circ f, a different function.

Concept 2 of 3: Inverse functions and self-inverse maps

Write y=f(x)y=f(x) and solve for xx: that expression in yy is f−1(y)f^{-1}(y). Only a one-one onto function has an inverse. A map ax+bcx+d\frac{ax+b}{cx+d} is its own inverse, so f(f(x))=xf(f(x))=x, exactly when a+d=0a+d=0. For an increasing function, the graph of f−1f^{-1} is the mirror image in y=xy=x, so f(x)=f−1(x)f(x)=f^{-1}(x) happens only on that line: solve f(x)=xf(x)=x.

Definition

  • y=f(x)  ⟺  x=f−1(y)y=f(x)\iff x=f^{-1}(y).
  • ax+bcx+d\frac{ax+b}{cx+d} has inverse dx−b−cx+a\frac{dx-b}{-cx+a}; it is self-inverse iff a+d=0a+d=0.
  • ff increasing: f(x)=f−1(x)  ⟺  f(x)=xf(x)=f^{-1}(x)\iff f(x)=x.

Self-inverse Möbius map

f(x)=ax+bcx+d,f∘f=id  ⟺  a+d=0f(x)=\frac{ax+b}{cx+d},\quad f\circ f=\mathrm{id}\iff a+d=0

Worked example

Find the inverse of f(x)=2x+3x−5f(x)=\frac{2x+3}{x-5}.
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2021 · Paper 12 · Q46Moderate

Example 2 · Relations and Functions · Composition, Inverse and Iterates

Let f:R−{α6}→Rf:\mathbb{R}-\left\{ \frac{\alpha}{6} \right\}\rightarrow R be defined by f(x)=5x+36x−αf(x) =\frac{5x + 3}{6x -\alpha}. Then the value of α\alpha for which (fof) (x)=x(x) =x, for all x∈R−{α6}x \in R -\left\{ \frac{\alpha}{6} \right\}, is:

Only for increasing functions

A decreasing function can meet its inverse off the line y=xy=x. The shortcut f(x)=xf(x)=x is safe only when ff is increasing.

Concept 3 of 3: Applying a function many times

Compute f∘ff\circ f, then f∘f∘ff\circ f\circ f, until a pattern appears: either a cycle, where some fkf^k is the identity so only nn modulo kk matters, or a formula in nn. A map ax+bcx+d\frac{ax+b}{cx+d} composes like the matrix (abcd)\begin{pmatrix}a&b\\c&d\end{pmatrix}, so fnf^n comes from the nnth power of that matrix.

Definition

  • f1=ff^1=f, fn+1=f∘fnf^{n+1}=f\circ f^n.
  • Cycle: fk=id⇒fn=f n mod kf^k=\mathrm{id}\Rightarrow f^n=f^{\,n\bmod k}.
  • ax+bcx+d↔(abcd)\frac{ax+b}{cx+d}\leftrightarrow\begin{pmatrix}a&b\\c&d\end{pmatrix}; composition ↔\leftrightarrow matrix product.
  • f(x)=x1+kx2⇒fn(x)=x1+nkx2f(x)=\frac{x}{\sqrt{1+kx^2}}\Rightarrow f^n(x)=\frac{x}{\sqrt{1+nkx^2}}.

A cycle

fk=id ⇒ fn=f n mod kf^k=\mathrm{id}\ \Rightarrow\ f^{n}=f^{\,n \bmod k}

Worked example

f(x)=11−xf(x)=\frac1{1-x}. Find f10(2)f^{10}(2).
Practice this conceptself-check · 4 quick reps

The same idea in a real exam question:

JEE Mains · 2022 · 26 June 2022 · Q61Moderate

Example 3 · Relations and Functions · Composition, Inverse and Iterates

Let f(x)=x−1x+1,x∈R−{0,−1,1)f(x) =\frac{x - 1}{x + 1}\mathbf{,x \in R - \{ 0, - 1,1)}. If fn+1(x)=f(fn(x))f^{n + 1}(x) = f\left( f^{n}(x) \right) for all n∈Nn\in N, then f6(6)+f7(7)f^{6}(6) +f^{7}(7) is equal to:

Find the cycle on a general x

A value that repeats at one particular xx proves nothing about the others. Show fk(x)=xf^k(x)=x as an identity before reducing nn.

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 (3)

Watch out for (3)

Test yourself on Relations and Functions

20 past JEE Mains questions from this chapter, timed at 48 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.