electronics engineering
Course handbook · Second year · Edition with space for notes
Physics 2
Physics 2: electrostatics, electric current, magnetism, electromagnetic induction and Maxwell’s equations.
- 12Topics
- 52Solved exercises
- 65Formula sheet
Free handbook generated from the lessons of the site and updated often, every time a lesson or an exercise changes: the latest version is always at www.electronics-engineering.com/handbook/physics-2. Links work in the PDF too.
1Electric charge and Coulomb's law
Physics 2 is electromagnetism: the part of physics on which all of electronics rests. It starts from the simplest quantity, electric charge, and from the force between two charges, Coulomb’s law. In this lesson we look at the properties of charge, Coulomb’s law with the superposition principle, and the comparison with gravity.
Electric charge
Rub a plastic rod with a woollen cloth and the rod attracts bits of paper. There are two kinds of charge, conventionally called positive and negative: like charges repel, unlike charges attract. The basic properties:
- charge is conserved: in an isolated system the total charge does not change. Rubbing does not create charge, it moves electrons from one body to another;
- charge is quantised: every charge is an integer multiple of the elementary charge
C. The electron has charge
, the proton
; - the unit is the coulomb (C), the charge carried in one second by a current of one ampere. In electrostatics a coulomb is huge: about
electrons.
Conductors and insulators
In conductors (metals, ionic solutions) some charges are free to move: in metals they are the conduction electrons, about one per atom in copper. In insulators (glass, plastic, dry air) charges stay bound to atoms. Semiconductors sit in between, and the number of free charges is controlled by doping and temperature: the basis of diodes and transistors.
Electrostatic induction. Bringing a charged rod near a neutral conductor, the free electrons move: the near side takes the opposite charge and the far side the same charge. The conductor stays neutral but is attracted, because the opposite charge is closer. It is also why a rubbed balloon sticks to a wall.
Coulomb’s law
Two point charges
and
a distance
apart exert on each other a force along the line joining them, of magnitude
![]()
where
F/m is the permittivity of free space.

