<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.physicsbook.gatech.edu/index.php?action=history&amp;feed=atom&amp;title=Magnetic_Field_of_a_Curved_Wire</id>
	<title>Magnetic Field of a Curved Wire - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.physicsbook.gatech.edu/index.php?action=history&amp;feed=atom&amp;title=Magnetic_Field_of_a_Curved_Wire"/>
	<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Magnetic_Field_of_a_Curved_Wire&amp;action=history"/>
	<updated>2026-05-15T09:57:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.7</generator>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=Magnetic_Field_of_a_Curved_Wire&amp;diff=47560&amp;oldid=prev</id>
		<title>Jeet2004: Created page with &quot;== Creating Magnetic Field of a Curved Wire == &#039;&#039;&#039;Jeet Bhatkar – Fall 2025&#039;&#039;&#039;  == Big Idea == An electric current in a wire creates a magnetic field that curls around the wire.  For a curved wire, each tiny piece of the wire contributes a small magnetic field. The total field is found by adding (integrating) all these contributions. For arcs of a circle, this leads to simple and very useful formulas.  == Key Equations ==  &#039;&#039;&#039;Biot–Savart Law (for a small piece of wire...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=Magnetic_Field_of_a_Curved_Wire&amp;diff=47560&amp;oldid=prev"/>
		<updated>2025-12-01T04:34:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Creating Magnetic Field of a Curved Wire == &amp;#039;&amp;#039;&amp;#039;Jeet Bhatkar – Fall 2025&amp;#039;&amp;#039;&amp;#039;  == Big Idea == An electric current in a wire creates a magnetic field that curls around the wire.  For a curved wire, each tiny piece of the wire contributes a small magnetic field. The total field is found by adding (integrating) all these contributions. For arcs of a circle, this leads to simple and very useful formulas.  == Key Equations ==  &amp;#039;&amp;#039;&amp;#039;Biot–Savart Law (for a small piece of wire...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Creating Magnetic Field of a Curved Wire ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Jeet Bhatkar – Fall 2025&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Big Idea ==&lt;br /&gt;
An electric current in a wire creates a magnetic field that curls around the wire.&lt;br /&gt;
&lt;br /&gt;
For a curved wire, each tiny piece of the wire contributes a small magnetic field. The total field is found by adding (integrating) all these contributions. For arcs of a circle, this leads to simple and very useful formulas.&lt;br /&gt;
&lt;br /&gt;
== Key Equations ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Biot–Savart Law (for a small piece of wire)&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:&amp;lt;math&amp;gt;d\vec{B} = \frac{\mu_0}{4\pi}\,\frac{I\, d\vec{\ell} \times \hat{r}}{r^2}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;math&amp;gt;\mu_0&amp;lt;/math&amp;gt; = permeability of free space  &lt;br /&gt;
* &amp;lt;math&amp;gt;I&amp;lt;/math&amp;gt; = current (A)  &lt;br /&gt;
* &amp;lt;math&amp;gt;d\vec{\ell}&amp;lt;/math&amp;gt; = tiny vector along the wire (direction of current)  &lt;br /&gt;
* &amp;lt;math&amp;gt;\hat{r}&amp;lt;/math&amp;gt; = unit vector from the wire element to the field point  &lt;br /&gt;
* &amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt; = distance from the wire element to the field point  &lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Magnetic field at the center of a circular arc&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
For a wire shaped as a circular arc of radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; and angle &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (in radians), carrying current &amp;lt;math&amp;gt;I&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;B = \frac{\mu_0 I}{4\pi R}\,\theta&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Direction: given by the right–hand rule (thumb along current, fingers curl in direction of &amp;lt;math&amp;gt;\vec{B}&amp;lt;/math&amp;gt; through the center).&lt;br /&gt;
&lt;br /&gt;
Special cases:&lt;br /&gt;
&lt;br /&gt;
* Full circle: &amp;lt;math&amp;gt;\theta = 2\pi&amp;lt;/math&amp;gt;, field at the center is  &lt;br /&gt;
  &amp;lt;math&amp;gt;B = \dfrac{\mu_0 I}{2R}&amp;lt;/math&amp;gt;  &lt;br /&gt;
* Semicircle: &amp;lt;math&amp;gt;\theta = \pi&amp;lt;/math&amp;gt;, field at the center is  &lt;br /&gt;
  &amp;lt;math&amp;gt;B = \dfrac{\mu_0 I}{4R}&amp;lt;/math&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
