
Instead of using the shortcut that a gradient field's line integral only depends on endpoints, let's check the answer by directly parametrizing the quarter-circle path and integrating along it.
The two terms cancel at every single point along the quarter circle, not only at the endpoints, because the unit circle is a level curve of $f = x^2+y^2 = 1$: $f$ never changes as we move along it, so its gradient has no component along the path direction anywhere on the circle.
Let's summarize:
So the line integral evaluates to $0$, the same result as the endpoint-difference shortcut.
Let \( R \) be the planar region bounded by the lines \( x = 0 \), \( y = 0 \) and the curve \( x^2 + y^2 = 4 \) in the first quadrant. Let \( C \) be the boundary of \( R \), oriented counter clockwise. Then, the value of:
\[ \oint_C x(1 - y) \, dx + (x^2 - y^2) \, dy \] is equal to: