06-reference

3blue1brown logarithm of an image

Sat Mar 21 2026 20:00:00 GMT-0400 (Eastern Daylight Time) ·reference ·source: 3Blue1Brown (YouTube) ·by Grant Sanderson
mathlogarithmimage-processingtransformationintuitioncomplex-analysisconformal-mapseschercoordinate-change

“How (and why) to take a logarithm of an image” — 3Blue1Brown

Note: a parallel assessment of this same video exists at 2026-04-20-3blue1brown-how-and-why-to-take-a-logarithm-of-an-image.md, filed under the watch date. This entry is filed under the upload date for chronological consistency with the source.

Why this is in the vault

Filed as the strongest visual instance in the corpus of the concepts/coordinate-change-as-core-move pattern — log/exp moving multiplicative structure into additive space. Two operational threads pull on it: (1) it is the rigorous justification for a “log-transform first, then chart” mode in XmR when MAC encounters heteroskedastic series, and (2) it underwrites linear-regression detrending for compounding metrics in MAC dashboards. Cross-filed with the parallel watch-date entry to keep both upload-date and watch-date chronology intact for the longitudinal coordinate-change evidence chain.

Episode summary

Grant Sanderson reverse-engineers M.C. Escher’s 1956 lithograph “Print Gallery” (Prentententoonstelling) — the recursive image of a man looking at a picture that contains the gallery that contains the man. Building on the De Smit and Lenstra (2003) analysis, he shows the distortion Escher arrived at by hand is formally the action of a complex-logarithm-then-rotate-then-exponentiate sandwich: a conformal map that turns a Droste-effect mise en abyme into a self-similar spiral. The video doubles as a 25-minute crash course in complex exponentials and logarithms, with the punchline that the “blank spot” Escher left in the center is a topological inevitability — the fixed point of the recursive zoom — not an artistic compromise.

Key arguments / segments

Notable claims

Mapping against Ray Data Co

Strong mapping — this video is a fresh, vivid instance of the concepts/coordinate-change-as-core-move pattern that the vault already crystallizes. The doc explicitly cites this video as one of the six instances (“the complex logarithm takes Escher’s recursive self-referential distortion and unwraps it into a flat strip with a fixed point at the blank spot. The log takes a multiplicative structure and makes it additive. That is the same move a data engineer makes log-transforming a skewed price series, and it is the same move SVD makes axis-aligning correlated features”).

Three load-bearing bridges to operational work:

  1. XmR / process-behavior charts and detrending. Wheeler’s chapter on data transformations argues that log-scale charts are appropriate when the underlying process is multiplicative (errors compound proportionally, not additively). The video gives the visual intuition for why this works: log moves you from a multiplicative coordinate system into an additive one, where linear methods (control limits set as mean ± 3·MR-bar) are correctly calibrated. For ../04-tooling/xmr-charts/README, this is the rigorous justification for a “log-transform first, then chart” mode for ratio-distributed metrics like response times, prices, or error rates. Practically: when MAC dashboards encounter a series whose moving range scales with the level (heteroskedastic), the right move is not to widen the limits — it is to chart log(x) and reason in additive space.

  2. Linear regression detrending in MAC. When a series has compounding growth (revenue, cumulative users, anything with a fixed-percent growth rate), regressing the level against time gives biased residuals that fan out. Regressing log(level) against time recovers the constant-growth-rate residuals and gives honest deviations. Same coordinate-change move. The video makes this concrete: applying log to “an image with a 16x scale-similarity” turns the recursion into a horizontal translation. Applied to a revenue chart, log turns a “compounded 10%/quarter” series into a straight line whose slope is the growth rate and whose residuals are interpretable as percent surprises.

  3. concepts/binary-decision-around-continuous-probability. Weaker bridge but real: the binary-decision concept is about not collapsing a continuous quantity (probability, severity, revenue impact) into a yes/no until you must. The video’s analog is “don’t collapse the multivalued log to a single branch until your downstream operation requires it” — Grant explicitly says, for the Escher application, it’s actually more useful to keep log as multivalued, because the periodicity of the multivalued output is the structure being exploited. The general lesson: premature flattening of a richer structure (continuous → binary; multivalued → single-valued) destroys the information that solves the problem.

The video does not surface a new generalizable pattern beyond what coordinate-change-as-core-move already captures, but it is the strongest visual demonstration in the corpus of why log/exp specifically is so often the right coordinate change for compounding systems.