Electricity and Magnetism

Learning Objectives

  • Define electric charge and apply Coulomb's Law.
  • Understand the concept of electric fields and apply Gauss's Law.
  • Calculate electric potential and capacitance.
  • Analyze simple DC circuits using Ohm's Law and Kirchhoff's Rules.
  • Describe magnetic fields, the magnetic force on moving charges, and sources of magnetic fields.
  • Explain electromagnetic induction using Faraday's Law and Lenz's Law.
Electricity and Magnetism (Electromagnetism) govern the interactions between electrically charged particles. This field is foundational for electrical engineering, power transmission, and electronics.

Electric Charge

Electric Charge Concepts

Matter is composed of atoms, which contain positively charged protons and negatively charged electrons. The fundamental unit of charge (ee) is 1.602×10−191.602 \times 10^{-19} Coulombs (C).

  • Protons: +e+e
  • Electrons: −e-e

Charge (qq) is a conserved property. The total charge of an isolated system remains constant. Like charges repel; opposite charges attract.

Coulomb's Law

Coulomb's Law Concepts

The fundamental force between two point charges (q1q_1 and q2q_2) separated by a distance (rr) is given by Coulomb's Law. It is mathematically identical in form to Newton's Law of Universal Gravitation, but the force can be attractive or repulsive.

Coulomb Force Magnitude

Magnitude of the electrostatic force between two stationary point charges in vacuum.

F=k∣q1q2∣r2=14πϵ0∣q1q2∣r2F = k \frac{|q_1 q_2|}{r^2} = \frac{1}{4\pi\epsilon_0}\frac{|q_1 q_2|}{r^2}

Variables

SymbolDescriptionUnit
FFElectrostatic force magnitudeN
q1q_1First point chargeC
q2q_2Second point chargeC
rrSeparation between chargesm
kkCoulomb constantN⋅m2/C2N·m^2/C^2
ϵ0\epsilon_0Vacuum permittivityF/m

Interactive Simulation

Use this electric force model to see how charge signs, magnitudes, and separation control attraction or repulsion.

Coulomb's Law Electrostatic Simulator

Concept and model scope

Adjust the charges on two point particles and see how the electrostatic force scales with charge magnitudes and separation distance. Opposite charges attract; like charges repel.

Model scope: Two stationary point charges in vacuum. The numerical force uses Coulomb's inverse-square law; charge-circle sizes and force-arrow lengths are visual encodings and are not drawn to physical scale.

Attracts
Charge q1

Charge q1

Charge q1 is an adjustable engineering parameter. The displayed result and geometry should update directly from this value.

Range: -10–10 μC. Step: 1 μC.

5 μC
Charge q2

Charge q2

Charge q2 is an adjustable engineering parameter. The displayed result and geometry should update directly from this value.

Range: -10–10 μC. Step: 1 μC.

-5 μC
Distance r

Distance r

Distance r is an adjustable engineering parameter. The displayed result and geometry should update directly from this value.

Range: 2–20 cm. Step: 1 cm.

10 cm
Governing Formula
F=ke⋅∣q1⋅q2∣r2F = k_e \cdot \frac{|q_1 \cdot q_2|}{r^2}

Where electrostatic constant $k_e \approx 8.99 \times 10^9 \text{ N}\cdot\text{m}^2/\text{C}^2$. Force is proportional to charge product and inversely proportional to $r^2$.

Coulomb electrostatic charge interactions and vector forcesr = 10 cmF₁₂F₂₁Charge 1: 5 μC+5Charge 2: -5 μC-5
Force magnitude (F)
22.47 N
Interaction Type
Attractive
Two-Charge Coulomb Force Geometry

The force pair is equal in magnitude and opposite in direction; its sense changes from attraction to repulsion with the charge signs, while magnitude follows the inverse-square distance law.

Two point charges with equal and opposite Coulomb force vectors, separation r, and attraction and repulsion direction cases.

The Electric Field (E⃗\vec{E})

The Electric Field (E⃗\vec{E}) Concepts

Instead of thinking of charges exerting forces directly on one another across empty space, we introduce the concept of an electric field. A charge creates an electric field in the space around it, and another charge placed in that field feels a force.

Electric Field (E⃗\vec{E})

