I really tried thousands of things before deciding to ask here. Searched all over the internet for an answer, but failed to find it.
Let's get started with the Fundamental Theorem of Line Integrals. Take the following statement (found in many places, for example, in this Math.SE question):
Suppose $C$ is a smooth curve given by $r(t)$, $a \leq t \leq b$ and suppose $\nabla f$ is continuous on $C$. Then $$\int_{C}\nabla f\cdot dr = f(r(b)) - f(r(a)).$$
Unfortunately, there must be some mistake here. This theorem clearly implies that if C is a closed curve, the integral must be zero. I will show a counterexample soon. But first, I would like to clarify that I already understand "part" of the mistake: I know the previous statement must have forgot some condition, like some sort of differentiability and such. So this is my question, what are EXACTLY the requirements? At first I expected this to be an easy google-search question, but it turned out that no one seemed to care enough with that kind of details. I am interested in those details, though.
Very well, take a look at this MIT video, where it's shown that the following (famous) vector field is NOT conservative:
$$\vec{F}(x,y) = \dfrac{-y\hat{i} + x\hat{j}}{x^2 + y^2}$$
Very well. I understand that. In fact, if you take $C$ to be the counter-clockwise unit circle around the origin, the integral will be equal to $2\pi$, not zero.
The problem is, $\vec{F}$ can be written as a gradient field!! Look:
$$ f = -arctan(x/y) \implies \vec{F} = \nabla f$$
It is also true that $C$ is a smooth curve (circle) and $\nabla f$ is continuous on $C$.
This shows that the quoted statement for the Fundamental Theorem of Line Integrals must be wrong.
As I said before, I suspect the quoted statement forgot some conditions. I want to know what are those conditions, and more importantly, why those conditions are needed! I even looked at a proof for the theorem, but couldn't detect any steps that needed extra conditions.
All this also raised another question: is it really true that Gradient Fields and Conservative Fields are the same thing (as stated by this Math.SE question)? If they are indeed the same thing, do you agree that Gradient Field was a poor name choice (given that I showed a field, written as a gradient, that is not conservative)? If they are not the same thing (which would disagree with the linked question), then what's the difference? (Meta-parentheses: I hope this part is not considered a duplicate, given that I believe the other question to be lacking - if I'm wrong and it is indeed a duplicate, please help me explaining what exactly should I have done instead).
SUMMARY
1. What is wrong with the quoted Fundamental Theorem of Line Integrals? (what conditions are missing?)
2. Why are those extra conditions needed?
3. With all this in mind, is it really true that "gradient field" is the same thing as "conservative field"? (Please note I am aware of this question but I believe it to be incomplete, therefore I believe this part is not a duplicate. Please read the whole question for details on this. I just don't want a duplicate tag here.)
Thank you all for your time.
EDIT: After searching even more I finally found out a bit of information that helped - this Wikipedia page, but sadly all my questions still stand. It seems that the missing condition is the need of being simply connected, but how exactly does that go in the Fundamental Theorem of Line Integrals? Actually, my textbook (by James Stewart) doesn't mention anything regarding simply-connectedness on the Fundamental Theorem of Line Integrals. There is no region, just a curve!
EDIT 2: I just found this question and this question, answered by Shuhao Cao. Although the major portion of the explanations use deeper knowledge that I am not familiar with, I was able to find out that
the equivalence between a vector field being conservative, its rotation being zero, it being the gradient of a scalar potential and its path integral being path-independent only holds in simply connected domains
(as said by joriki in a comment).
I believe that but didn't understand the reason yet - probably the reason is the lack of knowledge to understand Shuhao Cao's explanation.
Nevertheless, my questions 1 and 2 still stand. Also, if someone can provide a simpler explanation than Shuhao Cao's ones, that would be great.