If I can find a potential function for a vector field, does that necessarily mean that the vector field is conservative?
For example if I had a vector field that is not defined on the x-axis and I am able to find a potential function that is defined everywhere but the x-axis, is the field conservative?
I know this is true when the vector field is undefined at finitely many points, but not too sure when there are infinitely many undefined points.
Edit: Another question I have is; Suppose a vector field has divergence $= 0 $ everywhere but undefined at the origin and am trying to find the outward flux. to use the divergence theorem I have to do $$\int\int\int_{V-\{0\}} \text{div} \textbf F \space \text{d}V = \int\int_{\partial V} (\textbf {F $\cdot$ n})\text{d}S + \int\int_{B\epsilon} (\textbf {F $\cdot$ n})\text{d}S = 0 $$ $$\int\int_{\partial V} (\textbf {F $\cdot$ n})\text{d}S = -\int\int_{B\epsilon} (\textbf {F $\cdot$ n})\text{d}S$$
Where $B\epsilon$ is the ball with radius $\epsilon$ around the origin
When I solve for $\int\int_{\partial V} (\textbf {F $\cdot$ n})\text{d}S$ I will get an answer depending on epsilon(if it doesn't get cancelled out). If epsilon remains, would I take the limit as epsilon goes to zero, or would I keep my answer with respect to epsilon?