class mean:

class scatter:

why not inner product?

goal: the find the optimal project w^{_} that maximize the between class distance and within class distance:

\begin{align} w^{_} & = \argmax\_{w} \frac{(m\_{1}- m\_{2})^{2}}{S\_{1}+S\_{2}} \\ m\_{j} & = w^{T}\mu\_{j} \\ s\_{j} & =w^{T}S\_{j}w \end{align}

within class scatter: