Calculate $\int_{C} \frac{x}{x^2+y^2} dx + \frac{y}{x^2+y^2} dy~$ where $C$ is straight line segment connecting $(1,1)$ to $(2,2)$
my question is , after calculating the integral using green theorem i got that $\int_{C} \frac{x}{x^2+y^2} dx \frac{y}{x^2+y^2} dy= -\ln(2)$
is it the right answer ? since we are connecting $(1,1)$ to $(2,2) $ AND NOT $(2,2)$ to $(1,1)$
so its question about the sign of the value.
The fundamental theorem of calculus tells you that if ${\bf F} = \nabla f$ in a simply connected region containing the curve, then $$\int_C {\bf F}\cdot d{\bf r}= f(b) - f(a)$$ where the curve $C$ begins at the point $a$ and ends at the point $b$.
Here $${\bf F}(x,y) = \left(\frac{x}{x^2 + y^2}, \frac y{x^2 + y^2} \right). $$ Can you find a function $f(x,y)$ such that $${\bf F}(x,y) = \nabla f(x,y)?$$