No, a gradient is not a vector!
Find a single, real valued, function of 2 variables, (and x,y is much better than x1, x2!), P(x,y) such that
[tex]\frac{\partial P}{\partial x}= 2x^2+ 2y+ 2[/tex]
[tex]\frac{\partial P}{\partial y}= 2y+ 2x.<br />
<br />
What is the anti-derivative of 2x<sup>2</sup>+ 2y+ 2 (with respect to x, treating y as a constant)? The "constant of integration" may be a function of y since you are treating y as a constant. Now, what is the derivative of that with respect to y?[/tex]