By observing the spectrum of the Sun, which follows a specific profile at different frequencies. Through physics, each frequency in the spectral analysis reveals a temperature range, showing the temperature of the sun to be around 5,750,000 degrees.