The electrostatic force per unit charge exerted on a positive test charge (q0q_0) at a specific point in space. Electric field lines point away from positive charges and towards negative charges.

Electric Field

Calculates the electric field at a point.

E⃗=F⃗q0\vec{E} = \frac{\vec{F}}{q_0}

Variables

SymbolDescriptionUnit
E⃗\vec{E}Electric fieldN/C or V/m
F⃗\vec{F}Electrostatic forceN
q0q_0Positive test chargeC

Electric Field of a Point Charge

Calculates the electric field created by a single point charge.

E⃗=kqr2r^\vec{E} = k \frac{q}{r^2} \hat{r}

Variables

SymbolDescriptionUnit
E⃗\vec{E}Electric fieldN/C or V/m
kkCoulomb's constantN⋅m2/C2N\cdot m^2/C^2
qqPoint chargeC
rrDistance from the chargem
r^\hat{r}Unit vector pointing radially outward from the chargedimensionless

Gauss's Law

Gauss's Law Concepts

Gauss's Law is a powerful alternative to Coulomb's law for calculating electric fields of symmetric charge distributions (like spheres, cylinders, or infinite planes). It relates the electric flux (ΦE\Phi_E) passing through a closed "Gaussian" surface to the total charge enclosed within that surface (qencq_{enc}).

Gauss's Law

Relates the electric flux passing through a closed surface to the charge enclosed within it.

ΦE=∮E⃗⋅dA⃗=qencϵ0\Phi_E = \oint \vec{E} \cdot d\vec{A} = \frac{q_{enc}}{\epsilon_0}

Variables

SymbolDescriptionUnit
ΦE\Phi_EElectric fluxV⋅mV\cdot m
E⃗\vec{E}Electric fieldN/C or V/m
dA⃗d\vec{A}Differential area vectorm2m^2
qencq_{enc}Total enclosed chargeC
ϵ0\epsilon_0Permittivity of free spaceC2/(N⋅m2)C^2/(N\cdot m^2)

Electric Potential (VV)

Electric Potential (VV) Concepts

Just as a mass in a gravitational field has gravitational potential energy, a charge in an electric field has electric potential energy (UU). Because the electrostatic force is conservative, we can define a potential energy function.

It is often more useful to talk about energy per unit charge, which is the electric potential (commonly called Voltage).

Electric Potential (VV)

The electric potential energy per unit charge at a point in an electric field. The SI unit is the Volt (V), where 1 V=1 J/C1 \text{ V} = 1 \text{ J/C}.

Electric Potential

Calculates the electric potential energy per unit charge.

V=UqV = \frac{U}{q}

Variables

SymbolDescriptionUnit
VVElectric potentialV
UUElectric potential energyJ
qqChargeC

Electric Potential of a Point Charge

Calculates the electric potential created by a single point charge.

V=kqrV = k \frac{q}{r}

Variables

SymbolDescriptionUnit
VVElectric potentialV
kkCoulomb's constantN⋅m2/C2N\cdot m^2/C^2
qqPoint chargeC
rrDistance from the chargem

Electric Potential (VV) Concepts

The difference in potential between two points (ΔV\Delta V) is the voltage. It represents the work done per unit charge by an external agent moving a positive test charge between those points.

Voltage (Potential Difference)

Calculates the difference in electric potential between two points.

ΔV=Vf−Vi=ΔUq=−∫E⃗⋅ds⃗\Delta V = V_f - V_i = \frac{\Delta U}{q} = - \int \vec{E} \cdot d\vec{s}

Variables

SymbolDescriptionUnit
ΔV\Delta VVoltage or potential differenceV
Vf,ViV_f, V_iFinal and initial electric potentialsV
ΔU\Delta UChange in electric potential energyJ
qqChargeC
E⃗\vec{E}Electric fieldV/m
ds⃗d\vec{s}Differential path elementm
Electric Field, Equipotential, and Gaussian Surface

Field vectors are normal to equipotential contours, and Gauss's law relates net electric flux through a closed surface to enclosed charge.

Electric field vectors around a positive charge, concentric equipotential contours, and a closed Gaussian surface with outward area vectors.

Capacitance (CC)

Capacitance (CC) Concepts

A capacitor is a device (usually two conducting plates separated by an insulator) that stores electric charge and potential energy.

Capacitance (CC)

