All AP Courses AP Physics C: Electricity and MagnetismAP Physics C: E&M

Unit 12 · Topic 12.1 · about 30 minutes · 7 parts · 12 scored checks, 1 of them multiple choice, plus 2 from earlier lessons

AP Physics C: Electricity and Magnetism 12.1: Magnetic Fields

Unit 12: 10 to 20% of the multiple-choice section

What you'll be able to do

  • Describe a magnetic field as a vector field made by dipoles, map it with arrows and field lines, and use Gauss's law for magnetism to explain why its field lines always close.
  • Explain how a material's magnetic behavior, ferromagnetic, paramagnetic or diamagnetic, comes from how its magnetic dipoles line up, and treat Earth as a dipole that a compass lines up with.
  • Describe magnetic permeability, and tell the constant permeability of free space apart from the permeability of a material, which changes with conditions.

Key vocabulary

TermWhat it meansThe exam trap
Magnetic fieldThe vector field B→, measured in teslas (T), that sets the magnetic force on moving charges, currents and magnetic materials at each point.Fields from two sources add as vectors, so find each one's direction before you combine their sizes.
Magnetic dipoleA source of magnetic field with a north pole and a south pole, such as a bar magnet, a compass needle or a single atom.Being small does not make something less of a dipole: an atom and a compass needle each have both poles.
Magnetic monopoleA lone north or south pole with no partner. None has ever been found, and no magnetic field is made by one.Electric fields have point sources, so it is tempting to picture each end of a magnet as one; check where its field lines go before you reason that way.
North and south polesThe two ends of a dipole: outside a magnet, the field points away from the north pole and toward the south pole.A pole's name describes the field around it, so decide which way the field points before you name a pole.
Vector field mapA picture of a field drawn as arrows at many points, each pointing along the field there and longer where the field is stronger.A field line by itself shows direction only; read strength from the arrow lengths or from how closely the lines crowd.
Gauss's law for magnetism∮B→⋅dA→=0: the net magnetic flux through any closed surface is zero.The law is about a closed surface; it says nothing by itself about the flux through one open piece of a surface.
Maxwell's equationsThe four equations that together fully describe electromagnetism; Gauss's law for magnetism is the second of them.The electric and magnetic Gauss's laws have the same left side, so read the right side carefully before you use either one.
Magnetic domainA region of a ferromagnetic material in which the atomic dipoles already point the same way.An unmagnetized piece of iron still has domains; they point in many directions, so their fields mostly cancel.
Permanent and induced magnetismMagnetism that stays after an external field is removed (permanent) or lasts only while a field is applied (induced); both come from dipoles lining up.Both are properties of the whole system of dipoles, not of one atom, so look at how the dipoles are aligned.
FerromagneticDescribes materials such as iron, nickel and cobalt, whose domains line up with an external field and can stay aligned after it is removed.Not every metal is ferromagnetic, so check the material before you predict a strong pull.
ParamagneticDescribes materials such as aluminum, titanium and magnesium, whose dipoles line up weakly with an external field and do not stay aligned once it is removed.Paramagnetic and ferromagnetic materials both line up with the field; they differ in how strongly and in whether the alignment lasts.
DiamagnetismA usually weak alignment of a material's dipole moments opposite an external field, which every material has.Every material has it, but next to a ferromagnetic or paramagnetic response it is usually too weak to notice.
Magnetic permeabilityA measure of how much a material magnetizes in response to an external magnetic field.Permeability describes how strongly a material responds, not how strong the field is, so a strong field does not by itself mean a large permeability.
Vacuum permeabilityThe constant permeability of free space, μ0=4π×10−7 T·m/A, which appears in the equations for magnetic fields.The 4π is part of the value of μ0, not an instruction to multiply by an area or an angle.
Earth's magnetic fieldThe field around Earth, which can be approximated as the field of a single magnetic dipole inside the planet.That dipole is tilted from Earth's spin axis, so a compass points only roughly toward geographic north.
A bar magnet stands on end in the middle of the picture, labeled N beside its top half and S beside its bottom half. Four field lines on each side form closed loops: each runs up through the inside of the magnet, leaves the top end, loops out sideways and comes back into the bottom end, then continues up through the magnet to close on itself. The lines run closest together inside the magnet, and the loops that run nearest the middle of the magnet reach farthest out. An arrowhead on each loop, at its point farthest from the magnet, points downward, and arrowheads on the two lines inside the magnet nearest its sides point upward. Labels read: outside, from N around to S; inside, from S back to N.Tap to open the picture full size

