Average Value of f(x,y)=sin(x+y) Over a Rectangle

chevy900ss
Messages
16
Reaction score
0

Homework Statement



Find the average value of f(x,y)=sin(x+y) over the rectangle 0 ≤ x ≤ pi, 0 ≤ y ≤ pi.

Homework Equations


I need to know if this is the right answer please.


The Attempt at a Solution


I got 1/pi as a answer.
 
Physics news on Phys.org
You're not going to make us work this out, are you? Show us how you got it.
 
well i don't no how to show the symbols
 
Just click on the integral below, and a window will open with the LaTeX code. All you need to do is fill in where there are question marks.
For pi, use \pi. A is the area of your region. If you want to switch the order of integration, change the bottom limit from x to y and vice-versa, and switch the dx and dy.
\frac{1}{A}\int_{x = ?}^? \int_{y = ?}^? sin(x + y) dy~dx
 
\frac{1}{A}\int_{x = 0}^\pi \int_{y = 0}^\pi sin(x + y) dy~dx
 
yeah i can't figure out how to make it look like yours. It just stays in the formula form
 
chevy900ss said:
\frac{1}{A}\int_{x = 0}^\pi \int_{y = 0}^\pi sin(x + y) dy~dx
It needs to be inside [ tex] [ /tex] tags (without the space I added). Like so:
\frac{1}{A}\int_{x = 0}^\pi \int_{y = 0}^\pi sin(x + y) dy~dx

OK, so what do you get for the integral, and what do you get for A?
 
For A i get pi^2
 
the end integral i get
1/pi^2[-cosx-x(from 0 to pi)] which i get -1/pi
 
  • #10
chevy900ss said:

Homework Statement



Find the average value of f(x,y)=sin(x+y) over the rectangle 0 ≤ x ≤ pi, 0 ≤ y ≤ pi.

Homework Equations


I need to know if this is the right answer please.

The Attempt at a Solution


I got 1/pi as a answer.

I tried it and got 0. Can you show us what you got after evaluating the inner integral?

P.S. This is almost immediate if you use

\sin(x+y) = \sin(x)\cos(y) + \cos(x)\sin(y)

and break the integral into two parts, integrating the cosine term first in each case (trivial if you use symmetry).
 
Last edited:
  • #11
The area is correct, but I'm pretty sure you made an error in calculating the integral. How did you get -cosx -x?
 
  • #12
[math]
\frac{1}{pi^2}\int_0^pi\int_0^pi sin(x+y)dydx=\frac{1}{pi^2}\int_0^pi sin(x)[-cosy|_0^pi] dx=\frac{1}{pi^2}\int_0^pi (sinx-1)dx=\frac{1}{pi^2}[-cosx-x|_0^pi]=\frac{-pi}{pi^2}=\frac{-1}{pi}
[/math]
 
  • #13
<br /> \frac{1}{pi^2}\int_0^pi\int_0^pi sin(x+y)dydx=\frac{1}{pi^2}\int_0^pi sin(x)[-cosy|_0^pi] dx=\frac{1}{pi^2}\int_0^pi (sinx-1)dx=\frac{1}{pi^2}[-cosx-x|_0^pi]=\frac{-pi}{pi^2}=\frac{-1}{pi}<br />
 
  • #14
<br /> \frac{1}{\pi^2}\int_0^\pi\int_0^\pi sin(x+y)dydx=\frac{1}{\pi^2}\int_0^\pi sin(x)[-cosy|_0^\pi] dx=\frac{1}{\pi^2}\int_0^\pi (sinx-1)dx=\frac{1}{\pi^2}[-cosx-x|_0^\pi]=\frac{-\pi}{\pi^2}=\frac{-1}{\pi}<br />
 
  • #15
chevy900ss said:
<br /> \frac{1}{\pi^2}\int_0^\pi\int_0^\pi sin(x+y)dydx=\frac{1}{\pi^2}\int_0^\pi sin(x)[-cosy|_0^\pi] dx<br />

I'm not sure what you did in this step. Here is how I did it:

\begin{align*}\int_{0}^{\pi} \int_{0}^{\pi} \sin(x+y) dy dx<br /> &amp;= \int_0^{\pi}\int_{0}^{\pi} \sin x \cos y dy dx + \int_0^{\pi}\int_{0}^{\pi} \cos x \sin y dy dx \\<br /> &amp;= \int_0^\pi \sin x \left(\int_0^\pi \cos y dy \right) dx + \int_0^\pi \sin y \left(\int_0^\pi \cos x dx \right) dy \\<br /> &amp;= \int_0^\pi (\sin x) (0) dx + \int_0^\pi (\sin y) (0) dy \\<br /> &amp;= 0<br /> \end{align*}

You can also do it without using the trig identity; I highly recommend doing so. (The answer is still 0.)
 
  • #16
i see i was just no where near the right answer.
 
  • #17
chevy900ss said:
<br /> \frac{1}{\pi^2}\int_0^\pi\int_0^\pi sin(x+y)dydx=\frac{1}{\pi^2}\int_0^\pi sin(x)[-cosy|_0^\pi] dx<br />

Wait... are you assuming here that

\sin(x+y) = \sin(x) \sin(y)?

It seems that you are, but that's wrong. The inner integral should be

\int_0^\pi \sin(x+y) dy = [-\cos(x+y)]|_{y=0}^{y=\pi} = -\cos(x+\pi) + \cos(x) = \cos(x) + \cos(x) = 2\cos(x)

Now do the outer integral:

\frac{1}{\pi^2} \int_0^\pi 2 \cos(x) dx
 
Back
Top