The shortest path is along the line OP joining (0,0,0) and (x1,y1,z1.)
The equation of the line OP is
x−00−x1=y−00−y1=z−00−z1
⇒xx1=yy1=zz1=t
dx=x1dt
dy=y1dt
dz=z1dt
W=work done by the forceF=∫p0F.dr
⇒W=∫(x1,y1,z1)(0,0,0)(z^i+x^j+y^k).(dx^i+dy^j+dz^k)
∫(x1,y1,z1)(0,0,0)zdx+xdy+ydz
When x=y=z=0,t=0
Whenx=x1,y=y1,z=z1,t=1
⇒W=∫t=1t=0tz1x1dt+tx1y1dt+ty1z1dt
=∫t=1t=0(x1z1+x1y1+y1z1)tdt
=(x1y1+y1z1+z1x1)∫10tdt
=(x1y1+y1z1+z1x1)[t22]10
=12(x1y1+y1z1+z1x1)