<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AJCM</journal-id><journal-title-group><journal-title>American Journal of Computational Mathematics</journal-title></journal-title-group><issn pub-type="epub">2161-1203</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ajcm.2022.124024</article-id><article-id pub-id-type="publisher-id">AJCM-121316</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Impact of the Evolution of a Curved Charge Distribution on Electric Field
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Haiduke</surname><given-names>Sarafian</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>The Pennsylvania State University, State College, USA</addr-line></aff><pub-date pub-type="epub"><day>18</day><month>10</month><year>2022</year></pub-date><volume>12</volume><issue>04</issue><fpage>341</fpage><lpage>348</lpage><history><date date-type="received"><day>5,</day>	<month>October</month>	<year>2022</year></date><date date-type="rev-recd"><day>18,</day>	<month>November</month>	<year>2022</year>	</date><date date-type="accepted"><day>21,</day>	<month>November</month>	<year>2022</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Theoretically, it is plausible to assume for a chosen charge distribution the electric field can be calculated. However, in practice depending on the geometry of the distribution one faces mathematical challenges. In this research-
   
  oriented project, we select a set of related familiar 2D geometric curves addressing the mathematical issues. Specifically, we consider a family of curves that evolved via step-by-step “evolution”
  .
   The evolution begins from a segment of a circular arc to a complete circle. The electric fields are formulated, evaluated, and graphed. Accomplishing these objectives relied heavily on utilizing a Computer Algebra System (CAS), specifically Mathematica 
  [1]
  
  
  
  . The CPU’s expensive runtimes are circumvented by introducing mathematical procedures.
 
