I have this gradient and I am suppose to find the original function it belongs to..Before this I always did it the other way; given a function find the gradient. Now working back is tougher for me because it probably involves some integration...

I know that $\dfrac{df}{dx} = 2xy-y$ and $\dfrac{df}{dy} = x^2-x$.
Now I am lost because I know I should integrate each equation with respect to the variable I differentiated it to but then what? I will have 2 integrated equations.