Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 41

Calculating Magnetic Fields with Biot-Savart and Ampère's Laws

Recommended resources

Hello! Welcome to your first lesson on magnetostatics.

In our previous module, we built a comprehensive understanding of electrostatics—the physics of stationary charges. We concluded by exploring how to approximate the electric fields of complex charge distributions. Now, we shift our focus to the phenomena that arise when charges are in steady motion. This is the domain of magnetostatics, the study of steady currents and the magnetic fields they produce.

Today, we will introduce the two fundamental laws used to calculate magnetic fields from current distributions. Your learning outcome is to apply the Biot-Savart Law and Ampère's Law (integral and differential forms) to calculate magnetic fields.

This lesson will cover:

  • The Biot-Savart Law, a general method for finding the magnetic field from any current distribution.
  • Ampère's Law in its integral form, a powerful tool for calculating magnetic fields in situations with high symmetry.
  • The connection between the integral and differential forms of Ampère's Law, which will give us a glimpse into the local relationship between magnetic fields and currents.

1. The Biot-Savart Law: The Magnetic Analogue of Coulomb's Law

Just as Coulomb's Law allows us to calculate the electric field from a distribution of charges, the Biot-Savart Law allows us to calculate the magnetic field from a distribution of currents. It states that an infinitesimal segment of current-carrying wire, , produces an infinitesimal magnetic field, , at a position away.

The law is expressed as:

To find the total magnetic field at a point, we must integrate this expression over the entire current distribution:

Let's break down the components:

  • is the permeability of free space, a fundamental constant with the value .
  • is an infinitesimal vector pointing in the direction of the current .
  • is the position vector from the current element to the point where the field is being calculated, and .
  • is the unit vector .
  • The cross product is crucial. It means the resulting magnetic field is perpendicular to both the current direction and the vector connecting the current to the point of interest. The direction is given by the right-hand rule.

Applying the Biot-Savart Law: Field of a Straight Wire

The canonical application of the Biot-Savart Law is calculating the magnetic field produced by a long, straight wire. This requires setting up and solving a vector integral, a fantastic exercise for your calculus skills.

The video below provides a detailed, step-by-step derivation. It starts by finding the field from a finite rod and then takes the limit as the rod becomes infinitely long. This approach is more instructive than tackling the infinite case directly.

Biot-Savart Law and Ampere's Law with a current carrying wire.

Watch this section of the video 'Biot-Savart Law and Ampere's Law with a current carrying wire' from the Reumi's world channel. It provides an excellent, explicit walkthrough of the integration required to find the magnetic field of a current-carrying rod.

Watch from 07:47 to 17:26. Pay close attention to how the geometry is set up, how the cross product is handled, and the trigonometric substitution used to solve the integral. The final step shows how the result for a finite rod simplifies for an infinitely long wire.

As you saw in the video, the integration yields a simple and famous result for the magnetic field at a radial distance from an infinitely long, straight wire carrying current :

Here, is the unit vector that curls around the wire according to the right-hand rule.

Here is a static image summarizing the derivation for your reference.

Biot-Savart Law Application: Infinite Straight Conductor
This diagram shows the geometric setup and key integral for calculating the magnetic field of a long straight wire using the Biot-Savart Law, leading to the final expression.

2. Ampère's Law: The Magnetic Analogue of Gauss's Law

While the Biot-Savart Law is always true, the integral can be very difficult to solve for complex geometries. For situations with high symmetry, we have a much more powerful tool: Ampère's Law.

In electrostatics, Gauss's Law relates the flux of the electric field through a closed surface to the enclosed charge. Ampère's Law is similar in spirit but relates the circulation of the magnetic field around a closed loop to the total current passing through that loop.

In its integral form, Ampère's Law is:

Let's break this down:

  • The integral is a line integral around a closed path, or loop, called an "Amperian loop".
  • measures how much the magnetic field aligns with the path at each point.
  • is the net electric current that passes through the surface bounded by the loop . The direction of "passing through" is determined by a right-hand rule applied to the direction of the loop integration.

When can we use Ampère's Law?
Just like Gauss's Law, Ampère's Law is most useful when symmetry allows us to simplify the line integral. We need to be able to choose an Amperian loop where:

  1. is tangent to the loop and has a constant magnitude . The integral becomes .
  2. is perpendicular to the loop. The integral becomes .

Let's see this in action.

Application 1: Infinite Straight Wire (Revisited)

The high degree of cylindrical symmetry makes the infinite wire a perfect candidate for Ampère's Law. The following reading walks through this classic example.

3. Magnetostatics

Let's read the section 'A Long Straight Wire' from David Tong's lecture notes on Electromagnetism. It demonstrates how symmetry arguments make applying Ampère's Law incredibly simple for this problem.

