Root mean square
(Redirected from 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's especially useful when variates are positive and negative, e.g. waves.
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 <math>t=2</math>.
Contents |
Calculating the root mean square
The rms for a collection of <math>N</math> values <math>\{x_1,x_2,\dots,x_N\}</math> is:
- <math>
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}</math>
and the corresponding formula for a continuous function <math>f(t)</math> defined over the interval <math>T_1 \le t \le T_2</math> (for a periodic function the interval should be a whole number of complete cycles) is:
- <math>
f_{\mathrm{rms}} = \sqrt {{1 \over {T_2-T_1}} {\int_{T_1}^{T_2} {[f(t)]}^2\, dt}}</math>
Uses
The RMS value of a function is often used in physics and electronics. For example, we may wish to calculate the power <math>P</math> dissipated by an electrical conductor of resistance <math>R</math>. It is easy to do the calculation when a constant current <math>I</math> flows through the conductor. It is simply:
<math>P = I^2 R\,\!</math>
But what if the current is a varying function <math>I(t)</math>? This is where the rms value comes in. It may be trivially shown that the rms value of <math>I(t)</math> can be substituted for the constant current <math>I</math> in the above equation to give the average power dissipation:
<math>P_\mathrm{avg}\,\!</math> <math>= \langle I^2R \rangle \,\!</math> (where <math>\langle \cdot \rangle</math> denotes the arithmetic mean) <math>= R\langle I^2 \rangle\,\!</math> (R is constant so we can take it outside the average) <math>= I_\mathrm{rms}^2R\,\!</math> (by definition of RMS)
We can also show by the same method
<math>P_\mathrm{avg} = {V_\mathrm{rms}^2\over R}\,\!</math>
By taking the square root of both these equations and multiplying them together, we get the equation
<math>P_\mathrm{avg} = V_\mathrm{rms}I_\mathrm{rms}\,\!</math>
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 <math>I(t)</math> is a sinusoidal current, as is approximately true for mains power. The rms value is easy to calculate from the continuous case equation above. If we define <math>I_{\mathrm{p}}</math> to be the peak amplitude:
<math>I_{\mathrm{rms}} = \sqrt {{1 \over {T_2-T_1}} {\int_{T_1}^{T_2} {(I_\mathrm{p}\sin(\omega t)}\, })^2 dt}\,\!</math>
Since <math>I_{\mathrm{p}}</math> is a positive real number:
<math>I_{\mathrm{rms}} = I_\mathrm{p}\sqrt {{1 \over {T_2-T_1}} {\int_{T_1}^{T_2} {\sin^2(\omega t)}\, dt}}</math>
Using a trigonomentric identity to eliminate squaring of trig function:
<math>I_{\mathrm{rms}} = I_\mathrm{p}\sqrt {{1 \over {T_2-T_1}} {\int_{T_1}^{T_2} \, dt}}</math>
<math>I_{\mathrm{rms}} = I_\mathrm{p}\sqrt {{1 \over {T_2-T_1}} \left [ {{t \over 2} -{ \sin(2\omega t) \over 4\omega}} \right ]_{T_1}^{T_2} }</math>
but since the interval is a whole number of complete cycles (per definition of rms for a periodic function) the sin terms will cancel
<math>I_{\mathrm{rms}} = I_\mathrm{p}\sqrt {{1 \over {T_2-T_1}} \left [ \right ]_{T_1}^{T_2} } = I_\mathrm{p}\sqrt {{1 \over {T_2-T_1}} {{{T_2-T_1} \over 2}} } = {I_\mathrm{p} \over {\sqrt 2}}</math>
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 (USA) 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.(dubious; discuss)
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:
- <math>{u_\mathrm{rms}} = {\sqrt{3RT \over {M}}}</math>
where <math>R</math> represents the ideal gas constant (in this case, 8.314 J/(mol⋅K)), <math>T</math> is the temperature of the gas in kelvins, and <math>M</math> is the molar mass of the compound in kilograms per mole.
Relationship to the arithmetic mean and the standard deviation
If <math>\bar{x}</math> is the arithmetic mean and <math>\sigma_{x}</math> is the standard deviation of a population then
- <math>x_{\mathrm{rms}}^2 = \bar{x}^2 + \sigma_{x}^2</math>
Here we can see that RMS is always greater than or equal to the average, in that the RMS includes the "error" / square deviation too.
See also
- Least squares
- Generalized mean
- Standard deviation
- Root mean square speed
- Table of mathematical symbols
External links
- RMS calculator
- RMS values and measurement
- An explanation of why RMS is a misnomer when applied to power
- RMS Power Explained
- RMS, Peak and Average for some waveforms
Categories
Accuracy disputes | Statistical deviation and dispersion