Part 1 Think first A magnet in two pieces

Commit to a guess first. Being wrong now makes the right idea stick better.

Predict first

A student drops a long bar magnet on a tile floor, and it snaps cleanly into two halves: one from the end marked N and one from the end marked S. She holds a compass near each end of each half to see which way the needle swings. What does she find?

In short. A magnetic field B→ is a vector field made only by magnetic dipoles, never by lone poles, so its field lines always close and the net magnetic flux through any closed surface is zero: ∮B→⋅dA→=0.

  • Outside a magnet the field points away from the north pole and loops back to the south pole; inside, it runs from south to north. A compass lines up with the field, its north end pointing along it.
  • A material's magnetism comes from how its electrons' dipoles line up: ferromagnetic materials can stay magnetized, paramagnetic ones align weakly and only while the field is on, and every material has a weak diamagnetic alignment opposite the field.
  • Permeability measures how much a material magnetizes in a field. Free space has the constant μ0=4π×10−7 T·m/A; a material's permeability changes with temperature, orientation and field strength.

Part 2 Learn it Dipoles, closed field lines and materials

2a. Dipoles and field maps

A magnetic field B→ is a vector field: at each point it has a size, measured in teslas (T), and a direction. It is what you use to find the magnetic force on a moving charge, on a current, or on a piece of magnetic material such as iron. The field exerts no magnetic force on a charge at rest.

Every magnetic field is made by magnetic dipoles, alone or combined. A dipole has two poles of opposite polarity, north and south. Poles of the same polarity repel, and poles of opposite polarity attract.

A vector field map draws B→ as arrows at many points, each along the field there and longer where the field is stronger. Around a bar magnet, the field outside points away from the north end and loops back to the south end; inside the magnet it runs from the south end back to the north end, as the diagram at the top of the page shows. The arrows shrink as you move away: a dipole's field gets weaker with distance.

A compass needle is a small dipole. In a field it turns to line up with B→, its north end pointing the way the field points, so carrying a compass from point to point is how a field map is measured.

Quick check · Fill the statement

Complete the statements about a compass near a bar magnet.

A compass needle is a small magnetic dipole. Near a bar magnet, the needle turns until its north end points the magnetic field there. Brought close to the magnet's south pole, the needle's north end swings toward that pole, because poles of polarity attract.

2b. Field lines close: Gauss's law for magnetism

Electric field lines begin on positive charge and end on negative charge. Magnetic field lines have nowhere to begin or end, because there is no magnetic charge: no north pole has ever been found without a south pole. Snap a bar magnet in half and each half is a complete dipole.

So every magnetic field line that enters a closed surface also leaves it, and the net magnetic flux through any closed surface is zero:

∮B→⋅dA→=0.

This is Gauss's law for magnetism, the second of Maxwell's equations, the four equations that together fully describe electromagnetism. Take each area vector pointing outward, as for electric flux: flux leaving the surface is positive and flux entering is negative. These fluxes are small, so this lesson writes them in μT·m², where 1 μT·m² is 10−6 T·m².

Take a closed box around the north end of a bar magnet, with one face cutting across the magnet. If the outward flux is +12 μT·m² through the face beyond the magnet and +3.0 μT·m² through each of the four side faces, the face across the magnet must carry −24 μT·m². The field enters there, running inside the magnet toward its north end.

Quick check · Calculate

A closed box sits near a bar magnet. Using the outward area vector on each face, the magnetic flux through five of its six faces is +40, +15, +15, −5.0 and −5.0 μT·m², where 1 μT·m² is 10−6 T·m². What is the magnetic flux through the sixth face, in μT·m²?

μT·m²

2c. Where dipoles come from, and how materials respond

