Root mean square

In mathematics, root mean square (abbreviated RMS or rms), also known as the quadratic mean, is a statistical measure of the magnitude of a varying quantity. It can be calculated for a series of discrete values or for a continuously varying function. The name comes from the fact that it is the square root of the mean of the squares of the values. It is a power mean with the power $$t=2$$.

Calculating the root mean square
The rms for a collection of $$N$$ values $$\{x_1,x_2,\dots,x_N\}$$ is:



x_{\mathrm{rms}} = \sqrt {{1 \over N} \sum_{i=1}^{N} x_i^2} = \sqrt {{x_1^2 + x_2^2 + \cdots + x_N^2} \over N} $$

and the corresponding formula for a continuous function $$f(t)$$ defined over the interval $$T_1 \le t \le T_2$$ (for a periodic function the interval should be a whole number of complete cycles) is:



f_{\mathrm{rms}} = \sqrt {{1 \over {T_2-T_1}} {\int_{T_1}^{T_2} {[f(t)]}^2\, dt}} $$

Uses
The RMS value of a function is often used in physics and electronics. For example, we may wish to calculate the power $$P$$ dissipated by an electrical conductor of resistance $$R$$. It is easy to do the calculation when a constant current $$I$$ flows through the conductor. It is simply,


 * $$P = I^2 R$$

But what if the current is a varying function $$I(t)$$? This is where the rms value comes in. It may be trivially shown that the rms value of $$I(t)$$ can be substituted for the constant current $$I$$ in the above equation to give the average power dissipation:
 * {| border=0 cellpadding=0 cellspacing=0


 * $$P_\mathrm{avg}\,\!$$
 * $$= \mathrm{E}(I^2R)\,\!$$ (where $$\mathrm{E}(\cdot)$$ denotes the arithmetic mean)
 * $$= R\mathrm{E}(I^2)\,\!$$ (R is constant so we can take it outside the average)
 * $$= I_\mathrm{rms}^2R\,\!$$ (by definition of RMS)
 * }
 * $$= R\mathrm{E}(I^2)\,\!$$ (R is constant so we can take it outside the average)
 * $$= I_\mathrm{rms}^2R\,\!$$ (by definition of RMS)
 * }
 * $$= I_\mathrm{rms}^2R\,\!$$ (by definition of RMS)
 * }

We can also show by the same method

$$P_\mathrm{avg} = {V_\mathrm{rms}^2\over R}\,\!$$

By square rooting both these equations and multiplying them together we get the equation

$$P_\mathrm{avg} = V_\mathrm{rms}I_\mathrm{rms}\,\!$$

However it is important to stress that this is based on the assumption that voltage and current are proportional (that is the load is resistive) and is not true in the general case (see AC power for more information).

In the common case of alternating current, when $$I(t)$$ is a sinusoidal current, as is approximately true for mains power, the rms value is easy to calculate from equation (2) above. The result is:


 * $$I_{\mathrm{rms}} = {I_\mathrm{p} \over {\sqrt 2}}$$

where $$I_\mathrm{p}$$ is the peak amplitude.

It should be noted that the peak amplitude is half of the peak-to-peak amplitude. When the peak-to-peak amplitude is known, the same formula is applied by using half of the p-p value.

The RMS value can be calculated using equation (2) for any waveform, for example an audio or radio signal. This allows us to calculate the mean power delivered into a specified load. For this reason, listed voltages for power outlets (e.g. 110 V or 240 V) are almost always quoted in RMS values, and not peak values.

From the formula given above, we can calculate also the peak-to-peak value of the mains voltage which is approx. 310 (U.S.A) and 677 (Europe) volts respectively.

In the field of audio, mean power is often (misleadingly) referred to as RMS power. This is probably because it can be derived from the RMS voltage or RMS current. Furthermore, because RMS implies some form of averaging, expressions such as "peak RMS power", sometimes used in advertisements for audio amplifiers, are meaningless.

In chemistry, the root mean square velocity is defined as the square root of the average velocity-squared of the molecules in a gas. The RMS velocity of an ideal gas is calculated using the following equation:


 * $${u_\mathrm{rms}} = {\sqrt{3RT \over {M}}}$$

where $$R$$ represents the ideal gas constant (in this case, 8.314 J/(mol&sdot;K)), $$T$$ is the temperature of the gas in kelvins, and $$M$$ is the molar mass of the compound in kilograms per mole.

Relationship to the arithmetic mean and the standard deviation
If $$\bar{x}$$ is the arithmetic mean and $$\sigma_{x}$$ is the standard deviation of a population then
 * $$x_{\mathrm{rms}}^2 = \bar{x}^2 + \sigma_{x}^2$$