Dimensional analysis (source code)

= Dimensional analysis
{wiki}

Dimensional analysis checks the <physical dimensions> of quantities and identifies combinations unchanged by the choice of units. It catches impossible equations and reveals scaling before a full dynamical calculation. Adding two quantities requires the same <physical dimension>; replacing metres by centimetres must change numerical values consistently while preserving physical predictions.

For the ideal <simple pendulum>, suppose its <oscillation period> $T$ depends only on mass $m$, <length> $\ell$, <gravitational acceleration> $g$, and dimensionless angular <amplitude> $\theta_0$. Write $T=m^a\ell^bg^c F(\theta_0)$. Since $[m]=M$, $[\ell]=L$, and $[g]=LT^{-2}$, matching <physical dimensions> gives $a=0$, $b+c=0$, and $-2c=1$. Consequently
$$
T=\sqrt{\frac\ell g}\,F(\theta_0).
$$
The angular <amplitude> is dimensionless when expressed in <radians>. Dimensional analysis establishes the length/gravity scaling and the absence of a mass factor under these assumptions, but cannot determine $F$. The <harmonic oscillator equation> gives $F\to2\pi$ at small <amplitude>; the full <simple pendulum> supplies its finite-amplitude correction. A model with drag or a finite massive support has additional parameters, so the same dimensional argument does not automatically apply.

The result is useful for comparison: at fixed angular <amplitude> and $g$, lengths in the ratio $1:4$ give periods in the ratio $1:2$. The ratio $T\sqrt{g/\ell}$ should be the same for both in this ideal model. A failure to collapse onto the same value points to measurement error or an omitted parameter. Correct <physical dimensions> are a necessary consistency check, while the coefficient and the adequacy of the model require more information.