# Method of image charges

The method of image charges (also known as the method of images and method of mirror charges) is a basic problem-solving tool in electrostatics. The name originates from the replacement of certain elements in the original layout with fictitious charges, which replicates the boundary conditions of the problem (see Dirichlet boundary conditions or Neumann boundary conditions).
The validity of the method of image charges rests upon a corollary of the uniqueness theorem, which states that the electric potential in a volume V is uniquely determined if both the charge density throughout the region and the value of the electric potential on all boundaries are specified. Alternatively, application of this corollary to the differential form of Gauss' Law shows that in a volume V surrounded by conductors and containing a specified charge density ρ, the electric field is uniquely determined if the total charge on each conductor is given. Possessing knowledge of either the electric potential or the electric field and the corresponding boundary conditions we can swap the charge distribution we are considering for one with a configuration that is easier to analyze, so long as it satisfies Poisson's equation in the region of interest and assumes the correct values at the boundaries.

## Reflection in a conducting plane
### Point charges

The simplest example of method of image charges is that of a point charge, with charge q, located at $(0,0,a)$ above an infinite grounded (i.e.: $V=0$) conducting plate in the xy-plane. To simplify this problem, we may replace the plate of equipotential with a charge −q, located at $(0,0,-a)$. This arrangement will produce the same electric field at any point for which $z>0$ (i.e., above the conducting plate), and satisfies the boundary condition that the potential along the plate must be zero. This situation is equivalent to the original setup, and so the force on the real charge can now be calculated with Coulomb's law between two point charges.
The potential at any point in space, due to these two point charges of charge +q at +a and −q at −a on the z-axis, is given in cylindrical coordinates as
    $V\left(\rho ,\varphi ,z\right)={\frac {1}{4\pi \varepsilon _{0}}}\left({\frac {q}{\sqrt {\rho ^{2}+\left(z-a\right)^{2}}}}+{\frac {-q}{\sqrt {\rho ^{2}+\left(z+a\right)^{2}}}}\right)\,$
The surface charge density on the grounded plane is therefore given by
    $\sigma =-\varepsilon _{0}\left.{\frac {\partial V}{\partial z}}\right|_{z=0}={\frac {-qa}{2\pi \left(\rho ^{2}+a^{2}\right)^{3/2}}}$
In addition, the total charge induced on the conducting plane will be the integral of the charge density over the entire plane, so:
    ${\begin{aligned}Q_{t}&=\int _{0}^{2\pi }\int _{0}^{\infty }\sigma \left(\rho \right)\,\rho \,d\rho \,d\theta \\[6pt]&={\frac {-qa}{2\pi }}\int _{0}^{2\pi }d\theta \int _{0}^{\infty }{\frac {\rho \,d\rho }{\left(\rho ^{2}+a^{2}\right)^{3/2}}}\\[6pt]&=-q\end{aligned}}$
The total charge induced on the plane turns out to be simply −q. This can also be seen from the Gauss's law, considering that the dipole field decreases at the cube of the distance at large distances, and the therefore total flux of the field though an infinitely large sphere vanishes.
Because electric fields satisfy the superposition principle, a conducting plane below multiple point charges can be replaced by the mirror images of each of the charges individually, with no other modifications necessary.

### Electric dipole moments

The image of an electric dipole moment p at $(0,0,a)$ above an infinite grounded conducting plane in the xy-plane is a dipole moment at $(0,0,-a)$ with equal magnitude and direction rotated azimuthally by π. That is, a dipole moment with Cartesian components $(p\sin \theta \cos \phi ,p\sin \theta \sin \phi ,p\cos \theta )$ will have in image dipole moment $(-p\sin \theta \cos \phi ,-p\sin \theta \sin \phi ,p\cos \theta )$. The dipole experiences a force in the z direction, given by
    $F=-{\frac {1}{4\pi \varepsilon _{0}}}{\frac {3p^{2}}{16a^{4}}}\left(1+\cos ^{2}\theta \right)$
and a torque in the plane perpendicular to the dipole and the conducting plane,
    $\tau =-{\frac {1}{4\pi \varepsilon _{0}}}{\frac {p^{2}}{16a^{3}}}\sin 2\theta$

## Reflection in a dielectric planar interface

Similar to the conducting plane, the case of a planar interface between two different dielectric media can be considered. If a point charge $q$ is placed in the dielectric that has the dielectric constant $\epsilon _{1}$, then the interface (with the dielectric that has the dielectric constant $\epsilon _{2}$) will develop a bound polarization charge. It can be shown that the resulting electric field inside the dielectric containing the particle is modified in a way that can be described by an image charge inside the other dielectric. Inside the other dielectric, however, the image charge is not present.
Unlike the case of the metal, the image charge $q'$ is not exactly opposite to the real charge: q$^′$=ε$_1$−ε$_2$/(ε$_1$+ε$_2$) q{\textstyle q'={\frac {\varepsilon _{1}-\varepsilon _{2}}{\varepsilon _{1}+\varepsilon _{2}}}q}. It may not even have the same sign, if the charge is placed inside the stronger dielectric material (charges are repelled away from regions of lower dielectric constant). This can be seen from the formula.

## Reflection in a conducting sphere
### Point charges

