Sources of magnetic fields
A magnetic field is a vector field, like gravitational and electric fields. It interacts with polarity: every magnet has a north and a south pole, and like poles repel while unlike poles attract.
- Permanent magnets: outside the magnet, field lines run from N to S; inside, from S to N, forming closed loops. Earth itself acts like a huge magnet, with a field of about 5 × 10⁻⁵ T in B.C.
- Moving charges: in 1820, Hans Christian Oersted noticed that a current in a wire deflected a compass needle. Magnetic fields are induced by moving charges: every current makes a field.
- Straight wire: field lines are circles around the wire. Strength B = mu₀ I ÷ (2 pi r).
- Solenoid: inside a long coil of N turns and length L, the field is nearly uniform: B = mu₀ N I ÷ L. Outside, it looks like a bar magnet's field.
Right-hand rules
B.C. courses use right-hand rules for directions. (Some textbooks number them differently; the hand positions are what matter.) They work for conventional current (the direction positive charge would flow) and positive moving charges. For electrons, use the rule and then reverse the force direction.
- Straight wire: point your right thumb along the current. Your curled fingers show the direction of B around the wire.
- Solenoid: curl your right fingers along the current in the loops. Your thumb points to the solenoid's north pole (the direction of B inside).
- Force on a moving charge or a current: point your straight fingers along B and your thumb along v (or I). Your palm faces the direction of the force F.
In diagrams, × means a field or current going into the page and • means out of the page (think of the tail and tip of an arrow).
Magnetic force on moving charges and wires
A magnetic field exerts a force only on charges that are moving (and not along the field):
F = q v B sin(theta), where theta is the angle between v and B.
A current is many moving charges, so a wire of length L carrying current I in a field B feels
F = B I L sin(theta).
The force is always perpendicular to both v and B (right-hand rule 3). Because it is perpendicular to the velocity, it changes the charge's direction but never its speed. A charge moving at right angles to a uniform field travels in a circle, with the magnetic force as the centripetal force:
q v B = m v² ÷ r, so r = m v ÷ (q B).
Hands-on activityOersted's discovery at home
You need: a compass (or a phone compass app), a D-cell battery, about 50 cm of insulated wire with the ends stripped, and an iron nail.
- Lay the wire straight in a north-south line on a table with the compass under it. Touch the ends to the battery for only 2 or 3 seconds. Watch the needle swing.
- Reverse the battery. Does the needle swing the other way? Use right-hand rule 1 to predict it first.
- Wrap the wire 20 times around the nail to make an electromagnet (a solenoid with an iron core). Connect it briefly and pick up paper clips. Use rule 2 to predict which end is north, and test it with the compass.
Safety: short circuits make the wire and battery hot. Connect for only a few seconds at a time and use a single D-cell, never a wall outlet or a car battery.