Skip to content
Science, DecodedContext Jamming

Module 1 · suggested week 1

Learning to Read Equations

Mathematics is a language for describing relationships.

~2.5 focused hoursNo prerequisites
0 of 7 sections read

What you will be able to do

Read an equation as a sentence: name its parts, say what relationship it asserts, predict what happens when one quantity changes, and say what it does not claim.

The breakthrough: loops in disguise

Recognition

Σ is a for-loop that adds

The capital Greek sigma means add up a list of terms. The small text under it says where a counter starts, the text above says where it stops, and the expression to its right is the loop body. Nothing else is going on.

Read ∑n=043n\sum_{n=0}^{4} 3n aloud as: "for n from 0 to 4, add 3n to a running total." The total is 0+3+6+9+12=300 + 3 + 6 + 9 + 12 = 30.

∑n=043n\sum_{n=0}^{4} 3n
let sum = 0;
for (let n = 0; n <= 4; n++) {
  sum += 3 * n;
}
// sum === 30

Recognition

Π is a for-loop that multiplies

Capital pi works the same way, but the running value starts at 1 (the identity for multiplication, as 0 is for addition) and each term multiplies in.

∏n=142n=2⋅4⋅6⋅8=384\prod_{n=1}^{4} 2n = 2 \cdot 4 \cdot 6 \cdot 8 = 384.

∏n=142n\prod_{n=1}^{4} 2n
let product = 1;
for (let n = 1; n <= 4; n++) {
  product *= 2 * n;
}
// product === 384
Loading interactive…

Step through the loop one iteration at a time. Change the bounds and the body, and watch the notation and the code change together.

Here is why this matters for reading research. The same Σ appears in a physics paper summing energies over particles, in a genetics paper summing over positions in a DNA sequence, and in a machine-learning paper summing the loss over training examples. The operator is identical; what is being summed is not. That distinction (shared machinery, different subject matter) is the backbone of this whole curriculum.

When you see ∑i\sum_i with no bounds written, the convention is "over every value of ii that makes sense here", usually every item in a dataset or every element of a vector. Authors drop the bounds when they think the context makes them obvious. Your first question should be: what is ii ranging over?

Go deeper: Deeper: when the loop never ends

An upper bound of ∞\infty means the loop runs forever, so the sum is defined as the limit of the running total, if it settles. ∑n=1∞(1/2)n\sum_{n=1}^{\infty} (1/2)^n settles at 1. ∑n=1∞1/n\sum_{n=1}^{\infty} 1/n never settles: it grows without bound, just very slowly. Code can approximate the first by stopping when terms become tiny. That approximation strategy is exactly what physicists mean by "truncating a series".

The integral ∫\int is the continuous cousin of ∑\sum: a sum over infinitely many infinitely thin slices. See the Rosetta entry for the integral.

Variables, constants and functions

An equation is a claim about how quantities relate. Before reading it, sort the symbols into three bins:

  • Variables: quantities that change within the story the equation tells (model size NN, time tt, position xx).
  • Parameters: numbers that are fixed for one system but differ between systems, often fitted from data (AA, α\alpha in a scaling law; a spring constant kk).
  • Constants: fixed by nature or mathematics (cc, the speed of light; e≈2.718e \approx 2.718; π\pi).

The line between parameter and constant is a modelling choice, and good papers tell you which is which. When they don't, that is a question to ask.

Function notationEstablished
y=f(x)y = f(x)

f is a rule; x goes in, y comes out. The parentheses mean "apply to", not multiplication. f(x) reads "f of x".

const f = (x) => 3 * x * x + 1;
const y = f(2); // 13

Function notation is where programmers have a head start. f(x)f(x) is a function call. L(N)L(N) is "loss as a function of NN". P(A∣B)P(A \mid B) is a probability function evaluated on an event with a condition attached. When a paper writes L(θ)L(\theta), it is telling you the loss depends on the parameters θ\theta. That is a type signature as much as a formula.

Subscripts and superscripts are the other everyday notation. A subscript is usually an index or label: xix_i is the ii-th item of the array xx, and θt\theta_t is the parameters at step tt. L∞L_\infty is a label meaning "LL in the limit". A superscript is usually a power (x2x^2), but sometimes a label (WQW^{Q} in attention means "the query weight matrix", not WW raised to the power QQ). If a superscript is a letter that couldn't sensibly be an exponent, it is a label.

