The dimensional analysis can be used to find a formula for the frequency \(f\) of a pendulum of length \(l\text{,}\) and mass \(m\text{,}\) which swings between angles \(\pm \theta\) radians of the vertical axis. Because pendulum swings as a result of gravity, we need to include the acceleration due to gravity g as one of the possible variables. We assume that the mass of the string is negligible compared to the mass of the pendulum bob. Our task is to find the frequency, \(f\text{,}\) as a function of \(m\text{,}\) \(l\text{,}\) \(\theta\text{,}\) and \(g\text{.}\)
\begin{equation*}
\text{Frequency},\ f = f(m,l,\theta, g).
\end{equation*}
Now, we anticipate that frequency would go as some power of each of the physically relevant variables.
\begin{equation}
[f]=h(\theta) \times [l]^a \times [m]^b \times [g]^c. \tag{1.16}
\end{equation}
where \(h(\theta)\) is dimensionless since angle \(\theta\) is dimensionless, and exponents \(a\text{,}\) \(b\text{,}\) and \(c\) are to be determined. Dimensional analysis would not help us with the form of the function \(h(\theta)\) since \(\theta\) is dimensionless. Now, let us write out the dimensions of all physical quantities I have listed.
\begin{equation*}
[f] = 1/[T];\ [ l] = [L];\ [m]= [M];\ [g] = [L]/[T]^2;\ [\theta] = \text{Dimensionless}.
\end{equation*}
Now, putting the dimensions in
(1.16) we find
\begin{equation*}
\frac{1}{[T]}=h(\theta)\times[L]^a\times[M]^b\times\frac{[L]^c}{[T]^{2c}}.
\end{equation*}
Equating the exponents of \([L]\text{,}\) \([T]\) and \([M]\) on the two sides of the equation gives us the following relations among a, b and c. If a particular dimension is missing on one side of the equation, e.g. \([M]\) is missing on the left side, then the exponent of that quantity would be zero on that side of the equation.
\begin{equation*}
a+c = 0;\ b=0;\ 2c = 1,\ \ \Longrightarrow\ \ a = -\frac{1}{2};\ b = 0;\ c=\frac{1}{2}.
\end{equation*}
Therefore, we find that the frequency of a pendulum is
\begin{equation}
f=h(\theta)\sqrt{\frac{g}{l}}.\tag{1.17}
\end{equation}
The only part that remains undetermined by the dimensional analysis here is the dimensionless part, \(h\text{,}\) which may depend on dimensionless quantity \(\theta\) and/or dimensionless combinations of \(g\text{,}\) \(l\text{,}\) and \(m\text{.}\)