Hacking physics from the back of a napkin
February 24, 2020. The computational power of a humble napkin is awesome. I discuss three napkin algorithms — dimensional analysis, Fermi estimates, and random walks — and use them to figure out why rain falls, the length of the E. coli genome, and the mass of a proton, among other things. These examples suggest a napkin-based approach to teaching physics.
Contents
1. Hacking physics
Hacker spirit. Nowadays, the word “hacker” conjures up visions of Russian trolls, Julian Assange, and Angelina Jolie’s 90s pixie cut. But a nobler usage predates this. Hacker culture, in the original sense, grew out of places like MIT in the 60s, with its tradition of highbrow silliness and elaborate technical pranks. Although associated with programming, hacker spirit can be viewed as a broader ethos about play, understanding and creativity. In the words of open-source gnuru Richard Stallman,
What [hackers] had in common was a love of excellence and programming. They wanted to make the programs that they used be as good as they could. They also wanted to make them do neat things. They wanted to be able to do something in a more exciting way than anyone believed possible and show ‘Look how wonderful this is. I bet you didn’t believe this could be done.’
Using techniques in a clever or unexpected way is a hack, with hack value quantifying the degree of ingenuity. (“Hack” is actually a back-formation of “hack value”.) Hackers do not look for the most powerful, or obvious, or easy tool for the job. They delight in the unexpected, in using humble means to achieve extraordinary ends. In a way, they realise David Deutsch’s definition of knowledge as information with causal power. Knowing a technique well enough to hack it means you can act on the world in new ways.
I think physics needs more hacker spirit: more people willing to fool around and explore what our marvellous toolset can do, to creatively defy expectations and push the Deutschian envelope. Physics is not withouts its hackers but unlike computer science, the hackers are colourful exceptions, tending towards goofy irreverence and self-mythology (Richard Feynman springs to mind). I think hacking should go mainstream.

Napkin hacks. My goal in this post is to outline a few simple hacks for the back of a napkin. I think of these as algorithms for a napkin computer, and with some practice, they really can be implemented using high school algebra on a small piece of paper, without calculus or calculators (though the latter save time). While there is whimsy and irreverence aplenty, our focus will be real physics. Our goal will be a beautiful proof of the existence of atoms, due to none other than Albert Einstein, the greatest physics hacker of all. Another running theme is rain, a tribute to my rainy city of residence, Vancouver.

Hackery is not just about excellence and creativity for their own sake, but has clear pedagogical implications. Most people have to wait until grad school to compute viscous drag, estimate urban power usage, or determine the size of the E. coli genome. But imagine a world where high school students are so empowered that, given a few hints, a pencil, and a napkin, they could discover it all themselves. This world is very close to ours: all we need is a little more hacker spirit in the enjoyment and instruction of physics.
Notes. This post really consists of three distinct tutorials. The dimensional analysis tutorial and section on Fermi estimates can be read independently. The last tutorial on random walks assumes you have read the dimensional analysis section. The exercises are just as important as the text, but only the results of Exercise 3 and Exercise 14 are used subsequently. Solutions, and various other technicalities, are collected here.
2. Dimensional analysis
We will start with one of the most powerful but underappreciated tools in physics: dimensional analysis. Physics is ultimately about experimental measurements. Take some object, maybe an old pumpkin, and poke or prod it with a measuring device. The device returns a number, but that’s not what interests us; instead, we want to know the physical property probed by that device. This is what we mean by dimension. For instance, if we compare the width of the pumpkin to a ruler, the dimension is the length, if we put it on some scales it’s the mass, and if we time how long it takes to rot, the dimension is time.
We denote the dimension of length by
Centimetres measure length,
hours measure time, and pounds measure mass.
More complicated dimensions follow from the basic ones according to
simple rules which are easier to show than tell.
Area, for example, has dimensions
An alternative to units is using general formulas, e.g. for the area of a rectangle:
Dimensions can be divided as well as multiplied:
Be careful: only measurements with the same dimensions can
be added and subtracted.
For instance, it makes no sense to ask what “
Physical laws tell us how measurements depend
on each other.
For example, Newton’s second law
The point of dimensional analysis is that you can sometimes reverse this process, and determine the physical laws from dimensions! Let’s see how.
2.1. Pendulous pumpkins
Suppose we attach an old pumpkin to a length of string and give it a
kick.
Gravity will pull on the pumpkin, causing it to oscillate back and
forth with some period of oscillation
- the mass of the pumpkin
, with dimension ; - the length of the string
, dimension ; - gravitational acceleration
, dimension (from the units); - the initial displacement of the pumpkin
, dimension .