The method of images may be applied to a sphere as well. In fact, the case of image charges in a plane is a special case of the case of images for a sphere. Referring to the figure, we wish to find the potential inside a grounded sphere of radius R, centered at the origin, due to a point charge inside the sphere at position $\mathbf {p}$ (For the opposite case, the potential outside a sphere due to a charge outside the sphere, the method is applied in a similar way). In the figure, this is represented by the green point. Let q be the point charge of this point. The image of this charge with respect to the grounded sphere is shown in red. It has a charge of q′ = −qR/p and lies on a line connecting the center of the sphere and the inner charge at vector position $\left(R^{2}/p^{2}\right)\mathbf {p}$. It can be seen that the potential at a point specified by radius vector $\mathbf {r}$ due to both charges alone is given by the sum of the potentials:
    $4\pi \varepsilon _{0}V(\mathbf {r} )={\frac {q}{|\mathbf {r} _{1}|}}+{\frac {(-qR/p)}{|\mathbf {r} _{2}|}}={\frac {q}{\sqrt {r^{2}+p^{2}-2\mathbf {r} \cdot \mathbf {p} }}}+{\frac {(-qR/p)}{\sqrt {r^{2}+{\frac {R^{4}}{p^{2}}}-{\frac {2R^{2}}{p^{2}}}\mathbf {r} \cdot \mathbf {p} }}}$
Multiplying through on the rightmost expression yields:
    $V(\mathbf {r} )={\frac {1}{4\pi \varepsilon _{0}}}\left[{\frac {q}{\sqrt {r^{2}+p^{2}-2\mathbf {r} \cdot \mathbf {p} }}}-{\frac {q}{\sqrt {{\frac {r^{2}p^{2}}{R^{2}}}+R^{2}-2\mathbf {r} \cdot \mathbf {p} }}}\right]$
and it can be seen that on the surface of the sphere (i.e. when r = R), the potential vanishes. The potential inside the sphere is thus given by the above expression for the potential of the two charges. This potential will not be valid outside the sphere, since the image charge does not actually exist, but is rather "standing in" for the surface charge densities induced on the sphere by the inner charge at $\mathbf {p}$. The potential outside the grounded sphere will be determined only by the distribution of charge outside the sphere and will be independent of the charge distribution inside the sphere. If we assume for simplicity (without loss of generality) that the inner charge lies on the z-axis, then the induced charge density will be simply a function of the polar angle θ and is given by:
    $\sigma (\theta )=\varepsilon _{0}\left.{\frac {\partial V}{\partial r}}\right|_{r=R}={\frac {-q\left(R^{2}-p^{2}\right)}{4\pi R\left(R^{2}+p^{2}-2pR\cos \theta \right)^{3/2}}}$
The total charge on the sphere may be found by integrating over all angles:
    $Q_{t}=\int _{0}^{\pi }d\theta \int _{0}^{2\pi }d\phi \,\,\sigma (\theta )R^{2}\sin \theta =-q$
Note that the reciprocal problem is also solved by this method. If we have a charge q at vector position $\mathbf {p}$ outside of a grounded sphere of radius R, the potential outside of the sphere is given by the sum of the potentials of the charge and its image charge inside the sphere. Just as in the first case, the image charge will have charge −qR/p and will be located at vector position $\left(R^{2}/p^{2}\right)\mathbf {p}$. The potential inside the sphere will be dependent only upon the true charge distribution inside the sphere. Unlike the first case the integral will be of value −qR/p.

### Electric dipole moments

The image of an electric point dipole is a bit more complicated. If the dipole is pictured as two large charges separated by a small distance, then the image of the dipole will not only have the charges modified by the above procedure, but the distance between them will be modified as well. Following the above procedure, it is found that a dipole with dipole moment $M$ at vector position $\mathbf {p}$ lying inside the sphere of radius R will have an image located at vector position $\left(R^{2}/p^{2}\right)\mathbf {p}$ (i.e. the same as for the simple charge) and will have a simple charge of:
    $q'={\frac {R\mathbf {p} \cdot \mathbf {M} }{p^{3}}}$
and a dipole moment of:
    $\mathbf {M} '=\left({\frac {R}{p}}\right)^{3}\left[-\mathbf {M} +{\frac {2\mathbf {p} (\mathbf {p} \cdot \mathbf {M} )}{p^{2}}}\right]$

## Method of inversion

The method of images for a sphere leads directly to the method of inversion. If we have a harmonic function of position $\Phi (r,\theta ,\phi )$ where $r,\theta ,\phi$ are the spherical coordinates of the position, then the image of this harmonic function in a sphere of radius R about the origin will be
    $\Phi '(r,\theta ,\phi )={\frac {R}{r}}\,\Phi {\left({\frac {R^{2}}{r}},\theta ,\phi \right)}$
If the potential $\Phi$ arises from a set of charges of magnitude $q_{i}$ at positions $(r_{i},\theta _{i},\phi _{i})$, then the image potential will be the result of a series of charges of magnitude $Rq_{i}/r_{i}$ at positions $(R^{2}/r_{i},\theta _{i},\phi _{i})$. It follows that if the potential $\Phi$ arises from a charge density $\rho (r,\theta ,\phi )$, then the image potential will be the result of a charge density $\rho '(r,\theta ,\phi )=(R/r)\rho (R^{2}/r,\theta ,\phi )$.