Root mean square

Last updated

In mathematics, the root mean square (abbrev. RMS, RMS or rms) of a set of numbers is the square root of the set's mean square. [1] Given a set , its RMS is denoted as either or . The RMS is also known as the quadratic mean (denoted ) [2] [3] , a special case of the generalized mean. The RMS of a continuous function is denoted and can be defined in terms of an integral of the square of the function.

Contents

The RMS of an alternating electric current equals the value of constant direct current that would dissipate the same power in a resistive load. [1] In estimation theory, the root-mean-square deviation of an estimator measures how far the estimator strays from the data.

Definition

The RMS value of a set of values (or a continuous-time waveform) is the square root of the arithmetic mean of the squares of the values, or the square of the function that defines the continuous waveform. In physics, the RMS current value can also be defined as the "value of the direct current that dissipates the same power in a resistor."

In the case of a set of n values , the RMS is

The corresponding formula for a continuous function (or waveform) f(t) defined over the interval is

and the RMS for a function over all time is

The RMS over all time 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 of a sample consisting of equally spaced observations. Additionally, the RMS value of various waveforms can also be determined without calculus, as shown by Cartwright. [4]

In the case of the RMS statistic of a random process, the expected value is used instead of the mean.

In common waveforms

Sine, square, triangle, and sawtooth waveforms. In each, the centerline is at 0, the positive peak is at
y
=
A
1
{\displaystyle y=A_{1}}
and the negative peak is at
y
=
-
A
1
{\displaystyle y=-A_{1}} Waveforms.svg
Sine, square, triangle, and sawtooth waveforms. In each, the centerline is at 0, the positive peak is at and the negative peak is at
A rectangular pulse wave of duty cycle D, the ratio between the pulse duration (
t
{\displaystyle \tau }
) and the period (T); illustrated here with a = 1. Dutycycle.svg
A rectangular pulse wave of duty cycle D, the ratio between the pulse duration () and the period (T); illustrated here with a = 1.
Graph of a sine wave's voltage vs. time (in degrees), showing RMS, peak (PK), and peak-to-peak (PP) voltages. Sine wave voltages.svg
Graph of a sine wave's voltage vs. time (in degrees), showing RMS, peak (PK), and peak-to-peak (PP) voltages.

If the waveform is a pure sine wave, the relationships between amplitudes (peak-to-peak, peak) and RMS are fixed and known, as they are for any continuous periodic wave. However, this is not true for an arbitrary waveform, which may not be periodic or continuous. For a zero-mean sine wave, the relationship between RMS and peak-to-peak amplitude is:

Peak-to-peak

For other waveforms, the relationships are not the same as they are for sine waves. For example, for either a triangular or sawtooth wave:

Peak-to-peak
WaveformVariables and operatorsRMS
DC
Sine wave
Square wave
DC-shifted square wave
Modified sine wave
Triangle wave
Sawtooth wave
Pulse wave
Phase-to-phase sine wave
where:
  • y is displacement,
  • t is time,
  • f is frequency,
  • Ai is amplitude (peak value),
  • D is the duty cycle or the proportion of the time period (1/f) spent high,
  • frac(r) is the fractional part of r.

In waveform combinations

Waveforms made by summing known simple waveforms have an RMS value that is the root of the sum of squares of the component RMS values, if the component waveforms are orthogonal (that is, if the average of the product of one simple waveform with another is zero for all pairs other than a waveform times itself). [5]

Alternatively, for waveforms that are perfectly positively correlated, or "in phase" with each other, their RMS values sum directly.

Uses

In electrical engineering

Voltage

A special case of RMS of waveform combinations is: [6]

where refers to the direct current (or average) component of the signal, and is the alternating current component of the signal.

Average electrical power

Electrical engineers often need to know the power, P, dissipated by an electrical resistance, R. It is easy to do the calculation when there is a constant current, I, through the resistance. For a load of R ohms, power is given by:

However, if the current is a time-varying function, I(t), this formula must be extended to reflect the fact that the current (and thus the instantaneous power) is varying over time. If the function is periodic (such as household AC power), it is still meaningful to discuss the average power dissipated over time, which is calculated by taking the average power dissipation:

So, the RMS value, IRMS, of the function I(t) is the constant current that yields the same power dissipation as the time-averaged power dissipation of the current I(t).

Average power can also be found using the same method that in the case of a time-varying voltage, V(t), with RMS value VRMS,

This equation can be used for any periodic waveform, such as a sinusoidal or sawtooth waveform, allowing us to calculate the mean power delivered into a specified load.

By taking the square root of both these equations and multiplying them together, the power is found to be:

Both derivations depend on voltage and current being proportional (that is, the load, R, is purely resistive). Reactive loads (that is, loads capable of not just dissipating energy but also storing it) are discussed under the topic of AC power.

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 the continuous case equation above. If Ip is defined to be the peak current, then:

where t is time and ω is the angular frequency (ω = 2π/T, where T is the period of the wave).

Since Ip is a positive constant:

Using a trigonometric identity to eliminate squaring of trig function:

but since the interval is a whole number of complete cycles (per definition of RMS), the sine terms will cancel out, leaving:

A similar analysis leads to the analogous equation for sinusoidal voltage:

where IP represents the peak current and VP represents the peak voltage.

Because of their usefulness in carrying out power calculations, listed voltages for power outlets (for example, 120 V in the US, or 230 V in Europe) are almost always quoted in RMS values, and not peak values. Peak values can be calculated from RMS values from the above formula, which implies VP = VRMS × 2, assuming the source is a pure sine wave. Thus the peak value of the mains voltage in the USA is about 120 × 2, or about 170 volts. The peak-to-peak voltage, being double this, is about 340 volts. A similar calculation indicates that the peak mains voltage in Europe is about 325 volts, and the peak-to-peak mains voltage, about 650 volts.

RMS quantities such as electric current are usually calculated over one cycle. However, for some purposes the RMS current over a longer period is required when calculating transmission power losses. The same principle applies, and (for example) a current of 10 amps used for 12 hours each 24-hour day represents an average current of 5 amps, but an RMS current of 7.07 amps, in the long term.

The term RMS power is sometimes erroneously used (e.g., in the audio industry) as a synonym for mean power or average power (it is proportional to the square of the RMS voltage or RMS current in a resistive load). For a discussion of audio power measurements and their shortcomings, see Audio power.

Speed

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

where R represents the gas constant, 8.314 J/(mol·K), T is the temperature of the gas in kelvins, and M is the molar mass of the gas in kilograms per mole. In physics, speed is defined as the scalar magnitude of velocity. For a stationary gas, the average speed of its molecules can be in the order of thousands of km/h, even though the average velocity of its molecules is zero.

Error

When two data sets — one set from theoretical prediction and the other from actual measurement of some physical variable, for instance — are compared, the RMS of the pairwise differences of the two data sets can serve as a measure of how far on average the error is from 0. The mean of the absolute values of the pairwise differences could be a useful measure of the variability of the differences. However, the RMS of the differences is usually the preferred measure, probably due to mathematical convention and compatibility with other formulae.

In frequency domain

The RMS can be computed in the frequency domain, using Parseval's theorem. For a sampled signal , where is the sampling period,

where and N is the sample size, that is, the number of observations in the sample and FFT coefficients.

In this case, the RMS computed in the time domain is the same as in the frequency domain:

Relationship to other statistics

Geometric proof without words that max (a,b) > root mean square (RMS) or quadratic mean (QM) > arithmetic mean (AM) > geometric mean (GM) > harmonic mean (HM) > min (a,b) of two distinct positive numbers a and b QM AM GM HM inequality visual proof.svg
Geometric proof without words that max(a,b)> root mean square (RMS) or quadratic mean (QM)> arithmetic mean (AM)> geometric mean (GM)> harmonic mean (HM)>min(a,b) of two distinct positive numbers a and b

If is the arithmetic mean and is the standard deviation of a population or a waveform, then: [7]

From this it is clear that the RMS value is always greater than or equal to the average, in that the RMS includes the "error" / square deviation as well.

Physical scientists often use the term root mean square as a synonym for standard deviation when it can be assumed the input signal has zero mean, that is, referring to the square root of the mean squared deviation of a signal from a given baseline or fit. [8] [9] This is useful for electrical engineers in calculating the "AC only" RMS of a signal. Standard deviation being the RMS of a signal's variation about the mean, rather than about 0, the DC component is removed (that is, RMS(signal) = stdev(signal) if the mean signal is 0).

See also

Notes

  1. If AC = a and BC = b. OC = AM of a and b, and radius r = QO = OG.
    Using Pythagoras' theorem, QC² = QO² + OC² QC = QO² + OC² = QM.
    Using Pythagoras' theorem, OC² = OG² + GC² GC = OC² OG² = GM.
    Using similar triangles, HC/GC = GC/OC HC = GC²/OC = HM.

Related Research Articles

The decibel is a relative unit of measurement equal to one tenth of a bel (B). It expresses the ratio of two values of a power or root-power quantity on a logarithmic scale. Two signals whose levels differ by one decibel have a power ratio of 101/10 or root-power ratio of 10120.