The ratio of the magnitude of charge on either plate (QQ) to the potential difference (ΔV\Delta V) between them. The SI unit is the Farad (F), where 1 F=1 C/V1 \text{ F} = 1 \text{ C/V}.

Capacitance

Calculates the capacitance of a device.

C=QΔVC = \frac{Q}{\Delta V}

Variables

SymbolDescriptionUnit
CCCapacitanceF
QQMagnitude of charge on either plateC
ΔV\Delta VPotential difference between platesV

Ideal Vacuum Parallel-Plate Capacitor

Capacitance of two large parallel plates separated by vacuum, neglecting edge fringing.

C=ϵ0AdC = \epsilon_0 \frac{A}{d}

Variables

SymbolDescriptionUnit
CCCapacitanceF
ϵ0\epsilon_0Permittivity of free spaceF/morC2/(N⋅m2)F/m or C^2/(N\cdot m^2)
AAArea of each platem2m^2
ddSeparation distance between platesm

Capacitance (CC) Concepts

The energy stored in a capacitor is U=12C(ΔV)2U = \frac{1}{2} C (\Delta V)^2.

Current and Resistance

Current and Resistance Concepts

When charges move continuously, they form an electric current.

Current (II)

The rate of flow of electric charge through a cross-sectional area. The SI unit is the Ampere (A), where 1 A=1 C/s1 \text{ A} = 1 \text{ C/s}.

Electric Current

Calculates the rate of charge flow.

I=dqdtI = \frac{dq}{dt}

Variables

SymbolDescriptionUnit
IICurrentA
dqdqDifferential amount of chargeC
dtdtDifferential time intervals

Current and Resistance Concepts

By convention, the direction of current is the direction positive charges would flow (opposite to the actual flow of electrons).

To drive a current through a conductor, a potential difference (ΔV\Delta V) is required. Most materials resist this flow.

Ohm's Law

Relates current, voltage, and resistance for ohmic materials.

I=ΔVRI = \frac{\Delta V}{R}

Variables

SymbolDescriptionUnit
IICurrentA
ΔV\Delta VPotential difference or voltageV
RRResistanceΩ\Omega

Interactive Simulation

Switch between two-resistor series and parallel networks. The simulator reports equivalent resistance, total current, individual branch currents, voltage drops, and power from one circuit model.

Series and Parallel DC Circuit Model

Concept and model scope

Compare two-resistor series and parallel networks. Equivalent resistance, source current, branch currents, resistor voltages, and power are calculated from the selected topology.

Model scope: Ideal DC voltage source, ideal wires, and two ohmic resistors. The schematic topology and all displayed current/voltage values come from the same selected series or parallel network.

Supply voltage

Supply voltage

Supply voltage is an adjustable engineering parameter. The displayed result and geometry should update directly from this value.

Range: 1–48 V. Step: 1 V.

12 V
Resistance R1

Resistance R1

Resistance R1 is an adjustable engineering parameter. The displayed result and geometry should update directly from this value.

Range: 1–50 Ω. Step: 1 Ω.

6 Ω
Resistance R2

Resistance R2

Resistance R2 is an adjustable engineering parameter. The displayed result and geometry should update directly from this value.

Range: 1–50 Ω. Step: 1 Ω.

4 Ω
Req=R1+R2,I1=I2=ITR_{eq}=R_1+R_2,\quad I_1=I_2=I_T
Two-resistor series circuit12.0 VR1 6ΩR2 4ΩI1 = I2 = IT = 1.20 AV1=7.20 VV2=4.80 V
Equivalent R
10.00 Ω
Total current
1.20 A
Total power
14.40 W
Branch I1
1.20 A

Branch I1

V1=7.20 V; P1=8.64 W

Branch I2
1.20 A

Branch I2

V2=4.80 V; P2=5.76 W

Power check
14.40 W
Capacitor and Series–Parallel Circuit Geometry

The capacitor panel shows nearly uniform interior field in the ideal plate model; the circuit panels distinguish equal current in series from equal branch voltage in parallel.

Parallel-plate capacitor field geometry and two-resistor series and parallel DC circuit schematics with current and voltage relationships.

Current and Resistance Concepts

Resistance depends on the material's resistivity (ρ\rho) and geometry: R=ρL/AR = \rho L / A.

