Integrating abs(x-y) over the unit square

  • Level: Undergrad 
  • Thread starter mnf
  • Start date
6 replies · 5K views · last reply
mnf
Messages
4
Reaction score
0
integrate:


∫01∫01 abs(x-y) dydx
 
Welcome to PF!

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


∫01∫01 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:
 
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∫01∫01 abs(x-y) dydx =1
 


mnf said:
integrate:


∫01∫01 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.