Thread Closed

Help with change of variables please

 
Share Thread
Mar4-05, 11:45 AM   #1
 

Help with change of variables please


I'm trying to evaluate the double integral

[tex]\int \int \sqrt{x^2 + y^2} \, dA[/tex] over the region R = [0,1] x [0,1]
using change of variables


Now I know polar coordinates would be the most efficient way, and thus I could say r= [tex] \sqrt{x^2 + y^2} [/tex] . Is this legal to use polar coordinates when doing change of variables? So if I do it this way, would I integrate from theta goes from 0 to 2pi and then r goes from 0 to 1?
I'm utterly confused. Anyone able to help me out a bit? Thanks
PhysOrg.com science news on PhysOrg.com

>> New language discovery reveals linguistic insights
>> US official: Solar plane to help ground energy use (Update)
>> Four microphones, computer algorithm enough to produce 3-D model of simple, convex room
Mar4-05, 12:03 PM   #2
 
or would I just set u = x^2 and v = y^2 ....and then take the jacobian of the transformation and then set up the integral?
Mar4-05, 01:08 PM   #3
 
lol dang...must be a slow day around here? :(

Well, after fooling around, I've got an answer. I set u = x^2, v =y^2, and then calculated the jacobian of T which was 1. The image transformation limits of integration for u and v turned out to be the same [0,1] x [0,1]

So I did the following calculation (both integrals going from 0 to 1)

[tex]\int \int \sqrt{u + v} * (1) dudv[/tex]

which resulted in a value of roughly 3.238.

Does my logic and answer seem sound here? Thanks in advance.
Mar4-05, 01:50 PM   #4
 
Recognitions:
Gold Membership Gold Member
Science Advisor Science Advisor
Retired Staff Staff Emeritus

Help with change of variables please


I doubt that you will find that polar coordinats ARE particularly suitable. The crucial point is that the area you are integrating over is a square, not a disk.

It's not all that difficult to integrate in x,y. Integrating first with respect to y, let
y/x= tan(θ) Then x2+ y2= x2(1+ (y/x)2)= x2(1+ tan2(x))= x2sec2(\theta) so that
[tex]\sqrt{x2+ y2}= xsec(\theta)[/tex]
Mar4-05, 02:08 PM   #5
 
Quote by HallsofIvy
I doubt that you will find that polar coordinats ARE particularly suitable. The crucial point is that the area you are integrating over is a square, not a disk.

It's not all that difficult to integrate in x,y. Integrating first with respect to y, let
y/x= tan(θ) Then x2+ y2= x2(1+ (y/x)2)= x2(1+ tan2(x))= x2sec2(\theta) so that
[tex]\sqrt{x2+ y2}= xsec(\theta)[/tex]
Thanks very much HallsofIvy for your reply. I would have simply integrated with respect to x and y, but I specifically have to integrate using change of variables. I did so, as I mentioned above, by doing the following:

I set u = x^2, v =y^2, and then calculated the jacobian of T which was 1. The image transformation limits of integration for u and v turned out to be the same [0,1] x [0,1]

So I did the following calculation (both integrals going from 0 to 1)

[tex]\int \int \sqrt{u + v} * (1) dudv[/tex]


which resulted in a value of roughly 3.238.

Turned about to be actually a much cleaner calculation than simply doing it with respect to x and y, but I just wondered if I got the correct answer.

Does my logic and answer seem sound here? Thanks again
Mar4-05, 02:46 PM   #6
 
Quote by ninjacookies
Thanks very much HallsofIvy for your reply. I would have simply integrated with respect to x and y, but I specifically have to integrate using change of variables. I did so, as I mentioned above, by doing the following:

I set u = x^2, v =y^2, and then calculated the jacobian of T which was 1. The image transformation limits of integration for u and v turned out to be the same [0,1] x [0,1]

So I did the following calculation (both integrals going from 0 to 1)

[tex]\int \int \sqrt{u + v} * (1) dudv[/tex]


which resulted in a value of roughly 3.238.

Turned about to be actually a much cleaner calculation than simply doing it with respect to x and y, but I just wondered if I got the correct answer.

Does my logic and answer seem sound here? Thanks again
Hi Ninja,
Two things, the first is that you should be aware your transformation is not globally invertible; however, it does happen to be invertible over your region of integration. The next thing is that the Jacobian for your integral is not 1, it is the messy [tex]dx\wedge dy = d(\sqrt{u})\wedge d(\sqrt{v}) = \frac{du}{2\sqrt{u}}\wedge\frac{dv}{2\sqrt{v}} = \frac{du dv}{4\sqrt{uv}}[/tex] which makes the integral much more complicated.
Getting your integral in polar coordinates is actually not that difficult (just refer to the trigonometry of the situation, breaking the square into two triangles). Integrating in polar coordinates, I get something much less than 3.238.
Mar4-05, 03:48 PM   #7
 
Quote by hypermorphism
Hi Ninja,
Two things, the first is that you should be aware your transformation is not globally invertible; however, it does happen to be invertible over your region of integration. The next thing is that the Jacobian for your integral is not 1, it is the messy [tex]dx\wedge dy = d(\sqrt{u})\wedge d(\sqrt{v}) = \frac{du}{2\sqrt{u}}\wedge\frac{dv}{2\sqrt{v}} = \frac{du dv}{4\sqrt{uv}}[/tex] which makes the integral much more complicated.
Getting your integral in polar coordinates is actually not that difficult (just refer to the trigonometry of the situation, breaking the square into two triangles). Integrating in polar coordinates, I get something much less than 3.238.

Thanks very much hypermorphism, and THANKS for catching my fatal flaw with the Jacobian computation...wow was I ever off. I'm just completely lost at this point. I don't really know what you mean by splitting the square into two triangles...I mean I literally know what you're talking about but I don't see how that would help any with doing polar coordinates.

I also have no clue what to do as far as polar coordinates...do you mean, can I just take

r= [tex] \sqrt{x^2 + y^2} [/tex] ? If so, how would I integrate ?

[tex] \int \int \ r * |jacobian| r drd \theta[/tex] And the area of integration would be from 0 to 2pi and then....


ah geez I'm completely lost and desperate for help...any pointers would be greatly appreciate thanks!
Mar4-05, 04:06 PM   #8
 
Blog Entries: 9
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
It can't be done in polar coordinates,as Halls explained and as it is pretty obvious by a drawing,the square [0,1]*[0,1] is not a circle of radius 1...

Daniel.
Mar4-05, 04:09 PM   #9
 
Quote by ninjacookies
... can I just take

r= [tex] \sqrt{x^2 + y^2} [/tex] ? If so, how would I integrate ?

[tex] \int \int \ r * |jacobian| r drd \theta[/tex] And the area of integration would be from 0 to 2pi and then....
Draw the square [0,1]x[0,1]. The radius' lower bound for our integral is 0 so we needn't worry anymore about it. The radius' upper bound is going to sweep from (let t=theta) t=0 to t=pi/2. Note that there is a break at t=pi/4 (when the radius is the diagonal of the square). So we shall split our integral at that break and sum the areas of the resulting two triangles.
First we do the lower triangle. Draw a sample radius from the origin to a point on the boundary of the lower triangle. You get a right triangle, and get the relation cos(t) = 1/r, or r = sec(t). For our lower triangle, we then have the integral:
[tex]\int_0^{\frac{\pi}{4}} \int_0^{\sec\theta} r^2 dr d\theta[/tex]
The integrand r^2 is the transformation of [tex]\sqrt{x^2+y^2}=r[/tex] multiplied by the Jacobian [tex]rdrd\theta[/tex].
You can get the bounds for the upper triangle (where t varies from t=pi/4 to t=pi/2) similarly. It's cute that sec(t) and csc(t) are straight orthogonal lines in polar coordinates.
Mar4-05, 04:11 PM   #10
 
Quote by dextercioby
It can't be done in polar coordinates,as Halls explained and as it is pretty obvious by a drawing,the square [0,1]*[0,1] is not a circle of radius 1...

Daniel.

Sorry, I'm being hardheaded. :( I'm just getting these conflicting reports that it wouldn't be 'that hard' to convert to polar coordinates, and now I hear it can't be done at all. So does that mean my original method setting u=x^2 and v=y^2 is the most efficient way? Or are there alternative(s)?
Mar4-05, 04:16 PM   #11
 
Quote by dextercioby
It can't be done in polar coordinates...
Do you just mean it's nontrivial, because the transformation is pretty straightforward.
Mar4-05, 04:23 PM   #12
 
Blog Entries: 9
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
What...?No,the 1/4 of the circle of radius 1 in the 1-st quadrant does not cover the whole are of the square [0,1]*[0,1]...

Daniel.
Mar4-05, 04:23 PM   #13
 
Quote by hypermorphism
Draw the square [0,1]x[0,1]. The radius' lower bound for our integral is 0 so we needn't worry anymore about it. The radius' upper bound is going to sweep from (let t=theta) t=0 to t=pi/2. Note that there is a break at t=pi/4 (when the radius is the diagonal of the square). So we shall split our integral at that break and sum the areas of the resulting two triangles.
First we do the lower triangle. Draw a sample radius from the origin to a point on the boundary of the lower triangle. You get a right triangle, and get the relation cos(t) = 1/r, or r = sec(t). For our lower triangle, we then have the integral:
[tex]\int_0^{\frac{\pi}{4}} \int_0^{\sec\theta} r^2 dr d\theta[/tex]
You can get the bounds for the upper triangle (where t varies from t=pi/4 to t=pi/2) similarly. It's cute that sec(t) and csc(t) are straight orthogonal lines in polar coordinates.

Thank you SO much hypermorphism! Wow, you seem to have this stuff down pat. Impressive! I'm still a bit lost as to the orientation of the triangles...are you drawing the triangle from (0,0) to (1,1) and splitting the box that way...or what orientation are you splitting it from? I'm just trying to get a better visual feel of what you are trying to convey.

So for the upper triangle I would just do the following

[tex]\int_{\frac{\pi}{4}}^{\frac{\pi}{2}} \int_0^{\csc\theta} r^2 dr d\theta[/tex]

Or maybe that is a bit off. I think it'll all come together once I get a feel for the graph of the situation. Thanks again!
Mar4-05, 04:25 PM   #14
 
Quote by dextercioby
What...?No,the 1/4 of the circle of radius 1 in the 1-st quadrant does not cover the whole are of the square [0,1]*[0,1]...

Daniel.
Of course not. That's the lower triangle. The upper triangle is from pi/4 to pi/2 and integrates csc(t). I had to let the original poster do *some* work at creating the bounds, or they won't understand the change fully.
Mar4-05, 04:31 PM   #15
 
Blog Entries: 9
Recognitions:
Homework Helper Homework Help
Science Advisor Science Advisor
Which lower triangle are u talking about...?The one with a 1/4 of a circle as a curved side...?

Daniel.
Mar4-05, 04:36 PM   #16
 
Quote by ninjacookies
I'm still a bit lost as to the orientation of the triangles...are you drawing the triangle from (0,0) to (1,1) and splitting the box that way...or what orientation are you splitting it from?
Polar coordinates have a variable radius tethered to the origin that holds angle t with the positive x-axis (in reference to Cartesian coordinates). Thus the triangles are formed by the line connecting (0,0) and (sqrt(2), pi/4) in polar coordinates, or in Cartesian the line formed by (0,0) and (1,1).
Quote by ninjacookies
So for the upper triangle I would just do the following

[tex]\int_{\frac{\pi}{4}}^{\frac{\pi}{2}} \int_0^{\csc\theta} r^2 dr d\theta[/tex]
Yep.
Mar4-05, 04:38 PM   #17
 
Quote by dextercioby
Which lower triangle are u talking about...?The one with a 1/4 of a circle as a curved side...?

Daniel.
No, that would be
[tex]\int_0^\frac{\pi}{4} \int_0^1 r dr d\theta[/tex]
You do realize that the graph of [tex]r=\sec\theta[/tex] is a straight line in polar coordinates ?
Note that the volume of the triangle
[tex]\int_0^1 \int_0^x dy dx =\frac{1}{2}[/tex]
is easily translated to polar coordinates
[tex]\int_0^{\frac{\pi}{4}} \int_0^{\sec\theta} r dr d\theta = \frac{1}{2}[/tex]
Thread Closed

Similar Threads for: Help with change of variables please
Thread Forum Replies
3D Change of Variables Calculus & Beyond Homework 2
Change of variables Calculus & Beyond Homework 4
change of variables Calculus & Beyond Homework 4
Change of Variables Calculus & Beyond Homework 1
change of variables Introductory Physics Homework 9