Deriving SPH