Scientists figured out that the outer core must be liquid because S waves do not pass through it, but P waves do. The behavior of P and S waves also indicates that the inner core is solid. The speed of seismic waves also depends on the density of the material through which they are traveling.