It is common to use the Biot–Savart law as a tool to explicitly calculate the magnetic field due to currents flowing in simply shaped wires such as circular loops and straight lines. In this work, by using the Biot–Savart law and its inherent geometric properties, we derive a very simple integral expression that allows a straightforward computation of the magnetic field due to arbitrarily shaped planar current-carrying wires, at a point that lies in the same plane as the current filament. Such an expression is conveniently written in terms of the wire’s shape $r=r(\theta ).$ We illustrate the usefulness of our result by calculating the magnetic field at specific points in the wire’s plane due to currents flowing in conic curves, spirals, and harmonically deformed circular circuits. Relevant asymptotic behavior is calculated in various limits of interest.

## REFERENCES

*Physics for Scientists & Engineers*(Saunders, Philadelphia, 1990), 3rd ed., pp. 836–839.

*Fundamentals of Physics*(Wiley, New York, 1997), 5th ed., pp. 729–732.

*Introduction to Electrodynamics*(Prentice–Hall, Englewood Cliffs, NJ, 1989), 2nd ed., pp. 207–211.

*Classical Electrodynamics*(Wiley, New York, 1975), 2nd ed., pp. 169–173.

*Calculus with Analytic Geometry*(Worth, New York, 1978).

*Static and Dynamic Electricity*(McGraw–Hill, New York, 1969), 3rd ed., p. 320, problem 9C.

*Mathematical Theory of Electricity and Magnetism*(Cambridge U.P., Cambridge, 1948), 5th ed., p. 447, problem 6.

*Mathematical Handbook of Formulas and Tables*(McGraw–Hill, New York, 1968), pp. 37–39.

*Table of Integrals, Series, and Products*(Academic, New York, 1994), pp. 907–913.

*A Catalog of Special Plane Curves*(Dover, New York, 1972), pp. 184–190.

*American Journal of Physics*and

*The Physics Teacher*as a member benefit. To learn more about this member benefit and becoming an AAPT member, visit the Joining AAPT page.