The correct option is C −4K
For motion of the particle from (0, 0) to (a, 0)
→F=−K(0^i+a^j)⇒→F=−Ka^j
Displacement →r=(a^i+0^j)−(0^i+0^j)=a^i
So work done from (0, 0) to (a, 0) is given by
W=→F.→r=−Ka^j.a^i=0
For motion (a, 0) to (a, a) displacement
→r=(a^i+a^j)−(a^i+0^j)=a^j
So work done from (a, 0) to (a, a) W=→F.→r
So total work done =−Ka2