8.02T Electricity and Magnetism
Electric and magnetic fields, Gauss's law, circuits, induction, Maxwell's equations and electromagnetic waves.
Based on MIT OpenCourseWare, Spring 2005 · Bruce Knuteson, Prof. Eric Hudson, Dr. George Stephans, Prof. John Belcher, Prof. John Joannopoulos, Prof. Michael Feld, Dr. Peter Dourmashkin · Course on OCW
Sessions 21 of 36 with pages so far
- Fields: scalar, vector, gravitational and electric
Electricity and magnetism are described by fields: a quantity at every point of space, created by one object and felt by another. A scalar field gives a number at each point (a temperature), a vector field a vector (a wind velocity). Fluid flows show the two basic patterns, sources and sinks (divergence) and circulation (curl). Vector fields are drawn as arrows on a grid, as field lines, or as 'grass seeds'. The gravitational field of a mass M is g = −GM r̂/r², and a mass m in it feels mg. In the same way a charge q creates the electric field E = k_e q r̂/r² (Coulomb's law), a charge q₀ in it feels q₀E, and the fields of several charges add.
- Session 1 Vector and Scalar Fields; Gravitational and Electric Fields MIT ↗ (opens in a new tab)
- Field lines, charging and electric dipoles
Electric field lines start on positive charges and end on negative ones, and their density shows the field's strength. A charge q in a field E feels qE and accelerates. Objects are charged by friction, by touching and by induction. An electric dipole is a pair of charges ±q a distance 2a apart, with dipole moment p = 2qa pointing from − to +. Its field falls off as 1/r³, faster than a point charge's. In a uniform field a dipole feels no net force but a torque τ = p × E, which turns it into line with the field; its potential energy is U = −p · E. In a non-uniform field it is also pulled, which is why a charged comb picks up paper.
- Session 2 Electric Fields, Charge, Dipoles; Continuous Charge Distributions MIT ↗ (opens in a new tab)
- Electric fields of continuous charge distributions
When charge is spread out, it is described by a density: ρ per unit volume, σ per unit area, λ per unit length. The field is the sum, now an integral, of Coulomb fields k_e dq r̂/r² of the small pieces. Worked out: a rod seen along its axis and from its perpendicular bisector, a ring on its axis, E = k_e Q z/(R² + z²)^(3/2), and a disc on its axis, built from rings. Far away each looks like a point charge; close to it, the rod looks like an infinite line (field ∝ 1/r) and the disc like an infinite plane, with constant field σ/2ε₀ that jumps by σ/ε₀ across the sheet.
- Session 2 Electric Fields, Charge, Dipoles; Continuous Charge Distributions MIT ↗ (opens in a new tab)
- Electric potential and potential energy
Gravity and the electric force are both conservative, so each has a potential energy, U_B − U_A = −∫ F · ds, and a potential, the energy per unit mass or charge. The electric potential difference is ΔV = −∫ E · ds, in volts (joules per coulomb); moving a charge q through it takes work qΔV. For a point charge V = k_e Q/r, and potentials of several charges simply add, as numbers. The field follows from the potential, E = −∇V: field lines cross the equipotentials at right angles and point downhill. Assembling charges stores energy, the sum of k_e q_i q_j/r_ij over pairs. The same ideas give V for a ring, a disc and a rod.
- Session 4 Experiment 1: Visualizations; Electric Potential MIT ↗ (opens in a new tab)
- Gauss's law
The electric flux through a surface counts the field lines crossing it: Φ = EA cos θ for a flat surface in a uniform field, and the surface integral of E · dA in general. Gauss's law, the first of Maxwell's equations, says that the flux out of any closed surface is the enclosed charge divided by ε₀. For a point charge it follows from the 1/r² law, because a surface's flux depends only on the solid angle it covers. With symmetry it gives fields quickly: a concentric sphere for spherical charge (a shell has no field inside; a uniform ball has E ∝ r inside and k_eQ/r² outside), a coaxial cylinder for a line (E = λ/2πε₀r) and a pillbox for a plane (E = σ/2ε₀).
- Session 5 Gauss's Law MIT ↗ (opens in a new tab)
- Conductors, capacitors and stored energy
In a conductor charges move freely, so in equilibrium the field inside is zero, any net charge sits on the surface, the whole conductor is at one potential and the field just outside is perpendicular to the surface, of size σ/ε₀. A capacitor is two conductors with charges ±Q; its capacitance C = Q/ΔV depends only on its shape: ε₀A/d for parallel plates, 4πε₀ab/(b − a) for concentric spheres, 4πε₀a for an isolated sphere. Charging it takes work U = Q²/2C = ½CΔV², and that energy is stored in the field, with energy density u_E = ½ε₀E².
- Session 7 Conductors and Insulators; Experiment 2: Electrostatic Force; Capacitors MIT ↗ (opens in a new tab)
- Shielding, combining capacitors and dielectrics
A hollow conductor separates inside from outside: a charge inside induces a balancing charge on the inner wall, and a charge outside only rearranges the outer surface, leaving the field inside zero. An ideal battery holds a fixed potential difference; batteries in series add their voltages. Capacitors in parallel share one voltage and their capacitances add; in series they share one charge and their inverse capacitances add. A dielectric, an insulator between the plates, is polarized by the field: its aligned dipoles leave surface charges that weaken the field by the dielectric constant κ, so the capacitance grows to κC₀.
- Session 8 Conductors; Experiment 3: Faraday Ice Pail; Capacitors and Dielectrics MIT ↗ (opens in a new tab)
- Current, resistance and DC circuits
Current is the rate at which charge flows, I = dQ/dt, in amperes; the current density J is current per unit area. In a wire, a field pushes the electrons at a slow drift speed, and in most materials J = σE (microscopic Ohm's law). For a wire of length ℓ and area A this becomes ΔV = IR with R = ρℓ/A. A battery's emf pumps charge uphill; a real battery has internal resistance, so its terminal voltage is ε − Ir. Resistors in series add; in parallel their inverses add. Kirchhoff's rules (currents into a junction equal currents out, and voltage changes around any loop add to zero) solve any circuit. Power is P = IΔV; a resistor dissipates I²R.
- Session 10 DC Circuits; Kirchhoff's Loop Rules MIT ↗ (opens in a new tab)
- Measuring circuits and RC circuits
A voltmeter goes in parallel and should have a very large resistance; an ammeter goes in series with a very small one; an ohmmeter applies a voltage to an element and measures the current. A capacitor charged through a resistor by an emf ε obeys a first-order differential equation from Kirchhoff's loop rule; its charge rises as Q(1 − e^(−t/RC)) and the current falls as (ε/R)e^(−t/RC). Discharging, both decay as e^(−t/RC). The time constant τ = RC, in seconds, sets the pace: each τ the remaining difference shrinks by a factor e.
- Session 12 Working with Circuits; RC Circuits (Experiment 4) MIT ↗ (opens in a new tab)
- Magnetic fields and the force on moving charges
Bar magnets have north and south poles; like poles repel, and field lines leave north and enter south. Every magnet, the Earth included, is a dipole: cutting one gives two dipoles, never an isolated pole, so the magnetic flux out of any closed surface is zero. A charge q moving with velocity v in a magnetic field B feels F = qv × B, perpendicular to both, which defines B (in tesla). Since the force is perpendicular to the velocity it does no work: it bends paths without changing speeds, into circles of radius mv/qB. With an electric field too, the total is the Lorentz force q(E + v × B); crossed fields pass only particles with v = E/B.
- Session 14 Magnetic Fields (Experiment 5); Charges Moving in B Fields MIT ↗ (opens in a new tab)
- Forces on currents and the Biot–Savart law
A current is moving charge, so a wire carrying current I in a magnetic field feels F = I L × B, or the integral of I ds × B for a curved wire; around a closed loop in a uniform field the forces cancel. Currents also create magnetic fields. The Biot–Savart law gives the field of a short piece of wire, dB = (μ₀/4π) I ds × r̂/r², much like Coulomb's law but with a cross product, and a moving charge gives (μ₀/4π) q v × r̂/r². Integrating: a long straight wire has circular field lines with B = μ₀I/2πa; a ring has B = μ₀I/2R at its centre and μ₀IR²/2(R² + z²)^(3/2) on its axis. Parallel currents attract, opposite currents repel.
- Session 15 Magnetic Force (Experiment 6); Creating B Fields: Biot–Savart MIT ↗ (opens in a new tab)
- Magnetic dipoles: torque, energy and force
A current loop in a uniform magnetic field feels no net force, but a torque. For a rectangular loop it is IabB, and in general τ = μ × B, where the magnetic dipole moment μ = NIA points along the loop's area vector by the right-hand rule. Like an electric dipole, a magnetic dipole has potential energy U = −μ · B, lowest when it lines up with the field: compass needles and galvanometers work this way. In a non-uniform field the energy changes with position, so the dipole also feels a force, F = ∇(μ · B): a dipole aligned with the field is pulled towards stronger field, which is why two magnets lined up end to end, north to south, attract. Far away, a current loop's field is a dipole field like that of an electric dipole.
- Session 17 Dipoles and Magnetic Fields; Experiment 7: Dipoles in B Fields MIT ↗ (opens in a new tab)
- Levitation and Ampère's law
Materials respond to magnetic fields: in paramagnets and ferromagnets atomic moments line up with the field, while every material is slightly diamagnetic, acting like a magnet pointing against the field. A diamagnet therefore seeks weaker field and can be levitated, like a frog in a 16 T magnet or a magnet over a superconductor. Ampère's law, the third Maxwell equation, says that the line integral of B around any closed loop is μ₀ times the current through it. Like Gauss's law it is always true but useful only with symmetry: outside a thick wire B = μ₀I/2πr, inside it grows as r; an ideal solenoid has a uniform field μ₀nI inside and none outside; a current sheet gives a uniform field on each side.
- Session 18 Levitation (Experiment 8); Ampère's Law MIT ↗ (opens in a new tab)
- Faraday's law of induction
A changing magnetic flux through a circuit induces an emf: ε = −N dΦ_B/dt, where Φ_B = ∫ B · dA is the magnetic flux, in webers. The flux BA cos θ can change through the field, the area or the angle, so a magnet falling through a ring, a rod sliding on rails and a coil turning in a field all induce currents. Lenz's law gives the sign: the induced current opposes the change that caused it, which is why the falling magnet slows and a ring jumps off an energised coil. A rod sliding on rails gives ε = Blv and a braking force; a coil turning at ω gives ε = NBAω sin ωt, the principle of generators. Since the emf is the line integral of E around the loop, a changing magnetic field makes a non-conservative electric field.
- Session 20 Faraday's Law and its Applications MIT ↗ (opens in a new tab)
- Eddy currents, transformers and magnetic materials
A ring passing a magnet feels the flux rise and then fall, so its induced current reverses but always opposes the change. Currents induced in solid metal, eddy currents, turn the kinetic energy of a moving magnet or disc into heat, which is how magnetic brakes work. A changing current in one coil induces an emf in another: ε₂ = −M dI₁/dt, with the mutual inductance M in henries. A transformer shares one changing flux between two coils, so the voltages are in the ratio of the turns, ε_s/ε_p = N_s/N_p; this is why power is sent at high voltage, which cuts the I²R loss in the lines. In matter, aligned atomic dipoles add a field μ₀M: paramagnets enhance a field a little, ferromagnets a lot and keep some magnetization (hysteresis), diamagnets weaken it.
- Session 21 Experiment 9: Faraday's Law; Transformers; Magnetic Materials MIT ↗ (opens in a new tab)
- Self-inductance, LR circuits and magnetic energy
A coil's own current sends flux through it, so a changing current induces a back emf in the coil itself: ε_L = −L dI/dt, with the self-inductance L = NΦ_B/I in henries; for a solenoid L = μ₀n²πR²ℓ. Inductors resist changes of current, the opposite of capacitors. In an LR circuit the current rises as (ε/R)(1 − e^(−t/τ)) and decays as e^(−t/τ), with τ = L/R. With changing fields the electric field is no longer conservative, and Kirchhoff's loop rule is kept by treating the inductor as a drop of L dI/dt. Building up a current stores energy U = ½LI², held in the magnetic field with energy density B²/2μ₀.
- Session 24 Inductance and LR Circuits; Energy in Inductors MIT ↗ (opens in a new tab)
- LC oscillations and damped RLC circuits
A real inductor has some resistance as well as inductance, which Experiment 10 measures. Connect a charged capacitor to an inductor and the charge oscillates like a mass on a spring: L d²Q/dt² + Q/C = 0, so Q = Q₀ cos ω₀t with ω₀ = 1/√(LC). The energy swings between the capacitor's electric field, Q²/2C, and the inductor's magnetic field, ½LI², with the total fixed. The inductor plays the mass (it resists changes of current) and the capacitor the spring. Adding a resistor damps the oscillation: the charge rings down as e^(−Rt/2L) and oscillates a little more slowly, at ω′ = √(ω₀² − (R/2L)²).
- Session 25 Experiment 10: Measuring L; LC and LRC Circuits MIT ↗ (opens in a new tab)
- AC circuits, phasors and resonance
A mass on a spring pushed at frequency ω moves at that frequency, with an amplitude that peaks when ω is near its natural frequency: resonance. An RLC circuit driven by an AC voltage V₀ sin ωt does the same. Alone, a resistor's current is in phase with the voltage; a capacitor's current leads by a quarter cycle and an inductor's lags, with reactances X_C = 1/ωC and X_L = ωL. Phasors, rotating arrows, add these with their phases: in a series RLC circuit I₀ = V₀/Z with impedance Z = √(R² + (X_L − X_C)²) and phase tan φ = (X_L − X_C)/R. The current peaks at resonance, ω₀ = 1/√(LC), where Z = R. The average power is I_rms V_rms cos φ, and the resonance peak has width R/L.
- Session 26 Driven Harmonic Motion (RLC); Experiment 11: Driven RLC Circuit MIT ↗ (opens in a new tab)
- Displacement current, Maxwell's equations and light
Ampère's law fails for a charging capacitor: a loop around the wire encloses the current through one surface but nothing through another that passes between the plates. Maxwell's fix is the displacement current ε₀ dΦ_E/dt: a changing electric field makes a magnetic field, just as a changing magnetic field makes an electric one. With this term the four Maxwell equations (Gauss for E and B, Faraday, Ampère–Maxwell) plus the Lorentz force describe all of classical electromagnetism. In empty space they give waves travelling at c = 1/√(μ₀ε₀) ≈ 3 × 10⁸ m/s: light. In a plane wave E and B are perpendicular to each other and to the direction of travel, in phase, with E = cB. The wave carries energy; the Poynting vector S = E × B/μ₀ gives the flow per unit area, and its average is the intensity.
- Session 28 Displacement Current, Maxwell's Equations; Electromagnetic Waves MIT ↗ (opens in a new tab)
- Standing waves and the wave equation for light
Two equal waves running in opposite directions add up to a standing wave, 2E₀ sin kx cos ωt (with the slides' sign choice): a fixed pattern whose points oscillate in place, with nodes half a wavelength apart where the field is always zero. Standing waves appear in musical instruments, microwave ovens and oscillating bridges. In a standing electromagnetic wave the nodes of E are the antinodes of B and vice versa. Applying Faraday's law and the Ampère–Maxwell law to thin rectangles gives ∂E_y/∂x = −∂B_z/∂t and ∂B_z/∂x = −μ₀ε₀ ∂E_y/∂t, which combine into the wave equation ∂²E/∂x² = μ₀ε₀ ∂²E/∂t². Any shape f(x − vt) solves it if v² = 1/μ₀ε₀, and the two fields must have amplitudes with E₀ = cB₀.
- Session 30 Traveling and Standing Waves; Electromagnetic Waves MIT ↗ (opens in a new tab)
- Generating electromagnetic waves
Electromagnetic waves are made by accelerating charges. Pull an infinite sheet of charge down at speed v and the kink in its field lines runs outwards at c, carrying a field E₁ = (v/c)(σ/2ε₀) and B₁ = E₁/c; the field pushes back on the sheet, and the work done against it leaves as radiation, all of it. Shaking the sheet up and down makes a sinusoidal plane wave. A practical source is an oscillating electric dipole, an antenna: a quarter-wavelength antenna is why AM radio towers are so tall. A spark gap acts as a fast LC oscillator that drives an antenna. The radiation is polarized along the antenna, which Experiment 12 shows with microwaves, measuring their wavelength from a standing wave.
- Session 32 Generating Electromagnetic Waves; Experiment 12: Microwaves MIT ↗ (opens in a new tab)
- Interference and diffraction
Waves from coherent sources add: where they arrive in phase they reinforce, where half a wavelength out of step they cancel. A path difference ΔL shifts the phase by 2πΔL/λ. Two sources a distance d apart, seen on a screen at distance L, give bright fringes at d sin θ = mλ, spaced λL/d: Young's double slit, the experiment that showed light is a wave and lets us measure wavelengths smaller than a thousandth of a millimetre. Thin films produce colours by the same rule. Waves also bend round obstacles: a single slit of width a spreads light, with dark directions at a sin θ = mλ. Two slits of finite width combine both effects: interference fringes inside a diffraction envelope.
- Session 33 Interference; Experiment 13: Interference MIT ↗ (opens in a new tab)
- Problem set Problem Set 1: line and surface integrals, fields, charge distributions and dipoles
Ten problems for the first week of 8.02. Line integrals of a scalar and of a vector field along different paths, the charge on a plate with a non-uniform density, electric flux through a flat surface and through half of a cylinder's side, field lines, the field of two opposite charges, a semicircular wire with a non-uniform charge, a dipole in a uniform field, and three short questions on fields.
Practises sessions 1, 2
- Problem set Problem Set 2: fields of continuous charges and the electric potential
Ten problems on charge spread over lines, surfaces and volumes and on the electric potential. Charge densities of a cylinder, the field of a charged rod on its axis and on its perpendicular bisector, the field on the axis of a charged tube and of a solid cylinder, the potential of a rod with a growing charge density, the field found from a given potential, work and energy for two, three and eight point charges, and five short questions on fields and potentials.
Practises sessions 2, 4
- Problem set Problem Set 3: Gauss's law and conductors
Nine problems on Gauss's law and conductors. MIT's guided session on two charged coaxial cylinders, step by step from the symmetry to the potential differences, then a sphere with a hollow inside, a model of a p-n junction, a sphere whose density grows outwards, a thick charged slab, the energy of a uniform ball, a field found from a given potential, charges on a hollow metal sphere and on two spheres joined by a wire, and three short questions on fields and conductors.
Practises sessions 5, 7
- Problem set Problem Set 4: capacitance, stored energy and dielectrics
Thirteen problems on capacitors. MIT's guided session on a cylindrical capacitor, step by step from the field to the capacitance and the stored energy, then charging it by hand, a charged capacitor shared with an empty one, slabs and layers of dielectric between plates, pulling plates and cylinders apart, four capacitors with a switch, Gauss's law in a dielectric shell around a sphere and around a line of charge, a mica capacitor in numbers, the force between the plates, the energy density in a dielectric, and four short questions.
Practises sessions 7, 8
- Problem set Problem Set 5: current, resistance, DC circuits and RC circuits
Six problems on currents and circuits: drift speed in a starter cable, stretching a wire, charge at the boundaries of a layered resistor, two batteries in series and in parallel, a circuit with two loops and three batteries, and a capacitor charged through a network of resistors.
Practises sessions 10, 12
- Problem set Problem Set 6: magnetic force, torque and magnetic moments
Five problems on the magnetic force on currents. From the force on moving charges to the force on a wire, the forces and torque on a rectangular loop, a square loop on a hinge held up by its own current, a loop shaped like an ice-cream cone, and a copper wire floating in the Earth's field.
Practises sessions 14, 15
- Problem set Problem Set 7: the Biot–Savart law, magnetic dipoles and Ampère's law
Five problems on the sources of magnetic fields. Ampère's law for a hollow cylindrical conductor and for a thick slab of current, the Biot–Savart law for four parallel wires and for a spinning charged disc, and the field of a bar magnet and the force it exerts on a second magnet.
Practises sessions 15, 17, 18
- Problem set Problem Set 8: Faraday's law, eddy currents, transformers and magnetic materials
Five problems on induction. A rectangular loop falling out of a magnetic field, a bar driven along rails by a battery, a loop in a field that rises, holds and falls, the magnetization of iron and of a paramagnetic rod, and questions on Lenz's law, eddy currents and transformers.
Practises sessions 20, 21
- Problem set Problem Set 9: inductance, LR and LC circuits, and driven RLC circuits
Five problems on inductors and alternating currents: a resistor, an inductor and a capacitor each driven alone, two black boxes found from the current they draw, an LR circuit whose switch is opened, an inductor that charges a capacitor, and a tuned FM antenna circuit.
Practises sessions 24, 25, 26
- Problem set Problem Set 10: displacement current, electromagnetic waves and the Poynting vector
Five problems on Maxwell's equations and light: the displacement current and the magnetic field inside a charging capacitor, the flow of energy into that capacitor, a plane wave travelling through ferrite, the energy carried by a plane wave, and light reflected by a perfect mirror into a standing wave.
Practises sessions 28, 30
- Problem set Problem Set 11: double-slit interference, diffraction and radiation
Five problems on making and combining light waves. The conditions for bright and dark fringes behind two slits and the intensity between them, fringes on a screen, slits of unequal size and three slits, the side maxima of a single slit and the fringes inside its central maximum, and radiation from an accelerated sheet of charge, an antenna and a solar sail.
Practises sessions 32, 33
Not written yet
- Session 3 Problem Solving Session 1: Line and Surface Integrals MIT ↗ (opens in a new tab)
- Session 6 Problem Solving Session 2: Electric Field of Continuous Charge Distributions MIT ↗ (opens in a new tab)
- Session 9 Problem Solving Session 3: Gauss's Law MIT ↗ (opens in a new tab)
- Session 11 Problem Solving Session 4: Capacitance MIT ↗ (opens in a new tab)
- Session 13 Concept Review and Sample Exam MIT ↗ (opens in a new tab)
- Session 16 Problem Solving Session 5: Magnetic Torque and Moments MIT ↗ (opens in a new tab)
- Session 19 Problem Solving Session 6: Ampère's Law MIT ↗ (opens in a new tab)
- Session 22 Problem Solving Session 7: Faraday's Law MIT ↗ (opens in a new tab)
- Session 23 Concept Review and Sample Exam MIT ↗ (opens in a new tab)
- Session 27 Problem Solving Session 8: Driven RLC Circuits MIT ↗ (opens in a new tab)
- Session 29 Problem Solving Session 9: Displacement Current, Poynting Vector MIT ↗ (opens in a new tab)
- Session 31 Concept Review and Sample Exam MIT ↗ (opens in a new tab)
- Session 34 Problem Solving Session 10: Interference MIT ↗ (opens in a new tab)
- Session 35 The Structure of Space and Time MIT ↗ (opens in a new tab)
- Session 36 Concept Review and Sample Exam MIT ↗ (opens in a new tab)