I'm reviewing multivariable integrals, and the constants are confusing me. If I have:
$$ f(x, y) = \int \frac{\partial f(x,y)}{\partial x} dx $$ $$ f(x, y) = \int 2xy \,dx $$ factor out $y$ which is treated as a constant. $$ f(x, y) = y \int 2x \,dx $$
But, I expected
$$ f(x, y) = 2y \int x \,dx $$
Since $2$ is also a constant. The question is, why factor out $y$ and not $2$ as well. What am I missing?