Here's how:
* Observation and Analysis of Rocks: Geologists study rocks and minerals, analyzing their composition, texture, and structure. This provides clues about the conditions under which they formed, including the depths and pressures involved.
* Seismic Waves: The study of seismic waves (generated by earthquakes) has been instrumental. These waves travel through the Earth at different speeds depending on the density and composition of the materials they encounter. By analyzing the patterns of these waves, scientists can infer the existence of different layers within the Earth.
* Volcanic Eruptions: Volcanic eruptions bring material from deep within the Earth to the surface. Studying the composition of volcanic rocks provides insights into the composition and structure of the Earth's interior.
* Gravity Measurements: Variations in Earth's gravitational field can be explained by the distribution of mass within the planet. This provides evidence for the existence of dense, heavy layers in the Earth's interior.
* Magnetic Field: Earth's magnetic field is generated by the movement of molten iron in the outer core. Studying the magnetic field helps us understand the composition and dynamics of this layer.
While other fields contribute to our understanding of Earth's layers, geology is the primary field that combines these diverse lines of evidence to paint a comprehensive picture of Earth's internal structure.