Abstract
We calculate the magnetic field generated by a steady current that takes the shape of two types of special curves: hypocycloids and epicycloids with n numbers of sides. The computation was performed in the center of the referred curves. For this purpose, we use the BiotSavart law which is studied in every introductorylevel electricity and magnetism course. The result is quite general because it is obtained as a function of the number of sides of the curve and in terms of a parameter ϵ that identifies the type of curve considered (ϵ = −1 hypocycloids and ϵ = + 1 epicycloids).
Keywords
Magnetic field; BiotSavart Law; Hypocycloid; Epicycloid
1. Introduction
The calculation of the magnetic field due to a steady current in a circuit is one of the exercises that all students in the firstlevel course of electricity and magnetism must confront. For this purpose, introductory physics textbooks present BiotSavart’s (BS) law and Ampere’s law [^{1}1. J. Walker, Halliday & Resnick Fundamentals of physics (John Wiley & Sons, New York, 2018)., ^{2}2. H.D. Young and R.A. Freedman, Sears and Zemansky’s university physics: with modern physics (Pearson Education, New York, 2020), 15a ed., ^{3}3. R.A Serway and J.W. Jewett, Physics for scientists and engineers with modern physics (Cengage Learning, Boston, 2019), 10a ed.]. Although these laws are equivalents [^{4}4. T.A. Weber and D.J. Macomb, Am. J. Phys. 57, 57 (1989).], the elementary texts usually begin the magnetic field calculations using the BS law. This is because BS law provides students a general tool for calculating the magnetic field due to a currentcarrying wire of arbitrary shape while Ampere’s law can only be used when the symmetry of the problem allows extracting B of the integral ∮B⋅dl [^{5}5. D.J. Griffiths, Introduction to Electrodynamics (Pearson Education, New York, 2013), 4a ed.].
Additionally, the BS law is introduced first because there is a theoretical evolution between it and Ampere’s law. The BS law can be obtained by making a parallel with the integral that is used to calculate the electric field of a charge distribution, and the Ampere law has a correspondence with the Gauss law.
In most situations, textbooks focus on magnetic field caculations to straight wire conductors, curved wire segments, circular current loops, or combinations of these cases, excluding the rest of the geometric shapes of the study. Miranda [^{6}6. J.A. Miranda, Am. J. Phys. 68, 254 (2000).] extends the calculation of the magnetic field using the BS law to conic curves, spirals, and harmonically deformed circular circuits at a point that lies in the same plane as the current filament, finding that in most cases the calculation is straightforward but some particular types of expressions called elliptic integrals appear [^{7}7. G. Arfken, Mathematical Methods for Physicists (Academic Press, New York, 1985), 3a ed., ^{8}8. M. Abramowitz and I.A. Stegun, Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables (Dover, New York, 1972), 9a ed.]. In this paper we are going to extend the study carried out by Miranda, considering two additional groups of plane curves, the epicycloids and the hypocycloids [^{9}9. J.D.A Lawrence, Catalog of Special Plane Curves (Dover, New York, 1972)., ^{10}10. R.C. Yates, Curves and their properties (The National Council of Teachers of Mathematics, New York, 1952)., ^{11}11. M. Berger, Geometry I (Springer, New York, 1987).]. These types of curves appear in different branches of physics, such as Mechanics [^{12}12. T.J.I’A. Bromwich, Proceedings of the London Mathematical Society s2–13, 222 (1914)., ^{13}13. D.M. Ruch, F.J. Fronczak and N.H. Beachley, SAE Transactions 100, 1547 (1991).], Optics [^{14}14. T.D. Bradley, Y. Wang, M. Alharbi, B. Debord, C. FourcadeDutin, B. Beaudou, F. Gerome and F. Benabid, J. Lightwave Technol. 31, 2752 (2013).], and Cosmology [^{15}15. Y. Lim, Phys. Rev. D 101, 104031 (2020).]. Although the employment of special functions and parameterization of particular curves could make it laborious to calculate the magnetic field, computational tools such as those offered by Mathematica [^{16}16. Wolfram Research, System Modeler Version 8 (2012).] and Maple [^{17}17. Maplesoft, Maple Version 2018.0 (2018).] allow us to simplify the problem and examine the solutions obtained. Since the magnetic field is expressed in terms of elliptical integrals, we believe that this exercise is a good opportunity to introduce students to these special functions [^{18}18. R.H. Good, Eur. J. Phys. 22, 119 (2001).]. This calculation uses physical concepts and mathematical techniques that would be accessible to an average freshman student.
1.1. Epicycloids and hypocycloids
An epicycloid is a plane curve generated by a fixed point P on the edge of a circle of radius b rolling externally upon a fixed circle of radius a with a > b. A hypocycloid is obtained similarly except that the circle of radius b rolling internally upon a fixed circle of radius a [^{9}9. J.D.A Lawrence, Catalog of Special Plane Curves (Dover, New York, 1972)., ^{10}10. R.C. Yates, Curves and their properties (The National Council of Teachers of Mathematics, New York, 1952)., ^{11}11. M. Berger, Geometry I (Springer, New York, 1987).] as can be seen in Figure 2.
Closed and nonselfintersecting epicycloid curves. For illustrative purposes, we display the plots for some values of n considering a equal to one arbitrary unit.
The parametric equations of the epicycloid and hypocycloid curves are [^{9}9. J.D.A Lawrence, Catalog of Special Plane Curves (Dover, New York, 1972)., ^{10}10. R.C. Yates, Curves and their properties (The National Council of Teachers of Mathematics, New York, 1952)., ^{11}11. M. Berger, Geometry I (Springer, New York, 1987).]:
where ϵ = + 1 corresponds to an epicycloid and ϵ = −1 corresponds to a hypocycloid. These expressions were derived in Appendix. To obtain a closed and nonintersecting curve, we set the relationship a/b = n, where n is an integer number, and correspond with the number of sides of the geometric shape. Then, we get:
where θ varies from 0 to 2π. Figure 2 and Figure 3 show some epicycloid and hypocycloid curves generated with the above parametric equations for different integer values of n.
Closed and nonselfintersecting hypocycloid curves. For illustrative purposes, we display the plots for some values of n considering a equal to one arbitrary unit.
2. The Magnetic Field Calculation
To determine the magnetic field in the center of the loop which carries a steady current I, we will apply the BS law[^{5}5. D.J. Griffiths, Introduction to Electrodynamics (Pearson Education, New York, 2013), 4a ed.] for a line current
where μ_{0} is the permeability of free space. Using Eq. (3) and (4) we find the infinitesimal length element
if we consider that the observation point is the center of the curve (origin of coordinates), we have:
where the x and y values are giving in Eqs (3) and (4).
We calculate
and
As can be observed from Fig. 2 and Fig. 3 the ncusped epi and hypocycloids are symmetrical under rotations of the angle 2π/n around the zaxis. Since the magnetic field is a vector, it also has components along the x and yaxis. Under finite rotations these components could change even though the source remains symmetric. The only possibility that the components do not change under finite rotations is that they will be zero, as can be seen in Eq. (8).
3. Results
Thus, replacing Eq. (8) and Eq. (9) in Eq. (5), and performing the integration with Mathematica [^{16}16. Wolfram Research, System Modeler Version 8 (2012).], we obtain the magnetic field in the origin
where ϵ = + 1 corresponds to an epicycloid curve and ϵ = −1 corresponds to a hypocyloid curve. In addition, F(ϕ,k) is the elliptic integral of the first kind and E(ϕ,k) is the elliptic integral of the second kind [^{7}7. G. Arfken, Mathematical Methods for Physicists (Academic Press, New York, 1985), 3a ed., ^{8}8. M. Abramowitz and I.A. Stegun, Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables (Dover, New York, 1972), 9a ed.]. To form a closed curve and consequently generate an electric current, the integral was carried out in the interval [0,2π] and for n > 2. This expresion is quite general because represent the magnetic field in the center of any (epi)hypocycloid with n > 2. From Eq. (3) it can be verified that for large values of n, the magnitude of the magnetic field tends to μ_{0}I/2a, which corresponds to the magnetic field in the center of a circular loop. Additionally, the Figure 4 shows the behavior of the magnetic field as a function of the number of sides, and as can be seen when the number of sides increases considerably, the magnetic field of both sets of curves tends to that of a closed circular loop. The same behavior can be observed from Table 1.
Numerical values of the magnitude of the magnetic field for the epicycloids and hypocycloids circuits as a function of the number of sides n. As can be seen, when the number of sides increases considerably, the magnetic field of both sets of curves tends to 2π.
Magnetic field plot in function of the number of sides n of the (epi)hypocicloyd. The central dash line represent the 2π value.
4. Conclusion
In this work, we derive a general expresion to compute the magnetic field produced by currentcarrying wires with planar hypocycloids and epicycloids shapes. The calculation of the magnetic field is carried out in the center of the geometric shape, and the current flowing through the cables is considered stable. We have analyzed the asymptotic behavior of our result for very large values of n and we have been able to verify that the expression tends to that generated by a circular loop as would be expected from Figure 2 and Figure 3. We show that using an adequate parametrization of the curves, and with the help of computational tools such as the Mathematica package we could calculate the magnetic field, visualize the results and compare among different types of curves. The derivation of the magnetic field contains only basic geometric ideas, making it accessible to an average introductory electricity and magnetism student. The present work is intended to serve as an example for future attempts to evaluate the magnetic field in nonstandard cases using the BS law. A different approach to calculate the magnetic field of a loop at any point of space using a regular nsided polygon and the superposition principle is discussed in [^{19}19. J.E. GarcíaFarieta and A. Hurtado MÃ¡rquez, Rev. Bras. Ensino Fís. 42, e20200282 (2020).].
REFERENCES

