Why are these two equal?

$$int_{-infty}^infty psi (x)x frac{d}{dx}psi^{*} (x)dx = -int_{-infty}^infty frac{d}{dx}(psi(x)x)psi(x)^* dx $$

Found these as a part of a solution for a quantum physics problem. Tried to make them equal, by solving the first integral with partial integration. That did not work.