$f(x) = x^2$ composed with $g(x) = x + 1$
Terms
| Term | This example | Why |
|---|---|---|
| composition | $(f \circ g)(x) = (x + 1)^2$ | The composition $f \circ g$ first adds $1$ and then squares, so $(f \circ g)(x) = f(x + 1) = (x + 1)^2$. In the other order, $(g \circ f)(x) = x^2 + 1$, which is a different function, because $(f \circ g)(1) = 4$ but $(g \circ f)(1) = 2$. |