Rearranging is the one algebra skill that matters for reading. It lets you ask a different question of the same relationship. From λ=c/f\lambda = c/f you can get f=c/λf = c/\lambda by doing the same operation to both sides. The rule is that both sides must stay equal: multiply both by ff, then divide both by λ\lambda. Papers do this silently all the time. When a line seems to come from nowhere, it is usually a rearrangement of the previous one.

Graphs: what the axes are claiming

A graph is a function drawn. Before looking at the curve, read the axes: what is on each, what are the units, and is the spacing linear (equal steps add the same amount) or logarithmic (equal steps multiply by the same factor)?

Almost every important plot in a scaling-law paper is log-log. On a linear axis the ticks go 0, 10, 20, 30; on a log axis they go 1, 10, 100, 1000. This one choice changes what shapes mean. On log-log axes a power law appears as a straight line, and its slope is the exponent. That is why "the line is straight" is the headline finding of so many AI papers.

Established

If y=Axky = A x^{k}, then log⁡y=log⁡A+klog⁡x\log y = \log A + k \log x. Plotted as log⁡y\log y against log⁡x\log x, that is a straight line with slope kk. This is pure algebra, true for any power law in any field.

Exponents, negative exponents, logarithms

Recognition

A logarithm is a "how many times" loop

252^5 means multiply five 2s together. log⁡232\log_2 32 asks the reverse question: how many times must you multiply 2 to reach 32? Answer: 5. A log counts multiplications. That is why it turns products into sums (log⁡(ab)=log⁡a+log⁡b\log(ab) = \log a + \log b), and why it appears whenever something compounds.

log⁡232=5  ⟺  25=32\log_2 32 = 5 \iff 2^5 = 32
// log2(x) as a loop: count halvings until we reach 1
let x = 32, count = 0;
while (x > 1) { x /= 2; count++; }
// count === 5  (Math.log2(32) gives the same)
Loading interactive…

Slide the exponent through negative values to see why x^−1 = 1/x and x^0 = 1. Then switch to the log view to see the same curve reflected.

Negative exponents mean division. N−αN^{-\alpha} is 1/Nα1 / N^{\alpha}. As NN grows, N−αN^{-\alpha} shrinks toward zero, faster for larger α\alpha. This is how papers write "decreases with scale" compactly. A fractional exponent is a root: x1/2=xx^{1/2} = \sqrt{x}, and x3/4x^{3/4} is between linear and square-root growth.

Which log? Natural log (ln⁡\ln, base ee) dominates physics and ML math. Base 2 dominates information theory because the answer comes out in bits. Base 10 shows up on plot axes. Many ML papers write log⁡\log and mean ln⁡\ln. Changing base only multiplies the result by a constant, so the shape of every relationship is unchanged; only the units differ (bits vs "nats").

The natural pairEstablished
exandln⁡xe^{x} \quad\text{and}\quad \ln x

e^x is growth whose rate equals its current size; ln undoes it. They are inverses, like encode and decode.

Math.exp(1);            // 2.718…
Math.log(Math.exp(3));  // 3  (JS Math.log is the natural log)
Go deeper: Deeper: why e keeps showing up

exe^x is the only function (up to scaling) that is its own rate of change. Anything that grows or decays in proportion to its current amount (compound interest, radioactive decay, a population before limits bite) is governed by it. In ML, ee enters through softmax, which exponentiates scores so that differences become ratios. In physics it enters through the Boltzmann factor e−E/kTe^{-E/kT}. The shared ee reflects a shared mathematical need: turning additive scores into multiplicative weights. It is not evidence of a shared mechanism. See the softmax and Boltzmann inspectors.

Proportionality and the shape of a relationship

Scientists often care more about how one thing scales with another than about the exact numbers. The symbol ∝\propto ("is proportional to") discards the constant and keeps the shape. y∝x2y \propto x^2 says "double xx, quadruple yy" without committing to units or a prefactor.

This is a powerful reading habit. Faced with a long equation, ask: if I double this input, what happens to the output? For y∝xy \propto x it doubles. For y∝x2y \propto x^2 it quadruples. For y∝x−1y \propto x^{-1} it halves. For y∝log⁡xy \propto \log x it adds a fixed amount. That is the difference between something that runs away and something that crawls.

Kleiber's law (metabolic scaling)Empirical regularity
B∝M3/4B \propto M^{3/4}

Across many animals, resting metabolic rate B rises with body mass M roughly as M to the 3/4. So a mouse burns far more energy per gram than an elephant.

Does not say: An empirical regularity across species. The exact exponent (3/4 vs 2/3) is still debated and varies by taxon and dataset. The proportionality hides a prefactor that differs between groups.

