Electrostatic Kaleidoscope
Year: 2002 Authors: Haiduke Sarafian
Core claim
Electrostatic potential plots, especially in 2D and 3D, can clarify physics concepts and produce visually compelling abstract compositions.
Topics
electrostatic potential, equipotential plots, kaleidoscopic animation, scientific visualization
Domains
vector fields, scalar potentials, contour plots, 3D surfaces, abstract art, generative imagery, kaleidoscope, visual composition
Methods
Mathematica plotting, ContourPlot, Plot3D, DensityPlot, animation
Media
digital graphics, animated frames, contour surfaces
Paper text
The text below is the locally extracted OCR/Markdown version of the paper. Raw PDF files remain local and are not published here.
BRIDGES Mathematical Connections in Art, Music, and Science
Electrostatic Kaleidoscope
Haiduke Sarafian Commonwealth College The Pennsylvania State University 1031 Edgecomb Avenue York, PA 17403, USA E-mail: has2@psu.edu
Abstract
Electrostatic potentials created by static electric charge distributions are the core concept of charge related phenomena. Plots of these curves and surfaces play an invaluable role in comprehending the underlying physical ideas. Generally, 2D plots of potentials are hardly considered; 3D surfaces are mostly ignored. The author has applied Mathematica and improved the situation — he has also stumbled across the artistic features of the plots, bridging the gap between the art of science and abstract art. Animation of one such set of plots is considered to create figures resembling collages formed by a kaleidoscope.
1. Introduction
Electrostatics is a well established branch of physics — however, comprehension of some of its abstract concepts relies on mental visualization of quantities such as scalar potentials and vector fields. Visualizing the potentials could be challenging; this by itself contributes to the challenge of the understanding the related concepts — leave alone the associated vector fields. It is not a common practice to display the potentials, the majority of the standard texts [1-2] conveniently have ignored them. In a few cases, 2D contour plots are displayed[3], seldomly 3D plots of the contours are considered.
Since the aforementioned texts have been published, computer technology has progressed tremendously. Along with technological advancements, powerful software programs capable of performing symbolic and graphic scientific computation have been developed. By adapting one such program, Mathematica [4], the author by way of examples revisited a few basic cases.
The 2D and 3D potential curves and surfaces created by charged particles possess somewhat artistic features. Compatible with the theme of the conference the author has discussed specific examples that mathematically are easy to follow and artistically are pleasing to view. It is the objective of this article to run a bridge across the art of physics, mathematics and the abstract art.
Scientifically speaking, a charge distorts the homogeneity of the space. To study the shape of the distortion and the interaction between the charges, the electric potential is introduced. The electric potential at point from a set of scattered discrete point charges , positioned at is , where and is the distance between and
Haiduke Sarafian
with being a constant. By applying this mathematical function to various situations in the following sections a few fundamental cases are discussed.
2. Case study I
To begin, we position a point charge at the origin, and for the sake of simplicity we set the value of to unity. The related potential is . In 2D cartesian coordinate system, . As one may predict the equipotentials, i.e. the points in the space with the same potentials, should be unevenly spread out concentric circles about the charge. To confirm this, we apply Mathematica’s ContourPlot. The left figure of Figure 1 is the display of this function. Although useful, it is not customary to display the 3D contour plot of the potential. Mathematica’s Plot3D function easily plots the function. This is shown to the right of Figure 1.
Block[ $\{\mathrm{V1} = \frac{1}{\sqrt{\mathbf{x}^2 + \mathbf{y}^2}}$ , $DisplayFunction $=$ Identity}, g1 $=$ ContourPlot[V1, {x, -1, 1}, {y, -1, 1}, Frame $\rightarrow$ False, PlotPoints $\rightarrow$ 50, ContourStyle $\rightarrow$ GrayLevel[0.5]]; g2 $=$ Plot3D[V1, {x, -1, 1}, {y, -1, 1}, Lighting $\rightarrow$ False, Background $\rightarrow$ GrayLevel[0.6], Mesh $\rightarrow$ False, Axes $\rightarrow$ None, Boxed $\rightarrow$ False, PlotPoints $\rightarrow$ 50]]; Show[GraphicsArray[{g1, g2}]];
Figure 1: The light-gray concentric circles of the left figure are the equipotentials of a positive point charge; its 3D plot is displayed to its right
3. Case study II
a) The investigation of displaying the equipotentials now is extended to two-points. First we consider a symmetrical case created by two identical positive charges. In a two-dimensional coordinate system, the charges are positioned at and . According to the general format of the potential function given in the introduction the corresponding potential is . As before, we set and conveniently we choose units. The 2D and 3D contour plots of equipotentials are displayed in Figure 2.
Electrostatic Kaleidoscope
Block[ $\{\mathrm{V2} = \frac{1}{\sqrt{(\mathrm{x} - 0.5)^2 + \mathrm{y}^2}} +\frac{1}{\sqrt{(\mathrm{x} + 0.5)^2 + \mathrm{y}^2}},\$ DisplayFunction $=$ Identity}, g1 $=$ ContourPlot[V2,{x,-1,1},{y,-1,1}, Frame $\rightarrow$ False,PlotPoints $\rightarrow 50$ ,ContourStyle $\rightarrow$ GrayLevel[0.7]]; g2 $=$ Plot3D[V2,{x,-1,1},{y,-1,1},Lighting $\rightarrow$ False, Background $\rightarrow$ GrayLevel[0.6],Mesh $\rightarrow$ False, Axes $\rightarrow$ None,Boxed $\rightarrow$ False,PlotPoints $\rightarrow 50]$ ; Show[GraphicsArray[{g1,g2}]];
Figure 2: The light-gray curves of the left figure are the equipotentials of a pair of identical positive point charges; its 3D plot is displayed to its right
b) By changing the sign of one of the charges we study the potential created by an electric dipole. This requires ; the corresponding potential is . As in the previous case, the charges are positioned at (a,0) and (-a,0) with units. Its 2D and 3D equipotentials are shown in Figure 3.
Block[ $\{\mathrm{V22} = \frac{1}{\sqrt{(\mathrm{x} - 0.5)^2 + \mathrm{y}^2}} -\frac{1}{\sqrt{(\mathrm{x} + 0.5)^2 + \mathrm{y}^2}},\$ DisplayFunction $=$ Identity}, g1 $=$ ContourPlot[V22,{x,-1,1},{y,-1,1}, PlotPoints $\rightarrow 50$ ,Frame $\rightarrow$ False,ContourStyle $\rightarrow$ GrayLevel[0.3]]; g2 $=$ Plot3D[V22,{x,-1,1},{y,-1,1},Lighting $\rightarrow$ False, Background $\rightarrow$ GrayLevel[0.3],Axes $\rightarrow$ None, Boxed $\rightarrow$ False,PlotPoints $\rightarrow 50$ ,Mesh $\rightarrow$ False]]; Show[GraphicsArray[{g1,g2}]];
Haiduke Sarafian

