Work done is
, Where F is the force and u is the position vector.
Position vector :
\If the initial point
and the terminal point is
, then
the position vector is
.
Force vector is 
The points are
and
.
The position vector is
.
Substitute the points
and
.

The position vector is
.
The work done is 
Substitute
and
in
.

The work done is
.
The work done is
.