Let's do a two dimensional case please: I guess what I am asking is this: Are there any gradients that are not generated by a potential function and what do these gradients generated by a potential function have to do with path independence ?
A gradient of a function generates many vectors, it is a place holder for values of $x$ and $y$ and when various values are inserted into $x$ and $y$ you generate a vector field. Now if there is a potential function that means there is an antiderivative for each of those place holders correct?
It also means the vector field is conservative which in turn means the path you take from one point in the field to another point in the field doesn't make any difference ... the energy you would end up gaining or loosing is the same.
But why does the existence of antiderivatives and potential functions mean that energy is conserved following a path through the field.? I used the example $\langle-y, x\rangle$ because what ever this link is then it would be missing for $\langle -y,x\rangle$ and perhaps I can see the difference such as $\langle x, y \rangle$ .
There is a fundamental link I am missing. I need some help.
A gradient field is, by definition, the gradient of some function (usually called a potential function), so the answer to your first question is no. What I believe you're after is this: Can you rescale the vector field $\langle -y,x\rangle$ to make it conservative (or a gradient)? That depends on your domain. If you allow me to remove a ray containing the origin, then on that domain the vector field $\langle -\frac y{x^2+y^2},\frac x{x^2+y^2}\rangle$ is a gradient field. (One can actually show it's impossible on the whole plane.)
Energy is conserved in the presence of a gradient field because of the fundamental theorem of calculus for line integrals: $$\int_A^B \overrightarrow{\nabla f}\cdot d\vec r = f(B)-f(A)$$ for any path from $A$ to $B$. In particular, the net work done around any closed path is $0$, so energy is conserved.