The correct option is B x cos x−sin xx2
The function is the quotient of two functions sin x and x. So we will use the quotient rule which says
ddx(f(x)g(x))=f′(x)×g(x)−g′(x)×f(x)(g(x))2
where f(x)=sin x, f′(x)=cos xg(x)=x, g′(x)=1
Substituing in the quotient rule formula,
ddx(sin xx)=cos x.x−1.sin xx2=x cos x−sin xx2