Composition and inverse · Exercise-COMPOSITION-AND-INVERSE-006

Step-by-step solved exercise: Relations and functions

With \(\displaystyle f(x)=x+1\) and \(\displaystyle g(x)=x^2\) on \(\displaystyle \mathbb{R}\), what is \(\displaystyle (g\circ f)(2)\)?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. By definition \(\displaystyle (g\circ f)(x)=g(f(x))\), so \(\displaystyle f\) is applied first.

    \[\displaystyle (g\circ f)(x)=g(f(x))\]
  2. With \(\displaystyle f(x)=x+1\), we get \(\displaystyle f(2)=3\).

    \[\displaystyle f(2)=2+1=3\]
  3. Then \(\displaystyle g(3)=3^2=9\).

    \[\displaystyle g(3)=3^2=9\]
  4. Therefore \(\displaystyle (g\circ f)(2)=9\).

    \[\displaystyle (g\circ f)(2)=9\]

Answer

9

🎯 Build my path to this exercise