A magnetic dipole comes from electric charge moving in a circle or spinning. In matter that charge is electrons: their motion makes each atom a tiny dipole. Whether an object is magnetic depends on how those dipoles line up, so permanent magnetism and induced magnetism are both properties of the whole system, the result of many dipoles aligned.

A material's composition sets how it responds to an external field:

  • Ferromagnetic materials, such as iron, nickel and cobalt, contain domains, regions where the dipoles already point the same way. An external field lines the domains up with it, and they can stay aligned after the field is removed, leaving a permanent magnet.
  • Paramagnetic materials, such as aluminum, titanium and magnesium, line up weakly with an external field, and the alignment does not last once the field is removed.
  • Diamagnetism is in every material: the electrons respond with a usually weak alignment opposite the external field. In a material such as copper or water, with neither behavior above, that is all you see.

Magnetic permeability measures how much a material magnetizes in response to an external field. Free space has a constant permeability, the vacuum permeability μ0=4π×10−7 T·m/A, which appears in the equations of later topics. The permeability of a material differs from μ0 and is not a constant for that material: it changes with temperature, orientation and the strength of the applied field.

Quick check · Sort it

Tap a card, then the group the material belongs to by how it responds to an external magnetic field.

Ferromagnetic: can stay magnetized

Paramagnetic: aligns weakly with the field while it is on

Diamagnetic only: aligns weakly opposite the field

2d. Earth as a dipole, and a compass in two fields

Earth's magnetic field can be approximated as the field of a single magnetic dipole, as if a bar magnet sat inside the planet, tilted a little from the axis Earth spins about. A compass on the ground lines up with the horizontal part of that field, which is why its north end points roughly toward geographic north. To name the poles of Earth's dipole, use the rules from chunk 2a: a compass needle's north end is a north pole, and it points along B→.

Near a magnet, a compass lines up with the vector sum of Earth's field and the magnet's field. Take +y as north and +x as east. If Earth's horizontal field is 20 μT north and a magnet adds 15 μT east, the net horizontal field is 202+152=25 μT, at an angle tan−1⁡(1520)=36.9 degrees east of north, and the needle points that way.

Quick check · Decide and justify

A compass's north end points roughly toward Earth's geographic North Pole. Treat Earth's field as the field of one magnetic dipole. Is the pole of that dipole near the geographic North Pole a magnetic north pole or a magnetic south pole?

Which reason supports your answer?

Part 3 Watch it done Flux out through the side of a can

Watch each step, then do the last one yourself.

A small closed cylinder, like a can with both ends on, sits just beyond the north end of a bar magnet, its axis along the magnet's axis. Each flat end has area 3.0×10−4 m². Over the end nearer the magnet, the field is 0.080 T, perpendicular to that end and pointing into the can. Over the far end, the field is 0.050 T, perpendicular to that end and pointing out of the can. Find the net magnetic flux through the curved side, taking outward as positive.

  1. Step 1 · Choose the area vectors

    The can is a closed surface made of three parts: the near end, the far end and the curved side. Give each part an outward area vector: at the near end it points back toward the magnet, at the far end it points away from the magnet, and on the curved side it points out from the axis.

  2. Step 2 · Flux through the near end

    At the near end the field points into the can, against the outward area vector, so Φnear=−(0.080)(3.0×10−4)=−2.4×10−5 T·m², or −24 μT·m², where 1 μT·m² is 10−6 T·m².

  3. Why this step?

    Why do the near end, the far end and the curved side have to be treated together?

    Gauss's law for magnetism is a statement about a whole closed surface: it fixes the total flux through all its parts, not the flux through any one of them. Only the three parts together make the can a closed surface.

  4. Your step · Calculate

    Finish it. Find the flux through the far end, then find the net magnetic flux through the curved side that makes the can, a closed surface, obey Gauss's law for magnetism. Give it in μT·m², taking outward as positive.

    μT·m²

Part 4 Try it Surfaces near a magnet, and a compass that turns

Try it · Rank it

A bar magnet lies along the x-axis with its north end toward +x. Rank the magnetic flux through each surface, using the area vectors named. Signs count: positive is greater than zero, which is greater than negative.

Greatest first

Give each one a place, 1 for first. Give two the same place if they are equal.