^{1.}J. Walker, Halliday & Resnick Fundamentals of physics (John Wiley & Sons, New York, 2018).

^{2.}H.D. Young and R.A. Freedman, Sears and Zemansky’s university physics: with modern physics (Pearson Education, New York, 2020), 15^{a} ed.

^{3.}R.A Serway and J.W. Jewett, Physics for scientists and engineers with modern physics (Cengage Learning, Boston, 2019), 10^{a} ed.

^{4.}T.A. Weber and D.J. Macomb, Am. J. Phys. 57, 57 (1989).

^{5.}D.J. Griffiths, Introduction to Electrodynamics (Pearson Education, New York, 2013), 4^{a} ed.

^{6.}J.A. Miranda, Am. J. Phys. 68, 254 (2000).

^{7.}G. Arfken, Mathematical Methods for Physicists (Academic Press, New York, 1985), 3^{a} ed.

^{8.}M. Abramowitz and I.A. Stegun, Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables (Dover, New York, 1972), 9^{a} ed.

^{9.}J.D.A Lawrence, Catalog of Special Plane Curves (Dover, New York, 1972).

^{10.}R.C. Yates, Curves and their properties (The National Council of Teachers of Mathematics, New York, 1952).

^{11.}M. Berger, Geometry I (Springer, New York, 1987).

^{12.}T.J.I’A. Bromwich, Proceedings of the London Mathematical Society s2–13, 222 (1914).

^{13.}D.M. Ruch, F.J. Fronczak and N.H. Beachley, SAE Transactions 100, 1547 (1991).

^{14.}T.D. Bradley, Y. Wang, M. Alharbi, B. Debord, C. FourcadeDutin, B. Beaudou, F. Gerome and F. Benabid, J. Lightwave Technol. 31, 2752 (2013).

^{15.}Y. Lim, Phys. Rev. D 101, 104031 (2020).

^{16.}Wolfram Research, System Modeler Version 8 (2012).

^{17.}Maplesoft, Maple Version 2018.0 (2018).

^{18.}R.H. Good, Eur. J. Phys. 22, 119 (2001).

^{19.}J.E. GarcíaFarieta and A. Hurtado MÃ¡rquez, Rev. Bras. Ensino Fís. 42, e20200282 (2020).
Publication Dates

Publication in this collection
10 Feb 2021 
Date of issue
2021
History

Received
22 Nov 2020 
Reviewed
02 Jan 2021 
Accepted
09 Jan 2021