The rate at which energy is dissipated in a resistor (power) is P=IΔV=I2R=(ΔV)2/RP = I \Delta V = I^2 R = (\Delta V)^2 / R.

Kirchhoff's Rules

Kirchhoff's Rules Concepts

For analyzing complex circuits, we use two rules based on conservation laws:

  • Junction Rule (Conservation of Charge): The sum of currents entering any junction must equal the sum of currents leaving that junction (ΣIin=ΣIout\Sigma I_{in} = \Sigma I_{out}).
  • Loop Rule (Conservation of Energy): The algebraic sum of changes in potential around any closed circuit path (loop) must be zero (ΣΔV=0\Sigma \Delta V = 0).
Kirchhoff Junction and Loop Rules

The junction panel enforces charge conservation, while the loop panel tracks signed potential changes around a closed path.

Circuit junction with labeled entering and leaving currents and a closed loop with voltage-rise and resistor-drop arrows.

Magnetism

Magnetism Concepts

Moving charges (currents) create magnetic fields (B⃗\vec{B}). Magnetic fields, in turn, exert forces on moving charges.

Magnetic Force (F⃗B\vec{F}_B)

The force exerted by a magnetic field B⃗\vec{B} on a charge qq moving with velocity v⃗\vec{v}. The direction is determined by the Right-Hand Rule.

Magnetic Force

Calculates the force exerted by a magnetic field on a moving charge.

F⃗B=q(v⃗×B⃗)\vec{F}_B = q(\vec{v} \times \vec{B})

Variables

SymbolDescriptionUnit
F⃗B\vec{F}_BMagnetic forceN
qqChargeC
v⃗\vec{v}Velocity vectorm/s
B⃗\vec{B}Magnetic field vectorT

Magnetic Force on a Current-Carrying Segment

Force on a straight current-carrying segment in a uniform magnetic field.

F⃗B=I(L⃗×B⃗),FB=ILBsin⁡θ\vec{F}_B = I(\vec{L}\times\vec{B}), \qquad F_B = I L B\sin\theta

Variables

SymbolDescriptionUnit
F⃗B\vec{F}_BMagnetic force on the segmentN
IIConventional currentA
L⃗\vec{L}Length vector pointing in the current directionm
B⃗\vec{B}Magnetic fieldT
θ\thetaAngle between current direction and magnetic fieldrador∘rad or ^\circ

Work and Magnetic Force

Notice that the force is always perpendicular to both the velocity and the magnetic field. Therefore, a magnetic field can change the direction of a moving charge but cannot do work on it (cannot change its kinetic energy).

Sources of Magnetic Fields

Sources of Magnetic Fields Concepts

Magnetic fields are created by currents. The Biot-Savart Law and Ampere's Law allow us to calculate these fields. For highly symmetric current distributions, Ampere's Law is especially useful.

Magnetic Field of a Long Straight Wire

Calculates the magnetic field magnitude at a distance r from a long, straight current-carrying wire.

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

Variables

SymbolDescriptionUnit
BBMagnetic field magnitudeT
μ0\mu_0Permeability of free space4π×10−7 T⋅m/A4\pi \times 10^{-7} \text{ T}\cdot\text{m/A}
IICurrent in the wireA
rrPerpendicular distance from the wirem

Magnetic Field at the Center of a Circular Loop

Calculates the magnetic field magnitude at the center of a single circular current loop.

B=μ0I2RB = \frac{\mu_0 I}{2R}

Variables

SymbolDescriptionUnit
BBMagnetic field magnitudeT
μ0\mu_0Permeability of free space4π×10−7 T⋅m/A4\pi \times 10^{-7} \text{ T}\cdot\text{m/A}
IICurrent in the wire loopA
RRRadius of the circular loopm

Magnetic Field Inside a Long Solenoid

Calculates the nearly uniform magnetic field inside a long coil of wire.

B=μ0nIB = \mu_0 n I

Variables

SymbolDescriptionUnit
BBMagnetic field magnitudeT
μ0\mu_0Permeability of free space4π×10−7 T⋅m/A4\pi \times 10^{-7} \text{ T}\cdot\text{m/A}
nnNumber of turns per unit length (N/L)1/m
IICurrent in the wireA

Applications of Magnetism

