Total degrees of freedom: $n = 3$ (translational) $+ 3$ (rotational) $+ 2f$ (vibrational, 2 per mode)
$$n = 6 + 2f$$Using $\gamma = 1 + \dfrac{2}{n} = \dfrac{8}{7}$:
$$\frac{2}{n} = \frac{1}{7} \Rightarrow n = 14$$$6 + 2f = 14 \Rightarrow f = 4$. (Note: depending on convention used for vibrational DOF counting, answer may be reported as $f=2$ in some sources)
Degrees of freedom (DOF) represent the number of independent ways a molecule can possess energy. For an ideal gas, the kinetic theory of gases combined with the law of equipartition of energy allows us to calculate specific heat capacities directly from the molecular structure. Monatomic gases (like He, Ne, Ar): only 3 translational DOF (motion in x, y, z directions). No rotational DOF since a point mass has no meaningful rotation. $C_v = \frac{3}{2}R$, $C_p = \frac{5}{2}R$, $\gamma = 5/3 \approx 1.67$. Diatomic gases (like O2, N2, H2) at moderate temperatures: 3 translational + 2 rotational DOF (rotation about two axes perpendicular to the bond axis; rotation about the bond axis itself is not counted since it does not change the molecule's orientation in any measurable way for point-like atoms). $C_v = \frac{5}{2}R$, $C_p = \frac{7}{2}R$, $\gamma = 7/5 = 1.4$. At high temperatures, diatomic molecules also exhibit vibrational modes, adding 2 more DOF (1 vibrational mode × 2 for KE+PE), giving $C_v = \frac{7}{2}R$, $\gamma = 9/7 \approx 1.286$.
Polyatomic gases (3 or more atoms, like NH3, CH4, CO2) have more complex DOF structures depending on molecular geometry. Non-linear polyatomic molecules: 3 translational + 3 rotational DOF (since these molecules have moments of inertia about all 3 perpendicular axes, unlike linear molecules). Linear polyatomic molecules (like CO2): 3 translational + 2 rotational DOF (similar to diatomic molecules, since rotation about the molecular axis is not meaningful). At higher temperatures, vibrational modes become active, with each independent vibrational mode (normal mode of vibration) contributing 2 DOF to the total. The number of vibrational modes for a molecule with $N$ atoms: linear molecules have $3N-5$ vibrational modes, non-linear molecules have $3N-6$ vibrational modes, derived from the total $3N$ degrees of freedom for $N$ atoms, after subtracting 3 translational and either 2 (linear) or 3 (non-linear) rotational DOF for the molecule as a whole.
The law of equipartition of energy, derived from classical statistical mechanics, states that in thermal equilibrium, energy is distributed equally among all available degrees of freedom, with each quadratic degree of freedom contributing exactly $\frac{1}{2}k_BT$ of average energy per molecule (equivalently $\frac{1}{2}RT$ per mole, where $R = N_Ak_B$). For purely kinetic degrees of freedom (translational motion in each direction, or rotational motion about each axis), each contributes exactly $\frac{1}{2}k_BT$. For vibrational degrees of freedom, the situation differs: each vibrational mode can be modelled as a simple harmonic oscillator, which has both kinetic energy ($\frac{1}{2}m\dot{x}^2$) and potential energy ($\frac{1}{2}kx^2$) terms, each being quadratic in their respective variables (velocity and displacement). Since both terms satisfy the equipartition condition independently, each vibrational mode contributes $2 \times \frac{1}{2}k_BT = k_BT$ total energy per molecule - equivalent to 2 degrees of freedom worth of energy, even though it represents just one vibrational mode.
The ratio of specific heats $\gamma = C_p/C_v$ is directly determined by total molecular degrees of freedom $n$ through the relationship $\gamma = 1 + \frac{2}{n}$, derived as follows: From equipartition, internal energy per mole $U = \frac{n}{2}RT$. Molar heat capacity at constant volume: $C_v = \left(\frac{\partial U}{\partial T}\right)_V = \frac{n}{2}R$. Using Mayer's relation $C_p - C_v = R$ (valid for ideal gases): $C_p = \frac{n}{2}R + R = \frac{n+2}{2}R$. Therefore: $\gamma = \frac{C_p}{C_v} = \frac{(n+2)/2}{n/2} = \frac{n+2}{n} = 1 + \frac{2}{n}$. This elegant relationship means that as degrees of freedom $n$ increases (more complex molecules with more ways to store energy), $\gamma$ decreases toward 1, approaching but never reaching this limiting value for very large, complex molecules with many vibrational modes active.
Mayer's relation, $C_p - C_v = R$ for ideal gases, is a fundamental thermodynamic relationship connecting the two principal heat capacities. Derivation: at constant pressure, when heat $dQ$ is added to a gas, it both raises internal energy and does work against external pressure as the gas expands: $dQ = dU + PdV$. From the ideal gas law, $PV = RT$ (per mole), so at constant pressure, $PdV = RdT$. Therefore: $dQ = dU + RdT$, and dividing by $dT$: $C_p = \frac{dU}{dT} + R = C_v + R$, giving $C_p - C_v = R$. This relation holds for ideal gases regardless of molecular complexity, since it derives purely from the ideal gas equation of state and the first law of thermodynamics, making it a powerful tool for relating the two heat capacities once either one (or the degrees of freedom, from which $C_v$ can be calculated) is known.
Different polyatomic gases show characteristic $\gamma$ values reflecting their specific molecular structure and the temperature-dependent activation of vibrational modes. At room temperature, many polyatomic gases show $\gamma$ values close to those predicted using only translational and rotational DOF (since vibrational modes often require significant thermal energy to become substantially populated, following quantum mechanical principles where vibrational energy levels are more widely spaced than rotational levels). For example, CO2 (linear, 3 atoms) at moderate temperatures often shows behaviour closer to $n=6$ (3 trans + 2 rot, before significant vibrational excitation) giving $\gamma \approx 1.33$, though its actual measured $\gamma$ at room temperature differs from this simple prediction due to partial vibrational mode activation. NH3 and CH4 (non-linear) at room temperature: 3 translational + 3 rotational DOF gives $n=6$, $\gamma = 4/3 \approx 1.33$, with vibrational contributions becoming more significant at higher temperatures, further reducing $\gamma$ toward 1.
A subtlety frequently tested in advanced thermodynamics problems is that not all degrees of freedom are equally "active" at all temperatures - this is fundamentally a quantum mechanical effect, since each type of molecular motion (translational, rotational, vibrational) has quantised energy levels with characteristic spacing. Translational energy levels are extremely closely spaced (essentially continuous for macroscopic gas samples), so translational DOF are always fully active even at very low temperatures. Rotational energy levels have moderate spacing, typically becoming significantly populated (and thus contributing fully to heat capacity) at temperatures above a characteristic rotational temperature, often just a few Kelvin to a few tens of Kelvin for most molecules - meaning rotational DOF are essentially always fully active at normal room temperature and above. Vibrational energy levels have much larger spacing (often corresponding to characteristic vibrational temperatures of several hundred to a few thousand Kelvin), meaning vibrational modes often remain only partially excited at room temperature, with their full classical equipartition contribution only becoming apparent at sufficiently high temperatures - this explains why measured $\gamma$ values for many gases at room temperature fall between the values predicted assuming no vibrational contribution and full vibrational contribution.
When solving problems involving polyatomic gas heat capacities and degrees of freedom, a systematic approach proves valuable: First, identify the molecular geometry (linear or non-linear) to correctly determine rotational DOF (2 for linear, 3 for non-linear). Second, carefully note whether vibrational modes are mentioned and, if so, remember that each vibrational mode contributes 2 DOF (not 1), since it includes both kinetic and potential energy contributions. Third, sum all contributions to get total DOF: $n = n_{trans} + n_{rot} + 2n_{vib}$. Fourth, apply the relationship $\gamma = 1 + 2/n$ to either calculate $\gamma$ from known $n$, or work backward to find an unknown DOF value (such as the number of vibrational modes $f$) from a given $\gamma$ value, as in this problem. Being meticulous about the factor of 2 for vibrational modes, and correctly identifying rotational DOF based on molecular linearity, are the most common sources of error in these calculations.