# Homework Help: Multivariable Calc help

1. Jul 12, 2005

### cronxeh

Hey can you guys check my answer.

Question: Use the Divergence Theorem to calculate the Flux of the vector field F(x,y,z)=xi + y^2j - zk through the unit sphere centered at the origin with the outward orientation

Solution: div(F) = 1 + 2y - 1 = 2y
Flux = $$\int_{W} div(F) dV = \int_{0}^{1} \int_{0}^{1} \int_{0}^{1} 2y \ dxdydz = \int_{0}^{1} \int_{0}^{1} 2y \ dydz = \int_{0}^{1} 1 \ dz = 1$$

So for another method would I have to use $$r=x^2 + y^2 + z^2$$ obtain the $$dr=2x + 2y + 2z$$ and do $$\int_{R} F dr = \int_{S} (xi + y^2j -zk)(2x+2y+2z)dA=\int_{S} (2x^2 + 2y^3 - 2z^2)dA = \int_{0}^{1} \int_{0}^{1} 2/3 + 2y^3 - 2z^2 \ dydz = \int_{0}^{1} 2/3 + 1/2 - 2z^2 dz = 2/3 + 1/2 - 2/3 = \frac{1}{2}$$

Is this method incorrect or was the first one incorrect? Are they both wrong?

2. Jul 12, 2005

ermm... wouldn't it be easiest to use spherical coordinates?

edit: and in that second method, why are you calculating a line integral?

gauss' theorem doesn't have line integrals in there at all.

look up what gauss' theorem tell you...

i imagine you wanted to solve the problem the easy (integrating the divergence) way and the harder (what integrating the divergence is equal to ) way.

Last edited: Jul 12, 2005
3. Jul 12, 2005

yeah, the way you have written the limits of integration, you are taking the divergence of that vector field through the unit cube in your first method. (haven't bothered with your second method--get your first one fixed!)

4. Jul 12, 2005

### Hurkyl

Staff Emeritus
Do you have any idea what regions you're supposed to be integrating over, for either calculation?

5. Jul 12, 2005

and is it just me or is he trying to use stokes' theorem in that second attempt?

edit: no...closer look tells me that... it's not even that.

your second method is way off base.

look back at your textbook and see the two ways of calculating flux.

Last edited: Jul 12, 2005
6. Jul 12, 2005

### Hurkyl

Staff Emeritus
The second method is surely supposed to be the definition of flux: $\iint_{\delta R} \vec{F} \cdot \hat{n} \, dA$.

7. Jul 12, 2005

yeah, that's the other--probably harder--way to do the problem. except... it looks like he was trying to use a line integral or...something.

8. Jul 12, 2005

### cronxeh

Ok I just realized my mistake for divergence method ( I hope )

div F = 2y

Should the flux be: $$\int_{W} div(F) \ dV =$$

$$\int_{-1}^{1} \int_{-sqrt(1-x^2)}^{sqrt(1-x^2)} \int_{-sqrt(1-x^2-y^2)}^{sqrt(1-x^2-y^2)} 2y \ dzdydx$$

9. Jul 12, 2005

### cronxeh

And in spherical coordinates:

Flux = $$\int_{0}^{2pi} \int_{0}^{pi} \int_{0}^{1} 2y \ p^2 \ sin(phi) \ dp \ dphi \ dtheta$$

10. Jul 12, 2005

### Hurkyl

Staff Emeritus
Yah, but don't forget you should convert y to spherical coordinates too.

11. Jul 12, 2005

### cronxeh

that would be 2y ->> 2(p)sin(theta)sin(phi) ?

12. Jul 12, 2005

### HallsofIvy

Because in spherical coordinates

x= &rho;cos&theta;sin&phi;
y= &rho;sin&theta;sin&phi;
z= &rho;cos&phi;

13. Jul 12, 2005