Thank you for reporting, we will resolve it shortly
Q.
A charge $+q$ is placed at the origin $O$ of $X-Y$ axes as shown in the figure. The work done in taking a charge $Q$ from $A$ to $B$ along the straight line $AB$ is
WBJEEWBJEE 2012Electrostatic Potential and Capacitance
Solution:
We know that
$W=q \Delta V$
and $V=\frac{Q}{4 \pi \varepsilon_{0} r}$
Hence, $W=q\left[\frac{Q}{4 \pi \varepsilon_{0} b}-\frac{Q}{4 \pi \varepsilon_{0} a}\right]$
$=\frac{Q q}{4 \pi \varepsilon_{0}}\left[\frac{a-b}{a b}\right]$