The correct option is
D −2fGiven,
f(x,y)=1x2+1xy+logx−logyx2+y2
So, by partially differentiating the function w.r.t x and multiplying with x, we get,
⇒x∂f∂x=−2x2−1xy+(x2+y2)−(logx−logy)(2x2)(x2+y2)2
similiarly, if we partially differentiate w.r.t y and multiply it with y, we get,
⇒y∂f∂y=−1xy+−(x2+y2)−(logx−logy)(2y2)(x2+y2)2
Adding both the equations we get,
⇒x∂f∂x+y∂f∂y=−2x2−2xy−(logx−logy)(2x2+2y2)(x2+y2)2=2x2−2xy−2(logx−logy)(x2+y2)2=−2f