So, in this problem I just solved there is a force field given by $\mathbf{F} = -x \hat{\mathbf{j}}$ and I need to compute the work done on a particle along a circular path of radius $R$, centred at the origin, clockwise direction. I checked that the correct answer is $W = \pi R^2$.
So, what I'm confused about is that this is a closed path, since it's a circle and it goes from $0$ to $2\pi$, but the work done is non-zero. I thought closed-path line integrals would always be zero, although I also know that the force must be conservative for the closed-path integral to actually be zero. What's wrong with my thinking? Why is the integral $$ \oint -R\cos\theta\rm{d}\theta = \pi R^2 $$ non-zero?