Study Guide

Magnetic Fields Due to Currents

AP Physics 2· AP Physics 2 CED — Magnetism and Electromagnetic Induction· 14 min read

1. Biot-Savart Law and Straight Wire Magnetic Fields★★☆☆☆⏱ 4 min

The Biot-Savart Law is the general rule for finding the magnetic field from any steady current distribution. It breaks total current into infinitesimal segments , each producing a small magnetic field at a point a distance from the segment.

dB=μ04πIdl×r^r2d\vec{B} = \frac{\mu_0}{4\pi} \frac{I d\vec{l} \times \hat{r}}{r^2}

Where points in the direction of conventional current, is the unit vector from the current segment to the point of interest, and direction follows the right-hand rule for cross products. For an infinitely long straight wire, integrating Biot-Savart gives a simple magnitude formula:

B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}

Here is the perpendicular distance from the wire to the point of interest. Direction uses the right-hand grip rule: point your right thumb along conventional current, and your curled fingers follow the circular direction of magnetic field loops around the wire.

📐 Worked Example

A long straight wire carries 2.5 A of conventional current pointing upward along the y-axis. What is the magnitude and direction of the magnetic field at point , 3 cm to the right of the wire on the x-axis?

  1. 1

    Identify given values and convert units: , ,

  2. 2

    Substitute into the straight wire magnetic field formula:

  3. 3
    B=μ0I2πrB = \frac{\mu_0 I}{2\pi r}
  4. 4

    Calculate magnitude:

  5. 5
    B=(4π×107)(2.5)2π(0.03)1.7×105 T=17 μTB = \frac{(4\pi \times 10^{-7})(2.5)}{2\pi (0.03)} \approx 1.7 \times 10^{-5} \text{ T} = 17 \ \mu\text{T}
  6. 6

    Find direction with the right-hand grip rule: thumb points up along the wire, so at a point to the right of the wire, curled fingers point into the page.

2. Magnetic Force Between Parallel Current-Carrying Wires★★★☆☆⏱ 3 min

Any current-carrying wire placed in an external magnetic field experiences a net magnetic force , where is the angle between the current direction and the external magnetic field. If we have two parallel current-carrying wires, each wire produces a magnetic field that exerts a force on the other.

For two parallel wires of length , carrying currents and , separated by distance , the magnetic field from Wire 1 at Wire 2 is , and this field is perpendicular to Wire 2 so $ \sin\theta = 1$. Substituting gives the net force:

F=μ0I1I2L2πdF = \frac{\mu_0 I_1 I_2 L}{2\pi d}

The direction rule is simple: parallel currents attract, opposite currents repel. This is the basis for the SI definition of the ampere, though AP Physics 2 does not require you to memorize this definition.

📐 Worked Example

Two parallel wires are 5.0 cm apart. Wire A carries 4.0 A upward, and Wire B carries 6.0 A downward. What is the magnitude of the force per unit length on Wire A, and is the force attractive or repulsive?

  1. 1

    We solve for force per unit length, so divide the force formula by to get:

  2. 2
    FL=μ0I1I22πd\frac{F}{L} = \frac{\mu_0 I_1 I_2}{2\pi d}
  3. 3

    Convert , then substitute values:

  4. 4
    FL=(4π×107)(4.0)(6.0)2π(0.05)=9.6×105 N/m\frac{F}{L} = \frac{(4\pi \times 10^{-7})(4.0)(6.0)}{2\pi (0.05)} = 9.6 \times 10^{-5} \text{ N/m}
  5. 5

    Confirm direction: currents run in opposite directions, so the force between the wires is repulsive. This can be verified with independent right-hand rule checks for field and force direction.

3. Ampère's Law and Magnetic Fields from Solenoids★★★☆☆⏱ 4 min

Ampère's Law is a simpler alternative to the Biot-Savart Law for current distributions with high symmetry. Ampère's Law states that the line integral of the magnetic field around any closed loop (called an Amperian loop) equals $ \mu_0$ times the net current enclosed by the loop:

Bdl=μ0Ienclosed\oint \vec{B} \cdot d\vec{l} = \mu_0 I_{\text{enclosed}}

To use Ampère's Law effectively, you choose an Amperian loop that matches the symmetry of the magnetic field, so that is constant and parallel to the loop everywhere it is non-zero. One of the most common applications of Ampère's Law in AP Physics 2 is finding the magnetic field inside an ideal solenoid.

An ideal solenoid is a long coil of tightly wound turns of wire carrying current . The magnetic field is uniform and parallel to the solenoid axis inside the coil, and zero outside the coil. If is the number of turns per unit length, Ampère's Law simplifies to give:

B=μ0nIB = \mu_0 n I

Direction of the magnetic field inside a solenoid uses a right-hand grip rule: curl your right fingers around the solenoid in the direction of current flow, and your thumb points in the direction of the magnetic field along the solenoid axis.

📐 Worked Example