Your ranking: none yet

Try it · Calculate

A compass lies flat on a table where Earth's field has a horizontal part of 18 μT pointing north. Take +y as north and +x as east. A bar magnet is placed so that, at the compass, its field is horizontal and points east (+x). The needle settles 30.0 degrees east of north. What is the magnitude of the magnet's field at the compass, in μT?

μT

On paper. Two identical bar magnets lie in a line on a table, a few centimeters apart, with their north ends facing each other. Draw a vector field map: arrows at about a dozen points around and between the magnets, each pointing along the field and shorter where the field is weaker. Then join the arrows into field lines. There is nothing to submit here.

Then compare: lines leave both north ends and bend away from the gap, curving around to each magnet's own south end. At the point midway between the two north ends the two fields cancel, so no arrow goes there. The arrows shrink as you move away from the magnets, and every line you drew should close through one of the magnets.

Part 5 Explain it A compass between Earth and a magnet

Nothing you type leaves this page. Check your answer against the model and each scoring point.

Free response is 50% of the exam score. This one is shaped like Question 4, Qualitative/Quantitative Translation.

Free-response practice · Question 4 style

A compass lies flat on a table, far from anything magnetic except the objects described. Earth's field there has a horizontal part of magnitude BE pointing north. Take +y as north and +x as east. A bar magnet lies along the x-axis, west of the compass, with its north end facing the compass, so that at the compass the magnet's field has magnitude Bm and points east (+x).

(a) A student claims that, with the magnet in place, the compass needle's north end points due east, along the magnet's field. Is the student's claim correct? Justify your answer.

(b) Derive an expression for the angle θ between the needle's north end and due north, in terms of BE and Bm.

(c) The magnet is slid farther west along the x-axis, its north end still facing the compass. Predict whether θ increases, decreases or stays the same. Justify your prediction using your expression from (b).

Model answer

(a) The claim is not correct. A compass needle lines up with the net magnetic field where it sits, and the net field is the vector sum of Earth's field, pointing north, and the magnet's field, pointing east. Because BE is not zero, that sum has a north part as well as an east part, so the needle points between north and east, not due east.

(b) The two fields are perpendicular, so the net field makes an angle θ east of north with tan⁡θ=BmBE, and θ=tan−1⁡(BmBE).

(c) θ decreases. Earth's field at the compass does not change, but the magnet is a dipole, and a dipole's field gets weaker as the distance from it grows, so Bm falls. By (b), a smaller BmBE gives a smaller θ: the needle swings back toward north, and it approaches due north as the magnet moves far away.

Score your own answer. This is a self-check, not a grade. Tick each point your answer makes.

Part 6 Check yourself Three rods and a field probe

The case questions use the class's probe readings. The others mix the ideas from the whole lesson.

A class tests three unlabeled rods, P, Q and R, each made of a single material. A large electromagnet makes a uniform field of 500.000 mT between its flat pole faces, held steady to 1 μT. Each rod in turn is laid along the field, with one end touching a precision field probe, which reads the size of the net field along the field's direction to the nearest 0.001 mT (1 μT). Then the electromagnet is switched off and moved away, the rod left in place, and the probe read again. Last, a fresh rod P2, cut from the same bar as rod P and never magnetized, is tested with the electromagnet's current raised so that the uniform field without any rod is 1000.000 mT.

Probe readings with each rod
RodField without the rod (mT)Reading with the rod (mT)Reading after the field is switched off (mT)
P500.0001400.0003.120
Q500.000500.0100.000
R500.000499.9950.000
P21000.0002000.000not measured

Case question 1 · Match

Tap each rod, then the kind of magnetic behavior its readings show.

Case question 2 · Multiple choice

Compare the readings for rod P and rod P2, which are made of the same material. Which conclusion about that material's permeability do they best support?

Case question 3 · Calculate

For rod P with the field on, the probe reading is the net field: the electromagnet's field plus the field of the rod's aligned dipoles, both along the same line and the same way. What is the magnitude of the field the rod's dipoles add at the probe, in mT?

mT

The rest stand on their own and do not use the case.

Check yourself · Spot the error

A student explains what happens when a magnetized iron bar is snapped in half. Which line is the first to go wrong?