Electromagnetic Induction

Electromagnetic Induction Concepts

A changing magnetic field can induce an electric current in a conductor. This is the principle behind all electrical generators.

Faraday's Law of Induction

Induced electromotive force for an N-turn coil when each turn links the same magnetic flux.

E=−NdΦBdt,ΦB=∫B⃗⋅dA⃗\mathcal{E} = -N\frac{d\Phi_B}{dt}, \qquad \Phi_B = \int \vec{B}\cdot d\vec{A}

For a uniform field over a flat loop,

ΦB=BAcos⁡θ\Phi_B = BA\cos\theta

Variables

SymbolDescriptionUnit
E\mathcal{E}Induced electromotive force (EMF)V
NNNumber of identical turns linking the fluxdimensionless count
ΦB\Phi_BMagnetic flux through one turnWb
B⃗\vec{B}Magnetic fieldT
dA⃗d\vec{A}Differential area vector normal to the surfacem2m^2
θ\thetaAngle between a uniform magnetic field and the loop area normalrador∘rad or ^\circ

Electromagnetic Induction Concepts

The negative sign represents Lenz's Law, which states that the induced current will flow in a direction such that its own magnetic field opposes the change in flux that caused it. This is a consequence of the conservation of energy.

Magnetic Force, Field Sources, and Electromagnetic Induction

The panels connect q v cross B force direction, current-produced magnetic fields, and Faraday–Lenz induction from changing magnetic flux.

Right-hand-rule magnetic force geometry, circular field around a straight wire, solenoid field, and a loop experiencing changing magnetic flux with induced emf.

Direct Current (DC) Circuits

Resistors in Series and Parallel

In DC circuits, components can be connected in two primary configurations, which dictate how voltage and current behave across them.

  • Series Circuits: Components are connected end-to-end, forming a single path. The current (II) is identical through all components.
  • Parallel Circuits: Components are connected across the same two nodes, providing multiple paths. The voltage (ΔV\Delta V) is identical across all parallel branches.

Equivalent Resistance in Series

Calculates the total resistance of multiple resistors connected in series.

Req=R1+R2+R3+…R_{eq} = R_1 + R_2 + R_3 + \dots

Variables

SymbolDescriptionUnit
ReqR_{eq}Equivalent series resistanceΩ\Omega
RiR_iIndividual resistancesΩ\Omega

Equivalent Resistance in Parallel

Calculates the total resistance of multiple resistors connected in parallel.

1Req=1R1+1R2+1R3+…\frac{1}{R_{eq}} = \frac{1}{R_1} + \frac{1}{R_2} + \frac{1}{R_3} + \dots

Variables

SymbolDescriptionUnit
ReqR_{eq}Equivalent parallel resistanceΩ\Omega
RiR_iIndividual resistancesΩ\Omega

Capacitance and Dielectrics

Dielectric Materials

When an insulating material (a dielectric) is placed between the plates of a capacitor, it increases the capacitance of the device by a dimensionless factor called the dielectric constant (κ\kappa).

The molecules in the dielectric become polarized by the external electric field, creating an opposing internal electric field. This reduces the overall electric field between the plates, allowing the capacitor to store more charge for the same applied voltage.

Key Takeaways
  • Electric Charge is quantized and conserved. Like charges repel, opposites attract according to Coulomb's Law (F=kq1q2/r2F = kq_1q_2/r^2).
  • An Electric Field (E⃗=F⃗/q\vec{E} = \vec{F}/q) is created by charges and exerts forces on other charges. Gauss's Law relates flux to enclosed charge.
  • Electric Potential (V=U/qV = U/q) is energy per unit charge (Voltage). Capacitors (C=Q/ΔVC = Q/\Delta V) store charge and energy.
  • Current (I=dq/dtI = dq/dt) is the flow of charge, driven by voltage and opposed by Resistance (V=IRV=IR, Ohm's Law).
  • Moving charges create Magnetic Fields (B⃗\vec{B}), and magnetic fields exert forces on moving charges (F⃗=qv⃗×B⃗\vec{F} = q\vec{v}\times\vec{B}).
  • A changing magnetic flux induces an EMF (voltage) according to Faraday's Law (E=−dΦB/dt\mathcal{E} = -d\Phi_B/dt), the basis of electrical generation.