Not all of these quantities will turn out to be relevant. Galileo discovered that as long as the initial kick is small, it has no affect on the period: pendulums are “isochronic”. Grab a pumpkin, stopwatch and string, and check for yourself! Galileo realised he could exploit this property to make a reliable timepiece, and invented the pendulum clock. (There is actually a deep physical reason pendulums are isochronic for small kicks, but we will have to leave that for another time!)
In terms of relevant features, this leaves the pumpkin mass
(We will explain another way to get factors of
for some numbers
Requiring the leftmost and rightmost expressions to be equal, we can immediately read off the powers:
As promised, dimensional analysis kindly informs us that the mass is irrelevant! My earlier piece of sneakiness (replacing period with angular velocity) actually gives the exact answer for small kicks:
We didn’t need to solve a differential equation, analyse forces, or even deal with numbers. Dimensional analysis let us skip straight to the answer!
Suppose we want to make a pumpkin clock with the conventional
grandfather-clock period of
Incidentally, this explains why grandfather clocks are so large.
They will house a large (typically non-curcurbitar) pendulum with
In order to make the clock, we need a ruler to measure out the length of string. But for maximal whimsy, we can switch things up, and turn a stopwatch, pumpkin and spool into a ruler! Measure with the string and snip off the corresponding length, attach the pumpkin and gently wobble. By timing the period with the stopwatch, you can figure out how long things are. Exercise 1 is another whimsical pumpkin-as-ruler example, involving Kepler’s third law!
Exercise 1 (interplanetary pumpkins). You can use an old pumpkin to
measure very large objects.
Place the sun at one end and the pumpkin at the other.
If you kick the pumpkin with enough energy tangent to the sun,
it will orbit in a circle of radius

Using dimensional analysis, show that
where
Hint. You can ignore the mass of the pumpkin due to the equivalence principle: objects fall the same way in gravitational fields, whatever their mass.
2.2. Drag and drop
Stokes’ law. Maybe pumpkins aren’t your thing, so let’s turn to something more highbrow: the aerodynamics of spheres. Realistic fluids have a sort of internal stickiness called viscosity, responsible for making honey so goopy and delicious. Because of viscosity, a fluid will resist our efforts to pull layers of fluid in different directions, or shear them. This is similar to the way friction resists the motion of one surface against another.
A sphere moving through fluid splits the layers at the front, then joins them at the back, a bit like a zipper. This is a shearing force and will lead to viscous resistance. Our goal will be to determine the precise drag force on the sphere. Here are some factors that might be relevant:
- the radius of the sphere
, with ; - the speed of the sphere
, where ; - the mass of the sphere
, ; - the density of the fluid
, or mass per unit volume ; - the viscosity of the fluid
.
In general, all of these factors are involved, but this is too much for dimensional analysis to handle! (I’ll explain why below.) So what can we do?

Thankfully, if the sphere moves very quickly or very slowly, certain
factors dominate, and the list becomes short enough to use dimensional analysis.
When the sphere moves very quickly, it is banging water molecules out
of the way rather than smoothly shearing. In this case, the mass of
the sphere

I haven’t told you the dimensions of viscosity yet, but we can find
them fairly easily — assuming we have a fluid mechanics
lab!
I’ll save you the trouble of doing the experiments and tell you what happens.
Suppose we have two layers of fluid flow separated by a distance
If you skipped the previous paragraph, that’s fine, as long as you are
prepared to take the dimensions on faith.
Either way, we can proceed with our dimensional analysis.
Let’s write the drag force on the sphere
Then
On the LHS, mass appears as
Finally, the LHS has length appearing
Dimensional analysis tells us that the drag force is
As usual, we can’t determine if there is a number out front. With considerably more work, George Stokes showed that
This is called Stokes’ law in honour of its discoverer. But we got pretty darn close with a few lines of algebra!
Why clouds float. We finish this example by calculating the terminal velocity of
water droplets in a cloud.
This will help explain why clouds float and rain falls!
First, consider the general case of a slowly falling sphere.
A sphere of mass
The sphere accelerates until it reaches
(You can also take buoyancy forces

The density of water is
or
Exercise 2 (terminal raindrops). When a raindrop gets big enough to fall out of a cloud, it is no longer moving slowly, and Stokes’ law does not apply.
(a) Raindrops fall fast enough that the viscosity of air is irrelevant,
but the density
(b) Conclude that the terminal velocity for a spherical raindrop of radius
(c) A typical raindrop has radius around
2.3. Usage notes
Numbers. Dimensional analysis has its limits.
First of all, it can be wrong by an overall numerical factor.
In Stokes’ law, for instance, we were off by
Parametric overload. A more serious problem is having too many parameters.
With three basic dimensions
Where is the physics? You might think that dimensional analysis is algebra rather than physics. But to avoid parametric overload, we need to whittle down our factors until we have a manageable number. Sometimes we can do this by physical reasoning (e.g. the equivalence principle in Exercise 1), or restricting to situations where factors are negligible (e.g. a slowly moving sphere). Sometimes, neither of these works, and we just have to go out, do experiments, and see how things vary (e.g. isochronism and viscosity). None of these operations necessarily involves hard maths, but they are definitely all physics!
Extra dimensions. Length, mass and time are not
the only basic dimensions.
Two other important dimensions are temperature
Constants. Numbers are dimensionless constants.
However, dimensionful constants secretly encode physics!
Examples include Newton’s constant
Exercise 3 (ideal gas law). A gas of

(a) Explain why volume should have dimension
(b) Show that pressure has dimension
(c) In thermodynamics, there is a fundamental constant called
Boltzmann’s constant,
(d) Finally, use dimensional analysis to deduce the ideal gas law:
In fact, the two sides are actually equal for a dilute gas! We will use the equals sign for the rest of the post.
⁂
Exercise 4 (factors of

Let
(a) Repeat the pumpkin problems above, now using
(b) If your system executes
(c) The
3. Fermi estimates
Our next napkin algorithm, Fermi estimation, is particularly strong
with hacker spirit.
A Fermi estimate is a guess accurate to the nearest order of
magnitude, i.e. rounded to the nearest power of
The nearest power of
We should therefore use a logarithmic ruler, where we take logs in
base

Anyway, on a linear ruler, if there is a tick for every whole number,
rounding to the nearest tick means there is a possible error of
An accurate Fermi estimate can be bigger or smaller than the true answer by a
factor of
In general, it makes life a bit easier if instead of restricting to
power of
means “we guess the number of countries is
3.1. Geometric means
On a linear ruler, we average two numbers
From the log law
This is called the geometric mean.
Whenever you are dealing with estimates spread across different orders
of magnitude, this is better to use than the usual arithmetic
mean

Geometric means are useful for averaging an underestimate and an
overestimate.
For instance, if we wanted to guess how many people have been to the
moon,
The answer is actually
Calculation tips. You might be wondering if it’s really possible to calculate geometric averages on the back of a napkin. With a few tricks, it’s easy! First of all, let’s write the numbers we want to average in scientific notation:
so
If
since
for small
The actual square root
Exercise 5 (the ruler of the moon). Fermi estimate the radius of the moon.
Hint. Take the geometric mean of an overestimate and an underestimate.
For an overestimate, you could try the radius of
the earth,
⁂
Exercise 6 (beyond your means). Suppose I want to ask a bunch of people for
their opinion, and take the geometric rather than the arithmetic
mean.
Recall that the usual average of
By taking an arithmetic mean on the logarithmic ruler, i.e. of
3.2. Subestimates
For more complicated Fermi estimates, a good strategy is to break the number into subestimates which are then multiplied together. For instance, if I want to estimate the number of fish in the sea, I might factorise it into the total number of fish species and the number of fish per species:
This sort of factorisation is crying out to be expressed in terms of “generalised units”:
This not only lets us check that our estimate makes sense (units cancel on the RHS to give the LHS) but can suggest further factorisation. The total number of fish species is hard to estimate, but maybe we have a better feeling for how many species there are in a given area of ocean:
The total surface area of ocean is
Somewhat unexpectedly, this is exactly the number quoted in a non-peer-reviewed article. Huh!

Full disclosure. In case you’re suspicious, here is where the
intermediate numbers come from.
First, you can calculate the total ocean surface from the radius of
the earth
Exercise 7 (churches). Guess the number of churches in the US.
Hint. A particularly useful intermediate factor is people, both in
this problem and in general.
The US has a population of around
3.3. KISS
KISS is the old military adage to “Keep It Simple, Stupid”, and it is especially true for Fermi estimates. If you want fast, robust estimates, forget about finesse; just focus on a single important mechanism. You should make simplifying assumptions, ignore subtleties, and strip away distractions to get at that mechanism. In other words, embrace the spherical cow! (Perhaps KISS should stand for “Keep It Spherical, Stupid”.) As I’ll touch on shortly, this also applied to subestimates, and we shouldn’t factorise unless it reduces total uncertainty.
Let’s see how this works in practice.
Suppose we want to estimate the annual electricity usage in the greater
Vancouver area.
(This is an actual question from my
PhD comprehensive exam.)
We could consider all sorts of separate contributions,
e.g. households, small businesses, heavy industry, agriculture,
transport, and so on, all
of which would involve different estimation strategies.
Instead, let’s focus on a single, simple estimate: household power
usage.
This will make up some fixed fraction of the whole, perhaps

We start with subestimates, factorising our guess using people (rather than households) as an intermediate unit:
The factor “person/Vancouver” is just the population of greater
Vancouver, which I happen to know is around
To find the total electricity usage, we multiply by the length of a
year, and add an additional factor of
How did we do?
Our guess translates to around
Exercise 8 (loonie bin). Guess the Canadian government’s federal budget for 2019.
⁂
Exercise 9 (rain power). The annual rainfall in the greater
Vancouver region is about
Hint. You may find Exercise 2 useful. You will need to Fermi estimate the area of greater Vancouver (though you can check with Google).
3.4. Usage notes
Why it works. Fermi approximation is a subtle art. In general, it works because over- and underestimates balance each other out. This is an example of the wisdom of the crowd, where averaging over different types of ignorance yields wisdom, though in this case, the crowd is made up of subestimates! But there is more to it than that. The variance (random variability) of subestimates adds up, and a good rule of thumb is to only factorise into subestimates when the combined uncertainty of these estimates is much smaller than the original. (To be pedantic, by “uncertainty”, we mean “squared error on the logarithmic ruler”.) This is another instance of the KISS principle.
Sanity checks.
You can increase the reliability of a subestimate by performing a sanity check.
Compare to things you know, or manipulate your guess until you can
make that comparison.
For instance, if we guess the Canadian budget is CAD$
30
billion, and also know the population (30 million or so), we see this
corresponds to $
1000 per person.
Since the government typically spends thousands of dollars per student
on public education (let alone roads, healthcare, defense, etc) this
number is clearly too low.
Web of facts. Aliens cannot sanity check because they don’t know enough about our world. In general, to be a good estimator, you need a web of facts, figures, and intuitions to triangulate your position in estimate space and reduce variance. Books on Fermi problems, e.g. Guesstimation by Weinstein and Adam, usually have a list of handy numbers in the appendix for just this reason. It may feel like cheating, but if you are doing a Fermi problem in real life, also remember that you can make your web of facts much larger using Google!
Nonlinearity. Our final and most subtle failure mode is “nonlinearity”. (Props to lukeprog’s Fermi estimate tutorial for pointing this out.) Our factorisation assumes that subestimates are (a) independent and (b) multiply to give the final answer. Assumption (a) can easily fail. For instance, in our electricity calculation, we assumed that average power usage was independent of population. But average power usage tends to be lower in urban areas because the energy infrastructure is all in one place. Thus, changing one factor (population of a city) will change another (per capita power usage). Sometimes you can take this dependence into account with extra factors, sometimes you can’t.
Assumption (b) fails when the final answer has a different type of
functional dependence on its subestimates.
A particularly severe example is exponential dependence.
Suppose I throw a fistful of quarters onto the ground.
What’s the probability they all come up heads?
Well, if there are
Exercise 10 (people power). Earlier, I guessed (based on a hunch)
that individuals use around
(a) Ask some friends to guess, and take the geometric mean of their answers.
(b) Next, sanity check my guess or the answer you got in (a).
(c) Finally, ask Google. How did I do? How did your friends do?
⁂
Exercise 11 (jumping mugs). Exponentials may prevent us from doing reliable order of magnitude estimates, but they do not prevent us from drawing physical conclusions. Let’s see how likely your mug is to jump spontaneously into the air.

(a) Estimate the number of atoms
Hint. Recall that Avogadro’s number
(b) Very roughly, what is the probability the mug jumps spontaneously into the air?
Hint. Atoms move in random directions. The coffee will spontaneously jump if all the atoms in the cup are moving up.
(c) A mug cycles through about
(d) Given that
In a sense, the Second Law of Thermodynamics is just a generalisation of this exercise. But we’ll save that for another day!
4. Random walks
Although they are ripe for hacking, both dimensional analysis and Fermi approximation are fairly conventional back-of-the-napkin methods. In contrast, our final hack — random walks — is almost never seen outside of probability or statistical physics courses. While our treatment is elementary, it is still a step up from the first two tutorials, and is perhaps best left to a second reading. But, as always with a good hack, our reward is applications: we will find the length of the E. coli genome; see why unmanned spacecraft aren’t programmed to avoid asteroids; explain whether you should walk or run in the rain; and finally, prove the existence of atoms and weigh them. It’s action-packed!
Random walks: an elementary approach. Imagine an atom jiggling around randomly in a hot gas.
On average, it travels some distance
If it travelled in a straight line, the distance would be

To see how this happens, let’s start watching an atom as it bounces
around, and label its displacement after the
How can we calculate the length of
This is a generalisation of the familiar algebraic fact that
We can picture what’s going on using squares.

The cross-terms are things like
where the

So, under what circumstances will consecutive steps tend not to align? Two conditions will be enough:
- Steps are unbiased, i.e. don’t prefer any particular direction. If they are biased, say the walker likes to head south, then there is a preferred direction and the steps tend to align with it.
- Steps are uncorrelated, i.e. consecutive steps don’t know about each other. If the walker likes to follow one step with another in the same direction, then steps will tend line up, even if there is no preferred direction.
You can play with these conditions for a simple example in Exercise 12. In all our random walks below, however, the walk is unbiased and uncorrelated to good approximation, and hence steps are unaligned.
Speed and diffusion. If a random walker moves with speed
We will call
Exercise 12 (heads and tails). Take a fair coin and start flipping
it.
The outcome of the
We can think of
(a) For a fair coin, show that on average,
(b) Consider two fair coin flips,
(c) Combining the last two arguments, argue that after
Let’s now briefly consider two ways for the random walk description to
fail: bias and correlation.
A coin has bias when there is a probability
First, we explore bias.
(d) Explain why
(e) For biased but uncorrelated coin flips, derive
Let’s end with a very simple example of correlation.
Consider an unbiased coin with correlation
(f) Check that the walk still obeys
4.1. Polymers
Random walks not only apply to processes in time, but also in space.
The most important example is polymers: long, jointed chains of
molecules which can often be described by a random walk.
In this case, the step length
Every cell in an organism contains a copy of its building instructions
in DNA form.
Most organisms are eukaryotes, meaning each cell has a special
chamber called the nucleus for storing DNA, but in prokaryotes
(such as bacteria), the DNA just freely floats in the cellular soup.
Either way, if the container ruptures, the tightly coiled DNA will
spill out and form a random walk of approximately straight chunks.
The persistence length is

In the photo above, the nucleus of a single-celled Escherichia coli (E. coli) bacterium has ruptured. From the spill, we can estimate the length of its genome! The DNA covers a region with radius
Then, using the chunk length
Multiplying by the number of base pairs per chunk, we estimate a genome length
or
Exercise 13 (gone fishing). Wandering the shipyards one day, you
notice a rusty old anchor and chain, probably from a decommissioned fishing vessel.
The chain is piled haphazardly on the dock.
The links are around
4.2. Bumping into things
Collisions occur when objects happen to be in the same place at the same time. If you want to keep track of what is entering your space, imagine that you sweep out an envelope as you move. The bigger you are, the more likely you are to collide with things. But you are more likely to collide with elephants than fleas! You also want to take into account the size of the objects you might be running into.
The formal way of doing this is a scattering cross-section
If we know the number of colliding objects (e.g. elephants) per unit
volume in the vicinity, we can estimate the number of collisions.
For instance, if there are
Let’s do some very simple examples of cross-sections.
Picture yourself as a sphere of radius
This means in particular that if you are much larger than the spheres
you are bumping into, the cross-section is approximately
This covers most of the cases we will be interested in!

Mean free path. Now, back to our regular programming: random walks in gases.
We would like to determine the step length
Hopefully this makes sense.
We want
As a simple example, we can estimate the average distance between
collisions of air molecules at room temperature (
where
So, on average an air molecule travels around
One final technical point. Most of this collision cylinder technology assumes that we are colliding with stationary objects. If they are stationary on average, that is, there is no preferred direction, then the same estimates still work provided you are small enough, and the colliders are low enough density, that staying still will lead to very few collisions. But when you are too big or they are too dense, remain still and you will collide with many objects! This is pressure. To understand how very large objects interact with a dense bath of tiny, randomly moving ones, it’s better to use thermodynamics than cylinders.
Exercise 14 (smashing spheres). Consider two spheres of radius
(a) Show that if the centres come within a distance
(b) Explain why the scattering cross-section is
(c) Conclude that, if
⁂
Exercise 15 (asteroid belt). The asteroid belt is a donut-shaped
blob of asteroids (small rocky bodies) between Jupiter and Mars.
The blob extends from
is the sun-to-earth distance.
There are about

(a) For simplicity, let’s flatten the donut into a ring with inner
radius
(b) Cross-sections are now going to be lengths rather than areas,
since we are living in two dimensions.
Explain why a circle of radius
(c) A
⁂
Exercise 16 (equipartition and air time). People often say that “temperature is just atomic motion”. This is shorthand for “temperature is just average kinetic energy per particle”, which we write as
where
(a) Show that if the particles have mass
(b) Using the collision cylinder method, compute the diffusion
constant
(c) The average mass of an air molecule is
4.3. Rainy day dilemma
We can apply our collision cylinder technology to solve an age-old
problem: should you walk or run in the rain?
(In a city like Vancouver, this is a question of practical import.)
We will present a simple and original argument which models people as
spheres; see Exercise 16 for the conventional approach which
models people as boxes.
So, you are a sphere of radius
It seems like we might have to modify collision cylinders to take the
velocity of the rain into account, but there’s a beautiful shortcut: we
just think about everything in the reference frame of the rain.
From the rain’s perspective, you travel vertically up at speed
The answer is obviously yes, since if you stand still, you will get
infinitely soaked, but let’s explore this with a little more care.
If you move at speed
Since the drops are small, your cross-section is
To make this as small as possible, you should make

This is particularly clear when the rain falls much faster than you
run, with
How wet you get is directly proportional to how much time you spend in the rain.
Exercise 17 (the soggy box). Let’s now make a slightly
more realistic model of a person: a box of height
(a) Argue that the volume of the collision cylinder for the front of
the box does not depend on running speed
Hint. You may find trigonometry useful.
(b) Show that the collision cylinder for the top of the box has a volume
proportional to
(c) Find the conditions for
We reach similar conclusions to the sphere, though I personally find the sphere argument quicker and cleaner.
⁂
Exercise 18 (wet and windy). When the wind blows, it imparts a
horizontal velocity to the rain.
As above, we consider a sphere seeking shelter a distance

(a) If the wind blows away from shelter, explain why you should run as fast as possible.
(b) Suppose the wind is blowing towards shelter with a horizontal
velocity
4.4. Brownian motion
Before the 20th century, the notion that matter was made of tiny, indivisible lumps was regarded with skepticism. But in 1905, long before we could see atoms with microscopes, a Swiss patent clerk came up with a brilliant indirect method for proving their existence. The clerk was none other than Albert Einstein, and his proof uses random walks. Let’s see how he did it!
We start by pouring a viscous fluid into a tall container of volume

Counting the number of particles is hard, but measuring the temperature is easy. Like the air example above, we can use the ideal gas law to swap volume and number for pressure and temperature:
Since the container is tall, the pressure profile
and hence
Recall that the diffusion coefficient
where
This short argument ignores the fact that grains can jitter up and down, as explained in the appendix. But our method gives the right answer, and in the spirit of cheeky hacker approximation I will let it stand.
The expression for
The jiggling of grains in a fluid was first observed by Robert Brown, hence the name Brownian motion. (It should perhaps be called Lucretian motion, since Lucretius observed the zigzag motion of dust particles and attributed it to atoms — in 60 BC!) Although Brownian motion is best explained by atoms, Einstein’s genius was to extract specific and testable predictions, which Jean Perrin confirmed experimentally in 1908. Both Perrin and Einstein received Nobel prizes, in part for this work. We’ll end with one of the practical applications Einstein suggested and Perrin carried out: calculating Avogadro’s constant.
Exercise 19 (Avogadro’s constant). You may have seen the ideal gas law (Exercise 3) in its chemistry guise:
where
Recall that one mole is
Equal volumes of gas, at equal temperature and pressure, contain the same number of molecules.
This was a prescient insight into the atomic nature of matter, anticipating the ideal gas law by 45 years. It underpins the utility of the mole, which is why Perrin named the constant he first measured in Avogadro’s honour.
Determining the number of molecules in a sample of gas is the same as
weighing a molecule.
This turns out to be hard!
But it is easy to measure the volume of the gas (place it in a
container of fixed volume), the pressure (use a barometer), the
temperature (a thermometer), and the number of mol (chemistry).
That makes it fairly easy to measure the ideal gas constant
(a) By equating the different forms of the ideal gas law, show that
To weigh atoms and molecules, all we need to do is divide the molar
mass by
(b) Suppose a spherical particle jiggles a distance
Up to factors, this is the last equation in Einstein’s famous paper on Brownian motion!
Perrin used Einstein’s method to determine

(c) Use the tracks to estimate Avogadro’s constant.
The temperature of the water was around
As you probably know from chemistry class, the official value is
(d) Estimate the mass of a carbon atom.
(e) Naturally occuring carbon is mostly carbon-12, which has
I think this is pretty neat. From watching resin balls jiggle in water, we can work out the mass of a proton!
5. Conclusion
I hope I’ve convinced you that the hack is strong with napkins. Every single thing we did — from pendulum periods to the ideal gas law, power usage to proton mass — required, at most, a little pre-calculus math and solid command of a napkin hack. There is obviously great power in simple techniques, and we have only scratched the surface! Physics is brimming with napkin algorithms, just waiting for hackers to explore, exploit and explain, to guide us towards that apotheosis of hacker spirit Stallman describes:
Look how wonderful this is. I bet you didn’t believe this could be done.
So, why aren’t we blowing more gourds with high-leverage, low-tech hacks? Probably, mostly, the inertia of convention. For instance, we’re taught to analyse mechanics problems by adding up vectors, and electricity problems by drawing circuits. These methods are well-adapted, but this is precisely what makes them low leverage! It might surprise you to learn that we can add vectors to describe the flow of electricity and draw circuits to solve mechanics problems. We are bound by convention and familiarity to the typical use case, but there’s often something remarkable just around the corner.
Other myths are at play here. One of the most dangerous is that the only real tool is calculus and its tributaries, and before students master these dark arts, they must settle for useless caricatures of natural law. This assertion is nonsense, as the examples above conclusively demonstrate. Similarly, application and experiment are often deemed too difficult for quantitative treatment, though they are the lifeblood of the physical sciences. Once again, this is just plain false!
In summary, we are dealing with the age-old problem of tradition, the fact that conventions tend to be received and transmitted without question. There is a great deal that is good in the received wisdom, but also a great deal of limitation and falsehood. In the words of Cyprian of Carthage,
Custom without truth is the antiquity of error.
Hacker spirit — with its willingness to peek around corners and its healthy disrespect for authority — is the perfect antidote for custom without truth.
References
- Physical Biology of the Cell (2013), Phillips, Kondev, Theriot, Garcia. A superb textbook on the physical and mathematical aspects of cells, imbued with hacker spirit. This is the source for our E. coli estimate.
- “Fermi estimates” (2013), lukeprog. A short and high-powered introduction to Fermi estimates.
- Street-Fighting Mathematics (2010), Sanjoy Mahajan. An excellent text covering dimensional analysis and Fermi estimates at an undergraduate level.
- “Investigations on the theory of Brownian movement” (1905), Albert Einstein. Einstein’s brief but revolutionary paper on Brownian motion.
- Guesstimation (2008), Weinstein and Adam. A giant compendium of Fermi questions and corresponding solution strategies. Silly but fun.