Mastering Electronics Design
Mastering Electronics Design
Mastering Electronics Design
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
Related Posts
1. How to Derive the RMS Value of Pulse and Square Waveforms
2. How to Derive the RMS Value of a Trapezoidal Waveform Part 1
3. How to Derive the RMS Value of a Triangle Waveform
4. How to Calculate the RMS Value of an Arbitrary Waveform
Books I recommend
Data Conversion
Handbook
Analog Devices Inc...
Privacy Information
M y comment: Great book to learn ADCs and DACs from the people who design them at Analog Devices. It covers the ADCs and DACs
technologies, how to choose them for your design, and explains in detail their specifications.
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
1/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
ROHM/
SiC Power
Module
1200V/180Arated SiC MOS
module SW
frequencies
over 50kHz
supported
RMS
Sine Wave
Square Root
2/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
Sites I follow
EDN Design Ideas
Analog Devices
New Products at Texas Instruments
Linear Technology Corporation
EEWeb
Electronic Products
Ads by Google
45 Comments
Subscribe
I noticed a question posted on one of Yahoos Q&A sites, asking what is the RMS value of a sine wave with a DC offset. The chosen
answer as being the best was actually wrong. The next comment, which was trying to correct the best answer, was wrong too. I am
not going to post the Yahoo link here. What I can do, is to show how to derive the RMS value of such waveform.
Lets derive first the RMS value of a sine wave with no DC offset
Lets start with the RMS value of a sine wave, with no DC offset, which is shown in Figure 1. It is well known that the RMS value of a
sine wave is 0.707 times the signal peak level, but how can you prove this?
Figure 1
As shown in this article, MasteringElectronicsDesign.com: How to Derive the RMS Value of a Trapezoidal Waveform, or other RMS
articles in this website , lets start with the RMS definition.
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
3/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
(1)
The sine wave time dependency can be described by the following function:
(2)
T is the function period, or T = 1/f where f is the waveform frequency. Also, a1 is the amplitude.
Replacing (2) in (1), and calculating the integral over a full period T, we find the RMS value squared as in the following equation:
(3)
The standard method to calculate a squared sine integral is to transform it into its double angle equivalent, using a trigonometric identity
usually called the power-reduction formula.
(4)
So the RMS squared becomes
(5)
If youre wandering why the sine term is zero in the previous equation, thats because
(6)
Therefore, the RMS value of a sine wave with offset zero is the following well known formula,
(7)
4/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
Figure 2
Now, lets look at a sine wave with a DC offset. This waveform is shown in Figure 2 and is described by the following function.
(8)
where with a0 I noted the DC offset. Applying the RMS definition, the RMS squared can be written as:
(9)
Lets calculate the integral.
(10)
(11)
(12)
(13)
(14)
Therefore, the RMS value of a sine wave with a DC offset is given by the following expression.
(15)
The immediate verification of the validity of this expression is the RMS value of a sine wave with zero DC offset. Indeed, when a0 = 0
V, the RMS level reverts back to equation (7), which is 0.707 of the sine amplitude.
Expression (15) can also be verified by comparing it with Parsevals Theorem. This theorem says that the integral of the square of a
function is equal with the integral of the squared components of its spectrum. In effect, the theorem states that the total energy of a
waveform can be found in the total energy of the waveforms Fourier components. In our case, a0 is the DC level, or the frequency zero
component, and a1 is the fundamental frequency. There are no other Fourier components. As such, the RMS value of a sine wave with
a DC offset as given by expression (15) is correct.
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
5/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
Like 86 people like this. Sign Up to see w hat your friends like.
My Interview in EEWeb
45 Comments to How to Derive the RMS Value of a Sine Wave with a DC Offset
1. Brian Coode says:
April 6, 2012 at 1:44 pm
Helped me refresh some theory
Reply
Adrian S. Nastase says:
June 24, 2012 at 6:17 pm
Glad to hear that. Come back soon.
Reply
vishnu says:
June 25, 2015 at 3:18 am
Sine wave having rms value =100v is superimposed with 50 v DC supply ?
Reply
Adrian S. Nastase says:
June 25, 2015 at 6:16 am
You need to reformulate your question. I do not understand what is it that you are asking.
Reply
2. David says:
April 18, 2012 at 11:32 am
So do True RMS multimeters read this value correctly if there is a DC offset on a sine wave or are they really AC coupled
and read the RMS value of the AC component only? If I owned a true RMS meter, I would try it myself but alas, I dont.
Reply
Adrian S. Nastase says:
June 24, 2012 at 6:15 pm
You need to check the datasheet of the multimeter. Not all of them are capable of measuring the RMS value of an AC
signal riding on a DC level. I would not take that for granted, even if it says true RMS measurement. Most manufacturers
will make sure to write this capability in the multimeter feature list.
Reply
3. Tom - houston samsung repair says:
August 2, 2012 at 9:23 pm
I was highly skilled in Math in a previous life. Ever since then, I forgot most of my teachings. After reading this article, my
memory gradually began to be refreshed. Thank you.
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
6/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
Reply
4. Theo says:
August 25, 2012 at 7:43 am
Thanks, correct apart from the last line! Either u-squared OR root the RHS!
Reply
Adrian S. Nastase says:
August 25, 2012 at 6:44 pm
Thank you for seeing that typo. I fixed it.
Reply
5. ashish says:
August 25, 2012 at 2:45 pm
infinite thanks sir,specially why the sine term becomes zero,I searched lot on that yours explanation is best.
Reply
6. Javed Bukhari says:
September 13, 2012 at 4:57 pm
RMS really points to the heating enregy present in any waveform. So be it Sine wave or DC voltage riding on it irrespective of
the polority of any component the final effect of all the components is governned by superposition theorm, provided the effective
bandwidth is infinite or close to it.
Reply
7. Jessie M says:
September 20, 2012 at 4:16 am
Excellent article, sir and thank you for this website.
Reply
8. DRB says:
October 3, 2012 at 7:20 pm
For the purposes of an actual answer, doesnt a1 need to be the peak of the non offset sinusoid, not the peak of the shifted
sinusoid(as shown in your figure 2)?
Reply
Adrian S. Nastase says:
October 4, 2012 at 7:25 pm
Yes, that is the case, as figure 1 shows. Ill make sure to make it clearer on figure 2 by adding/subtracting a1 from offset.
Thank you for your comment.
Reply
9. J. Hu says:
November 7, 2012 at 2:14 pm
I just calculate the RMS value using integration method, by hand, immediately after I saw this title and then scroll to the bottom of
your article to check whether Ive a correct answer. But when spectrum power shows, I realize I wasted my time,
Reply
Adrian S. Nastase says:
November 8, 2012 at 6:00 am
Sure, you do not need to start with the integral, unless you want to verify my calculations. It is, indeed, a waste of time.
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
7/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
8/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
calculate the average of the signal. In case of a simple sine wave the average is 0. If the sine wave has a DC offset as in
this article, the average value is the DC offset.
Reply
13. Stefan says:
April 4, 2013 at 2:59 pm
Thank you.
Reply
14. Daniel says:
November 26, 2013 at 5:10 pm
Thanks very much, but I have one question that keeps bugging me.
Why is the RMS calculated as the sqrt of the avg of the squares as oppose to the avg of the sqrt of the squares.
In other words why use sqrt((1/n)*(x1^2+x2^2..xn^2))
Why not use (1/n)*(sqrt(x1^2)+sqrt(x2^2).sqrt(xn^2))
Reply
Adrian S. Nastase says:
November 26, 2013 at 9:29 pm
sqrt(x1^2) = x1, right? So, in effect, you want to use the signal average (1/n)(x1 + x2 ++ xn) to calculate the RMS,
which is not correct. RMS represents power. Therefore, first calculate the sum of each component power. Once the
power is calculated perform a square root of this sum to calculate the actual voltage.
Reply
Daniel says:
November 27, 2013 at 8:55 am
Ok, so if x^2 is the power of the signal and you get them mean of x^2 ie the mean of the power than why do we
than take the sqrt of the mean.
Thanks
Reply
Adrian S. Nastase says:
November 29, 2013 at 1:51 am
Because the mean of xk^2 results in Volts to the power of two, which is equivalent with Watts, the units of
power. So, to bring this back to rms voltage, you need to perform the square root of the result.
Reply
15. Pradeep says:
December 8, 2013 at 9:45 am
Very convincing and clear explanation. Thank you very much!
Extending this idea, the RMS of a waveform made by summing known simple waveforms has an RMS that is the square root of
the sum of the squares of the component RMS values if the component waveforms are orthogonal.
Reply
Adrian S. Nastase says:
December 9, 2013 at 6:35 am
Correct. That will be the subject of another article. Thank you for your comment.
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
9/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
Reply
Thomas Groover says:
July 22, 2014 at 9:24 pm
This article is very good and another article can generalize the results illustrated by the following example with the
necessary proofs.
If two time functions x and y are absolutely uncorrelated (r[xy] = 0) then the rms value of their sum can be found in the
way so described above.
If two time functions x and y are absolutely correlated (r[xy] = 1) then the rms value of their sum can be found as the linear
sum of the two rms values of x and y.
If two time functions x and y are partially correlated (e.g. r[xy] = .5) then the rms value of their sum can be found as the
linear sum of the two rms values calculated in the two cases above divided by two for r[xy] = .5
Reply
Thomas Groover says:
July 22, 2014 at 9:31 pm
Should add the qualification: the two time functions x and y are what we call in EE power signals, existing for
extended time.
Reply
Adrian S. Nastase says:
July 23, 2014 at 8:34 pm
Thank you Thomas. Great input.
Reply
16. aravind bose says:
January 31, 2014 at 2:04 pm
helped a lot
Reply
17. NASA says:
August 6, 2014 at 11:53 am
Great contribution, Adrian.
Back to the the top and your clear derivation of the rms of a constant dc+sine wave. Now, can I still use equation 15 when my
dc term ao is a decaying exponential ie ao = e^(-t/Tau)? I guess yes giving a rms value that is depends on time instant t. Am I
correct?
My second question is: my sine wave is now multiplied by a decaying exponential term like ao above giving u(t) = e^(-t/T) x
sin((wt). Again my intuition tells me the rms must also reduce with time ie must be a function of time instant t but what would the
rms equation be?
Reply
Adrian S. Nastase says:
August 9, 2014 at 5:52 pm
From your description it looks like your signal in both cases is aperiodic. So, equation 15 does not apply. You can still
calculate the RMS if you take a window of the signal and apply the Fourier transform. Then calculate the RMS with the
square root of the sum of squares of the Fourier components.
Reply
NASA says:
August 9, 2014 at 9:05 pm
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
10/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
11/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
Leave a Comment
Name (required)
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
12/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
Submit Comment
Search
Home
About me
Contact
Why this website?
It's an Analog World by Design
How to Apply Thevenins Theorem Part 2. Nested Thevenin Sources Method
Recent Posts
Why is the Op Amp Gain-Bandwidth Product Constant?
How to Calculate the RMS Value of an Arbitrary Waveform
Design a Unipolar to Bipolar Converter the Easy Way with Microsoft Mathematics
Tenma 72-7745 Multimeter Review
Open-loop, Closed-loop and Feedback Questions and Answers
How to Derive the RMS Value of a Sine Wave with a DC Offset
My Interview in EEWeb
Most Popular
How to Derive the RMS Value of Pulse and Square Waveforms
How to Derive the RMS Value of a Sine Wave with a DC Offset
How to Derive the RMS Value of a Triangle Waveform
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
13/14
6/23/2016
MasteringElectronicsDesign.com : How to Derive the RMS Value of a Sine Wave with a DC Offset
Categories
Analog Design
Calculators
Differential Amplifier
Education
Electronic Circuits Examples
Mixed-Signal Design
Operational Amplifier Formulas
Opinion
Power Supply
RMS
Summing Amplifier
Superposition Theorem
Thevenin's Theorem
Transistor Circuits
Waveforms
Recent Comments
Adrian S. Nastase on Design a Bipolar to Unipolar Converter to Drive an ADC
R19 on Design a Bipolar to Unipolar Converter to Drive an ADC
Adrian S. Nastase on The Non-Inverting Amplifier Output Resistance
Adrian S. Nastase on Design a Bipolar to Unipolar Converter to Drive an ADC
chia on The Non-Inverting Amplifier Output Resistance
Adrian S. Nastase on How to Derive the Instrumentation Amplifier Transfer Function
Adrian S. Nastase on The Differential Amplifier Common-Mode Error Part 2
Adrian S. Nastase on Design a Unipolar to Bipolar Converter for a Unipolar Voltage Output DAC
Ricky on The Differential Amplifier Common-Mode Error Part 2
Ricky on How to Derive the Differential Amplifier Transfer Function
http://masteringelectronicsdesign.com/how-to-derive-the-rms-value-of-a-sine-wave-with-a-dc-offset/
14/14