The inviscid limit in the Cauchy problem of the inhomogeneous incompressible Navier–Stokes equations