Suppose $F=\left(x, xy\right)$. For $F$ to be a gradient of a function $f$, $x=\frac{\partial }{\partial x}\left(f\right)$ and $xy=\frac{\partial }{\partial y}\left(f\right)$. My notes state that this can be verified with Clairaut theorem, that is, by checking if $\frac{\partial }{\partial y}\left(\frac{\partial }{\partial x}\left(f\right)\right)=\frac{\partial }{\partial x}\left(\frac{\partial }{\partial y}\left(f\right)\right)$, which, in this case, it isn't true.
But why does it make sense to use the theorem?
If you have studied the differential operator "curl", you must know that the curl of a gradient is zero (https://en.wikipedia.org/wiki/Vector_calculus_identities#Curl_of_gradient_is_zero)
Here, using notations $$F=\left(f_1(x,y)=x, f_2(x,y)=xy\right)$$
$$curl(F)=\partial f_2/\partial x - \partial f_1/\partial y=y - 0 =y$$
Should $F$ be a gradient, i.e., $F=grad(G)$ for some function $G$, we would have :
$$curl(grad(G))=0$$
which is not the case.