path from 0,0 to a,a
dr=dxi+dyj=dxi+dyj
F=-k(yi+xj)
dW=F.dr
=-k(yi+xj).(dxi+dyj)
=-k(ydx+xdy)
=-∫kd(xy) ..here it shows that force is conservative... from point P(x0,y0) to again back there work done is zero...
so directly integrating from initial to final point....
=-k0∫a2d(xy)
=-kxy]0a2
=-ka2