Integrating abs(x-y) over the unit square

  • Context: Undergrad 
  • Thread starter Thread starter mnf
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 5K views
mnf
Messages
4
Reaction score
0
integrate:


0101 abs(x-y) dydx
 
Physics news on Phys.org
Welcome to PF!

Hi mnf! Welcome to PF! :smile:
mnf said:
integrate:


0101 abs(x-y) dydx


(no need to shout! :rolleyes:)

Hint: split the integral into two regions, one with x > y, and one with x < y. :wink:
 


I don't know how ,please explain it
 
Instead of one integral, with limits 0 ≤ x ≤ 1 and 0 ≤ y ≤ 1 (which is a square),

split the square into two regions, one with x < y, and one with x > y,

and then use two integrals, one for each region.
 


i want to get answer in closed form
because question is
find B value

B∫0101 abs(x-y) dydx =1
 


If I didn't know better, I'd think you want us to solve it for you!
 


mnf said:
integrate:


0101 abs(x-y) dydx

If you honestly do not know what the absolute value of a number is, which is what you appear to be saying, you have no hope of doing this problem. Talk to your teacher about it!

If you do know the absolute value function then you know that |x- y|= x- y as long as [itex]x\ge y[/itex] and |x-y|= y- x if x< y. The region [itex]0\le x\le 1[/itex], [itex]0\le y\le 1[/itex] is a square. [itex]x\ge y[/itex] below the diagonal from (0, 0) to (1, 1) and y> x above the diagonal. Integrate those two separately and add.