<span class="mw-page-title-main">Maxwell–Boltzmann distribution</span> Specific probability distribution function, important in physics

In physics, the Maxwell–Boltzmann distribution, or Maxwell(ian) distribution, is a particular probability distribution named after James Clerk Maxwell and Ludwig Boltzmann.

The amplitude of a periodic variable is a measure of its change in a single period. The amplitude of a non-periodic signal is its magnitude compared with a reference value. There are various definitions of amplitude, which are all functions of the magnitude of the differences between the variable's extreme values. In older texts, the phase of a periodic function is sometimes called the amplitude.

In electrical engineering, the power factor of an AC power system is defined as the ratio of the real power absorbed by the load to the apparent power flowing in the circuit. Real power is the average of the instantaneous product of voltage and current and represents the capacity of the electricity for performing work. Apparent power is the product of root mean square (RMS) current and voltage. Due to energy stored in the load and returned to the source, or due to a non-linear load that distorts the wave shape of the current drawn from the source, the apparent power may be greater than the real power, so more current flows in the circuit than would be required to transfer real power alone. A power factor magnitude of less than one indicates the voltage and current are not in phase, reducing the average product of the two. A negative power factor occurs when the device generates real power, which then flows back towards the source.

Signal-to-noise ratio is a measure used in science and engineering that compares the level of a desired signal to the level of background noise. SNR is defined as the ratio of signal power to noise power, often expressed in decibels. A ratio higher than 1:1 indicates more signal than noise.

Specific detectivity, or D*, for a photodetector is a figure of merit used to characterize performance, equal to the reciprocal of noise-equivalent power (NEP), normalized per square root of the sensor's area and frequency bandwidth.

The total harmonic distortion is a measurement of the harmonic distortion present in a signal and is defined as the ratio of the sum of the powers of all harmonic components to the power of the fundamental frequency. Distortion factor, a closely related term, is sometimes used as a synonym.

<span class="mw-page-title-main">Alternating current</span> Electric current that periodically reverses direction

Alternating current (AC) is an electric current that periodically reverses direction and changes its magnitude continuously with time, in contrast to direct current (DC), which flows only in one direction. Alternating current is the form in which electric power is delivered to businesses and residences, and it is the form of electrical energy that consumers typically use when they plug kitchen appliances, televisions, fans and electric lamps into a wall socket. The abbreviations AC and DC are often used to mean simply alternating and direct, respectively, as when they modify current or voltage.

<span class="mw-page-title-main">Rectifier</span> Electrical device that converts AC to DC

A rectifier is an electrical device that converts alternating current (AC), which periodically reverses direction, to direct current (DC), which flows in only one direction. The reverse operation is performed by an inverter.

Rayleigh fading is a statistical model for the effect of a propagation environment on a radio signal, such as that used by wireless devices.

<span class="mw-page-title-main">Inductance</span> Property of electrical conductors

Inductance is the tendency of an electrical conductor to oppose a change in the electric current flowing through it. The electric current produces a magnetic field around the conductor. The magnetic field strength depends on the magnitude of the electric current, and follows any changes in the magnitude of the current. From Faraday's law of induction, any change in magnetic field through a circuit induces an electromotive force (EMF) (voltage) in the conductors, a process known as electromagnetic induction. This induced voltage created by the changing current has the effect of opposing the change in current. This is stated by Lenz's law, and the voltage is called back EMF.

<span class="mw-page-title-main">Johnson–Nyquist noise</span> Electronic noise due to thermal vibration within a conductor

Johnson–Nyquist noise is the electronic noise generated by the thermal agitation of the charge carriers inside an electrical conductor at equilibrium, which happens regardless of any applied voltage. Thermal noise is present in all electrical circuits, and in sensitive electronic equipment can drown out weak signals, and can be the limiting factor on sensitivity of electrical measuring instruments. Thermal noise increases with temperature. Some sensitive electronic equipment such as radio telescope receivers are cooled to cryogenic temperatures to reduce thermal noise in their circuits. The generic, statistical physical derivation of this noise is called the fluctuation-dissipation theorem, where generalized impedance or generalized susceptibility is used to characterize the medium.

<span class="mw-page-title-main">Effusion</span> Process of a gas escaping through a small hole

In physics and chemistry, effusion is the process in which a gas escapes from a container through a hole of diameter considerably smaller than the mean free path of the molecules. Such a hole is often described as a pinhole and the escape of the gas is due to the pressure difference between the container and the exterior. Under these conditions, essentially all molecules which arrive at the hole continue and pass through the hole, since collisions between molecules in the region of the hole are negligible. Conversely, when the diameter is larger than the mean free path of the gas, flow obeys the Sampson flow law.