Read from the beginning of Section 3.1.1 'A Long Straight Wire' up to equation (3.5). Focus on the symmetry argument that establishes \mathbf{B} = B(r)\hat{oldsymbol{\phi}} and see how this simplifies the line integral.

As you can see, by choosing a circular Amperian loop of radius centered on the wire, the line integral simplifies beautifully:

Since , Ampère's law gives , which immediately recovers the result we found with the Biot-Savart Law: . The difference in effort is remarkable.

Application 2: The Ideal Solenoid

Another crucial application is finding the magnetic field inside a solenoid—a coil of wire wound into a tight helix. For an infinitely long solenoid, the field inside is remarkably uniform, and the field outside is zero.

The following text provides a clear, symmetry-based derivation of this result using a cleverly chosen rectangular Amperian loop.

Electromagnetism III: Magnetostatics

Now, let's look at Example 6 from Kevin Zhou's Olympiad handout. It uses concise symmetry arguments and a rectangular Amperian loop to derive the magnetic field inside an infinite solenoid.

Read 'Example 6' in the PDF. Follow the arguments for why the radial (B_r) and tangential (B_\phi) components of the field must be zero, leaving only a B_z component. Then, see how Ampère's law is applied to a rectangular loop to find the value of B_z.

This derivation shows that the magnetic field inside a long solenoid with turns per unit length carrying current is:

And the field outside is . This ability to create a strong, uniform magnetic field makes solenoids a vital component in countless engineering and scientific applications, from electromagnets and inductors to MRI machines.

Test your understanding!

Why can't you use Ampère's Law to easily find the magnetic field on the axis of a single circular loop of current?

Show answer

While the setup has some symmetry (rotational symmetry about the axis), there is no Amperian loop you can draw where the magnetic field has a constant magnitude along the entire loop. The field strength varies with distance from the wire. For example, if you draw a circular loop coaxial with the current loop, the B-field is not tangent to it (it has both radial and axial components). If you draw a rectangular loop, the field strength changes along the sides parallel to the axis. This prevents you from pulling out of the integral, making Ampère's Law impractical for this geometry. You would need to use the Biot-Savart Law instead.


3. The Differential Form of Ampère's Law

The integral form of Ampère's Law relates the magnetic field over a macroscopic loop to the total current. Physics often seeks a local relationship—one that holds at every single point in space. This is given by the differential form of the law.

To get there, we introduce current density, , which is the vector representing the current per unit area at a point. The total current is the flux of the current density through the surface : .

By applying Stokes' Theorem from vector calculus, which states , we can transform the line integral of into a surface integral of its curl, .

The following video masterfully derives this relationship. For our current topic of magnetostatics, the electric field is constant, so the term involving is zero.

Maxwell-Ampere Equation (Ampere's Circuital Law) in Integral and Differential Form

The video 'Maxwell-Ampere Equation...in Integral and Differential Form' by Elucyda provides a rigorous derivation connecting the two forms of Ampere's Law using Stokes' Theorem.

Watch the video, focusing on the following parts: (0:56 - 3:54): Understand the physical meaning of the line and surface integrals. (5:36 - 8:59): Understand the definition of current density \mathbf{J}. (8:59 - 15:38): Follow the key mathematical derivation where Stokes' theorem is applied to convert the integral form into the differential form. For now, you can ignore the displacement current term involving \epsilon_0 and the electric field, as we are in magnetostatics where fields are steady.

By equating the integrands, we arrive at the differential form of Ampère's Law for magnetostatics:

This beautiful equation is a local statement: the amount the magnetic field "curls" or circulates at a point is directly proportional to the current density at that same point. This is one of the pillars of classical electromagnetism.

Derivation of the Differential Form of Ampere's Law
This image visually summarizes how Stokes' Theorem is used to equate the surface integral of the curl of B with the surface integral of the current density J, leading to the differential form of Ampère's Law.

Conclusion

In this lesson, we have equipped ourselves with the two foundational laws of magnetostatics for calculating magnetic fields from steady currents.

Key Takeaways:

  • The Biot-Savart Law () is a general, fundamental law that works for any current geometry but often requires complex integration.
  • Ampère's Law () is a powerful shortcut for calculating magnetic fields in situations with high cylindrical, toroidal, or planar symmetry.
  • We derived the magnetic fields for two canonical systems: the long straight wire () and the ideal solenoid ().
  • The differential form of Ampère's Law, , provides a local relationship between the curl of the magnetic field and the current density at a point. It is derived from the integral form using Stokes' Theorem.

Preview of the Next Lesson:
Our exploration of magnetostatics has just begun. While Ampère's law is elegant, its reliance on symmetry is limiting. In the next lesson, we will introduce the magnetic vector potential, . Similar to how the scalar potential simplified many electrostatics problems, the vector potential provides a more advanced and often more powerful framework for finding the magnetic field, especially for complex systems. We will define it through the relation and see how it connects back to the Biot-Savart law.