1. Scope and core ideas
Electricity and magnetism describe how charges interact, how fields store and transfer energy, and how changing fields generate each other.
The subject usually begins with electrostatics, then current and circuit analysis, then magnetostatics, and finally time-varying fields and induction.
Big-picture relationships
Electric charge creates electric fields.
Moving charge is current and creates magnetic fields.
Changing magnetic fields create electric fields.
Changing electric fields create magnetic fields.
That feedback loop is the basis of electromagnetism and electromagnetic waves.
Key quantities
| Quantity | Symbol | Typical SI unit |
|---|---|---|
| Charge | $q$ | coulomb, C |
| Electric field | $\mathbf{E}$ | N/C or V/m |
| Electric potential | $V$ | volt, V |
| Current | $I$ | ampere, A |
| Resistance | $R$ | ohm, $\Omega$ |
| Magnetic field | $\mathbf{B}$ | tesla, T |
| Magnetic flux | $\Phi_B$ | weber, Wb |
| Inductance | $L$ | henry, H |
Useful constants
2. Charge, force, and electric field
Electric charge comes in positive and negative signs. Like charges repel, unlike charges attract.
Coulomb's law
The force between two point charges is
where $\hat{\mathbf{r}}$ points from one charge to the other along the line joining them.
Magnitude form:
Superposition
For multiple charges, add the individual forces or fields vectorially:
Electric field
The electric field is force per unit positive test charge:
For a point charge:
Direction rules:
Field points away from positive charge.
Field points toward negative charge.
Continuous charge distributions
When charge is spread over a line, surface, or volume, use charge density:
Then integrate:
Common symmetry idea
The hardest step is usually choosing the right symmetry. If a distribution has spherical, cylindrical, or planar symmetry, field calculations can simplify dramatically.
3. Electric flux and Gauss's law
Electric flux measures how much electric field passes through a surface.
Flux
For a flat surface in a uniform field:
More generally:
Gauss's law
This is always true, but it is especially useful when symmetry makes $E$ constant on the chosen Gaussian surface.
When Gauss's law is useful
Use it when the charge distribution has enough symmetry that you can choose a surface where:
$E$ is constant on the surface, and
$\mathbf{E}$ is parallel or perpendicular to the area vector in a simple way.
Typical cases:
Spherically symmetric charge distributions
Infinite line charge
Infinite sheet of charge
Long uniformly charged cylinder
Standard results
For a point charge or spherically symmetric distribution outside the charge:
For an infinite line charge:
For an infinite sheet of charge:
For a long uniformly charged solid cylinder, use Gauss's law separately inside and outside the cylinder.
Pitfalls
Flux is not the same as field strength.
Zero net flux does not mean zero field.
Gauss's law is not a shortcut unless symmetry supports it.
4. Electric potential and energy
Electric potential gives a scalar description of electric energy per unit charge.
Potential difference
The potential difference between two points is
Potential is often easier to work with than field because it adds as a scalar.
Potential due to a point charge
For many charges:
Relationship between field and potential
In one dimension:
In vector form:
The field points in the direction of steepest decrease in potential.
Potential energy
The potential energy of a charge in a potential is
For two point charges:
Work done by the electric field is related to the change in potential energy:
Equipotential surfaces
An equipotential surface has constant $V$.
Properties:
No work is required to move a charge along an equipotential.
Electric field lines are perpendicular to equipotential surfaces.
5. Capacitance and dielectrics
A capacitor stores separated charge and electric energy.
Capacitance
Capacitance depends on geometry and dielectric material, not on the amount of charge stored.
Parallel-plate capacitor
For ideal parallel plates:
With dielectric constant $\kappa$:
Energy stored
Energy density in an electric field:
With a dielectric:
where $\varepsilon = \kappa\varepsilon_0$.
Dielectrics
A dielectric polarizes in an electric field and reduces the effective field inside the material.
Main effects:
Increases capacitance
Lowers the field for a given free charge
Allows more charge storage at the same voltage
Capacitor combinations
Series:
Parallel:
Common reasoning
In series, charge magnitude is the same on each capacitor.
In parallel, voltage is the same across each capacitor.
6. Current, resistance, and DC circuits
Current is the rate at which charge flows:
Conventional current is defined as the direction positive charge would move.
Microscopic form of Ohm's law
where $\mathbf{J}$ is current density and $\sigma$ is conductivity.
Resistance
For a uniform conductor:
where $\rho$ is resistivity.
Ohm's law in circuit form:
Power
Kirchhoff's rules
Kirchhoff's current law:
Kirchhoff's voltage law:
for any closed loop.
Circuit analysis workflow
Label nodes and currents.
Choose current directions arbitrarily.
Write junction equations.
Write loop equations with consistent sign conventions.
Solve algebraically.
Check signs: a negative current means the true direction is opposite your assumption.
RC circuits
Charging capacitor:
Discharging capacitor:
Time constant:
After one time constant:
Charging reaches about $63.2\%$ of final value.
Discharging drops to about $36.8\%$ of initial value.
7. Magnetic fields and magnetic forces
Magnetic fields act on moving charges and currents.
Force on a moving charge
Magnitude:
Important consequences:
The magnetic force is perpendicular to velocity.
A magnetic field does no work on a point charge because it does not change speed, only direction.
Force on a current-carrying wire
For a wire segment:
For a straight wire in uniform field:
Motion in a uniform magnetic field
A charge moving perpendicular to a uniform field follows circular motion.
Radius:
Cyclotron angular frequency:
Period:
If velocity has both parallel and perpendicular components, the path is helical.
8. Sources of magnetic fields
Moving charge creates magnetic fields.
Biot-Savart law
For a current element:
This is useful for direct integration when symmetry is limited.
Ampere's law
This is especially effective for highly symmetric current distributions.
Standard magnetic-field results
Long straight wire:
Long solenoid:
where $n$ is turns per unit length.
Toroid:
inside the core region.
Direction rules
Use the right-hand rule for current and magnetic field direction.
Field lines form closed loops.
Unlike electric field lines, magnetic field lines do not begin or end on isolated sources, because magnetic monopoles have not been observed in standard classical physics.
9. Electromagnetic induction
Changing magnetic flux induces an electromotive force.
Magnetic flux
For uniform field:
Faraday's law
The negative sign is Lenz's law: the induced effect opposes the change in flux.
Induced emf in a loop
Induction can come from:
changing field strength
changing loop area
changing loop orientation
relative motion between conductor and field
Motional emf
For a conductor of length $L$ moving with speed $v$ perpendicular to a magnetic field:
Lenz's law
To find the direction of induced current:
Determine whether magnetic flux through the loop is increasing or decreasing.
Decide what induced magnetic field would oppose that change.
Use the right-hand rule to find the current direction.
This is one of the most common places where sign mistakes happen.
10. Inductance and RL transients
An inductor resists changes in current because changing current changes magnetic flux.
Self-inductance
Induced emf in an inductor:
Energy stored in an inductor
Energy density in a magnetic field:
RL circuits
Current growth in a series RL circuit:
Current decay:
Time constant:
Mutual inductance
Changing current in one coil can induce emf in another nearby coil. This is the principle behind transformers and many sensing systems.
11. Maxwell's equations
Maxwell's equations unify electricity and magnetism.
Integral form
Gauss's law for electricity:
Gauss's law for magnetism:
Faraday's law:
Ampere-Maxwell law:
What they mean
Electric charges create electric fields.
No isolated magnetic charges appear in classical theory.
Changing magnetic fields create circulating electric fields.
Currents and changing electric fields create magnetic fields.
Why the displacement current term matters
The term
fixes the inconsistency of Ampere's law for charging capacitors and makes the equations symmetric enough to predict electromagnetic waves.
Electromagnetic waves
Maxwell's equations imply that self-propagating electric and magnetic fields travel at
which is the speed of light in vacuum.
12. Problem-solving workflow
Electromagnetism problems usually become manageable if you classify them correctly before doing algebra.
Step 1: Identify the regime
Electrostatics: charges at rest
Current circuits: charges moving in steady state
Magnetostatics: steady currents
Induction: changing flux or changing currents
Step 2: Choose the best law
Coulomb's law for point charges
Gauss's law for symmetric charge distributions
Potential for scalar energy questions
Kirchhoff's rules for DC circuits
Ampere's law or Biot-Savart for magnetic fields
Faraday's law for induced emf
Step 3: Use symmetry aggressively
Symmetry often determines:
the direction of the field
whether the magnitude is constant on a surface or loop
whether a direct integral is avoidable
Step 4: Track signs carefully
Most errors come from:
mixing up field direction and force direction
forgetting that $\mathbf{F}=q\mathbf{E}$ reverses for negative charge
missing the minus sign in Faraday's law
using inconsistent loop directions in Kirchhoff equations
Step 5: Sanity-check the result
Ask:
Does the units match?
Does the limit make sense as distance goes to infinity or zero?
Does the sign agree with the physical direction?
Does the answer reduce to a known special case?
13. Formula summary
Electrostatics
Capacitors
Circuits
Magnetism
Induction
Maxwell's equations
Common pitfalls
Treating $E$ and $V$ as interchangeable.
Applying Gauss's law without symmetry.
Forgetting the vector nature of magnetic force.
Using the right-hand rule inconsistently.
Ignoring the sign convention in induction and circuit loops.
Sources
Halliday, Resnick, and Walker, Fundamentals of Physics
Serway and Jewett, Physics for Scientists and Engineers
Griffiths, Introduction to Electrodynamics
Griffiths, Introduction to Quantum Mechanics
Taylor, Classical Mechanics