<span class="mw-page-title-main">AC power</span> Power in alternating current systems

In an electric circuit, instantaneous power is the time rate of flow of energy past a given point of the circuit. In alternating current circuits, energy storage elements such as inductors and capacitors may result in periodic reversals of the direction of energy flow. Its SI unit is the watt.

<span class="mw-page-title-main">Volt-ampere</span> SI unit of apparent power in an electrical circuit

The volt-ampere is the unit of measurement for apparent power in an electrical circuit. It is the product of the root mean square voltage and the root mean square current. Volt-amperes are usually used for analyzing alternating current (AC) circuits. In direct current (DC) circuits, this product is equal to the real power, measured in watts. The volt-ampere is dimensionally equivalent to the watt: in SI units, 1 V⋅A = 1 W. VA rating is most used for generators and transformers, and other power handling equipment, where loads may be reactive.

Ripple in electronics is the residual periodic variation of the DC voltage within a power supply which has been derived from an alternating current (AC) source. This ripple is due to incomplete suppression of the alternating waveform after rectification. Ripple voltage originates as the output of a rectifier or from generation and commutation of DC power.

In electronics or electrical engineering the form factor of an alternating current waveform (signal) is the ratio of the RMS value to the average value. It identifies the ratio of the direct current of equal power relative to the given alternating current. The former can also be defined as the direct current that will produce equivalent heat.

The root-mean-square deviation (RMSD) or root-mean-square error (RMSE) is either one of two closely related and frequently used measures of the differences between true or predicted values on the one hand and observed values or an estimator on the other.

In an electric power system, a harmonic of a voltage or current waveform is a sinusoidal wave whose frequency is an integer multiple of the fundamental frequency. Harmonic frequencies are produced by the action of non-linear loads such as rectifiers, discharge lighting, or saturated electric machines. They are a frequent cause of power quality problems and can result in increased equipment and conductor heating, misfiring in variable speed drives, and torque pulsations in motors and generators.

<span class="mw-page-title-main">Transimpedance amplifier</span> Amplifier that converts current to voltage

In electronics, a transimpedance amplifier (TIA) is a current to voltage converter, almost exclusively implemented with one or more operational amplifiers. The TIA can be used to amplify the current output of Geiger–Müller tubes, photo multiplier tubes, accelerometers, photo detectors and other types of sensors to a usable voltage. Current to voltage converters are used with sensors that have a current response that is more linear than the voltage response. This is the case with photodiodes where it is not uncommon for the current response to have better than 1% nonlinearity over a wide range of light input. The transimpedance amplifier presents a low impedance to the photodiode and isolates it from the output voltage of the operational amplifier. In its simplest form a transimpedance amplifier has just a large valued feedback resistor, Rf. The gain of the amplifier is set by this resistor and because the amplifier is in an inverting configuration, has a value of -Rf. There are several different configurations of transimpedance amplifiers, each suited to a particular application. The one factor they all have in common is the requirement to convert the low-level current of a sensor to a voltage. The gain, bandwidth, as well as current and voltage offsets change with different types of sensors, requiring different configurations of transimpedance amplifiers.

References

  1. 1 2 "Root-mean-square value". A Dictionary of Physics (6 ed.). Oxford University Press. 2009. ISBN   9780199233991.
  2. Thompson, Sylvanus P. (1965). Calculus Made Easy. Macmillan International Higher Education. p. 185. ISBN   9781349004874 . Retrieved 5 July 2020.[ permanent dead link ]
  3. Jones, Alan R. (2018). Probability, Statistics and Other Frightening Stuff. Routledge. p. 48. ISBN   9781351661386 . Retrieved 5 July 2020.
  4. Cartwright, Kenneth V (Fall 2007). "Determining the Effective or RMS Voltage of Various Waveforms without Calculus" (PDF). Technology Interface. 8 (1): 20 pages.
  5. Nastase, Adrian S. "How to Derive the RMS Value of Pulse and Square Waveforms". MasteringElectronicsDesign.com. Retrieved 21 January 2015.
  6. "Make Better AC RMS Measurements with your Digital Multimeter" (PDF). Keysight. Archived from the original (PDF) on 15 January 2019. Retrieved 15 January 2019.
  7. Chris C. Bissell; David A. Chapman (1992). Digital signal transmission (2nd ed.). Cambridge University Press. p. 64. ISBN   978-0-521-42557-5.
  8. Weisstein, Eric W. "Root-Mean-Square". MathWorld .
  9. "ROOT, TH1:GetRMS". Archived from the original on 2017-06-30. Retrieved 2013-07-18.