Inversion and subspaces of a finite field