In vector form, the force
exerts on
is
![]()
with
the unit vector from
to
. If
the force is repulsive, if negative attractive. The
dependence is the same as gravitation, and like gravitation it has been tested with extreme precision: the exponent is 2 to within one part in
.
The superposition principle
With several charges, the force on one of them is the vector sum of the forces exerted by the others, each computed as if the others were not there.
Example. Three charges along the
axis:
µC at
,
µC at
m,
µC at
m. Force on
:
- from
(repulsive, to the right):
mN; - from
(attractive, to the left):
mN.
The resultant is about 22.5 mN to the left.
Electricity versus gravity
In the hydrogen atom, electron and proton are about
m apart. The electric force is about
N, the gravitational force
N: the ratio is about
. Gravity rules the sky only because large bodies are almost perfectly neutral: positive and negative charges cancel. A tiny imbalance would produce enormous forces: two people a metre apart, each with 1% more electrons than protons, would repel each other with a force comparable to the weight of the Earth.
Continuous charge distributions
For extended charged bodies, split the charge into elements
and integrate. Depending on the geometry one uses a linear density
(C/m, for a wire), a surface density
(C/m², for a sheet) or a volume density
(C/m³):
,
or
. The integrals are those of Analysis 2, and the choice of coordinates follows the symmetry of the body.
A practical note: electrostatic discharge
Walking on carpet can charge your body to a few kilovolts. Touching an integrated circuit, the discharge (ESD) crosses junctions and oxides only a few nanometres thick and damages them, sometimes with no visible effect at first. That is why labs use grounded wrist straps, dissipative mats and antistatic bags, and why chips have protection diodes on every pin.
Exercises
Electrostatics exercises of the kind set in Physics 2 courses, in three levels: basic, for Coulomb’s law, the field of a charge, potential and the parallel-plate capacitor; intermediate, with the point of zero field, Gauss’s law and capacitors in series and in parallel; exam, with dielectrics, the energy of a system of charges and the energy density of the field. Constants:
,
. The result is given straight away; the full solution opens with a click.
Basic level
Exercise 3. An electron accelerated through a potential difference
An electron starts from rest and is accelerated through a potential difference of
. Find its final speed (
,
).
Exercise 4. The parallel-plate capacitor
A parallel-plate capacitor has
plates
apart, in vacuum, and is connected to
. Find its capacitance, charge and energy.
Intermediate level
Exercise 5. Where the field is zero
A charge
is at
and a charge
at
. At which point of the axis is the field zero?
Exercise 6. Gauss’s law: a uniformly charged sphere
An insulating sphere of radius
carries a charge
spread uniformly through its volume. Find the field inside and outside.
Exercise 7. The field of a charged wire
A very long straight wire has a charge density
. Find the field
from the wire.
Exercise 8. Capacitors in series and in parallel
and
are in series; the pair is in parallel with
. Find the equivalent capacitance and, with
applied, the charge on
.
2The electric field and Gauss's law
Coulomb’s law describes a force “at a distance” between two charges. The concept of field changes the point of view: every charge modifies the space around it, and another charge responds to the field at the point where it sits. It looks like just another way of saying the same thing, but it is the step that leads to electromagnetic waves. In this lesson we define the electric field, field lines and Gauss’s law, with its applications.
The electric field
The electric field at a point is the force that would act on a positive test charge
placed there, divided by
:
![Rendered by QuickLaTeX.com \[ \vec E = \frac{\vec F}{q_0}\qquad[\text{N/C} = \text{V/m}] \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-8965cd0ad024523d0b9d019d365abb6d_l3.png)
For a point charge
, from Coulomb’s law:
![]()
radial, outward if
, inward if
. For several charges superposition holds: the fields add as vectors. A charge
in a field
feels the force
.
Field lines
Field lines are curves tangent at every point to
. They leave positive charges, end on negative ones, never cross, and are closer together where the field is stronger.

Electric flux
The flux of
through a surface is
: it measures “how many field lines” cross the surface. For a closed surface the outward normal is used, so the flux is positive if the lines leave and negative if they enter.
Gauss’s law
The flux of the electric field through any closed surface equals the enclosed charge divided by
:
![]()

centred on the charge: the field is radial, so parallel to the normal
at every point, and has the same magnitude all over the sphere.Proof for a point charge
Take a sphere of radius
centred on the charge. At every point
is radial, like the normal, with constant magnitude
. So
![]()
The radius cancels: the
dependence of the field exactly compensates the
growth of the area. For any closed surface the result is the same, because the flux through a surface element depends only on the solid angle it subtends at the charge, and the total solid angle is always
. A charge outside gives zero flux: its lines go in and come out. Superposition gives the general case. In local form, with the divergence theorem of Analysis 2:
.
How to use it: symmetry
Gauss’s law always holds, but it helps compute the field only when symmetry lets you choose a surface on which
is constant and parallel (or perpendicular) to the normal.
Uniformly charged sphere (charge
, radius
). Outside: with a sphere of radius
,
, so the field is the same as a point charge. Inside: the enclosed charge is
, and
, which grows linearly from the centre.
Infinite wire with linear density
. Surface: a coaxial cylinder of radius
and length
. Flux passes only through the side:
, so
![]()
The field falls as
, not
.
Infinite plane with surface density
. Surface: a small cylinder crossing the plane, with end faces of area
. Flux passes only through the two ends:
, so
![]()
independent of distance. With two parallel planes of opposite charge the fields add between the planes and cancel outside:
inside. It is the parallel-plate capacitor of the lesson on capacitors.
Conductors in equilibrium
In a conductor in equilibrium the charges are at rest, so the field inside is zero (otherwise the electrons would move). Gauss’s law, applied to a surface just inside the conductor, shows that all the charge sits on the surface. Just outside, the field is perpendicular to the surface and equals
.
Two practical consequences:
- the Faraday cage: inside a closed conducting shell the external electric field does not get in. It is the principle of metal shields on radio-frequency circuits, of shielded cables, and the reason you are safe from lightning inside a car;
- the point effect: charge density, and so the field, is highest where the surface is most curved. At sharp points the field can ionise the air: the principle of the lightning rod.
3Electric potential
The electric field is a vector, and working with vectors is laborious. Since the electrostatic force is conservative, everything can be described with a single scalar function, the electric potential. Its difference between two points is the voltage, the quantity measured with a voltmeter and reasoned about in every circuit. In this lesson we define the potential and look at its link with the field and at equipotential surfaces.
Electric potential energy
Coulomb’s force is central and depends only on distance, so it is conservative (Analysis 2 lesson on conservative fields): the work to move a charge does not depend on the path. A potential energy can therefore be defined. For two point charges, with zero at infinity:
![]()
It is positive for like charges (work must be spent to bring them together) and negative for unlike charges (the system is bound).
Electric potential
The potential at a point is the potential energy per unit charge:
![]()
For a point charge
, and for several charges the potentials add up as plain numbers: much simpler than adding vectors.
The potential difference between two points is the work done by the field per unit charge, with the sign changed:
![]()
A charge
crossing a potential difference
gains or loses energy
. An electron accelerated through 1 V gains
J, one electronvolt (eV), the energy unit of atomic and semiconductor physics: the band gap of silicon is 1.12 eV.
From potential to field
The integral is inverted by a derivative: the field is minus the gradient of the potential
![]()
The field points where the potential decreases fastest. In a uniform field, as between the plates of a parallel-plate capacitor,
: with 10 V across 1 mm the field is 10 kV/m. That is why the unit of field is often written V/m.
Equipotential surfaces
They are the surfaces on which
is constant, the “level curves” of the potential. Since the gradient is perpendicular to level curves:
- field lines are perpendicular to equipotential surfaces;
- moving a charge along an equipotential surface takes no work.

A conductor in equilibrium is all at the same potential: inside it the field is zero, so there are no potential differences. Its surface is an equipotential, which is why the field just outside is perpendicular to the surface.
Worked examples
Conducting sphere with charge
, radius
: outside the potential is
; on the surface and inside it equals
, constant.
Two spheres joined by a wire. Two conducting spheres of radii
and
, far apart and joined by a wire, are at the same potential:
. The surface densities are then in the ratio
: the smaller sphere has the stronger field. It is the quantitative explanation of the point effect.
The dipole. Two charges
and
a distance
apart. At a distance
, at an angle
from the axis:
![]()
The dipole potential falls as
, faster than that of a single charge, because from far away the two charges nearly cancel. Polar molecules such as water are dipoles, and the properties of dielectrics depend on this.
The energy of a charge distribution
Assembling a system of charges takes work, which is stored as electrostatic energy. The energy can be thought of as located in the field itself, with a density
![]()
It is the same result we will find for the energy of a capacitor, and it shows that the field is not just a calculating device: it carries energy, as we will see with electromagnetic waves.
Dielectric strength
Every insulator withstands a maximum field before it starts to conduct (breakdown). For dry air it is about 3 MV/m, that is 3 kV per millimetre. This value sets the creepage and clearance distances on printed circuit boards carrying mains voltage, and the maximum voltage of capacitors and transistors: silicon dioxide withstands about 1 V per nanometre, so the gate oxide of a modern transistor, a few nanometres thick, reaches its limit at a few volts.
4Capacitors and dielectrics
The capacitor is the component that stores charge and energy in an electric field. An electronic board holds dozens or hundreds of them: for filtering supplies, coupling stages, timing, tuning. In this lesson we cover capacitance, the parallel-plate capacitor, series and parallel connections, stored energy and the role of the dielectric.
Capacitance
Two conductors insulated from each other, with charges
and
, have a potential difference
proportional to
. The ratio is the capacitance:
![]()
It depends only on the geometry and on the material between the conductors, not on the charge. The farad is a huge unit: common capacitors range from picofarads (pF) to millifarads, and only supercapacitors reach thousands of farads.
The parallel-plate capacitor

Proof of the formula
From Gauss’s law (lesson on the electric field) the field between two planes with densities
is
, uniform. The potential difference is
. So
![]()
Capacitance grows with area and falls with distance. Example: two 10 cm × 10 cm plates 1 mm apart in air have
pF. To reach 1 µF you would need plates 10 m on a side: that is why real capacitors use very thin dielectrics with a high permittivity, wound or stacked.
Other geometries: the cylindrical capacitor (a coaxial cable of length
) has
; the spherical capacitor
. An RG-58 coaxial cable has about 100 pF per metre.
Series and parallel connections
- Parallel: same voltage, the charges add:
It is like increasing the plate area. - Series: same charge on each capacitor, the voltages add:
It is like increasing the distance. Two equal capacitors in series have half the capacitance but withstand twice the voltage.
They are the opposite of the rules for resistors.
Stored energy
Charging a capacitor means carrying charge from one plate to the other against a rising voltage. When the charge is
the voltage is
, and the work to add
is
. Integrating from 0 to
:
![]()
For the parallel-plate capacitor,
: the energy density
times the volume between the plates. The energy really is in the field.
Example. A camera flash capacitor, 470 µF charged to 330 V, holds
J, dumped into the tube in a millisecond: a peak power of tens of kilowatts. It is also why power supply capacitors must be discharged before you put your hands in.
Dielectrics
Inserting an insulator between the plates increases the capacitance by a factor
, the relative permittivity:
![]()
The reason is polarisation: the field aligns the dipoles of the molecules (or creates them, by distorting the atoms), and the bound charges appearing on the faces of the dielectric reduce the internal field by a factor
. For the same charge the voltage drops, so the capacitance rises.
| Material | Typical use | |
|---|---|---|
| air | 1.0006 | variable capacitors |
| polypropylene | 2.2 | film capacitors, audio and power |
| FR-4 fibreglass | about 4.4 | printed circuit boards |
| aluminium oxide | about 9 | electrolytic capacitors |
| tantalum oxide | about 26 | tantalum capacitors |
| barium titanate ceramics | from 1000 to over 10,000 | multilayer ceramic capacitors |
Real capacitors
A multilayer ceramic capacitor (MLCC) stacks hundreds of dielectric layers a few micrometres thick, alternating with electrodes, and so packs microfarads into a one-millimetre cube. An electrolytic uses as dielectric a layer of aluminium oxide nanometres thick, grown on a foil etched to multiply its area; that is why it has a polarity to respect.
A real capacitor is not ideal: it has a series resistance (ESR) and a series inductance (ESL), and high-
ceramics lose much of their capacitance when a DC voltage is applied. These details are read in datasheets and they matter when designing a power supply.
5Electric current and DC circuits
So far charges have been at rest. When they move there is an electric current, and with currents come circuits. This lesson is the bridge between physics and circuit theory: it defines current and resistance starting from the motion of electrons, derives Ohm’s law and Joule heating, introduces Kirchhoff’s laws and studies the RC circuit.
Electric current
Current is the charge crossing a section of the conductor per unit time:
![]()
By convention its direction is the one in which positive charges would move; in metals electrons move the opposite way. The current density
(A/m²) is the current per unit area.
Drift velocity
If the conductor has
carriers per unit volume, each with charge
, moving on average with velocity
, then
.
Example. A 1 mm² copper wire carrying 1 A. Copper has about
free electrons per m³.
m/s: less than a tenth of a millimetre per second. A lamp lights up at once not because electrons race along, but because the field travels along the wire at nearly the speed of light and sets all the electrons in the circuit moving at the same time.
Ohm’s law and resistivity
In many materials current density is proportional to the field:
, with
the conductivity. For a wire of length
and cross-section
, with
and
:
![]()
where
is the resistivity (Ω·m). Copper has
Ω·m: one metre of 1 mm² wire has 17 mΩ. A printed circuit trace 0.25 mm wide in 35 µm copper has about 2 mΩ per millimetre, and a 10 cm trace carrying 2 A drops 0.4 V: enough to upset a precision circuit.
The resistivity of metals rises with temperature (for copper about 0.4% per degree), that of semiconductors falls. The first effect is used in platinum temperature sensors (Pt100), the second in NTC thermistors.
Power and Joule heating
A charge
crossing a potential difference
gives up energy
. The power is
![]()
In resistors this energy becomes heat (Joule heating): electrons accelerated by the field collide with the lattice and give up energy. It is the principle of electric heaters and fuses, and the reason power lines work at high voltage: for the same power the current is smaller, and the
losses fall with its square.
Sources and Kirchhoff’s laws
A source maintains a potential difference by spending another form of energy (chemical in a battery, mechanical in a dynamo). Its electromotive force
is the work per unit charge; a real source also has an internal resistance
, and across its terminals you measure
.
Kirchhoff’s laws let you analyse any circuit:
- at nodes: the sum of the currents in equals the sum of the currents out (conservation of charge);
- around loops: along any closed path the sum of the voltages is zero (the electrostatic field is conservative).
The rules for connections follow: in series resistances add, in parallel conductances
add.
The RC circuit
A capacitor
charges through a resistance
from a source
.

Proof of the charging law
By the loop law,
, with
and
:
![]()
It is a first-order linear equation (Analysis 2 lesson): with the capacitor initially empty,
![]()
At the first instant the empty capacitor behaves like a short circuit (
); in steady state like an open circuit (
). The time constant
measures the speed of the transient: with
kΩ and
nF,
ms, and after
ms the capacitor is 99.3% charged.
The energy balance
The source supplies a total of
. The capacitor keeps
. The other half is dissipated in the resistor,
, whatever the value of
. Charging a capacitor from a constant voltage source always wastes half the energy: one reason why digital circuits consume in proportion to
, and why lowering the supply voltage is the most effective way to cut consumption.
The RC circuit is everywhere: in low-pass and high-pass filters, in microcontroller reset circuits, in timers like the 555 and in push-button debouncing circuits.
Ohm's law from the structure of matter: the Drude model
This page goes deeper into the lesson on electric current: it derives Ohm’s law from the microscopic properties of matter, that is, from the free electrons of a metal colliding with the crystal lattice. This is the Drude model (1900). From a simple idea we obtain the conductivity in terms of atomic quantities, the numerical value of the time between collisions in copper, Joule heating seen as energy given to the lattice, the temperature dependence, the resistance of conductors of any shape, the limits of validity of the law and the Hall effect, which allows the number and sign of the carriers to be measured.
Current density from the carriers
Theorem. If a conductor contains
carriers per unit volume, each with charge
and mean (drift) velocity
, the current density is
![]()
Proof. Consider a cross-section of area
perpendicular to
. In a time
it is crossed by all the carriers lying within a distance
upstream, that is, those contained in the cylinder of volume
. There are
of them, and they carry the charge
. The current is
, and the density
. ∎

For electrons
:
is opposite to
, but the product
has the direction of the conventional current.
The Drude model
There are four assumptions, all simple:
- in the metal some of the electrons (one or two per atom) are free to move, like a gas, among the fixed ions of the lattice;
- between collisions an electron moves under the action of external forces only, here
; - collisions are instantaneous, and after each collision the velocity has a random direction: on average, just after a collision, the velocity is zero;
- the probability of a collision in an interval
is
, independent of the electron’s history.
is called the relaxation time or mean time between collisions.

Theorem. In the Drude model the drift velocity and the conductivity are
![]()
Proof. Look at one electron at a given instant. A time
has passed since its last collision, and during that time the field has accelerated it with
. Its velocity is therefore
, where
is the velocity just after the collision.
Average over all the electrons. By assumption 3, the average of
is zero. By assumption 4, the time elapsed since the last collision has an exponential distribution with mean
(the probability that no collision has occurred in the last
seconds is
). Hence
![]()
Substituting into
:
. ∎
Another way to see it. On average, the force of the field and the effect of collisions balance: collisions behave like viscous friction, which every second destroys a fraction
of the ordered momentum. The equation of the average motion is
![]()
At steady state
and the same result follows. The transient lasts a few
, about
s: for every practical purpose the current follows the field instantly.

Ohm’s law is therefore the consequence of one fact: collisions make the electron “forget” the velocity it has gained, and the average velocity stays proportional to the field instead of growing without limit. In a conductor without collisions (
) the current would grow indefinitely under a constant field: that is what happens in the vacuum of a cathode-ray tube, not in a wire.
The numbers for copper
The time between collisions can be obtained from the measured resistivity. For copper
Ω·m and
m
(one free electron per atom):
![Rendered by QuickLaTeX.com \[ \tau = \frac{m}{ne^2\rho} = \frac{9.11\cdot 10^{-31}}{8.5\cdot 10^{28}\cdot(1.60\cdot 10^{-19})^2\cdot 1.7\cdot 10^{-8}} \approx 2.5\cdot 10^{-14}\ \text{s} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-0b8ef76f4aee3ec0135849290140e0ba_l3.png)
Three comparisons show the scales.
Drift versus thermal motion. In a 1 mm² wire carrying 1 A the field is
V/m and the drift velocity
m/s, the same value found in the lesson from
. The electrons, on the other hand, move randomly at speeds of order
m/s: the drift is a tiny correction to a very fast disordered motion.
The mean free path. With the “classical” thermal speed
m/s at 300 K, the distance between collisions would be
nm, about ten interatomic distances: consistent with Drude’s picture of electrons hitting the ions. But quantum mechanics says that conduction electrons move at the Fermi velocity,
m/s in copper, and then
nm, about 150 interatomic distances.
The role of the ions. An electron thus travels past hundreds of atoms without colliding: a perfectly regular lattice does not scatter electrons (a result of quantum mechanics, linked to the wave nature of the electron). Collisions happen with the imperfections of the lattice: thermal vibrations of the ions (phonons), impurities, defects, grain boundaries. The Drude model has the wrong picture of collisions but the right structure of the formula: with the right effective mass and relaxation time,
remains valid in the quantum theory too.
Joule heating seen from the lattice
Theorem. In an ohmic conductor the power dissipated per unit volume is
![]()
and integrated over a wire it gives
.
Proof. On each carrier the field does work at a rate
. On average, per unit volume,
. At steady state the average kinetic energy of the electrons does not grow: all this energy is given to the lattice in collisions, and becomes thermal agitation of the ions, that is, heat. In a wire of cross-section
and length
with uniform field,
. ∎
The resistance of a conductor of any shape
From the local law
the resistance of an object follows by integration. For a uniform wire,
and
give
. If the cross-section changes along the current path, divide the conductor into slices of thickness
in series, each with resistance
:
![]()
Example: leakage through the insulation of a coaxial cable. Between the inner conductor (radius
) and the braid (radius
) there is an insulator of very large resistivity
, of length
. The leakage current flows radially, through cylindrical shells of radius
, thickness
and area
, all in series:
![Rendered by QuickLaTeX.com \[ R = \int_a^b\frac{\rho\,dr}{2\pi rL} = \frac{\rho}{2\pi L}\ln\frac{b}{a} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-88d4cef118260313c6006b7e58e16c72_l3.png)
The resistance decreases with length, unlike a wire: a longer cable has more surface through which to leak current. With
Ω·m (polyethylene),
and
m:
Ω.

Temperature dependence
In metals
does not depend on temperature;
does. Collisions with lattice vibrations are more frequent the more the ions vibrate, and the mean square amplitude of the vibrations is proportional to
(above a few tens of kelvin). So
and the resistivity grows linearly. Collisions with impurities, instead, do not depend on
. The two causes add up (Matthiessen’s rule):
![]()
where
is the residual resistivity at very low temperature, which measures the purity of the metal. For copper
K
.
In semiconductors the story is the opposite: the number of carriers grows exponentially with temperature,
, because thermal agitation frees electrons from the bonds. The increase of
outweighs the decrease of
, and the resistivity decreases rapidly as
rises. This is the reason for NTC thermistors.

When Ohm’s law does not hold
Proportionality between
and
requires
and
not to depend on the field, and the field to vary slowly compared with
. Outside these conditions:
- strong fields in semiconductors: the drift velocity saturates (about
m/s in silicon), because the electrons give energy to the lattice as fast as they receive it; - high frequencies: with an alternating field of angular frequency
, the same equation of average motion gives
(with the phasor convention of electrical engineering). For metals
up to about
Hz: the DC Ohm’s law holds for all of electronics, but not for light: at optical frequencies the free-electron model, extended, explains why metals reflect visible light; - non-linear devices: diodes, transistors, gas discharges, where
depends on the applied voltage; - conductors shorter than the mean free path: in nanowires electrons pass without collisions (ballistic conduction) and the conductance is quantised: each conduction channel contributes
µS, and a conductor with a single channel has a resistance of about 12.9 kΩ with no collisions at all; - superconductors: below the critical temperature the resistance is exactly zero.
The Hall effect: counting the carriers
In a strip carrying current and placed in a perpendicular magnetic field
, the Lorentz force
pushes the carriers towards one edge. Charge accumulates there until the transverse electric field
that forms balances the magnetic force:
.
Theorem. In a strip of thickness
(in the direction of
), the Hall voltage is
![]()
and its sign depends on the sign of the carriers.
Proof. With width
,
. From the current,
, so
. Substituting,
. If the carriers are negative, for the same current direction they move the opposite way, but their charge is also opposite: the Lorentz force pushes them onto the same edge as positive carriers, and the voltage changes sign. ∎
Example. A copper strip 0.1 mm thick carrying 1 A in a 1 T field:
µV. In semiconductors
is a million times smaller and
becomes tens of millivolts: this is the principle of Hall sensors, used to measure magnetic fields and currents without contact.

Historically the Hall effect showed that in some metals, such as zinc, the carriers behave like positive charges (holes): a fact the Drude model could not explain and one of the proofs of the quantum theory of solids.
Why the mean is τ and not τ/2
The proof used the fact that the time elapsed since the last collision is
on average. The result is surprising: looking at the sawtooth in the previous graph one would say
, “halfway between two collisions”. Let us do the calculation step by step.
Step 1: the probability of no collision. Let
be the probability that an electron has not collided during the interval of length
preceding the observation instant. Extending the interval by
, by hypothesis 4 the probability of a collision in
is
, independent of what happened before:
![]()
with
.
Step 2: the probability density. The probability that the last collision happened between
and
before the observation is
, so the density is
![]()
Step 3: the mean. Integrating by parts, with
and
:
![Rendered by QuickLaTeX.com \[ \langle t_0\rangle = \int_0^\infty t\,\frac{e^{-t/\tau}}{\tau}\,dt = \Big[-t\,e^{-t/\tau}\Big]_0^\infty + \int_0^\infty e^{-t/\tau}\,dt = 0 + \tau = \tau \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-1038fb65f47a198ecb4464bbe35540fc_l3.png)

The paradox. For the same reason the time to the next collision is also
on average, so the interval between two collisions that “contains” the observation instant lasts
on average, not
. It is not a contradiction: an instant chosen at random is more likely to fall inside a long interval than a short one, just as someone arriving at a bus stop at a random time waits longer than expected for a bus that comes “every ten minutes on average”. Drude himself got this factor of 2 wrong in one of his 1900 formulas.
AC conductivity, step by step
The result
quoted above follows in three lines from the equation of the average motion.
Step 1. A sinusoidal field
is applied and we look for a drift velocity of the same form,
. Differentiating with respect to time is the same as multiplying by
:
![]()
Step 2. Solve for
:
![]()
Step 3. The current density is
, so
![]()
The real part
dissipates power; the imaginary part describes the inertia of the electrons: the current lags behind the field, as in an inductor.

The numbers. For copper
s, so
at
THz. At 10 GHz
: DC Ohm’s law holds for all of electronics, microwaves included.
The plasma frequency. At even higher frequencies the displacement current comes into play: putting
into Maxwell’s equations, for
the effective permittivity of the metal becomes
, with
![Rendered by QuickLaTeX.com \[ \omega_p = \sqrt{\frac{ne^2}{\varepsilon_0 m}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-965f711ab0477c14c70461cb1c920e48_l3.png)
For copper
rad/s, a wavelength of about 115 nm, in the ultraviolet. Below
the permittivity is negative, the wave does not propagate and the metal reflects: this is why metals are shiny. Above
they become transparent, as is actually observed for the alkali metals in the ultraviolet.
Heat and electricity: the Wiedemann-Franz law
The same electrons that carry the current also carry heat, so good electrical conductors are good thermal conductors. The ratio between the thermal conductivity
and the electrical one is proportional to the absolute temperature, with the same coefficient for all metals:
![Rendered by QuickLaTeX.com \[ \frac{\kappa}{\sigma} = L\,T,\qquad L = \frac{\pi^2}{3}\left(\frac{k_B}{e}\right)^2 \approx 2.44\cdot 10^{-8}\ \mathrm{W\,\Omega/K^2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-b69a1c29fc9c6ce52691eccfaaa2c709_l3.png)
The value of
comes from quantum theory; the classical Drude model gave
, about half, right in order of magnitude thanks to a lucky cancellation of two errors. Check with copper:
W/(m·K),
S/m,
K give
, in excellent agreement.
Common mistakes
- Using
as the mean time since the last collision: as shown above, the mean is
, and the factor 2 changes the computed conductivity. - Confusing three speeds: the drift velocity (fractions of a mm/s), the speed of the electrons between collisions (
to
m/s) and the speed of the signal along the wire (close to that of light). - Getting
wrong: copper has about one free electron per atom, that is
m⁻³; Avogadro’s number is not used alone, but multiplied by the density and divided by the molar mass. - Directions: for electrons
is opposite to
and to
; the formula
still has a plus sign, because the negative charge appears twice. - The thickness in the Hall effect: in the formula
the thickness
is measured along
; it is not the width between the two edges where the voltage is measured.
Exercises on resistance, DC circuits and the RC circuit are on the exercise page linked at the top.
Exercises
Exercises on electric current, resistance, DC circuits and the RC circuit of the kind set in Physics 2 courses, in three levels: basic, for resistivity, drift velocity and resistor combinations; intermediate, with the microscopic model, Kirchhoff’s laws, the Wheatstone bridge and RC transients; exam, with complete problems as in written exams. The result is given straight away; the full solution opens with a click. The proofs are in the lesson and the in-depth study linked at the top.
Constants:
C,
kg; copper:
Ω·m,
m
.
Basic level
Exercise 1. The resistance of a wire
Compute the resistance of a copper wire 50 m long with a diameter of 1.0 mm. What diameter should an aluminium wire (
Ω·m) of the same length have to give the same resistance?
Exercise 2. How slow the drift is
A current of 10 A flows in a 2.5 mm² copper cable. Find the drift velocity of the electrons and the time they take to travel 1 m.
Exercise 3. Series and parallel
In the circuit of the figure
V,
Ω,
Ω,
Ω. Find the equivalent resistance and the currents
,
,
.

Exercise 4. Real source and maximum power transfer
A battery has an electromotive force of 12 V and internal resistance 0.5 Ω, and is connected to a 5.5 Ω load. Find the current, the terminal voltage and the power in the load. For which load resistance would the power be maximum, and what would the efficiency be?
Intermediate level
Exercise 5. The Drude model for silver
Silver has resistivity
Ω·m and
free electrons per m³. Compute the mean time between collisions and the drift velocity in a 1 mm² wire carrying 1 A.
Exercise 6. Kirchhoff’s laws with two sources
In the circuit of the figure
V,
V,
Ω,
Ω,
Ω. Find the three currents. Does the source
deliver or absorb power?

Exercise 7. The Wheatstone bridge
In the bridge of the figure
Ω,
Ω,
Ω. The galvanometer G reads zero. What is
? Prove the balance condition.

Exercise 8. Charging a capacitor
A 47 µF capacitor, initially uncharged, is charged through a 10 kΩ resistor from a 9 V battery. Find the time constant, the initial current, the time to reach 6 V and the energy stored at the end.
Exercise 9. Discharging a capacitor
A 100 µF capacitor charged to 50 V discharges through a 2 kΩ resistor. After how long does the voltage fall to 5 V? How much energy is dissipated in total?
6The magnetic field and the Lorentz force
Magnets and the compass needle have been known for millennia, but the link between magnetism and electricity was found only in 1820, when Ørsted saw a needle deflected by the current in a wire. The magnetic field acts on moving charges, and it underlies motors, loudspeakers, hard disks and sensors. In this lesson we cover the Lorentz force, the motion of charges in the field, the force on a wire and the torque on a loop.
The Lorentz force
A charge
moving with velocity
in a magnetic field
feels the force
![]()
Its magnitude is
, its direction perpendicular to both
and
, its sense given by the right-hand rule (reversed for negative charges). The unit of
is the tesla:
. The Earth’s field is about 50 µT, a neodymium fridge magnet about 0.1 to 0.5 T near its surface, an MRI scanner 1.5 to 3 T.
With an electric field as well, the total force is
.
The magnetic force does no work. It is always perpendicular to the velocity, so
: it can change the direction of motion, but not the speed or the kinetic energy.
Motion of a charge in a uniform field

Proof: the radius and the cyclotron frequency
If
is perpendicular to
, the force has constant magnitude
and is always perpendicular to the velocity: it is the centripetal force of uniform circular motion. Setting them equal:
![]()
The cyclotron frequency
does not depend on speed: faster particles make larger circles in the same time. It is the principle of the cyclotron, the circular accelerator. If the velocity also has a component along
, that component does not change and the path becomes a helix: this is how solar wind particles are guided by the Earth’s field towards the poles, producing the aurora.
The mass spectrometer. Ions with the same charge and speed, in a field
, move in circles with radius proportional to their mass: measuring where they land separates isotopes.
The velocity selector. With
and
perpendicular, a particle passes undeflected if
, that is if
, whatever its charge or mass.
The Hall effect
In a conductor carrying a current in a perpendicular field
, the Lorentz force pushes the charge carriers to one side. Charge builds up until the transverse electric field balances the magnetic force, and the Hall voltage
appears across the sides, with
the thickness. The sign of
reveals the sign of the carriers (this is how it was found that in p-type semiconductors positive “holes” carry the current), and its value lets you measure
. Hall sensors are everywhere: they read the shaft position in brushless motors, measure current in chargers and detect the lid closing on laptops.
The force on a current-carrying wire
A wire element
carrying current
contains moving charges, and the sum of the forces on them is
![]()
For a straight wire of length
in a uniform field,
. With 1 T, 10 A and 10 cm the force is 1 N. It is the principle of the loudspeaker: a coil carrying the audio signal current sits in the radial field of a magnet and pushes the cone back and forth.
Torque on a loop: the electric motor
A rectangular loop of area
carrying current
, in a uniform field
, feels opposite forces on two sides, which form a couple:
![]()
is the loop’s magnetic moment, perpendicular to its plane. The loop tends to rotate until
lines up with
, like a compass needle. In a DC motor the commutator reverses the current every half turn, so the torque always has the same sense and rotation continues. In the brushless motors of drones and electric cars the same job is done by electronics, switching the currents according to the position read by Hall sensors.
Exercises
Exercises on the magnetic field of the kind set in Physics 2 courses, in three levels: basic, for the Lorentz force, the circular motion of a charge, the force on a wire and the field of a straight wire; intermediate, with the circular loop, the solenoid, the force between two wires and the velocity selector; exam, with the torque on a coil, Ampère’s law inside a conductor, the mass spectrometer and helical motion. Constants:
,
,
,
. The result is given straight away; the full solution opens with a click.
Basic level
Exercise 1. The Lorentz force
A proton moves at
perpendicular to a magnetic field
. Compute the force acting on it.
Exercise 2. The circular motion of an electron
An electron enters with velocity
perpendicular to a field
. Find the radius of the path and the rotation frequency.
Exercise 3. The force on a current-carrying wire
A piece of wire
long, carrying
, makes an angle of
with a field
. Compute the force on the wire.
Exercise 4. The field of a straight wire
Compute the magnetic field
from a very long straight wire carrying
.
Intermediate level
Exercise 5. The field at the centre of a loop
A circular loop of radius
carries
. Compute the field at the centre.
Exercise 7. The force between two parallel wires
Two parallel wires
apart each carry
in the same direction. Compute the force per unit length.
Exercise 8. The velocity selector
A region contains an electric field
and a magnetic field
, perpendicular to each other and to the velocity of the particles. Which speed passes through undeflected?
7Sources of the magnetic field
In the previous lesson the magnetic field was given. Here we ask where it comes from: the sources of the magnetic field are currents. We cover the Biot-Savart law, the field of a wire and of a loop, the force between two wires, Ampère’s law and the solenoid, up to the inductance we will use in the lesson on induction.
The Biot-Savart law
A wire element
carrying current
produces, at a point a distance
away, the field
![]()
where
T·m/A is the permeability of free space (since 2019 its value is measured rather than fixed, but it is the same to within one part in a billion). It is the counterpart of Coulomb’s law, with two differences: the source is a current element, not a charge, and the field is perpendicular to both
and
.
The field of a straight wire

Integrating Biot-Savart over an infinite wire (or, faster, with Ampère’s law below):
![]()
At 1 cm from a wire carrying 10 A the field is
mT, four times the Earth’s field: enough to deflect a compass, as Ørsted saw.
At the centre of a circular loop of radius
: each element
is perpendicular to the radius and contributes along the axis, so
.
The force between two wires and the definition of the ampere
Two parallel wires a distance
apart, carrying
and
: wire 1 creates at wire 2 the field
, and wire 2 feels the force
. The force per unit length is
![]()
attractive if the currents flow the same way, repulsive if opposite. With 1 A in each wire 1 m apart the force is
N/m: the old definition of the ampere. In short circuits these forces become huge: with tens of thousands of amperes, the busbars in switchboards must be braced to withstand forces of tonnes.
Ampère’s law
The circulation of the magnetic field around a closed line equals
times the enclosed current:
![]()
It checks out at once on the wire: around a circle of radius
,
is constant and tangent, so
. It plays the role Gauss’s law plays for the electric field: it always holds (for steady currents), but it helps compute the field only when there is symmetry. It is also the counterexample of Analysis 2: the wire’s field is irrotational outside the wire, but not conservative, because there is a “hole” where the current flows. In local form:
.
The solenoid
A solenoid is a wire wound as a helix with
turns per unit length. Inside, the fields of the turns add up and the field is nearly uniform and parallel to the axis; outside it almost vanishes.

Proof
Apply Ampère’s law to the rectangle in the figure, with one side of length
inside the solenoid and one outside. Outside
; on the sides perpendicular to the axis
: only the inside side remains,
. The enclosed current is that of the
turns crossed,
. So
![]()
independent of position inside the solenoid. With 1000 turns per metre and 1 A,
mT. With an iron core, whose relative permeability
is in the thousands, the field grows by the same factor: the electromagnet of relays, solenoid valves and electric locks.
Inductance
The magnetic flux linked with a circuit is proportional to its current. The constant of proportionality is the inductance:
![]()
For a solenoid of
turns, length
and cross-section
: the flux through one turn is
, the flux linked with all
turns is
, so
![]()
Inductance grows with the square of the number of turns. Just as a capacitor stores energy in the electric field, an inductor stores it in the magnetic field, with energy
and density
. In the next lesson we will see what happens when the current changes: that is where inductance takes centre stage.
8Electromagnetic induction
In 1831 Faraday discovered that a changing magnetic field produces a current in a nearby circuit. It is the discovery on which almost all the world’s electricity generation rests, and on which transformers, switching power supplies, wireless charging, electric guitars and induction hobs work. In this lesson we cover the Faraday-Lenz law, motional electromotive force, self-inductance and the RL circuit.
Magnetic flux
The flux of the magnetic field through a surface is
![]()
For a flat loop of area
in a uniform field making an angle
with the normal,
. The flux can change in three ways:
changes, the area changes, the orientation changes.
Faraday’s law and Lenz’s law
The electromotive force induced in a circuit equals minus the rate of change of the linked magnetic flux:
![]()
For a coil of
turns,
.
The minus sign is Lenz’s law: the induced current flows in the direction that opposes the change in flux that caused it. If the flux increases, the induced current creates a field that fights it; if it decreases, a field that props it up. It is not a detail: it is energy conservation. If the induced current helped the change, the effect would feed itself, creating energy out of nothing.
Motional electromotive force

Proof with the Lorentz force
The electrons in the bar move at speed
in the field
and feel the Lorentz force, directed along the bar: it is as if there were a source inside the bar. The work per unit charge along the bar is
. With Faraday’s law: the circuit’s area grows by
per second, so
![]()
The same result. The current
in the bar feels the force
, opposite to the velocity (Lenz). To keep the bar moving you must push it with power
, which is exactly the power
dissipated in the resistor: mechanical energy becomes electrical energy. It is an elementary generator.
The AC generator
A coil of
turns and area
rotating at angular velocity
in a uniform field has flux
, and therefore
![]()
a sinusoidal voltage. It is the principle of the alternators in power stations, cars and wind turbines. In Europe the turbines spin so that the frequency is 50 Hz.
The transformer
Two coils wound on the same iron core share the same flux. If an alternating voltage is applied to the primary, with
turns, the secondary, with
turns, gets
![]()
and in an ideal, lossless transformer
: if the voltage goes up the current goes down. It works only with AC, because a changing flux is needed. Modern switching power supplies work at tens or hundreds of kilohertz instead of 50 Hz: for the same power the core can be much smaller, because the voltage induced per turn grows with frequency.
Eddy currents
A changing field also induces currents inside solid conductors: eddy currents. They dissipate energy as heat, which is why transformer cores are made of insulated laminations, or of non-conducting ferrite. But they can also be put to use: induction hobs heat the pan exactly this way, and eddy current brakes slow trains and roller coasters without contact.
Self-inductance and the RL circuit
A changing current in a coil changes its own flux,
, and induces in the coil itself the voltage
![]()
which opposes the change in current. Inductance is the “inertia” of current: just as mass resists changes in velocity, inductance resists changes in current.
In a circuit with resistance
and inductance
connected to a source
, the loop law gives
, and
![]()
the same form as a charging capacitor, with the roles swapped: at first the inductor behaves like an open circuit, in steady state like a short circuit.
Beware of overvoltages. If the current in an inductor is interrupted suddenly,
becomes huge and so does the induced voltage: it is the spark you see when unplugging a vacuum cleaner. Circuits that drive relays or motors with a transistor always have a flyback diode across the coil, giving the current a path while it dies away. The same effect, under control, is the principle of a car’s ignition coil and of boost converters, which produce voltages higher than their input.
Exercises
Exercises on electromagnetic induction and alternating current circuits of the kind set in Physics 2 courses, in three levels: basic, for Faraday’s law, motional emf, reactances and RMS values; intermediate, with the alternator, the inductance of a solenoid, the RL transient and the impedance of an RLC circuit; exam, with resonance, power factor correction, the transformer and the charge induced in a loop. Constant:
. The result is given straight away; the full solution opens with a click.
Basic level
Exercise 1. Faraday’s law
A coil of
turns, with area
, is perpendicular to a magnetic field that rises uniformly from
to
in
. Compute the induced emf.
Exercise 2. The bar sliding on rails
A bar
long slides at
on two rails closed by a
resistor, in a field
perpendicular to the circuit. Find the emf, the current and the force needed to keep the speed constant.
Exercise 4. The RMS value
The mains voltage has an amplitude of
. Find the RMS value and the average power dissipated by a
resistor.
Intermediate level
Exercise 5. The alternator
A coil of
turns, with area
, rotates at
revolutions per second in a field
. Compute the amplitude of the emf.
Exercise 6. The inductance of a solenoid
A solenoid
long, with
turns and a cross-section of
, carries
. Compute the inductance and the stored energy.
Exercise 7. The RL transient
An inductor
in series with
is connected to a
source. Find the time constant, the final current and the current after one time constant.
Exercise 8. The impedance of a series RLC circuit
A series RLC circuit with
,
and
is connected to the mains (
RMS,
). Find the impedance, the RMS current and the phase shift.
9AC circuits
The mains, audio signals and radio signals are sinusoidal voltages. Studying a circuit of resistors, capacitors and inductors in sinusoidal steady state with differential equations is possible but long. The phasor method, which uses the complex numbers of Analysis 1, turns derivatives into multiplications and the circuit into an Ohm’s law problem. In this lesson we cover RMS values, phasors, impedance, the series RLC circuit with resonance, and AC power.
Sinusoidal quantities and RMS value
A sinusoidal voltage is written
, with amplitude
, angular frequency
and phase
. Its average is zero, so to measure its “strength” the RMS value is used: the DC voltage that would dissipate the same average power in a resistor.
![Rendered by QuickLaTeX.com \[ V_{rms} = \sqrt{\frac1T\int_0^T v^2\,dt} = \frac{V_0}{\sqrt2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f89b1b4183317364e35443674448079c_l3.png)
because the average of
over a period is
. The 230 V of the European mains is an RMS value: the amplitude is
V.
Phasors
With Euler’s formula,
. In a linear circuit every quantity oscillates at the same frequency
, so the factor
is common and can be left implicit. What remains is the complex number
![]()
the phasor, holding amplitude and phase. The advantage is huge: differentiating with respect to time becomes multiplying by
, because
. The circuit’s differential equations become algebraic equations.
Impedance
For each component the ratio of the voltage phasor to the current phasor is the impedance
:
| Component | Time-domain law | Impedance | Phase of |
|---|---|---|---|
| resistor | in phase | ||
| inductor | |||
| capacitor |
With impedances, Ohm’s law
, Kirchhoff’s laws and the series and parallel rules all hold, exactly as for resistors in DC. An inductor’s impedance grows with frequency (it blocks high frequencies), a capacitor’s falls (it blocks DC): the principle of every filter.
Example. A 1 µF capacitor at 50 Hz has
kΩ; at 1 MHz only 0.16 Ω. That is why decoupling capacitors next to chips “short” high-frequency noise to ground without touching the DC supply.
The series RLC circuit
With
,
and
in series, the total impedance is
![Rendered by QuickLaTeX.com \[ Z = R + i\left(\omega L - \frac{1}{\omega C}\right),\qquad |Z| = \sqrt{R^2 + \left(\omega L - \frac{1}{\omega C}\right)^2},\qquad \tan\varphi = \frac{\omega L - 1/(\omega C)}{R} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-50b58b5f50b5f0ab9620497254fadb1e_l3.png)

Resonance
The reactances of inductor and capacitor have opposite signs and cancel when
![]()
At the resonant frequency the impedance is smallest and equal to
, the current is largest and in phase with the voltage. The voltages across the inductor and the capacitor can be much larger than the applied one, because they are opposite and cancel each other: their ratio to the applied voltage is the quality factor
.
The bandwidth, the range of frequencies where the power is at least half the maximum, is
, that is
. A high-
circuit selects a narrow band: the tuning circuit of a radio. Example: with
µH and
pF,
MHz; with
Ω,
and the bandwidth is about 32 kHz.
AC power
The instantaneous power
oscillates. Its average, the active power, is
![]()
is the power factor. In a resistor
and all the power is dissipated. In an ideal inductor or capacitor
and the average power is zero: energy flows in and back out twice per period, without being consumed. The part shuttling back and forth is the reactive power,
, measured in VAR.
A load with a low power factor, such as an uncompensated induction motor, draws more current than needed for the same active power, and needlessly heats cables and transformers. That is why large users must correct it with capacitor banks, and why power supplies above a certain rating have a power factor correction (PFC) circuit.
Power transfer
With a source of internal impedance
, the load receives the most power when
, the complex conjugate: the reactances cancel (resonance) and the resistances are equal. It is the principle of impedance matching, essential in radio-frequency circuits, where antennas, cables and amplifiers are all matched to 50 Ω.
10Maxwell's equations and electromagnetic waves
In 1865 Maxwell gathered all of electromagnetism into four equations, added a missing term and found that they predicted waves travelling at the speed of light. Light was an electromagnetic wave. Twenty years later Hertz produced and detected radio waves in the laboratory; from there came radio, television, radar, Wi-Fi and mobile phones. This lesson closes the Physics 2 course.
The displacement current
Ampère’s law,
, has a problem. Think of a capacitor that is charging. A closed line around the wire is the boundary both of a surface crossed by the wire (with current
) and of a “bag” surface passing between the plates (where no current flows). The two choices give different results, yet Stokes’ theorem says the answer cannot depend on the surface.
Between the plates, however, there is a growing electric field. Maxwell added to the conduction current the displacement current
![]()
For the parallel-plate capacitor,
, so
: exactly the current in the wire. The corrected Ampère law holds for any surface. Its physical meaning is profound: a changing electric field generates a magnetic field, just as a changing magnetic field generates an electric field (Faraday).
Maxwell’s equations
| Law | Integral form | Local form | Meaning |
|---|---|---|---|
| Gauss | charges are sources of the electric field | ||
| Gauss for magnetism | there are no magnetic charges: B lines are closed | ||
| Faraday | a changing B generates E | ||
| Ampère-Maxwell | currents and a changing E generate B |
The step from integral to local form uses the divergence and Stokes theorems of Analysis 2. Together with the Lorentz force,
, these equations describe every classical electromagnetic phenomenon: from circuits to antennas, from motors to optical fibres.
Electromagnetic waves
In vacuum, with no charges or currents, the equations become symmetric: a changing
creates
, a changing
creates
. Combining the two curl laws gives, for each component,
![]()
It is the wave equation, with propagation speed
![]()
Maxwell computed this number from constants measured with capacitors and coils, and found the speed of light measured by astronomers. It was the proof that light is an electromagnetic wave.

Properties of a plane wave:
and
are perpendicular to each other and to the direction of travel (transverse wave), and
points in the direction of travel;- their magnitudes are linked by
; - wavelength and frequency are linked by
; - the direction in which
oscillates is the polarisation.
Energy and the Poynting vector
The wave carries energy. The energy density is the sum of the electric and magnetic parts,
, which are equal for a wave. The energy flow per unit area and time is the Poynting vector
![]()
and its average is the intensity (W/m²). Sunlight reaches the Earth with about 1360 W/m² above the atmosphere. The wave also carries momentum: radiation pressure, tiny on Earth, pushes solar sails in space.
Example. An antenna radiating 1 W evenly in all directions produces at 1 km an intensity
W/m², and an RMS field
mV/m. Enough for a good receiver.
The electromagnetic spectrum
| Band | Wavelength | Examples |
|---|---|---|
| radio waves | km to cm | AM and FM radio, TV, mobile phones, Wi-Fi at 2.4 and 5 GHz (12 and 6 cm) |
| microwaves | cm to mm | radar, microwave ovens, 77 GHz automotive radar |
| infrared | 1 mm to 780 nm | remote controls, thermal cameras, optical fibres at 1550 nm |
| visible | 780 to 380 nm | light, LEDs |
| ultraviolet | 380 to 10 nm | sterilisation, chip photolithography |
| X-rays and gamma rays | below 10 nm | X-ray imaging, astrophysics |
They are all the same thing, at different frequencies. Antenna size is tied to wavelength: a dipole antenna is about
long, that is 6 cm for 2.4 GHz Wi-Fi. That is why phones have built-in antennas a few centimetres long, while medium-wave radios had antennas tens of metres long.
The consequences
Maxwell’s equations also held a puzzle: the speed
does not depend on the motion of whoever measures it, in conflict with the Galilean transformation of Physics 1. Einstein solved it in 1905 with special relativity, linked as an in-depth page to this subject.
11Special relativity
Maxwell’s equations predict that light travels at
m/s, without saying relative to what. For the mechanics of Galileo and Newton this is impossible: a velocity changes depending on whether it is measured from a train or from the platform. In 1905 Einstein resolved the conflict by siding with Maxwell and changing the way time and space are measured. The result is special relativity: time runs more slowly for moving clocks, lengths shrink in the direction of motion, two events simultaneous for one observer are not for another, and mass and energy are the same thing. This lesson derives everything from the two postulates, with proofs, the Minkowski diagram, the twin paradox, relativistic dynamics and
, shows that the magnetic field is a relativistic effect of the electric field, and ends with the cases in which relativity is actually measured: cosmic-ray muons, GPS, particle accelerators.
The idea in simple words
Imagine you are on a very fast train and switch on a torch: the light moves away from you at
. Someone standing at the station sees the same light, and for them too it travels at
, not at
plus the speed of the train. Experiments say that this is exactly how it is. If two observers measure the same speed for light even though they move relative to each other, then they must measure times and distances differently: speed is space divided by time, and if the ratio stays the same, it is space and time that change. Every strange effect of relativity comes from here. At everyday speeds the differences are tiny (parts per billion), which is why we do not notice them; close to the speed of light they become enormous.
The problem: Galileo versus Maxwell
For Galileo, if a frame S′ moves with velocity
along
relative to S, coordinates transform as:
![]()
and velocities add:
. Newton’s laws do not change form (they are invariant) under this transformation. Maxwell’s equations do: the wave equation
, rewritten with Galileo’s coordinates, takes a different form, and light would have speed
in only one privileged frame, that of the “ether”. The Michelson and Morley experiment (1887) looked for the motion of the Earth through the ether by comparing the speed of light in two perpendicular directions, with enough sensitivity to measure the Earth’s orbital speed (30 km/s): it found nothing.
The two postulates
- Principle of relativity. The laws of physics, all of them (mechanics and electromagnetism), have the same form in all inertial frames.
- Constancy of the speed of light. Light in vacuum has speed
in every inertial frame, whatever the motion of the source.
The second postulate, in the light of the first, simply says that Maxwell’s equations hold in all inertial frames. Everything else follows.
Time dilation

A light clock is made of two mirrors a distance
apart between which a light pulse bounces; each round trip is a “tick”.
Theorem. A clock moving with velocity
ticks more slowly, relative to clocks at rest, by the Lorentz factor:
![Rendered by QuickLaTeX.com \[ \Delta t = \gamma\,\Delta\tau,\qquad \gamma = \frac{1}{\sqrt{1 - v^2/c^2}} \ge 1 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-3fde3dd3e0c214794903c89fd38e0bd2_l3.png)
where
is the interval measured by the clock itself (the proper time).
Proof. In the clock’s frame light covers
at speed
:
. For someone who sees the clock moving, during half a tick
the mirrors advance by
and the light travels along the hypotenuse (figure); by the second postulate it still does so at speed
, so the hypotenuse is
long. The distance
between the mirrors is perpendicular to the motion and does not change (if it did, an observer could tell which of the two is moving, against the first postulate). By Pythagoras
, hence
. ∎
Every clock, not just the light clock, must slow down in the same way: otherwise by comparing a light clock with a mechanical one on the train one would discover one is moving, violating the first postulate. It is time itself that slows down, and with it every physical, chemical and biological process.

The Lorentz transformations
Theorem. If S′ moves with velocity
along
relative to S and the origins coincide at
, the two postulates require
![]()
Proof. Space and time are homogeneous (no point and no instant is privileged), so the transformation is linear. The origin of S′ (
) moves as
, so
for some constant
. By the principle of relativity S moves with velocity
relative to S′, and by the isotropy of space with the same constant:
. A flash of light leaving the origin at
has, by the second postulate,
in S and
in S′. Substituting:
and
. Multiplying them together,
, that is,
. Finally, from the second relation
, and since
, one obtains
. ∎
For
,
and
: Galileo’s transformations are recovered. Newton’s mechanics is the low-speed limit of relativity, and this is why it works so well in everyday life.
Three consequences
The relativity of simultaneity. For two events separated by
and
,
. If they are simultaneous in S (
) but at different places, in S′ they are not:
. Two lightning bolts striking the two ends of a train at the same instant for someone at the station strike the front of the train first for someone on board. There is no universal “now”.
Length contraction. A rod at rest in S′ has proper length
. In S the length is measured by marking the two ends at the same instant (
):
, hence
![]()
Moving objects are shorter in the direction of motion. Perpendicular dimensions do not change.
Velocity addition. An object with velocity
in S has in S′, differentiating the transformations (
,
):
![]()
Two velocities of 0.5
do not give
but 0.8
; two of 0.9
give 0.9945
. If
, then
: the speed of light is the same for everyone, as the postulate requires. No combination of velocities below
can exceed it.
Spacetime and the invariant interval
Time and space, taken separately, change from one observer to another. There is, however, a combination that does not change.
Theorem. The interval between two events,
, is the same in all inertial frames.
Proof. With
, the transformations give
and
. Then
. The
and
coordinates do not change. ∎
It is the analogue of distance in Euclid’s geometry, which does not change when the axes are rotated; here, however, there is a minus sign, and the geometry of spacetime (that of Minkowski) differs from Euclidean geometry. The sign of the interval divides pairs of events into three classes that all observers recognise in the same way:
(timelike): a signal slower than light can go from one to the other; the time order is the same for everyone, and one can be the cause of the other;
(lightlike): only light connects them;
(spacelike): no signal connects them, and different observers can see them in a different order. This is why the reversal of order (the relativity of simultaneity) never violates causality.

In the Minkowski diagram (figure) every event is a point, the motion of a body a line (its world line), and light goes at 45 degrees. The axes of a moving frame are the lines
(that is,
) and
(that is,
): they tilt towards the light diagonal, the more so the closer
gets to
. Lines parallel to the
axis are the events simultaneous for the moving observer.
The twin paradox
A twin leaves for a star 4 light years away at 0.8
and comes straight back. On Earth
years pass. For the traveller, with
,
years pass: on return the traveller is four years younger.
The paradox: for the traveller it is the Earth that moves, so it should be the twin at home who ages less. But there is no symmetry: the twin on Earth always stays in the same inertial frame, the traveller does not (reversing course, and at that moment changing reference frame, and with it the idea of which Earth instant is “now”).
Theorem. The proper time measured along a world line is
, and between two events it is greatest along the inertial world line (the straight line).
Proof. On a short stretch, over which the velocity is roughly constant, the moving clock measures
; adding up the stretches gives the integral. In the inertial frame in which the two events occur at the same place, the inertial world line has
and the integrand equals 1, the largest possible value; every other line connecting the same two events has
on some stretch and therefore a smaller integral. Since
is the interval, the result does not depend on the chosen frame. ∎
In spacetime the straight line is the longest line, not the shortest: this is the minus sign of Minkowski geometry. The experiment has actually been done: in 1971 Hafele and Keating flew atomic clocks around the world on airliners and measured, relative to those left on the ground, differences of tens to hundreds of nanoseconds in agreement with the theory (combining this effect with that of gravity, from general relativity).

Relativistic dynamics
With the Lorentz transformations the momentum
is no longer conserved in all inertial frames. The right quantities, which are conserved in collisions for any observer, are
![]()
where
is the mass (the same for all observers). The energy of a body at rest is not zero but
, and the kinetic energy is what is added by setting it in motion:
![]()
Theorem.
, and for
the kinetic energy tends to
.
Proof.
. For small velocities
, so
. ∎
The relation
also holds for light: the photon has zero mass, so
, and it carries momentum (this is radiation pressure). Since
and
grow without limit as
, a body with mass never reaches the speed of light: it would take infinite energy.
Mass and energy.
says that mass is a form of energy. A helium-4 nucleus weighs less than the two protons and two neutrons that make it up: the mass defect is 0.0304 u, that is, 28.3 MeV, 0.75 % of the mass. It is the energy released when the nucleus forms, what makes the Sun shine. The same happens in chemical reactions, but the mass difference is a billion times smaller and no balance can see it.
Fast electrons and protons. In the cathode-ray tube of an old television the electrons are accelerated by 25 kV:
and
(Newton’s formula would give 0.313
, a 4 % error). With 1 MV,
and
, whereas Newton would give 1.98
, which is impossible. The protons of the LHC, at 6.8 TeV, have
and travel only 2.85 m/s slower than light. Particle accelerators are designed with relativistic dynamics, and confirm it every day.
Magnetism is relativity
A surprising consequence, and very close to the Physics 2 syllabus: the magnetic field is the electric field seen from another reference frame.
Theorem. The magnetic force
between a current-carrying wire and a charge moving parallel to the wire is the electric force that the charge feels, in its own reference frame, because of length contraction.
Proof. In the wire’s frame (S) the positive ions are at rest with linear density
and the electrons move with velocity
with density
: the wire is neutral and the current is
. A charge
moves with the same velocity
at a distance
. In the charge’s frame (S′) the electrons are at rest: in S they were contracted, so their proper density is
. The ions, instead, move with velocity
and are contracted: density
. The wire in S′ therefore has a net charge
, and the charge feels the electric field
, that is, the force
. A force perpendicular to the motion, brought back to frame S, is divided by
(the transverse impulse is the same in both frames, and the time in S is
times longer):
. With
and
:
, exactly the magnetic Lorentz force with the field of the wire given by Ampère’s law. ∎
The electrons in a wire move at fractions of a millimetre per second, and
is of the order of
; the magnetic force is measurable all the same because the charges involved are huge (in one metre of 1 mm² copper wire there are about 14 000 coulombs of conduction electrons). Maxwell’s equations were already relativistic: this is why Einstein titled his 1905 paper “On the electrodynamics of moving bodies”.
Relativity is measured
Cosmic-ray muons. Cosmic rays produce muons at an altitude of about 15 km, with speeds of about 0.995
. The muon lives on average 2.197 µs. Without relativity it would travel on average
µs = 655 m, and a fraction
would reach the ground. With time dilation (
) the mean lifetime in the Earth’s frame is ten times longer, the mean path 6.6 km, and 10 % reach the ground: this is what is measured. For the muon, instead, it is the layer of atmosphere that is contracted tenfold: the two descriptions give the same result.
GPS. GPS satellites orbit 26 560 km from the centre of the Earth with a speed of 3.874 km/s. According to special relativity their clocks slow down by 7.2 µs per day; according to general relativity (they are higher up in the gravitational field) they speed up by 45.7 µs per day. The total is +38.5 µs per day. Since GPS measures distances by the time of flight of the signals, an error of 38.5 µs corresponds to 11.5 km: without correction, the position would drift by more than ten kilometres per day. The satellite clocks are set on the ground to a slightly lower frequency, precisely to compensate.
The relativistic Doppler effect. A source approaching with velocity
emits waves of proper frequency
. In the observer’s frame its period is dilated to
, but during one period the source advances by
, and the wavefronts arrive separated by
. Therefore
![Rendered by QuickLaTeX.com \[ f = f_0\sqrt{\frac{1 + \beta}{1 - \beta}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-2c3ed66433f55b2c5cb1e6fd98d15999_l3.png)
(with
negative if the source recedes). Even for a source moving sideways there is an effect,
, which classical physics does not predict: it is pure time dilation. The relativistic Doppler effect is the redshift of distant galaxies and a necessary correction in communications with space probes.
Summary
- Postulates: the laws of physics are the same in all inertial frames, and light has speed
for everyone. - They lead to the Lorentz transformations
,
, with
; for
Galileo is recovered. - Consequences: time dilation
, length contraction
, relativity of simultaneity, velocities that combine without ever exceeding
. - The interval
is invariant; proper time is greatest along the inertial world line (twins: 10 years against 6).
,
,
: mass is energy.- Magnetism is electricity seen from another reference frame; muons, GPS and accelerators confirm the theory every day.
The code
import math
import numpy as np
c = 299_792_458.0
gamma = lambda v: 1 / math.sqrt(1 - (v / c) ** 2)
# Lorentz factor for some speeds
for b in (0.01, 0.1, 0.5, 0.8, 0.9, 0.99, 0.995, 0.999):
print(f"v = {b:5.3f} c: gamma = {gamma(b * c):.4f}")
# Lorentz transformation as a matrix and check of the invariance of the interval
def boost(v):
g, b = gamma(v), v / c
return np.array([[g, -g * b], [-g * b, g]]) # acts on (ct, x)
rng = np.random.default_rng(0)
ev = rng.normal(size=(2, 5)) * 1e3 # five events (ct, x) in metres
for v in (0.3 * c, 0.9 * c):
ev2 = boost(v) @ ev
s2 = ev[0] ** 2 - ev[1] ** 2
s2b = ev2[0] ** 2 - ev2[1] ** 2
print(f"boost {v / c:.1f} c: largest relative difference in the interval {np.max(np.abs(s2b - s2) / np.abs(s2)):.1e}")
print(f"two boosts of 0.5 c = one boost of 0.8 c: {np.allclose(boost(0.5 * c) @ boost(0.5 * c), boost(0.8 * c))}")
# velocity addition
add = lambda u, v: (u + v) / (1 + u * v / c ** 2)
print(f"0.5 c + 0.5 c = {add(0.5 * c, 0.5 * c) / c:.3f} c; 0.9 c + 0.9 c = {add(0.9 * c, 0.9 * c) / c:.4f} c; c + 0.5 c = {add(c, 0.5 * c) / c:.3f} c")
# atmospheric muons: produced at 15 km, v = 0.995 c, mean lifetime 2.197 microseconds
tau, v, h = 2.197e-6, 0.995 * c, 15e3
print(f"muons: without relativity they travel on average {v * tau:.0f} m, with time dilation {gamma(v) * v * tau:.0f} m")
print(f" fraction reaching the ground: {math.exp(-h / (v * tau)):.1e} (Galileo) against {math.exp(-h / (gamma(v) * v * tau)):.3f} (Einstein)")
# twins: journey to a star 4 light years away at 0.8 c
v = 0.8 # units: years and light years, c = 1
T = 2 * 4 / v
print(f"twins: {T:.1f} years pass on Earth, {T / (1 / math.sqrt(1 - v ** 2)):.1f} years for the traveller")
# GPS: orbit of radius 26 560 km
GM, RE, r = 3.986004e14, 6.371e6, 26.56e6
vs = math.sqrt(GM / r)
day = 86400
sr = -vs ** 2 / (2 * c ** 2) * day
gr = GM * (1 / RE - 1 / r) / c ** 2 * day
print(f"GPS: v = {vs / 1e3:.3f} km/s; special relativity {1e6 * sr:+.1f} us/day, general {1e6 * gr:+.1f} us/day, total {1e6 * (sr + gr):+.1f} us/day = {(sr + gr) * c / 1e3:.1f} km of error per day")
# energy: accelerated electron, LHC proton, mass defect of helium 4
me, mp, u = 0.51099895, 938.27209, 931.49410 # MeV
for K in (0.025, 1.0):
g = 1 + K / me
print(f"electron with {1e3 * K:.0f} keV: gamma {g:.3f}, v = {math.sqrt(1 - 1 / g ** 2):.3f} c (Newton would give {math.sqrt(2 * K / me):.3f} c)")
g = 6.8e6 / mp
print(f"LHC proton at 6.8 TeV: gamma {g:.0f}, c - v = {c / (2 * g ** 2):.2f} m/s")
mHe, mH, mn = 4.002602, 1.007825, 1.008665 # atomic masses in u
dm = 2 * mH + 2 * mn - mHe
print(f"helium 4: mass defect {dm:.6f} u = {dm * u:.2f} MeV, that is {100 * dm / (2 * mH + 2 * mn):.2f} % of the mass")The program prints the values of
(1.1547 at 0.5
, 1.6667 at 0.8
, 10.01 at 0.995
), checks that the interval stays the same after a Lorentz transformation (up to rounding errors of
) and that two transformations at 0.5
are equivalent to a single one at 0.8
, and computes velocity addition, the muons (655 m against 6562 m, fraction at the ground
against 0.102), the twins (10 and 6 years), GPS (+38.5 µs per day, 11.5 km), the 25 keV and 1 MeV electrons, the LHC proton and the mass defect of helium.
The videos
To see the same topics explained at the blackboard, this series of videos by Lorenzo Galante, in Italian, follows the same path:
12Optics
Light is an electromagnetic wave with a wavelength between 380 and 780 nm. When objects are much larger than the wavelength, light can be described with straight rays (geometrical optics); when sizes are comparable, wave effects appear, interference and diffraction (wave optics). In this lesson we cover reflection and refraction, total internal reflection and optical fibres, lenses, Young’s interference and diffraction.
Refractive index
In transparent materials light travels more slowly than in vacuum. The refractive index is the ratio
![]()
It is about 1.0003 for air, 1.33 for water, 1.5 for glass, 1.46 for the silica of optical fibres, 2.42 for diamond. Going from one medium to another the frequency stays the same, while the wavelength shrinks to
.
Reflection and refraction
When light meets the boundary between two media, part is reflected and part goes through, changing direction.
- Reflection: the angle of reflection equals the angle of incidence, both measured from the normal to the surface.
- Refraction (Snell’s law):
![]()

Proof with Fermat’s principle
Light goes from a point A in medium 1 to a point B in medium 2 along the path that takes the least time. Let A be at height
above the surface, B at depth
below, a horizontal distance
away, and let
be where the ray crosses the surface. The time is
![]()
Setting
:
![Rendered by QuickLaTeX.com \[ \frac{x}{v_1\sqrt{a^2 + x^2}} = \frac{d - x}{v_2\sqrt{b^2 + (d - x)^2}} \quad\Rightarrow\quad \frac{\sin\theta_1}{v_1} = \frac{\sin\theta_2}{v_2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7f896e0db0b95ace96db0a6b875c3edd_l3.png)
and multiplying by
gives Snell’s law. It is the same reasoning as a lifeguard running to someone drowning: it pays to run further on the sand and swim less.
Total internal reflection and optical fibres
Going from a denser to a less dense medium (
) the ray bends away from the normal. Beyond the critical angle
![]()
Snell’s law has no solution and the light is totally reflected, with no loss. For glass in air
.
An optical fibre uses exactly this: a silica core with an index slightly higher than the cladding around it guides the light by repeated total internal reflections. At a wavelength of 1550 nm the attenuation is about 0.2 dB/km: after 100 km, 1% of the light still arrives. Fibres carry almost all the Internet traffic between continents, and over short distances they link servers and switches in data centres.
Lenses
A thin converging lens of focal length
forms the image of an object at distance
at a distance
given by the thin lens equation:
![]()
with magnification
. The power of a lens is measured in dioptres,
with
in metres. It is the optics of cameras, microscopes, projectors and of the lenses in optical drives and image sensors.
Interference: Young’s experiment
If light is a wave, two coherent sources must interfere: where crests coincide they reinforce, where a crest meets a trough they cancel. Young showed it in 1801 with two narrow slits.

Proof of the condition for maxima
At a point on the screen seen at an angle
, far away compared with
, the two rays travel paths that differ by
. The waves arrive in phase, giving a maximum, if this difference is a whole number of wavelengths:
![]()
There is a minimum if the difference is an odd number of half wavelengths. For small angles, on a screen at distance
, the bright fringes are equally spaced,
apart. Example: with a 650 nm red laser, slits 0.25 mm apart and a screen 2 m away,
mm. Measuring the fringes measures the wavelength with a ruler.
With many equally spaced slits (a diffraction grating) the maxima become very sharp lines, and since their position depends on
, the grating separates colours: the heart of spectrometers. The iridescence of a CD is the same effect.
Diffraction and its limits
A wave passing through an opening of width
spreads out: the first minimum is at
. The smaller the opening, the more the beam spreads. A fundamental limit follows: no optical instrument can resolve details much smaller than the wavelength (Rayleigh criterion,
for a circular aperture of diameter
).
That is why the semiconductor industry has moved to ever shorter wavelengths to print integrated circuits: from 193 nm ultraviolet to 13.5 nm extreme ultraviolet, which can define the details of the most advanced chips. The same limit applies to antennas: a narrow beam needs an antenna that is large compared with the wavelength, like radio telescope dishes or 5G antenna arrays.
✎Exam exercises
1. Electric charge and Coulomb's law
Exam level
Exercise 9. A dielectric in a capacitor
A slab of dielectric with constant
that fills all the space is inserted into a charged capacitor. What happens to capacitance, voltage, charge and energy if (a) the capacitor is isolated, (b) it stays connected to the battery?
Exercise 10. The energy of a system of three charges
Three equal charges
sit at the corners of an equilateral triangle of side
. How much work is needed to bring them there from infinity?
Exercise 11. The energy is in the field
For the capacitor of exercise 4, compute the energy density of the field and check that, multiplied by the volume, it gives the energy of the capacitor.
Exercise 12. A charged conducting sphere
A conducting sphere of radius
is brought to a potential of
. Find its charge and the field at the surface.
5. Electric current and DC circuits
Exam level
Exercise 10. The incandescent bulb
A tungsten-filament bulb is rated 60 W at 230 V. At room temperature (20 °C) the filament measures 70 Ω. With the temperature coefficient
K
, estimate the operating temperature, and compare the current at switch-on with the steady-state current.
Exercise 11. The insulation of a coaxial cable
A coaxial cable 100 m long has an inner conductor of radius 0.50 mm and a braid of radius 1.75 mm, separated by polyethylene (
Ω·m,
). Compute the insulation resistance, the leakage current at 1 kV, and the product
of insulation resistance and cable capacitance.
Exercise 12. Measuring carrier density with the Hall effect
A semiconductor strip 0.20 mm thick carries 5.0 mA in a perpendicular magnetic field of 0.50 T. A Hall voltage of 25 mV is measured, with the sign indicating negative carriers. Find the carrier density and compare it with copper.
Exercise 13. An RC circuit with Thévenin’s theorem
In the circuit of the figure
V,
kΩ,
kΩ,
µF, and the capacitor is initially uncharged. Find the capacitor voltage as a function of time and the current delivered by the source at the beginning and at the end.

Exercise 14. Mobility of a metal and of a semiconductor
The mobility is
. Compute it for copper and compare it with that of electrons in silicon, 0.14 m²/(V·s). Why does copper conduct so much better, then?
Exercise 15. Up to what frequency does Ohm’s law hold?
For copper, at what frequency does the real part of the conductivity halve? How large is the correction at 2.4 GHz (Wi-Fi)?
Exercise 16. The mean free path: classical or quantum?
From the relaxation time of copper,
s, estimate the mean free path of the electrons with the classical thermal speed and with the Fermi velocity,
m/s. Which value is realistic?
6. The magnetic field and the Lorentz force
Exam level
Exercise 9. The torque on a coil
A rectangular coil of
turns,
, carrying
, is in a field
parallel to the plane of the coil. Compute the magnetic moment and the torque.
Exercise 10. Ampère’s law inside a wire
A wire of radius
carries
spread uniformly over its cross-section. Compute the field at
,
and
from the axis.
Exercise 11. The mass spectrometer
Carbon ions with charge
are accelerated through
and enter a field
, where they describe half a circle. How far apart do the
and
ions land on the detector? (
)
Exercise 12. Helical motion
A proton with speed
enters a field
at an angle of
to the field lines. Find the radius and the pitch of the helix.
8. Electromagnetic induction
Exam level
Exercise 9. Resonance
A series RLC circuit has
,
and
. Find the resonant frequency, the quality factor and the bandwidth.
Exercise 10. Power factor correction
A load draws
from the mains (
,
) with an inductive power factor of
. Which capacitor in parallel brings the power factor to
? By how much does the line current drop?
Exercise 11. The transformer
An ideal transformer has
turns on the primary and
on the secondary. The primary is connected to
and the secondary to a
resistor. Find the secondary voltage and current, the primary current and the resistance seen from the primary.
Exercise 12. The charge induced in a loop
A circular loop of radius
and resistance
is perpendicular to a field that falls uniformly from
to zero in
. Find the induced current, its direction and the charge that flows through the loop. What changes if the field falls in
?
✓Solutions
1. Electric charge and Coulomb's law · Exercise 1. Coulomb’s law
Result:
, attractive.
![]()
1. Electric charge and Coulomb's law · Exercise 2. The field of a point charge
Result:
, pointing away from the charge.
![]()
1. Electric charge and Coulomb's law · Exercise 3. An electron accelerated through a potential difference
Result:
, about 6% of the speed of light.
The work of the field,
, becomes kinetic energy:
![Rendered by QuickLaTeX.com \[ \frac{1}{2}m_e v^2 = eV \quad\Longrightarrow\quad v = \sqrt{\frac{2eV}{m_e}} = \sqrt{\frac{2\cdot 1.602\cdot 10^{-19}\cdot 1000}{9.109\cdot 10^{-31}}} \approx 1.88\cdot 10^7\ \mathrm{m/s} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-4d097b058af2736035f5feecf69b6679_l3.png)
1. Electric charge and Coulomb's law · Exercise 4. The parallel-plate capacitor
Result:
,
,
.
![]()
1. Electric charge and Coulomb's law · Exercise 5. Where the field is zero
Result: at
.
The charges have the same sign: the fields can cancel only between them, where they point in opposite directions. Equating the magnitudes at a point
between the charges:
![]()
1. Electric charge and Coulomb's law · Exercise 6. Gauss’s law: a uniformly charged sphere
Result:
for
,
for
.
By symmetry the field is radial and depends only on
. Use a sphere of radius
as the Gaussian surface: the flux is
.
Outside (
) the enclosed charge is
:
, the same field as a point charge. Inside (
) the enclosed charge is
:
, which grows linearly from 0 at the centre to its maximum at the surface.
1. Electric charge and Coulomb's law · Exercise 7. The field of a charged wire
Result:
.
Gaussian surface: a coaxial cylinder of radius
and length
. Flux goes only through the side:
, so
![]()
1. Electric charge and Coulomb's law · Exercise 8. Capacitors in series and in parallel
Result:
;
.
In series the reciprocals add:
. In parallel the capacitances add:
.
The series branch has the full
across it; capacitors in series carry the same charge,
. The voltages divide in inverse proportion to the capacitances:
on
and
on
.
1. Electric charge and Coulomb's law · Exercise 9. A dielectric in a capacitor
Result: in both cases
. (a)
constant,
,
; (b)
constant,
,
.
The dielectric polarises and reduces the field inside by a factor
for the same charge: the capacitance becomes
.
(a) Isolated: the charge cannot change.
falls by
and
falls by
: the missing energy is the work done by the field pulling the slab in.
(b) Connected: the voltage is fixed.
grows by
and
grows by
: the extra energy comes from the battery (which supplies twice as much: half goes into the capacitor, half into the work on the slab).
1. Electric charge and Coulomb's law · Exercise 10. The energy of a system of three charges
Result:
.
The energy of a system of charges is the sum over all pairs:
. Here there are three equal pairs:
![]()
1. Electric charge and Coulomb's law · Exercise 11. The energy is in the field
Result:
;
, equal to
.
The field between the plates is uniform:
. The energy density is
![]()
The volume between the plates is
:
. In general
: the energy of the capacitor can be thought of as stored in the field.
1. Electric charge and Coulomb's law · Exercise 12. A charged conducting sphere
Result:
,
.
Outside the sphere the potential is that of a point charge at the centre:
, so
![]()
At the surface
. At the same potential the field grows as the radius shrinks: that is why sharp points discharge (corona effect) and lightning rods are pointed. Dry air ionises at around
.
5. Electric current and DC circuits · Exercise 1. The resistance of a wire
Result: 1.08 Ω; 1.28 mm.
Cross-section:
m². Resistance:
Ω.
For the same
with the same length we need
, and the diameter goes as the square root:
mm. Despite the larger cross-section, the aluminium wire weighs about half as much (density 2.7 against 8.9 g/cm³): this is why overhead lines are made of aluminium.
5. Electric current and DC circuits · Exercise 2. How slow the drift is
Result:
m/s; about 57 minutes.
Current density:
A/m². Drift velocity:
m/s.
Time for 1 m:
s, almost an hour. The bulb lights up immediately because the field propagates, not the electrons.
5. Electric current and DC circuits · Exercise 3. Series and parallel
Result:
Ω;
A,
A,
A.
Parallel:
Ω. In series with
:
Ω.
Total current
A. Voltage across the parallel pair:
V. So
A and
A. Check:
.
Current divider rule: in a parallel combination the current splits in inverse proportion to the resistances.
5. Electric current and DC circuits · Exercise 4. Real source and maximum power transfer
Result: 2 A; 11 V; 22 W; maximum for
Ω, 72 W, efficiency 50 %.
A. Terminal voltage
V. Power in the load
W.
Power as a function of
:
. Differentiating,
, which vanishes for
. Then
W.
Efficiency
: with
half of the power is lost in the source. This is why maximum transfer is sought for signals (antennas, amplifiers), never in power distribution, where one wants
.

5. Electric current and DC circuits · Exercise 5. The Drude model for silver
Result:
s;
m/s.
From the Drude model (in-depth study)
, so
![Rendered by QuickLaTeX.com \[ \tau = \frac{m}{ne^2\rho} = \frac{9.109\cdot 10^{-31}}{5.86\cdot 10^{28}\cdot(1.602\cdot 10^{-19})^2\cdot 1.59\cdot 10^{-8}} = 3.8\cdot 10^{-14}\ \text{s} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-0976fe4fc873c87d2f4de033a992ee86_l3.png)
Drift velocity:
m/s, a little more than copper because silver has fewer free electrons per unit volume.
Silver conducts better than copper despite having fewer carriers: the time between collisions is longer (
against
s).
5. Electric current and DC circuits · Exercise 6. Kirchhoff’s laws with two sources
Result:
A,
A,
A;
absorbs 1.56 W (it is being charged).
Use nodal analysis: taking B as reference (0 V), the only unknown is the potential
. With the directions of the figure:
,
,
.
Current law at A:
:
![]()
Multiplying by 4:
, so
V.
Currents:
A;
A;
A. Check:
.
negative means that the current in the right branch flows opposite to the arrow: it enters the positive terminal of
. The source absorbs the power
W: it is a battery being charged.
Balance:
delivers
W; the resistors dissipate
W; plus 1.56 W absorbed by
makes 18.75 W.
5. Electric current and DC circuits · Exercise 7. The Wheatstone bridge
Result:
Ω.
If no current flows in the galvanometer, C and D are at the same potential and the two sides of the bridge are two independent dividers, fed by the same voltage
.
Left side:
(relative to the bottom vertex). Right side:
.
gives
, i.e.
, and therefore
![]()
The condition depends neither on
nor on the galvanometer resistance: this is why the bridge measures resistances very accurately, and in its unbalanced version it is the circuit of strain gauges and bridge sensors.
5. Electric current and DC circuits · Exercise 8. Charging a capacitor
Result:
s; 0.90 mA; 0.52 s; 1.9 mJ.
s. At the initial instant the capacitor is a short circuit:
mA.
From
:
, so
s.
Final energy:
mJ. The battery supplied twice as much,
mJ: the other half was dissipated in the resistor (lesson).

5. Electric current and DC circuits · Exercise 9. Discharging a capacitor
Result: 0.46 s; 0.125 J.
During discharge
, with
s.
gives
s. Every time constant the voltage drops to
%.
Energy: all the stored energy,
J, ends up as heat in the resistor. Check by integration:
J.

5. Electric current and DC circuits · Exercise 10. The incandescent bulb
Result: about 2600 °C; at switch-on 3.3 A against 0.26 A in steady state (about 13 times).
Hot resistance:
Ω.
With the linear law
:
, so
K and
°C. (The linear law is only an approximation over such a wide range, but the order of magnitude is right: tungsten melts at 3422 °C.)
Currents: in steady state
A; at switch-on, with the filament cold,
A (rms values). The peak lasts a few milliseconds, until the filament heats up, and it is why bulbs almost always burn out at the moment they are switched on.
5. Electric current and DC circuits · Exercise 11. The insulation of a coaxial cable
Result:
Ω; 50 nA;
s, independent of geometry.
Radial resistance (in-depth study):
Ω. Current at 1 kV:
nA.
Capacitance of the coaxial cable:
nF.
Product:
s.
The result
holds for any pair of electrodes immersed in a homogeneous medium, because resistance and capacitance depend on geometry in inverse ways. It is the time in which a capacitor with that dielectric discharges by itself through leakage.

5. Electric current and DC circuits · Exercise 12. Measuring carrier density with the Hall effect
Result:
m
, about 27 million times less than copper.
From the Hall effect formula (in-depth study)
:
![]()
Ratio to copper:
. It is precisely because
is small that the Hall voltage is large and measurable: in copper, with the same data, it would be about 1 nV.
The sign says that the carriers are electrons: it is an n-type semiconductor.

5. Electric current and DC circuits · Exercise 13. An RC circuit with Thévenin’s theorem
Result:
V; source current 3.0 mA at the start and 0.75 mA in steady state.
Seen from the capacitor terminals, the rest of the circuit is a divider. Thévenin: open-circuit voltage
V; resistance with the source turned off (short circuit)
kΩ.
The equivalent circuit is a simple RC:
ms, and
V. The capacitor does not reach 12 V but 9 V, the steady-state voltage across
.
Source current: at the start the capacitor is a short circuit that bypasses
, so
mA. In steady state the capacitor is an open circuit, and
mA.
5. Electric current and DC circuits · Exercise 14. Mobility of a metal and of a semiconductor
Result:
m²/(V·s), thirty times less than silicon: copper conducts better because it has far more carriers.
![]()
about thirty times less than silicon. The conductivity, however, is
: in copper
m⁻³, in lightly doped silicon
m⁻³ or less. The carrier density, ten billion times larger, far outweighs the lower mobility.
5. Electric current and DC circuits · Exercise 15. Up to what frequency does Ohm’s law hold?
Result: The real part halves at about 6.4 THz; at 2.4 GHz the correction is of order
.
The real part
halves for
:
![]()
At 2.4 GHz
, and the relative correction
is of order
: negligible. At high frequencies what matters is the skin effect (lesson on waves in conductors), which reduces the useful cross-section of the wire, not the conductivity.
5. Electric current and DC circuits · Exercise 16. The mean free path: classical or quantum?
Result: Classical about 3 nm, quantum about 40 nm: the second one is realistic.
The classical thermal speed is
m/s, so
nm, about ten interatomic distances. With the Fermi velocity
nm: the electrons cross hundreds of atoms without colliding.
The second one is realistic. In quantum theory the conducting electrons have an energy close to the Fermi energy, much larger than
, and they do not bump into the stationary ions of the lattice (a perfect lattice does not scatter them at all), but into its vibrations and into impurities. It is one of the points where the Drude model gives the right formula for the wrong reason.
6. The magnetic field and the Lorentz force · Exercise 1. The Lorentz force
Result:
, perpendicular to both the velocity and the field.
The Lorentz force is
; with velocity and field perpendicular its magnitude is
![]()
6. The magnetic field and the Lorentz force · Exercise 2. The circular motion of an electron
Result:
,
.
The Lorentz force provides the centripetal force:
, so
![]()
6. The magnetic field and the Lorentz force · Exercise 3. The force on a current-carrying wire
Result:
.
For a straight wire
, with magnitude
![]()
6. The magnetic field and the Lorentz force · Exercise 4. The field of a straight wire
Result:
.
From Ampère’s law (or Biot-Savart) the field of an infinite wire is
![]()
6. The magnetic field and the Lorentz force · Exercise 5. The field at the centre of a loop
Result:
, perpendicular to the plane of the loop.
With the Biot-Savart law every element
of the loop is perpendicular to the radius and lies at distance
from the centre, so all contributions have the same direction and add up:
![]()
6. The magnetic field and the Lorentz force · Exercise 6. The solenoid
Result:
.
The turns per unit length are
. For a long solenoid the internal field is uniform:
![]()
6. The magnetic field and the Lorentz force · Exercise 7. The force between two parallel wires
Result:
, attractive.
Wire 1 creates at the position of wire 2 the field
; wire 2 feels the force
:
![]()
6. The magnetic field and the Lorentz force · Exercise 8. The velocity selector
Result:
, whatever the charge.
The particle goes straight on if the electric and magnetic forces cancel:
, so
![]()
6. The magnetic field and the Lorentz force · Exercise 9. The torque on a coil
Result:
,
(the maximum).
The area is
, the magnetic moment
, perpendicular to the plane of the coil.
The torque is
. With the field parallel to the plane,
is perpendicular to
and the torque is maximum:
![]()
6. The magnetic field and the Lorentz force · Exercise 10. Ampère’s law inside a wire
Result:
,
,
.
Apply Ampère’s law
on a circle of radius
coaxial with the wire:
.
Inside the wire the enclosed current is the fraction of the cross-section:
, so
![]()
6. The magnetic field and the Lorentz force · Exercise 11. The mass spectrometer
Result: radii
and
; the landing points are about
apart.
After the acceleration
, that is
. In the field the radius is
; substituting:
![]()
6. The magnetic field and the Lorentz force · Exercise 12. Helical motion
Result:
, pitch
.
Split the velocity: the perpendicular component,
, produces the circular motion; the parallel one,
, is unaffected by the field and stays constant.
![]()
8. Electromagnetic induction · Exercise 1. Faraday’s law
Result:
.
By Faraday’s law
, with
the flux through one turn. The field grows uniformly, so
![]()
8. Electromagnetic induction · Exercise 2. The bar sliding on rails
Result:
,
,
.
The area of the circuit grows by
per second, so
and
.
On the current-carrying bar the field exerts the force
, which brakes the motion (Lenz’s law). To keep the speed you must push with the same force. Energy check: the mechanical power
equals the dissipated power
.
8. Electromagnetic induction · Exercise 3. Reactances
Result:
,
.
With
:
![]()
8. Electromagnetic induction · Exercise 4. The RMS value
Result:
,
.
For a sine wave
. The RMS value is that of the DC voltage that would dissipate the same average power in the same resistor:
![]()
8. Electromagnetic induction · Exercise 5. The alternator
Result:
.
The flux is
, so
, with amplitude
![]()
8. Electromagnetic induction · Exercise 6. The inductance of a solenoid
Result:
,
.
The internal field is
and the flux linked with all the turns
. The inductance is the ratio of linked flux to current:
![]()
8. Electromagnetic induction · Exercise 7. The RL transient
Result:
,
,
.
The circuit equation is
, with solution
![]()
8. Electromagnetic induction · Exercise 8. The impedance of a series RLC circuit
Result:
,
,
(the current leads the voltage).
and
, so the total reactance is
: the circuit is capacitive.
![]()
8. Electromagnetic induction · Exercise 9. Resonance
Result:
,
,
.
At resonance the reactances cancel each other,
:
![]()
8. Electromagnetic induction · Exercise 10. Power factor correction
Result:
; the current drops from
to
.
The reactive power before is
, afterwards it must be
. The capacitor must supply the difference,
:
![]()
8. Electromagnetic induction · Exercise 11. The transformer
Result:
,
,
,
.
The windings link the same flux, so the voltages are in the ratio of the numbers of turns:
, and
.
In an ideal transformer power is conserved,
, so
. From the primary the load looks like
![Rendered by QuickLaTeX.com \[ R' = \frac{V_1}{I_1} = R\left(\frac{N_1}{N_2}\right)^2 = 2\cdot 400 = 800\ \Omega \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-721f74bdfcfe1e12a04f81331ef7c3ca_l3.png)
8. Electromagnetic induction · Exercise 12. The charge induced in a loop
Result:
;
, the same even if the field falls ten times faster.
, so
and
. By Lenz’s law the current creates a field in the same direction as the one that is decreasing, to oppose the decrease of the flux.
The charge is
![Rendered by QuickLaTeX.com \[ Q = \int I\,dt = \frac{1}{R}\int\left|\frac{d\Phi}{dt}\right|dt = \frac{\Delta\Phi}{R} = \frac{7.85\cdot 10^{-3}\cdot 0.8}{0.1} \approx 0.063\ \mathrm{C} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-27b435e1feaaae3351bd95416321b369_l3.png)
∑Formula sheet
Electric charge and Coulomb's law
Coulomb's law
![]()
![]()
The electric field and Gauss's law
The electric field
![Rendered by QuickLaTeX.com \[ \vec E = \frac{\vec F}{q_0}\qquad[\text{N/C} = \text{V/m}] \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-8965cd0ad024523d0b9d019d365abb6d_l3.png)
![]()
Gauss's law
![]()
Proof for a point charge
![]()
How to use it: symmetry
![]()
![]()
Electric potential
Electric potential energy
![]()
Electric potential
![]()
![]()
From potential to field
![]()
Worked examples
![]()
The energy of a charge distribution
![]()
Capacitors and dielectrics
Capacitance
![]()
Proof of the formula
![]()
Stored energy
![]()
Dielectrics
![]()
Electric current and DC circuits
Electric current
![]()
Ohm's law and resistivity
![]()
Power and Joule heating
![]()
Proof of the charging law
![]()
![]()
The magnetic field and the Lorentz force
The Lorentz force
![]()
Proof: the radius and the cyclotron frequency
![]()
The force on a current-carrying wire
![]()
Torque on a loop: the electric motor
![]()
Sources of the magnetic field
The Biot-Savart law
![]()
The field of a straight wire
![]()
The force between two wires and the definition of the ampere
![]()
Ampère's law
![]()
Proof
![]()
Inductance
![]()
![]()
Electromagnetic induction
Magnetic flux
![]()
Faraday's law and Lenz's law
![]()
Proof with the Lorentz force
![]()
The AC generator
![]()
The transformer
![]()
Self-inductance and the RL circuit
![]()
![]()
AC circuits
Sinusoidal quantities and RMS value
![Rendered by QuickLaTeX.com \[ V_{rms} = \sqrt{\frac1T\int_0^T v^2\,dt} = \frac{V_0}{\sqrt2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-f89b1b4183317364e35443674448079c_l3.png)
Phasors
![]()
The series RLC circuit
![Rendered by QuickLaTeX.com \[ Z = R + i\left(\omega L - \frac{1}{\omega C}\right),\qquad |Z| = \sqrt{R^2 + \left(\omega L - \frac{1}{\omega C}\right)^2},\qquad \tan\varphi = \frac{\omega L - 1/(\omega C)}{R} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-50b58b5f50b5f0ab9620497254fadb1e_l3.png)
Resonance
![]()
AC power
![]()
Maxwell's equations and electromagnetic waves
The displacement current
![]()
Electromagnetic waves
![]()
![]()
Energy and the Poynting vector
![]()
Special relativity
The problem: Galileo versus Maxwell
![]()
Time dilation
![Rendered by QuickLaTeX.com \[ \Delta t = \gamma\,\Delta\tau,\qquad \gamma = \frac{1}{\sqrt{1 - v^2/c^2}} \ge 1 \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-3fde3dd3e0c214794903c89fd38e0bd2_l3.png)
The Lorentz transformations
![]()
Three consequences
![]()
![]()
Relativistic dynamics
![]()
![]()
Relativity is measured
![Rendered by QuickLaTeX.com \[ f = f_0\sqrt{\frac{1 + \beta}{1 - \beta}} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-2c3ed66433f55b2c5cb1e6fd98d15999_l3.png)
Optics
Refractive index
![]()
Reflection and refraction
![]()
Proof with Fermat's principle
![]()
![Rendered by QuickLaTeX.com \[ \frac{x}{v_1\sqrt{a^2 + x^2}} = \frac{d - x}{v_2\sqrt{b^2 + (d - x)^2}} \quad\Rightarrow\quad \frac{\sin\theta_1}{v_1} = \frac{\sin\theta_2}{v_2} \]](https://www.electronics-engineering.com/wp-content/ql-cache/quicklatex.com-7f896e0db0b95ace96db0a6b875c3edd_l3.png)
Total internal reflection and optical fibres
![]()
Lenses
![]()
Proof of the condition for maxima
![]()