Example · High school

The graphs of $f(x) = x^2$, $g(x) = x + 1$, and $(f \circ g)(x) = (x + 1)^2$.

Terms

TermThis exampleWhy
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$.

All examples · All distinctions · All definitions · Notation