I came across this equation (identity) (Eq. 4 in this paper):
$\int(-i d\psi/dx)^*\psi dx = \int \psi^*(-i d\psi/dx) dx + id(\psi^*\psi)/dx\mid_{-\infty}^{+\infty}$
I have trouble proving it. I tried to use integration by parts but could not reach there. How do we take complex conjugate (Hermitian Adjoint) of the differential operator that occurs in this equation and also of any general function.