Figure 3: The dark-gray curves of the left figure are the equipotentials of a dipole; its 3D plot is displayed to its right

## 4. Case study III
By choosing different charges, asymmetrical equipotentials are produced. For instance, we set $\mathrm{kq}_1 = 1$ and $\mathrm{kq}_2 = 4$ . Without moving the charges from their previous positions, the corresponding potential becomes $\mathrm{V}23[x,y] = \frac{1}{\sqrt{(x - 0.5)^2 + y^2}} + \frac{4}{\sqrt{(x + 0.5)^3 + y^2}}$ . The contour and density, as well as a 3D profile of the 2D contour of the equipotentials are displayed in Figure 4.
```txt
Block[ $\{\mathrm{V}23 = \frac{1}{\sqrt{(\mathrm{x} - 0.5)^2 + \mathrm{y}^2}} +\frac{4}{\sqrt{(\mathrm{x} + 0.5)^3 + \mathrm{y}^2}},\$ DisplayFunction $=$ Identity}, g1 $=$ ContourPlot[V23, $\{\mathbf{x}, - 1,1\}$ , $\{\mathbf{y}, - 1,1\}$ PlotPoints $\rightarrow 50$ ,Frame $\rightarrow$ False,ContourStyle $\rightarrow$ GrayLevel[0.5]]; g2 $=$ DensityPlot[V23, $\{\mathbf{x}, - 1,1\}$ , $\{\mathbf{y}, - 1,1\}$ PlotPoints $\rightarrow 20$ ,Frame $\rightarrow$ False,Mesh $\rightarrow$ False]; g3 $=$ Plot3D[V23, $\{\mathbf{x}, - 1,1\}$ , $\{\mathbf{y}, - 1,1\}$ ,Lighting $\rightarrow$ False, Background $\rightarrow$ GrayLevel[0.6],Axes $\rightarrow$ None, Boxed $\rightarrow$ False,PlotPoints $\rightarrow 50$ ,Mesh $\rightarrow$ False]]; Show[GraphicsArray[ $\{\mathrm{g}1,\mathrm{g}2,\mathrm{g}3\} ]]$
Figure 4: The light-gray curves on the left are the equipotentials. The middle and the right figures are the tiling and 3D plots of the contour plots of the left figure, respectively
5. Case study IV
a) In this study we consider four identical point charges and position them symmetrically about the origin at , , and with units. To generate symmetrical equipotentials we choose equal charges, . The corresponding potential according to the general
Electrostatic Kaleidoscope
format given in the introduction is As in the case study III we plot its contour, density and 3D profile of the 2D equipotentials. These are shown in Figure 5.
$\mathrm{Block}\big[\{\mathrm{V41} = \frac{1}{\sqrt{(\mathrm{x} + 0.5)^2 + \mathrm{y}^2}} +\frac{1}{\sqrt{(\mathrm{x} - 0.5)^2 + \mathrm{y}^2}} +\frac{1}{\sqrt{\mathrm{x}^2 + (\mathrm{y} - 0.5)^2}} +\frac{1}{\sqrt{\mathrm{x}^2 + (\mathrm{y} + 0.5)^2}},\$ DisplayFunction $=$ Identity}, g1 $=$ ContourPlot[V41, $\{\mathbf{x}, - 1,1\}$ , $\{\mathbf{y}, - 1,1\}$ , PlotPoints $\rightarrow 50$ Frame $\rightarrow$ False, ContourStyle $\rightarrow$ GrayLevel[0.5]]; g2 $=$ DensityPlot[V41, $\{\mathbf{x}, - 1,1\}$ , $\{\mathbf{y}, - 1,1\}$ , Mesh $\rightarrow$ False, PlotPoints $\rightarrow 20$ , Frame $\rightarrow$ False]; g3 $=$ Plot3D[V41, $\{\mathbf{x}, - 1,1\}$ , $\{\mathbf{y}, - 1,1\}$ , Lighting $\rightarrow$ False, Background $\rightarrow$ GrayLevel[0.6], PlotPoints $\rightarrow 50$ , Axes $\rightarrow$ None, Boxed $\rightarrow$ False, Mesh $\rightarrow$ False]]; Show[GraphicsArray[ $\{\mathrm{g1},\mathrm{g2},\mathrm{g3}\} ]]$
Figure 5: The light-gray curves on the left are the equipotentials. The middle and the right figures are the tiling and 3D plots of the contour plots of the left figure, respectively
b) In the following we have also shown the potential of two pairs of equal positive and negative charges, . To compare the effect of the negative charges v.s. the case study III, all four charges are left at their previous positions. The potential is and its various plots are shown in Figure 6.
Block[ $\begin{array}{r}\left\{\mathrm{V42} = \frac{1}{\sqrt{(\mathrm{x} + 0.5)^2 + \mathrm{y}^2}} +\frac{1}{\sqrt{(\mathrm{x} - 0.5)^2 + \mathrm{y}^2}} -\frac{1}{\sqrt{\mathrm{x}^2 + (\mathrm{y} - 0.5)^2}} -\frac{1}{\sqrt{\mathrm{x}^2 + (\mathrm{y} + 0.5)^2}},\right. \end{array}$ $20$ DisplayFunction $=$ Identity}, g1 $=$ ContourPlot[V42, $\{\mathbf{x}, - 1,1\}$ , $\{\mathbf{y}, - 1,1\}$ , PlotPoints $\rightarrow 50$ Frame $\rightarrow$ False, ContourStyle $\rightarrow$ GrayLevel[0.5]]; g2 $=$ DensityPlot[V42, $\{\mathbf{x}, - 1,1\}$ , $\{\mathbf{y}, - 1,1\}$ PlotPoints $\rightarrow 20$ , Frame $\rightarrow$ False, Mesh $\rightarrow$ False]; g3 $=$ Plot3D[V42, $\{\mathbf{x}, - 1,1\}$ , $\{\mathbf{y}, - 1,1\}$ , Lighting $\rightarrow$ False, Background $\rightarrow$ GrayLevel[0.6], PlotPoints $\rightarrow 50$ , Axes $\rightarrow$ None, Boxed $\rightarrow$ False, Mesh $\rightarrow$ False]]; Show[GraphicsArray[ $\{\mathrm{g1},\mathrm{g2},\mathrm{g3}\} ]];$
Haiduke Sarafian

Figure 6: The outlines of the lobes on the left are the equipotentials. The middle and the right figures are the tiling and 3D plots of the contour plots of the left figure, respectively


## 6. Case study V
## a) 2D and 3D regulated electrostatic kaleidoscopes
Thus far, the case studies graphically display the static relationships between the charge distributions and the potentials. Mathematica, however, is capable of animating a set of comparable figures, dynamically enforcing their graphical comparisons. For instance, in case study IV, by changing the charge of the fifth particle according to $\mathrm{kq}_5 = n$ with $n = \{-3, 3\}$ , generates seven comparable cases. The associated potential is $\mathrm{V5n}[x, y, n] = \frac{1}{\sqrt{(x + 0.7)^2 + y^2}} + \frac{1}{\sqrt{(x - 0.7)^2 + y^2}} + \frac{1}{\sqrt{x^2 + (y - 0.7)^2}} + \frac{1}{\sqrt{x^2 + (y + 0.7)^2}} + \frac{n}{\sqrt{x^2 + y^2}}$ and its 2D contour equipotentials are shown in Figure 7.
```latex
$\mathrm{Block}\big[\big\{\mathrm{V5n} = \frac{1}{\sqrt{(\mathbf{x} + 0.7)^2 + \mathbf{y}^2}} +\frac{1}{\sqrt{(\mathbf{x} - 0.7)^2 + \mathbf{y}^2}} +\frac{1}{\sqrt{\mathbf{x}^2 + (\mathbf{y} - 0.7)^2}} +$ $\frac{1}{\sqrt{\mathbf{x}^2 + (\mathbf{y} + 0.7)^2}} +\frac{\mathbf{n}}{\sqrt{\mathbf{x}^2 + \mathbf{y}^2}},\$ DisplayFunction $=$ Identity}, gn $=$ Table[ContourPlot[V5n,{x,-1,1},{y,-1,1},PlotPoints $\rightarrow 50$ Frame $\rightarrow$ False,ContourStyle $\rightarrow$ GrayLevel[0.5]],{n,-12,12,4}]]; Show[GraphicsArray[Table[gn]]];
Figure 7: Contour plots of equipotential curves of a five particle charge distribution. Curves are generated by changing the value of the charge of the center particle between
Double clicking one of these stationary frames will automatically activate the animation, interchanging the frames sequentially, giving an illusion of figures made by a kaleidoscope.
In the above code, by replacing ContourPlot function with DensityPlot a similar kaleidoscopic figures may also be formed, this is left for interested readers.
However, with Mathematica a 3D kaleidoscopic figures may also be formed. The following code generates a set of seven 3D profile equipotentials. These are shown in Figure 8.
Electrostatic Kaleidoscope 97
\text{gn} = \text{Table}[\text{Plot3D}[\mathrm{V5n}, \{\mathrm{x}, -1, 1\}, \{\mathrm{y}, -1, 1\}, \text{Lighting} \rightarrow \text{False}, \text{Background} \rightarrow \text{GrayLevel}[0.6], \text{PlotPoints} \rightarrow 50, \text{Axes} \rightarrow \text{False}, \text{Boxed} \rightarrow \text{False}, \text{Mesh} \rightarrow \text{False}], \{\mathrm{n}, -12, 12, 4\}\right]; \text{Show}[\text{GraphicsArray}[\text{Table}[\text{gn}]]];
Figure 8: 3D profile of 2D equipotential contour plots of a five particle charge distribution
Double clicking one of these stationary frames will automatically activate the animation, interchanging the frames sequentially, giving an illusion of figures made by a kaleidoscope.
b) 2D and 3D random electrostatic kaleidoscopes
The kaleidoscopic figures made with Figure 7 and 8 are regulated, meaning, animation interchanges cyclically the same seven figures. However, for example, by randomly positioning the fifth charge, and even by assigning a random value to the charge, one generates an unpredictable kaleidoscopic figures. The potential of one such case is
are two unpredictable contour and density plots of this potential.
\text{Table}[\text{ContourPlot}] = \frac{1}{\sqrt{(\mathrm{x} + 0.7)^2 + \mathrm{y}^2}} + \frac{1}{\sqrt{(\mathrm{x} - 0.7)^2 + \mathrm{y}^2}} + \frac{1}{\sqrt{\mathrm{x}^2 + (\mathrm{y} - 0.7)^2}} + \frac{1}{\sqrt{\mathrm{x}^2 + (\mathrm{y} + 0.7)^2}} + \frac{\text{Random}[]\text{Integer}, \{-2, 2\}}{\sqrt{\mathrm{x}^2 + \text{Random}[]^2}}, \{\mathrm{x}, -1, 1\}, \{\mathrm{y}, -1, 1\}, \text{PlotPoints} \rightarrow 20, \text{Frame} \rightarrow \text{False}, \text{DisplayFunction} \rightarrow \text{Identity}\}, \{\mathrm{n}, 1, 7\}\), \text{DisplayFunction} \rightarrow \text{\$DisplayFunction}\];
Figure 9: Contour plots of equipotential curves of a five particle charge distribution. Curves are generated by randomly changing the position and the value of the fifth charge
Haiduke Sarafian
Show[GraphicsArray[ Table[DensityPlot[ $\frac{1}{\sqrt{(\mathrm{x} + 0.7)^2 + \mathrm{y}^2}} +\frac{1}{\sqrt{(\mathrm{x} - 0.7)^2 + \mathrm{y}^2}} +\frac{1}{\sqrt{\mathrm{x}^2 + (\mathrm{y} - 0.7)^2}} +$ $\frac{1}{\sqrt{\mathrm{x}^2 + (\mathrm{y} + 0.7)^2}} +\frac{\text{Random[Integer},\{-2,2\}]}{\sqrt{\mathrm{x}^2 + \text{Random}[}]^2},\{\mathrm{x}, - 1,1\} ,\{\mathrm{y}, - 1,1\} ,$ PlotPoints $\rightarrow 20$ ,Frame $\rightarrow$ False,DisplayFunction $\rightarrow$ Identity], $\{n,1,7\} ]$ , DisplayFunction $\rightarrow$ $DisplayFunction]];$
Figure 10: These are density plots of Figure 9
7. Summary and Conclusion
By way of examples it is shown that it is useful to display abstract mathematical functions to describe the distortion of charged space. Various fundamental examples have been considered. The described methods can readily be extended to study cases on a need basis. On the other hand, the plots possess artistic characters and can be viewed as art work. Reviewing these plots may intrigue a physicist to think about the implicit artistic features of the distorted space or an artist conversely may be fascinated about the way the nature works.
References
[1] D. Halliday, R. Resnick, J. Walker, Fundamental of Physics, edition, John Wiley 2001. [2] E. M. Purcell, Electricity and Magnetism, Berkeley physics course - volume 2, McGraw-Hill 1965. [3] J. R. Reitz, F.J. Milford, Foundations of Electromagnetic Theory, Addison-Wesley, 1960. [4] S. Wolfram, Mathematica, edition, Cambridge 1999.