Root mean square
From Includipedia, the inclusionist encyclopedia
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 is 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>p=2</math>.
Contents |
Definition
<math>x_\text{rms} = \sqrt{ \langle x^2 \rangle} \,\!</math> (where <math>\langle \ldots \rangle</math> denotes the arithmetic mean)
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>
The corresponding formula for a continuous function <math>f(t)</math> defined over the interval <math>T_1 \le t \le T_2</math> is
- <math>
f_{\mathrm{rms}} = \sqrt {{1 \over {T_2-T_1}} {\int_{T_1}^{T_2} {[f(t)]}^2\, dt}} </math>
The rms of a periodic function is equal to the rms of one period of the function. The rms value of a continuous function or signal can be approximated by taking the rms value of a series of equally spaced samples.
Uses
The RMS value of a function is often used in physics and electrical engineering. 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 \ldots \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 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} Template:1 - \cos(2\omega t) \over 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 with <math>\omega = \frac{2 \pi}{t}</math>) the <math>\sin</math> terms will cancel
- <math>I_{\mathrm{rms}} = I_\mathrm{p}\sqrt {{1 \over {T_2-T_1}} \left [ Template:T \over 2 \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 RMS value can be calculated using equation (2) for any waveform, such as a sinusoidal or sawtooth waveform. This allows us to calculate the mean power delivered into a specified load. For this reason, listed voltages for power outlets (e.g. 117 V or 230 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 about (2*165=>)330 volts (USA) and (2*325=>)650 volts (Europe) respectively, assuming the source is a pure sine wave. The peak-to-peak voltage is twice the peak voltage (amplitude) of the source <math>I_p</math>.
It is possible to calculate the RMS power of a signal. By analogy with RMS voltage and RMS current, RMS power is the square root of the mean of the square of the power over some specified time period. This quantity, which would be expressed in units of watts (RMS), has no physical significance. However, the term "RMS power" is sometimes used in the audio industry as a synonym for "mean power" or "average power". For a discussion of audio power measurements and their shortcomings, see Audio power.
Root mean square velocity
In physics, 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>{v_\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. Note that the unit of mass is in kilograms per mole because the Joule is given in kilogram meters squared per second squared.
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 (the equation is different when <math>\sigma_{x}</math> is for a sample) 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 as well.
Indeed, assuming the values to be averaged are Pythagorean Triples (e.g. 3, 4, 5), the RMS value would be close to the arithmetic mean.
N.B.: Physical scientists often use the term root-mean-square as a synonym for standard deviation when they refer to the square root of the mean squared deviation of a signal from a given baseline or fit.
See also
- Generalized mean
- L2 norm
- Least squares
- Root mean square speed
- Root mean square deviation (or error)
- Table of mathematical symbols
External links
- RMS calculator
- An explanation of why RMS is a misnomer when applied to power
- RMS, Peak and Average for some waveformscs:Kvadratický průměr
da:Effektiv værdi de:Quadratisches Mittel es:Valor eficaz fr:Valeur efficace it:Valore efficace hu:Négyzetes közép nl:Kwadratisch gemiddelde no:Effektivverdi pl:Średnia kwadratowa pt:Valor eficaz ru:Квадратичное среднее sv:Effektivvärde ja:二乗平均平方根

