I'm trying to follow these lecture notes on Linear Discriminant Analysis (LDA) but I can't seem to figure out how the author gets from:
$$ \Sigma_{x\epsilon\omega_{i}} (w^{T}x - w^{T}\mu_{i})^2$$
to
$$ \Sigma_{x\epsilon\omega_{i}} w^{T}(x-\mu_{i})(x-\mu_{i})^Tw$$