A solenoid is 10 cm long, has 500 turns of wire, and carries a current of 2.0 A. What is the magnetic field magnitude at the center of the solenoid? If current flows clockwise when viewed from the right end of the solenoid, what is the direction of the magnetic field at the center?

  1. 1

    Calculate turns per unit length: , so

  2. 2

    Substitute into the solenoid magnetic field formula:

  3. 3
    B=μ0nI=(4π×107)(5000)(2.0)0.013 T=13 mTB = \mu_0 n I = (4\pi \times 10^{-7})(5000)(2.0) \approx 0.013 \text{ T} = 13 \text{ mT}
  4. 4

    Find direction: when viewed from the right end, current is clockwise. Curl your right fingers clockwise, and your thumb points to the left, so the magnetic field points toward the left end of the solenoid along the axis.

4. AP Style Practice Problems★★★★☆⏱ 3 min

✓ Quick check

Test your understanding with this multiple-choice question:

  1. Two long parallel wires separated by distance carry currents of equal magnitude , but opposite directions. What is the magnitude of the net magnetic field at the point halfway between the two wires?

    Reveal answer
    3

    The distance from each wire to the midpoint is , so each wire produces a field of magnitude at the midpoint. Opposite currents mean both fields point in the same direction at the midpoint, so we add their magnitudes to get the total net field.

📐 Worked Example

A student builds a small electromagnet by wrapping 200 turns of insulated copper wire around a hollow plastic tube 5.0 cm long to make a solenoid. The solenoid is connected to a 1.5 V AA battery, and the total resistance of the wire is 3.0 Ω. Estimate the magnitude of the magnetic field at the center of the electromagnet.

  1. 1

    Find current using Ohm's law:

  2. 2

    Calculate turns per unit length: , so

  3. 3

    Substitute into the solenoid field formula:

  4. 4
    B=μ0nI=(4π×107 Tm/A)(4000 m1)(0.50 A)2.5×103 T=2500 μTB = \mu_0 n I = (4\pi \times 10^{-7} \text{ Tm/A})(4000 \text{ m}^{-1})(0.50 \text{ A}) \approx 2.5 \times 10^{-3} \text{ T} = 2500 \ \mu\text{T}
  5. 5

    This is ~50 times stronger than Earth's surface magnetic field (~50 μT), matching real-world expectations for a small homemade electromagnet.

5. Common Pitfalls

Wrong move:

Using electron flow direction instead of conventional current when applying right-hand rules for magnetic field direction

Why:

Many students learn electron flow first in introductory physics and forget AP uses conventional current for all rules

Correct move:

Always confirm the current direction given; reverse the direction if the problem specifies electron flow before applying any right-hand rule

Wrong move:

Using total turns instead of turns per unit length in the solenoid magnetic field formula

Why:

Students memorize the formula incorrectly, mixing up notation from different sources

Correct move:

Write explicitly before substituting into every time you solve a solenoid problem

Wrong move:

Claiming the magnetic field outside an ideal solenoid is non-zero for calculation problems

Why:

Students confuse finite real solenoids with the ideal approximation used in AP Physics 2

Correct move:

Unless the problem explicitly asks about a real short solenoid, assume outside an ideal solenoid

Wrong move:

Stating parallel currents repel and opposite currents attract, matching intuition for electric charges

Why:

Students confuse the force rule for currents with the force rule for static electric charges

Correct move:

Use the mnemonic 'parallel attract' to recall the rule, or re-derive the direction with two quick right-hand steps during the exam if unsure

Wrong move:

Using the straight-line distance to a point instead of the perpendicular distance from the wire in the formula

Why:

Students misapply the formula to points off the perpendicular axis and take the wrong distance

Correct move:

Always calculate the shortest (perpendicular) distance from the wire to the point of interest before substituting

6. Quick Reference Cheatsheet

Category

Formula

Notes

Biot-Savart Law (general)

For any steady current distribution; points in direction of conventional current

Magnetic field from long straight wire

is perpendicular distance from wire; direction via right-hand grip rule

Force between parallel wires

Parallel currents attract, opposite currents repel; is separation between wires

Ampère's Circuital Law

For symmetric current distributions; is net current through the Amperian loop

Magnetic field inside ideal solenoid

= turns per unit length; uniform inside, outside ideal solenoid

Permeability of free space

Exact value used for all free-space calculations in AP Physics 2

When this came up on past exams

AI-estimated based on syllabus patterns — cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2023 · 1

    Force between parallel current-carrying wires

  • 2022 · 2

    Solenoid magnetic field calculation

What's Next

This topic is the foundation for all further work in magnetism and electromagnetic induction in AP Physics 2 Unit 5. Mastery of right-hand rules and field magnitude calculations here is required to solve nearly all multi-concept magnetism problems, which are common in both MCQ and FRQ sections of the exam. Next, you will build on this knowledge to study magnetic forces on moving charges and current-carrying wires in external magnetic fields, where you will use the field calculation skills you practiced here. Following that, you will move on to electromagnetic induction, where calculating magnetic flux through loops depends entirely on understanding how magnetic fields from currents are distributed. Without this foundation, solving complex induction problems will be much more difficult than necessary.