Check yourself · Sort it

A bar magnet sits on a table, and each object is placed near it. Tap a card, then say whether the magnet's field exerts a magnetic force on the object's charge or current.

Magnetic force on its charge or current

No magnetic force on its charge

Part 7 Keep it Bring back earlier ideas

Gauss's law for magnetism stands on signing each face of a closed surface with its outward area vector, from Topic 8.5, and parallels Gauss's law for electric fields from Topic 8.6, with no enclosed source on the right side.

From 8.5 Electric Flux · Spot the error

A closed cube 0.10 m on a side sits in a uniform electric field of 2000 N/C pointing in the +x direction, with two of its faces perpendicular to the field. A student finds the flux through the face on the −x side, the face where the field enters the cube. Which line is the first to go wrong?

From 8.6 Gauss’s Law · Rank it

Four closed surfaces each surround some charges. Rank the net electric flux out of each surface.

Greatest flux first

Give each one a place, 1 for first. Give two the same place if they are equal.

Your ranking: none yet

In three lines

  • Magnetic fields come only from dipoles, so field lines close and ∮B→⋅dA→=0 through any closed surface.
  • A compass lines up with the net field, north end pointing along it, and Earth's field is close to that of one dipole.
  • Materials magnetize by lining up their electrons' dipoles: strongly and lastingly (ferromagnetic), weakly with the field (paramagnetic) or weakly against it (diamagnetic), and permeability measures how much.

Exam strategy for this topic

  • Section I, Multiple Choice: 42 questions in 85 minutes.
  • Section II, Free Response: 4 questions in 95 minutes.
  • This lesson's Explain it is shaped like free-response question 4, Qualitative/Quantitative Translation.
  • A four-function, scientific, or graphing calculator is allowed on both sections of the exam.

When a question asks about a closed surface near a magnet, write ∮B→⋅dA→=0 first, give each part of the surface a sign with its outward area vector, and solve for the part you do not know. When a compass sits in two fields, add them as vectors before you find any angle.

Questions students ask

Why can't magnetic field lines start or end?

A line would have to start or end on a lone magnetic pole, a monopole, and none has ever been found. Every magnetic field comes from dipoles, so every line that leaves a north pole loops around to a south pole and closes through the magnet. Gauss's law for magnetism, ∮B→⋅dA→=0, says the same thing in an equation.

How is Gauss's law for magnetism different from Gauss's law for electric fields?

Both start with the flux through a closed surface. For electric fields that flux equals qencε0, because electric field lines start and end on charge. For magnetic fields it is zero, because there is no magnetic charge for a line to start or end on.

Why does a magnet pick up an iron nail but not a piece of aluminum foil?

Iron is ferromagnetic: the magnet's field lines up whole domains, and the nail becomes a strong magnet itself, with the pole nearest the magnet opposite to the magnet's pole, so they attract. Aluminum is paramagnetic, so its dipoles line up only weakly, and the pull is far too small to lift the foil.

Do I need to memorize the value of μ0?

Know what it is: the permeability of free space, μ0=4π×10−7 T·m/A, a constant. It appears in the equations for the fields of moving charges and currents in the topics that follow, and it is given with the other physical constants.

Does this topic use the Biot-Savart law or Ampère's law?

No. This topic is about what magnetic fields are and how materials respond to them. Calculating the field of a current starts in Topic 12.3 with the Biot-Savart law and continues in Topic 12.4 with Ampère's law.

Course alignment, for teachers

AP Physics C: Electricity and Magnetism topic 12.1, Unit 12: Magnetic Fields and Electromagnetism.

  • Skill 1.A: Create diagrams, tables, charts, or schematics to represent physical situations.
  • Skill 2.C: Compare physical quantities between two or more scenarios or at different times and locations in a single scenario.
  • Skill 3.B: Apply an appropriate law, definition, theoretical relationship, or model to make a claim.
  • Skill 3.C: Justify or support a claim using evidence from experimental data, physical representations, or physical principles or laws.

This lesson maps all 21 essential knowledge statements of the topic to the part that teaches each one: 21 are checked by a scored question. The map is in the lesson file.