== Conceptual Picture ==&lt;br /&gt;
* Magnetic field lines form closed loops around the current.  &lt;br /&gt;
* For a circular arc, field lines near the center look like circles centered on the arc’s center.  &lt;br /&gt;
* The more wire around the center (larger &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt;) or the larger the current &amp;lt;math&amp;gt;I&amp;lt;/math&amp;gt;, the stronger the field there.  &lt;br /&gt;
* Increasing the radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; spreads the current farther away, so the field at the center gets weaker: &amp;lt;math&amp;gt;B \propto 1/R&amp;lt;/math&amp;gt;.  &lt;br /&gt;
&lt;br /&gt;
Use the right–hand rule: point your thumb along the current; your fingers curl in the direction of the magnetic field.&lt;br /&gt;
&lt;br /&gt;
== Worked Example: Field at the Center of a Semicircular Wire ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Problem.&amp;#039;&amp;#039;&amp;#039;  &lt;br /&gt;
A thin wire is bent into a semicircle of radius &amp;lt;math&amp;gt;R = 5.0\,\text{cm}&amp;lt;/math&amp;gt;. A current of &amp;lt;math&amp;gt;I = 3.0\,\text{A}&amp;lt;/math&amp;gt; flows through the wire. Find the magnitude and direction of the magnetic field at the center of the semicircle.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Solution.&amp;#039;&amp;#039;&amp;#039;  &lt;br /&gt;
&lt;br /&gt;
The semicircle is a circular arc with &amp;lt;math&amp;gt;\theta = \pi&amp;lt;/math&amp;gt;. Use the arc formula:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
B = \frac{\mu_0 I}{4\pi R}\,\theta&lt;br /&gt;
= \frac{\mu_0 I}{4\pi R}\,\pi&lt;br /&gt;
= \frac{\mu_0 I}{4R}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Convert &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; to meters:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;R = 5.0\,\text{cm} = 0.050\,\text{m}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;&lt;br /&gt;
B = \frac{(4\pi \times 10^{-7}\,\text{T·m/A})(3.0\,\text{A})}{4(0.050\,\text{m})}&lt;br /&gt;
\approx 1.9 \times 10^{-5}\,\text{T}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Direction: use the right–hand rule for the current around the semicircle.&lt;br /&gt;
&lt;br /&gt;
* If current flows counterclockwise as seen from above, &amp;lt;math&amp;gt;\vec{B}&amp;lt;/math&amp;gt; at the center points out of the page.  &lt;br /&gt;
* If current flows clockwise, &amp;lt;math&amp;gt;\vec{B}&amp;lt;/math&amp;gt; points into the page.  &lt;br /&gt;
&lt;br /&gt;
== Computational Model (GlowScript) ==&lt;br /&gt;
This GlowScript model approximates a circular arc by many small straight segments and uses the Biot–Savart law to compute the magnetic field at the center.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from vpython import *&lt;br /&gt;
import numpy as np&lt;br /&gt;
&lt;br /&gt;
# constants&lt;br /&gt;
mu0 = 4*pi*1e-7   # T·m/A&lt;br /&gt;
I = 3.0           # current (A)&lt;br /&gt;
R = 0.1           # radius of arc (m)&lt;br /&gt;
theta_total = pi  # total angle of arc (radians), e.g. pi for semicircle&lt;br /&gt;
&lt;br /&gt;
N = 200           # number of segments&lt;br /&gt;
&lt;br /&gt;
scene.caption = &amp;quot;Magnetic field at the center of a curved wire (arc)\n&amp;quot;&lt;br /&gt;
scene.width = 700&lt;br /&gt;
scene.height = 400&lt;br /&gt;
&lt;br /&gt;
# center where we calculate B&lt;br /&gt;
r_center = vector(0, 0, 0)&lt;br /&gt;
&lt;br /&gt;
# draw the wire as small cylinders along an arc in the x–y plane&lt;br /&gt;
wire_segments = []&lt;br /&gt;
angles = np.linspace(-theta_total/2, theta_total/2, N)&lt;br /&gt;
&lt;br /&gt;
for i in range(N - 1):&lt;br /&gt;
    a1 = angles[i]&lt;br /&gt;
    a2 = angles[i + 1]&lt;br /&gt;
    p1 = vector(R*cos(a1), R*sin(a1), 0)&lt;br /&gt;
    p2 = vector(R*cos(a2), R*sin(a2), 0)&lt;br /&gt;
    seg = cylinder(pos=p1, axis=(p2 - p1), radius=0.003, color=color.orange)&lt;br /&gt;
    wire_segments.append(seg)&lt;br /&gt;
