A study of the Hilbert-Mumford criterion for the stability of projective varieties