On the singularities of a free boundary through Fourier expansion