&lt;br /&gt;
# arrow to show magnetic field at the center&lt;br /&gt;
B_arrow = arrow(pos=r_center, axis=vector(0, 0, 0), color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
def compute_B_center():&lt;br /&gt;
    B = vector(0, 0, 0)&lt;br /&gt;
    for seg in wire_segments:&lt;br /&gt;
        dl = seg.axis                  # direction of current element&lt;br /&gt;
        r_mid = seg.pos + 0.5*seg.axis # midpoint of the segment&lt;br /&gt;
        r_vec = r_center - r_mid&lt;br /&gt;
        r = mag(r_vec)&lt;br /&gt;
        if r == 0:&lt;br /&gt;
            continue&lt;br /&gt;
        dB = (mu0*I/(4*pi)) * cross(dl, r_vec) / r**3&lt;br /&gt;
        B += dB&lt;br /&gt;
    return B&lt;br /&gt;
&lt;br /&gt;
B = compute_B_center()&lt;br /&gt;
B_arrow.axis = B * 5e5  # scale so we can see the arrow&lt;br /&gt;
&lt;br /&gt;
scene.append_to_caption(f&amp;quot;Approximate |B| at center = {mag(B):.3e} T\n&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can experiment by changing &amp;lt;math&amp;gt;I&amp;lt;/math&amp;gt; (current), &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; (radius), and &amp;lt;math&amp;gt;\theta_\text{total}&amp;lt;/math&amp;gt; (total angle in radians).&lt;br /&gt;
&lt;br /&gt;
== Common Mistakes ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Using degrees instead of radians in the arc formula.&amp;#039;&amp;#039;&amp;#039;  &lt;br /&gt;
  The formula &amp;lt;math&amp;gt;B = \dfrac{\mu_0 I}{4\pi R}\,\theta&amp;lt;/math&amp;gt; assumes &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; is in radians.  &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Forgetting that the arc formula is for the field at the center of the circle only.&amp;#039;&amp;#039;&amp;#039;  &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Getting the right–hand rule backwards.&amp;#039;&amp;#039;&amp;#039;  &lt;br /&gt;
  Thumb along current; curled fingers show the direction of &amp;lt;math&amp;gt;\vec{B}&amp;lt;/math&amp;gt;.  &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Ignoring contributions from straight segments&amp;#039;&amp;#039;&amp;#039; in mixed “straight + curved” wire problems.  &lt;br /&gt;
&lt;br /&gt;
== Practice Problems ==&lt;br /&gt;
# A wire is bent into a quarter–circle of radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; carrying current &amp;lt;math&amp;gt;I&amp;lt;/math&amp;gt;.  &lt;br /&gt;
   * (a) Find the magnitude of the magnetic field at the center of the circle.  &lt;br /&gt;
   * (b) If the quarter–circle is completed to a full circle with the same current, by what factor does &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; change?&lt;br /&gt;
&lt;br /&gt;
# A wire consists of a semicircle of radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; connected to two long straight segments that extend radially outward from the ends of the semicircle.  &lt;br /&gt;
   * Find the direction of the net magnetic field at the center.  &lt;br /&gt;
   * Which part (arc or straight segments) contributes most to the magnitude? Explain qualitatively.&lt;br /&gt;
&lt;br /&gt;
# A circular loop of radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; carries current &amp;lt;math&amp;gt;I&amp;lt;/math&amp;gt;.  &lt;br /&gt;
   * (a) Find &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; at the center.  &lt;br /&gt;
   * (b) If only half of the loop remained (a semicircle), what would &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; be at the center?&lt;br /&gt;
&lt;br /&gt;
# You are given a choice of two wires to create a magnetic field at a point:  &lt;br /&gt;
   (1) a small circular loop of radius &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt; with current &amp;lt;math&amp;gt;I&amp;lt;/math&amp;gt;, or  &lt;br /&gt;
   (2) a larger circular loop of radius &amp;lt;math&amp;gt;2R&amp;lt;/math&amp;gt; with the same current.  &lt;br /&gt;
   * Which produces the larger &amp;lt;math&amp;gt;B&amp;lt;/math&amp;gt; at its center? Show your reasoning.&lt;br /&gt;
&lt;br /&gt;
== Copyright and Image Ideas ==&lt;br /&gt;
* Draw your own diagram of a curved wire (arc) with the current direction and the magnetic field at the center indicated by an arrow into or out of the page.  &lt;br /&gt;
* Draw a full circular loop with field lines near the center.  &lt;br /&gt;
&lt;br /&gt;
After you create the images, upload them and insert them with:&lt;br /&gt;
&lt;br /&gt;
[[File:Curved_wire_Bfield.png|thumb|Magnetic field at the center of a current-carrying arc.]]&lt;br /&gt;
&lt;br /&gt;
[[File:Circular_loop_Bfield.png|thumb|Magnetic field at the center of a current in a circular loop.]]&lt;/div&gt;</summary>
		<author><name>Jeet2004</name></author>
	</entry>
</feed>