An analytical approach to core-halo structure of fuzzy dark matter