math

logarithm

A mathematical function that is the inverse of exponentiation, used here to linearize brightness-distance relations.
7 related articles · 5 formulas

Description

A logarithm is a mathematical function that answers the question: to what exponent must a fixed base be raised to produce a given number? For example, the base-10 logarithm of 1000 is 3, because 10^3 = 1000. In physics and astronomy, logarithms are indispensable for compressing vast ranges of values—such as brightness, distance, or frequency—into manageable scales. They also convert multiplicative relationships into additive ones, simplifying analysis.

History

Logarithms were introduced by John Napier in 1614 as a computational aid, and later refined by Henry Briggs. They were quickly adopted by astronomers like Johannes Kepler for calculations.

How it works

The logarithm of a number x with base b is written as log_b(x). It satisfies the identity b^(log_b(x)) = x. Common bases are 10 (common logarithm), e ≈ 2.718 (natural logarithm), and 2 (binary logarithm). In astronomy, magnitudes are defined on a logarithmic scale: a difference of 5 magnitudes corresponds to a factor of 100 in brightness. This makes it easy to compare stars that differ by billions in luminosity.

In practice

Logarithms are used in the magnitude scale for stars, in the decibel scale for sound, in the pH scale for acidity, and in the Richter scale for earthquakes.

Fun fact

The word 'logarithm' comes from Greek meaning 'ratio-number', because Napier originally conceived them as a way to turn multiplication into addition.

Concept graph →

Formulas

$$D_{KL}(P\|Q) = \int P(x) \log \frac{P(x)}{Q(x)} dx$$
Measures difference between two probability distributions.
What is in the formula
D_{KL}variableKullback-Leibler divergence — information divergence
P(x)variableprobability density of distribution P — probability density
Q(x)variableprobability density of distribution Q — probability density
xvariablerandom variable — random variable
\intoperatorsums the integrand over all values of x — integral operator
\logoperatorcomputes the logarithm of the ratio — logarithm
$$P(k) = P_0(k) \left[1 + A \exp\left(-\frac{(\log k - \log k_0)^2}{\sigma^2}\right)\right]$$
A Gaussian-shaped enhancement in power spectrum.
What is in the formula
P(k)variablePerturbed power spectrum — power spectrum cubic metre
P_0(k)variableBackground power spectrum — power spectrum cubic metre
AvariableAmplitude of the bump — amplitude
kvariableWavenumber — wavenumber per metre
k_0variableCentral wavenumber of the bump — wavenumber per metre
σvariableWidth of the bump in log-k — width
expoperatorExponential function — exponential
logoperatorNatural logarithm — logarithm
$$\min_G \max_D V(D,G) = \mathbb{E}_{x \sim p_{data}}[\log D(x)] + \mathbb{E}_{z \sim p_z}[\log(1 - D(G(z)))]$$
Adversarial training objective for generative adversarial networks.
What is in the formula
xvariabledata sample — sample
zvariablelatent variable sample — latent variable
D(x)variablediscriminator output for real data — discriminator output
G(z)variablegenerator output for latent variable — generator output
V(D,G)variablevalue function of the game — value function
min_Goperatorminimize with respect to generator parameters — minimization over generator
max_Doperatormaximize with respect to discriminator parameters — maximization over discriminator
E_{x~p_data}operatorexpectation over the empirical data distribution — expectation over data distribution
E_{z~p_z}operatorexpectation over the latent prior distribution — expectation over latent distribution
logoperatornatural logarithm — logarithm
$$\log P(D|\theta) = -\frac{1}{2}\sum \left(\frac{(y_{\text{model}} - y_{\text{data}})^2}{\sigma^2} + \log(2\pi\sigma^2)\right)$$
Probability of data given model parameters with Gaussian errors.
What is in the formula
P(D|θ)variableprobability of data given parameters — probability
y_modelvariablemodel prediction — value
y_datavariableobserved data point — value
σvariablestandard deviation of Gaussian noise — standard deviation
logoperatornatural logarithm — logarithm
∑operatorsum over all data points — summation
$$[X/\mathrm{H}] = \log\frac{N_X}{N_{\mathrm{H}}} + 12$$
Standard logarithmic measure of element abundance relative to hydrogen.
What is in the formula
[X/H]variableLogarithmic abundance of element X relative to hydrogen — logarithmic abundance ratio
N_XvariableNumber density of element X — number density reciprocal cubic metre
N_HvariableNumber density of hydrogen — number density reciprocal cubic metre
logoperatorBase-10 logarithm — logarithm

Related articles · 7

HEP Theory2026-08-042 minarXiv:2608.03747express
When Particles Whisper Goodbye
Two charged spheres collided and flew apart in different directions. You'd think it was all over — but the light from their farewell still wanders through space. In the ordinary world, this is a well-known effect: an accelerated charge always radiates.
General Relativity2026-07-302 minarXiv:2607.28249express
Mosaic on the Surface of a Black Hole
A black hole devours everything, even light. Yet it obeys the laws of physics: it possesses entropy — a measure of the hidden information an object 'remembers.' In the 1970s, Jacob Bekenstein and Stephen Hawking discovered a strange pattern: a black hole's entropy grows not with its volume, but…
Image Processing2026-07-161 minarXiv:2607.15073express
World in Flickers: How a Camera Assembles an Image from Flashes
Unlike regular cameras, event-based ones only record moments when light becomes brighter or dimmer. They don't produce snapshots; instead, they send an endless stream of such flashes. Scientists turned this stream into a sharp picture of the Earth while flying over it on a satellite. Each flash is like a piece of a mosaic; together they form a still image.
Machine Learning2026-07-142 minarXiv:2607.12417express
A Neural Network That Perceives Phase: From Hearing to Quantum Computing
A sound signal is conveniently represented as a complex number: its modulus (amplitude) reflects loudness, while its argument (phase) indicates the wave's position in time: its instantaneous shift.
General Relativity2026-06-202 minarXiv:2606.22262express
The Universe Refuses to Agree on the Numbers
The Universe has a rate at which it expands — called the Hubble constant. The problem is that the two most precise ways to measure it give different numbers. One method, using the early light of the Universe (the cosmic microwave background), gives one value.
math.CO2026-05-171 minarXiv:2605.17594express
Keys That Never Cross
You can feel an unfamiliar object along its length, across its width, or diagonally: each time gaining new information. But what if one way of feeling tells you absolutely nothing about what another would reveal? That's exactly how mutually unbiased bases work in quantum mechanics: measuring in one of them leaves you completely in the dark about the outcome in another.
Geophysics2026-05-141 minarXiv:2605.14670express
River as a Mirror of the Universe
The shape of a riverbed precisely follows the equation describing the growth of a universe with negative curvature. In the lab, water flowing over sand spontaneously carves a cross-section that matches the solution for the Anti-de Sitter model. A river tends toward a shape that maximizes bottom friction.