</p></abstract><kwd-group><kwd>Charge Distribution</kwd><kwd> Electric Field</kwd><kwd> Computer Algebra System</kwd><kwd> &lt;i&gt;Mathematica&lt;/i&gt;</kwd><kwd> Maplesoft</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>At the outset, one might envision a given charge distribution creating an electrostatic potential, ϕ , and that creates the electric field, E , via the global relationship, E = − ∇ ϕ , [<xref ref-type="bibr" rid="scirp.121316-ref2">2</xref>]. If the mere objective is to hunt for the electric field naturally the latter equation is less mathematically challenging that is because once the scalar potential function, ϕ , is formed evaluation of its gradient is straight-forward. However, although one of our objectives is to hunt for the field, we wish not to apply the latter procedure. That is to say directly by utilizing the charge distribution to evaluate the field. We realize this potentially may pose mathematical difficulties, meaning one needs to wrestle with vectors, however, we foresee with the advances in Computer Algebra System (CAS) the mathematical challenges might be at ease.</p><p>For the sack of demonstration in this research-oriented project, we consider a family of related continuous charge distributions. We begin with a basic building “cell” and explore the impact of its evolution while morphing to a circular completion.</p><p>With this plan, we craft our report which is composed of three sections. In addition to the Introduction in Sect. 2, we describe the details of the project showing the evolution of the distribution, and the formulation of the problem. This section shows the CAS in action, specifically Mathematica and on occasion Maplesoft. The output of the codes for visual understanding is accompanied by an atlas of the graphs. We conclude the article with the last section, Conclusions and Comments.</p></sec><sec id="s2"><title>2. Formulation and Analysis</title><p><xref ref-type="fig" rid="fig1">Figure 1</xref> depicts the systematic evolution of a circular arc. It shows it begins with a 45˚ arc and in eight successive steps completes a full circle. Assuming each arc length sustains the same charge density, this assists in paving the road yielding the formulation of the electric field at an exterior point along the horizontal axis.</p><p>Table[ParametricPlot[{rCos[θ],rSin[θ]}/.r-&gt;1.,{θ,0,nπ/4},PlotRange-&gt; {{-1.2,1.2},{-1.2,1.2}},PlotLabel-&gt;StringJoin[θ^&#176;”=“,ToString[n45]],PlotStyle-&gt;Red],{n,1,8}]</p><p><xref ref-type="fig" rid="fig2">Figure 2</xref> shows the issue on hand. Point p is a typical exterior point of interest. The charged element on the rim of the circular curve contains a minuscule charge, dq, in the first quadrant. It generates a differential E_field, d E , with orientation as shown.</p><p>One of our objectives is to identify (evaluate) the field due to the entire charge on the circular arc. The steps needed are:</p><p>As shown in <xref ref-type="fig" rid="fig2">Figure 2</xref> assuming the differential charge dq is small as such it acts as a point charge, the overall E field comes about by adding pieces originating from the distributed charge on the rim of the curved line,</p><p>E = k ∫ d q d i s t 2 (1)</p><p>The denominator of (1) is the distance from dq to p and the value of K in SI units is k = 1 4 π ϵ 0 = 8.9 &#215; 10 9     N ⋅ ( m C ) 2 . As shown the horizontal and vertical components of E explicitly are,</p><p>E x ( x ) = k λ R ∫ 0 θ u p x − R cos θ ( x 2 + R 2 − 2 x R cos θ ) 3 2 d θ E y ( x ) = k λ R ∫ 0 θ u p sin θ ( x 2 + R 2 − 2 x R cos θ ) 3 2 d θ (2)</p><p>where the λ is the linear charge density, λ = q l . As shown in <xref ref-type="fig" rid="fig1">Figure 1</xref> the lower</p><p>limit of the integrations is always zero, however, the upper limits in radian, θ<sub>up</sub>, correspond to the selected curve.</p><p>We begin with the case where the upper limit of (2) is a π. This corresponds to the fourth diagram on the first row of <xref ref-type="fig" rid="fig1">Figure 1</xref>. We intend to apply CAS, specifically Mathematica to evaluate most of the needed integrations. For an exterior point, p, i.e. for x &gt; r, (1) is coded as,</p><p>intxπ=Integrate[(x-rCos[θ])/(x^2+r^2-2xrCos[θ])^(3/2),{θ,0,π},Assumptions→x&gt;r]</p><p>((EllipticE[(4 r x)/(r+x)<sup>2</sup>]/(-r+x)+EllipticK[(4 r x)/(r+x)<sup>2</sup>]/(r+x)) Sign[r+x]) /x if r+x!=0</p><p>We noticed 1) on an Intel COREi5, Mathematica V13.0 takes eight minutes to produce the shown output, and Mathematica V13.1 fails to produce an output. And 2) the second integration is somewhat, and its run time is short.</p><p>intyπ=Integrate[(Sin[θ])/(x^2+r^2-2xrCos[θ])^(3/2),{θ,0,π},Assumptions→x&gt;r]</p><p>(r-x+Abs[r+x])/(rx(-r+x)Abs[r+x])</p><p>With these observations we have devised an approach circumventing these issues, we propose replacing the integrands with reasonably ordered Taylor expanded polynomials. Knowing the exact output of the upper limit of the case, π, we establish the appropriate order for the Taylor expansions. What follows is the result of our investigation.</p><p>By trial and error we realized low ordered polynomials for short distances estimate the exact electric fields however, they agreed at far distances. We optimize the order by expanding the integrand to higher orders. As such 20-ordered polynomial yields a reasonable output, needless to point out the quality of the output stays as good for longer distances. Aiming for a perfect result requires higher than 20 ordered polynomials, but this becomes CPU time expensive which we are trying to avoid.</p><p>Here are the steps leading to our procedure, Taylor expansion of the y-component of (1) for a circle of radius of one unit is,</p><p>Taylorx20=Normal[Series[(x-rCos[θ])/(x^2+r^2-2xrCos[θ])^(3/2),{Cos[θ], 0,20}]];</p><p>integratexn=Table[Integrate[Taylorx20/.r-&gt;1,{θ,0,n π/4}],{n,1,8}];</p><p>The output of these codes is suppressed, as they are very long.</p><p>We also give the Maplesoft code assuming some might-be interested [<xref ref-type="bibr" rid="scirp.121316-ref3">3</xref>].</p><p>Taylor20 := series((-r*xi + x)/(-2*r*x*xi + r^2 + x^2)^(3/2), xi = 0, 20);</p><p>convert&amp;xi;20` := convert(Taylor20, polynom);</p><p>convert&amp;xi;&amp;theta;20` := subs(xi = cos(theta), `convert&amp;xi;20`);</p><p>int&amp;theta;20` := int(`convert&amp;xi;&amp;theta;20`, theta = 0 .. Pi);</p><p>subs20 := subs(r = 1, `int&amp;theta;20`);</p><p>Plots of the given Mathematica codes are shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p><p>plotxn=Table[Plot[integratexn[[n]],{x,1.01,6},AxesLabel-&gt;{“x”,”E<sub>x</sub>”},GridLines-&gt;Automatic,PlotStyle-&gt;Hue[0.1 n],PlotLabel-&gt;StringJoin[“integrated angle \n from 0 to=“,ToString[n “π/4”]]],{n,1,8}]</p><p>The result shown in <xref ref-type="fig" rid="fig4">Figure 4</xref> is what intuitively one would have expected, i.e. the longer the arc length the stronger the associated field and vice versa. As such the brown curve with the shortest arc length is the weakest while the magenta curve corresponding to the longest arc length is the strongest. All the shown curves become indistinguishable at long distances.</p><p>For the y-axis, we repeat the mentioned procedure utilizing the second equation of (2).</p><p>Taylory20=Normal[Series[Sin[θ]/(x^2+r^2-2xrCos[θ])^(3/2),{Cos[θ],0, 20}]];</p><p>integrateyn=Table[Integrate[Taylory20/.r-&gt;1,{θ,0,n π/4}],{n,1,8}];</p><p>Here again because of the lengthiness of the outputs they are suppressed. The unitless E<sub>y</sub> vs. the unitless x-axis are shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>.</p><p>tablen1=Table[{x,180./π ArcTan[integrateyn[[<xref ref-type="bibr" rid="scirp.121316-ref1">1</xref>]]/integratexn[[<xref ref-type="bibr" rid="scirp.121316-ref1">1</xref>]]/.r-&gt;1.]}, {x,1.01,6}]</p><p>tablen4=Table[{x,180./π ArcTan[integrateyn[[<xref ref-type="bibr" rid="scirp.121316-ref4">4</xref>]]/integratexn[[<xref ref-type="bibr" rid="scirp.121316-ref4">4</xref>]]/.r-&gt;1.]}, {x,1.01,6}]</p><p>{{1.01,66.2426},{2.01,15.7619},{3.01,9.22861},{4.01,6.48196},{5.01,4.98543}}</p><p>{{1.01,59.9414},{2.01,18.7433},{3.01,12.2783},{4.01,9.16265},{5.01,7.31438}}</p><p>listplotn1=ListPlot[tablen1,PlotLabel-&gt;“π/4”,AxesLabel-&gt;{“x(m)”,”ϕ<sup>&#176;</sup>”},PlotStyle-&gt;Blue,GridLines-&gt;Automatic];</p><p>listplotn4=ListPlot[tablen4,PlotLabel-&gt;“π”,AxesLabel-&gt;{“x(m)”,”ϕ<sup>&#176;</sup>”},PlotStyle-&gt;Red,GridLines-&gt;Automatic];</p><p>Show[{listplotn1,listplotn4},PlotLabel-&gt;“Blue=“π/4”\n Red=π”]</p><p>Here we display two samples of the orientation angle, ϕ, for the electric fields associated with the π/4 and π arc lengths, for the x-axis, respectively shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>In <xref ref-type="fig" rid="fig6">Figure 6</xref>, the blue dots correspond to the arc-length π/4, the first plate of <xref ref-type="fig" rid="fig1">Figure 1</xref>. The red dots are for the arc length of π and corresponds to the last plate of the first row of <xref ref-type="fig" rid="fig1">Figure 1</xref>.</p><p>Here we report the magnitude of the electric fields for mentioned cases, for the π/4 and π cases respectively.</p><p>electricFieldsn1=Table[{x,sqrt(integratexn[<xref ref-type="bibr" rid="scirp.121316-ref1">1</xref>]^2+integrateyn[<xref ref-type="bibr" rid="scirp.121316-ref1">1</xref>]^2)}, {x,1.01,6}]</p><p>{{1.01,2.5979},{2.01,0.574783},{3.01,0.170703},{4.01,0.0798993},{5.01,0.0460531}}</p><p>electricFieldsn4=Table[{x,sqrt(integratexn[<xref ref-type="bibr" rid="scirp.121316-ref4">4</xref>]^2+integrateyn[<xref ref-type="bibr" rid="scirp.121316-ref4">4</xref>]^2)}, {x,1.01,6}]</p><p>{{1.01,3.71365},{2.01,1.01629},{3.01,0.387647},{4.01,0.2077},{5.01,0.130107}}</p><p>listplotE1=ListPlot[electricFieldsn1,PlotStyle-&gt;Blue,AxesLabel-&gt;{“x(m)”,”E unitless”},GridLines-&gt;Automatic];</p><p>listplotE4=ListPlot[electricFieldsn4,PlotStyle-&gt;Red,AxesLabel-&gt;{“x(m)”,”E, unit less”},GridLines-&gt;Automatic];</p><p>Show[{listplotE1,listplotE4},PlotRange-&gt;All]</p><p>In <xref ref-type="fig" rid="fig7">Figure 7</xref>, as expected, the blue values are weaker than the red. This is because the former corresponds to a shorter arc length, where the reds with the longer.</p></sec><sec id="s3"><title>3. Conclusions and Comments</title><p>In this research-oriented investigation by choosing a suitable approximation we circumvent the CPU expensive CAS-based procedure efficiently shortening the run-time of computations that we routinely face computing electrostatic-based problems. We have utilized two different CASs: Mathematica and Maplesoft proving identical outputs irrespective of the named software concluding the choice of the software is personal. The proposed methodology softly approximates the exact calculation and nonetheless runs the computation without hanging the computer. To make the output of the calculation as close as possible to the exact with optimizing the CPU run-time we considered 20 ordered polynomials in the Taylor approximation. This high-order replacement irrespective of the arc length of the curve of the case on hand generates perfect agreements at long distances relative to the radius of the curvature and mildly underestimates at shorter distances. The interested reader may find [<xref ref-type="bibr" rid="scirp.121316-ref4">4</xref>] and [<xref ref-type="bibr" rid="scirp.121316-ref5">5</xref>] resourceful to run the embedded codes creating the associated graphs.</p></sec><sec id="s4"><title>Acknowledgements</title><p>The author acknowledges the John T. and Page S. Smith Professorship funds for completing and publishing this work.</p></sec><sec id="s5"><title>Conflicts of Interest</title><p>The author declares no conflicts of interest regarding the publication of this paper.</p></sec><sec id="s6"><title>Cite this paper</title><p>Sarafian, H. (2022) Impact of the Evolution of a Curved Charge Distribution on Electric Field. American Journal of Computational Mathematics, 12, 341-348. https://doi.org/10.4236/ajcm.2022.124024</p></sec></body><back><ref-list><title>References</title><ref id="scirp.121316-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Wolfram Mathematica V13.1 (2022). http://Wolfram.com</mixed-citation></ref><ref id="scirp.121316-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Jackson, J.D. (1999) Classical Electrodynamics. 3rd Edition, John Wiley &amp; Sons, Inc., New Jersey.</mixed-citation></ref><ref id="scirp.121316-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Maplesoft (2022)http://www.maplesoft.com.</mixed-citation></ref><ref id="scirp.121316-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Wolfram, S. (2003) Mathematica Book. 5th Edition, Cambridge University Press, Cambridge.</mixed-citation></ref><ref id="scirp.121316-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Sarafian, H. (2019) Mathematica Graphics Examples. 2nd Edition, Scientific Research Publishing, Wuhan.</mixed-citation></ref></ref-list></back></article>