0

If $f:W\rightarrow X$, $g:X\rightarrow Y$, and $h:Y\rightarrow Z$, does $h \circ (g \circ f) = (h \circ g) \circ f$? How can I justify this?

Newb
  • 17,987
  • 14
  • 70
  • 116

1 Answers1

2

For every $w\in W$ we have $$ [h\circ (g\circ f)](w) = h([g\circ f](w)) = h(g(f(w)) $$ and $$ [(h\circ g)\circ f](w) = [h\circ g](f(w)) = h(g(f(w)) $$

Since $h\circ (g\circ f)$ and $(h\circ g)\circ f$ have the same value at every possible argument, they are the same function.