MHB What is the Derivation of the Average Value of a Waveform Using Calculus?

Click For Summary
The discussion focuses on deriving the average value of a waveform using calculus, specifically for a sine function with an offset. The average value formula is established as M = (1/(b-a)) ∫[a to b] f(x) dx, leading to M = B when applied over one period of the sine function. The areas above and below the offset B are explained as canceling each other out, resulting in the total area being equivalent to that of a rectangle with height B. A participant seeks clarification on the cancellation of areas due to the offset, prompting further explanation of how the areas are calculated over the intervals. The conversation concludes with a confirmation that the participant's understanding of the area calculations is correct.
bergausstein
Messages
191
Reaction score
0
Hello.

I was having a hard time determining how the formula for the average value of the waveform can be achieved.

I've read that the ave since the waveform is symmetric is (Imin+Imax)/2. I want to know how to derive it using calculus.
Thanks.
 

Attachments

  • triangle-offset.gif
    triangle-offset.gif
    837 bytes · Views: 109
Physics news on Phys.org
The average value $M$ of a function $f(x)$ over some interval $[a,b]$ where $a<b$ is given by:

$$M=\frac{1}{b-a}\int_a^b f(x)\,dx$$

Suppose we use a sine function of the form:

$$f(x)=A\sin(x)+B$$

Now, over one period from $0\le x\le2\pi$, we see that the area above (in red) $y=B$ is equal to the area below (in green):

View attachment 6550

And so we may state (without having to actually do any calculus):

$$\int_0^{2\pi} A\sin(x)+B\,dx=2\pi B$$

We are stating in effect that the integral is equal to the area of a rectangle having base $2\pi$ and height $B$, because the area above and the area below cancel each other out, that is, they add to zero.

And so the average value of the function is given by:

$$M=\frac{1}{2\pi-0}\int_0^{2\pi} A\sin(x)+B\,dx=\frac{2\pi B}{2\pi}=B$$

Now, we know:

$$f_{\max}=B+A$$

$$f_{\min}=B-A$$

And so we could write:

$$M=B=\frac{B+A+B-A}{2}=\frac{f_{min}+f_{max}}{2}$$
 

Attachments

  • wave_average.png
    wave_average.png
    4.8 KB · Views: 130
MarkFL said:
We are stating in effect that the integral is equal to the area of a rectangle having base $2\pi$ and height $B$, because the area above and the area below cancel each other out, that is, they add to zero.

Hello MarkFL! I kind of find it difficult to understand why the area in effect is equal to the area of a rectangle? And also the part where the area above and below cancel each other? Because in your graph it has an offset of B. As I understand it, they will only cancel each other if there was no offset B. meaning the upper part of the graph is above the x-axis and the lower part is below the x-axis and if we add them together we get zero. because they have equal but opposite value. Please, if you have time, elaborate it for me. THANKS!
 
bergausstein said:
Hello MarkFL! I kind of find it difficult to understand why the area in effect is equal to the area of a rectangle? And also the part where the area above and below cancel each other? Because in your graph it has an offset of B. As I understand it, they will only cancel each other if there was no offset B. meaning the upper part of the graph is above the x-axis and the lower part is below the x-axis and if we add them together we get zero. because they have equal but opposite value. Please, if you have time, elaborate it for me. THANKS!

Well, think of it this way:

Consider first only from $x=0$ to $x=\pi$. The area $A_1$ under the curve is equal to the area of the rectangle with base $\pi$ and height B PLUS the area in red, which we'll call $C$...and so this area is:

$$A_1=B\pi+C$$

Now consider only from $x=\pi$ to $x=2\pi$. The area $A_2$ under the curve is equal to the area of the rectangle with base $\pi$ and height B MINUS the area in green, which we'll also call $C$...and so this area is:

$$A_2=B\pi-C$$

And so, we may write:

$$\int_0^{2\pi} A\sin(x)+B\,dx=A_1+A_2=(B\pi+C)+(B\pi-C)=2\pi B$$

Does this make sense?
 
Hello again! I tried to make a picture out of what you have explained. Please check if I'am on the right track here.

View attachment 6554$B\pi$ the area of rectangle in blue. $C$ is the red/green area
$B(2\pi-\pi)-C$ the area of brown part.
 

Attachments

  • mathelp.png
    mathelp.png
    1.5 KB · Views: 109
bergausstein said:
Hello again! I tried to make a picture out of what you have explained. Please check if I'am on the right track here.

$B\pi$ the area of rectangle in blue. $C$ is the red/green area
$B(2\pi-\pi)-C$ the area of brown part.

Yes...that's good. :D
 
Thread 'Problem with calculating projections of curl using rotation of contour'
Hello! I tried to calculate projections of curl using rotation of coordinate system but I encountered with following problem. Given: ##rot_xA=\frac{\partial A_z}{\partial y}-\frac{\partial A_y}{\partial z}=0## ##rot_yA=\frac{\partial A_x}{\partial z}-\frac{\partial A_z}{\partial x}=1## ##rot_zA=\frac{\partial A_y}{\partial x}-\frac{\partial A_x}{\partial y}=0## I rotated ##yz##-plane of this coordinate system by an angle ##45## degrees about ##x##-axis and used rotation matrix to...

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
6
Views
2K
Replies
3
Views
2K
Replies
1
Views
5K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K