Calculate $$\int_{\gamma} x^3 dx + (x^3 + y^3)dy$$ where $\gamma$ is the line $y=2-x$ from $(0, 2)$ to $(2, 0)$.
It was my understanding that if the vector field was conservative then the path doesn't matter so what I did was check if the vector field was conservative and yes it was conservative since I found a potential function to it which was: $$f = \frac{x^4}4 + \frac{y^4}4$$
then $$\int_{\gamma} x^3 dx + (x^3 + y^3)dy = f(2,0) - f(0, 2) = 0$$
This is wrong and the correct answer is -4.
Parametrizing the curve you get:
$$ \gamma(t)=(t,2-t) \quad \text{with} \quad t\in[0,2] \quad\text{and} \quad\,\gamma'(t)=(1,-1)$$
$$\int_{\gamma} x^3dx+(x^3+y^3)dy=\int_0^2(t^3-t^3-(2-t)^3)dt=-\int_0^2 u^3 du=-4 $$ In this case, since $ \dfrac{\partial }{\partial y}x^3\neq \dfrac{\partial }{\partial x}(x^3+y^3) $ the vector field is not conservative.