FDA seeks to find at most k − 1 vectors that maximize J(w)=wTSBwwTSWw In other words, FDA seeks to find linear combinations of variables that project samples in the same group close to each other and project samples in different groups far away from each other.