Inspect symbol by symbol →

Empirical regularity

Biological metabolic scaling and neural-network loss scaling are both power laws. That shared form is real. It does not establish a shared cause. West, Brown and Enquist proposed a branching-network mechanism for the biological case; neural scaling laws have separate proposed explanations (e.g. resolving a data manifold). Shared shape gives you, at most, a Level 2 connection.

Source: West, Brown & Enquist 1997 (Science)

Two more symbols live here. ≈\approx means "approximately equal". Notice it, because it tells you an approximation has been made, and every approximation has conditions under which it fails. Δ\Delta (capital delta) means "change in": Δx=xafter−xbefore\Delta x = x_{\text{after}} - x_{\text{before}}. You will also see Δ\Delta as a difference between two conditions ("Δ\Delta accuracy") in ML results tables.

Translating a real equation: the neural scaling law

Now put it all together on an equation you have seen in AI writing:

Illustrative neural scaling-law modelEmpirical regularity
L(N)=L∞+A N−αL(N) = L_{\infty} + A\,N^{-\alpha}

Test loss as a function of model size: an irreducible floor, plus a reducible part that shrinks as a power of the parameter count.

// Illustrative constants only; real fits differ per setup
const Linf = 1.7, A = 400, alpha = 0.34;
const L = (N) => Linf + A * Math.pow(N, -alpha);
L(1e8);  // larger loss
L(1e10); // smaller, approaching Linf

Does not say: A fitted functional form, not a law of nature. Constants are fitted per setup (data, architecture, tokenizer, training recipe) and hold only over the measured range.

Inspect symbol by symbol →

Symbol by symbol

SymbolWhat it isIts job here
$L$Loss: a number measuring how wrong predictions are (cross-entropy for language models)The output we care about. Lower is better.
$N$Model size, usually non-embedding parameter countThe input being varied: the knob.
$L(N)$Function notationSays loss depends on N (with everything else held fixed).
$L_\infty$A constant; the subscript ∞ is a labelThe asymptote: loss you would approach with infinite N. Often read as the data’s irreducible uncertainty. That reading is an interpretation, not a measurement.
$A$A fitted prefactorSets how much reducible loss there is at small scale.
$N^{-\alpha}$Power with a negative exponent: 1/Nα1/N^{\alpha}Shrinks as N grows. The power-law part.
$\alpha$A fitted exponent (a variable name, not an operator)How fast loss falls. Small α means slow returns to scale.
Loading interactive…

Move α, A and L∞. On linear axes the curve flattens and looks like diminishing returns. On log-log axes (after subtracting L∞) the reducible part is a straight line with slope −α.

Empirical regularity

Kaplan et al. (2020) reported that language-model test loss follows power laws in model size NN, dataset size DD and training compute CC, each fitted separately when the other factors are not bottlenecks, with some trends spanning more than seven orders of magnitude. The exponents they reported for NN were small (well below 1), meaning large multiplicative increases buy modest loss reductions.

Source: Kaplan et al. 2020, arXiv:2001.08361

Empirical regularity

Hoffmann et al. (2022, "Chinchilla") fitted a joint form in NN and DD and concluded that, for a fixed compute budget, model size and training tokens should be scaled in roughly equal proportion. That revised Kaplan et al.'s recommendation to favour much larger models trained on comparatively little data. Same family of equations, different fits, different practical advice.

Source: Hoffmann et al. 2022, arXiv:2203.15556

A reading protocol for any equation

Use this five-pass routine whenever an equation stops you in a paper. It takes about two minutes and works without derivation.

  1. Inventory. List every symbol. Mark each as operator, variable, parameter or constant. Find where the paper defines it (usually within a few lines, or in a notation table).
  2. Type signature. What goes in, what comes out? Write it as a function call: "loss(params, data) → number".
  3. Shape. Identify the skeleton: sum, product, ratio, power, exponential, log. Ask "double this input, what happens?"
  4. Status. Is this a definition, an identity, a model assumption, a fitted empirical form, or a derived result? The surrounding words ("we define", "we assume", "we find", "it follows") tell you.
  5. Limits. Under what conditions was it shown? What range of data? What would break it?

Connections, with their levels

PhysicsLevel 2 · Shared math

Σ over particles, Σ over examples

The total energy of a gas is a sum over particles; the training loss of a model is a sum (or average) over examples. Both use Σ to aggregate many small contributions.

Why this level: A shared operation (aggregation by summation), not a shared mechanism. Particles and training examples obey different laws.

BiologyLevel 2 · Shared math

