h'(y) = x^2 + lnz - lnz - 2x = x^2 - 2x\implies\\
h(y) = x^2y - 2xy