Power laws in metabolism and in model loss

Kleiber’s metabolic scaling and neural scaling laws are both written as power laws and both read as straight lines on log-log axes.

Why this level: Same functional form. Proposed mechanisms differ entirely (vascular branching networks vs data-manifold resolution), and neither is established as universal.

AI / MLLevel 2 · Shared math

Logs everywhere in ML

Log-probabilities, log-log scaling plots and log-likelihood losses all use the log to turn products into sums and huge ranges into manageable ones.

Why this level: The log is a mathematical tool chosen for convenience and numerical stability. Its presence says nothing about the system being modelled.

Skeptic’s corner: When an equation appears in an argument

An equation adds precision, not truth. Its authority depends on whether it is a definition, a fitted regularity or a derived result, and on the range of data behind it.

  • Is this "=" a definition, an identity, a model assumption or an empirical finding?
  • Over what range were the constants fitted, and is the claim extrapolating beyond it?
  • Does a shared functional form (e.g. a power law) get treated as a shared cause?
  • Are logs, axes and units stated, or could a log-log plot be flattering a weak fit?
  • Which symbols are defined in the text, and which is an LLM summary guessing at?

Watch & explore

Video17 min3Blue1Brown

The essence of calculus

Integrals as accumulation and derivatives as rates, introduced through one geometric question rather than rules.

Watch for: The integral emerging as a limit of sums. That is the Σ→∫ bridge in the Rosetta Stone.

Verified: YouTube oEmbed title+channel check, 2026-10-30

Video17 min3Blue1Brown

The paradox of the derivative (Essence of calculus, ch. 2)

What "instantaneous rate of change" means without hand-waving.

Watch for: dt as a small but finite nudge. That is how to read dx and dy in physics and ML papers.

Verified: YouTube oEmbed title+channel check, 2026-10-30

Video14 min3Blue1Brown

What's so special about Euler's number e? (ch. 5)

Why e and the natural log show up everywhere: growth proportional to current size.

Watch for: The derivative of e^t being itself. Softmax, Boltzmann weights and cross-entropy all lean on this.

Verified: YouTube oEmbed title+channel check, 2026-10-30

CourseKhan Academy

Algebra 1

Targeted gap repair: linear equations, functions and graph reading. Use the unit tests to find gaps fast and skip what you know.

Watch for: Only the "functions" and "exponents & radicals" units are essential here.

Verified: HTTP 200 + page content checked, 2026-10-30

CourseKhan Academy

Algebra 2 (exponential and logarithmic functions)

Logarithms are the single most important "missing" topic for reading scaling-law papers.

Watch for: The logarithm units. Log turns multiplication into addition and power laws into straight lines.

Verified: HTTP 200 + page content checked, 2026-10-30

ArticleSimons Foundation

Quanta Magazine

The editorial benchmark for this curriculum: serious science, precise about what is shown versus hoped.

Watch for: Read with the Skeptic’s Toolkit open. Label each claim with the evidence badges used here.

Verified: HTTP 200 + page content checked, 2026-10-30

Research & references

  • PreprintKaplan, McCandlish, Henighan, Brown, Chess et al. · 2020 · arXiv:2001.08361

    Scaling Laws for Neural Language Models

    Read Figure 1 and section 1.2 for the power-law forms. Limitation: fits are specific to their data and setup, and the compute-allocation conclusion was later revised.

  • PreprintHoffmann, Borgeaud, Mensch et al. · 2022 · arXiv:2203.15556

    Training Compute-Optimal Large Language Models

    Shows how a different fitting approach changes the practical recommendation. Limitation: one model family and dataset, and fits are sensitive to methodology.

  • Peer-reviewedWest, Brown & Enquist · 1997 · Science 276:122

    A General Model for the Origin of Allometric Scaling Laws in Biology

    A mechanism proposal for biological power laws. Limitation: the model’s assumptions and the 3/4 exponent remain contested.

Reflect

There are no right answers to check against. These questions are for thinking on the page, and your answers go to your notebook.

Pick an equation from a paper you have open. Write its type signature as a function call. What did doing that reveal?

Not saved yetAll reflections →

In L(N) = L∞ + A·N^−α, which single term would you most want independent evidence about, and why?

Not saved yetAll reflections →

Where in your own work (pipelines, content systems, GTM funnels) is something secretly a Σ or a Π?

Not saved yetAll reflections →

Find a claim in AI writing that says something "scales". Is it a power law, an exponential, or just "goes up"? Does the author say?

Not saved yetAll reflections →