# Homework Help: Electromagnetism: Gauss's Law

1. Sep 27, 2011

### wolski888

1. The problem statement, all variables and given/known data
Consider an infinitely long charged cylinder of radius R, carrying a charge whose density varies with radius as ρ(r) = ρ$_{o}$ r. Derive expressions for the electric field (a) inside the cylinder (i.e. r<R), and (b) outside the cylinder (i.e. r>R).

2. Relevant equations
Gauss's Law
q=$\rho$ $\delta$$\tau$

3. The attempt at a solution
(a) E inside cylinder
I sketched a Gaussian surface inside of the cylinder.
I believe that E is parallel to ds ( $\vec{E}$||d$\vec{s}$ )
So, gauss's law becomes E$\oint$ds = q/$\epsilon$ for the side

I believe the integral of ds is 2$\pi$ r L (L being the length of the cylinder even though it is infinite.
And q = ρ$_{o}$ r $\pi$ r$^{2}$ L
derived from q=$\rho$ $\delta$$\tau$

So we have E (2$\pi$ r L) = ρ$_{o}$ r $\pi$ r$^{2}$ L /$\epsilon$
Simplifying to E = ρ$_{o}$ r$^{2}$/ 2$\epsilon$

Is this correct for (a)?
And for (b) would it be the same idea but with a gaussian surface outside of R?

Thanks!

2. Sep 30, 2011

### collinsmark

I responded to this in your other thread, but I'll repeat here for completeness.
So close! Try the final simplification once more. I think you forgot to cancel something out.
Yes. The trick is to just be careful about determining q. When outside the cylinder, is the total charge q within the Gaussian surface a function of r or a function of R?

=====================
Edit:

I think I see the problem now. Take another look at what I've highlighted in red:

Last edited: Sep 30, 2011
3. Sep 30, 2011

### wolski888

Thanks for the post!
I don't know what is wrong with the 'r'. Are you saying it should not be there? But, ρ(r) = ρ$_{o}$ r. So I put in the 'r'. Hmm are you saying that $\delta$$\tau$ is equal to: $\pi$ r L?

4. Sep 30, 2011

### collinsmark

Actually, let me give you a better hint than my previous one (admittedly, it probably wasn't a very useful hint).

Evaluate q again. I think you pulled an r out from under the integral sign when you shouldn't have.

dq = ρ dL dr rdθ

Where

ρ = ρ0r

Remember, ρ is a function of r so you can't pull it out from under the integral. You can pull ρ0 out, but not ρ. (i.e., make sure you substitute ρ0r in for ρ *before* you integrate.

Last edited: Sep 30, 2011
5. Sep 30, 2011

### flyingpig

Where did you get delta from?

For (a)

$$Q_{en} = 2 \pi \rho_0 \ell \int_{0}^{R} r^2 dr$$

Do you see why it is from 0 to R?

6. Sep 30, 2011

### wolski888

I will give it a shot tomorrow (its 12am here...)

flyingpig, who is the question directed to?

7. Sep 30, 2011

### flyingpig

Who else but you...?

8. Sep 30, 2011

### collinsmark

Actually, that sounds great for part (b). But for part (a), I would write,

$$Q_{en} = 2 \pi \rho_0 \ell \int_{0}^{r} r'^2 dr'$$
where $r'$ is a dummy variable.

9. Sep 30, 2011

### flyingpig

Oh wait you are right, it's near my bedtime too...

10. Oct 3, 2011

### Jacob1234

So then for a) E = (ρr^2)/ε ?

11. Oct 4, 2011

### wolski888

I don't understand where the 2 is coming from in the integral... is it part of the integration of a cylinder's volume?

12. Oct 4, 2011

### wolski888

I have E = ρ$_{o}$ r$^{2}$/ε

Where r < R.

Is that right?

13. Oct 4, 2011

### collinsmark

Not quite. (See below)

You need to integrate the charge over the volume, meaning there's three dimensions involve. We'll use cylindrical coordinates, since that's the easiest for this particular problem.

One dimension is along the length of the cylinder, along the length of L. Let's call the differential length $d \ell$

Another dimension is along the radius r. Let's call the differential length of the radius $dr'$ (where $r'$ is a dummy variable, so as not to confuse it with $r$, one of the integration limits [the radius of the Gaussian surface]).

One remaining dimension is the direction perpendicular to $r'$, along $\theta$. But this is a special differential length, because the length of this one not only varies with $d \theta$, but also with $r'$. So this differential length is $r' d \theta$.

$$dq = \rho \ d \ell \ dr' \ r'd \theta$$

Here, $\rho$ is the charge density, a function of r', and should not be confused with $\rho_0$. We haven't made the substitution yet.

Integrating both sides we have,

$$q = \int_{r' = 0}^r \int_{\theta = 0}^{2 \pi} \int_{\ell = 0}^L \rho \ d \ell \ dr' \ r' d \theta = 2 \pi L \int_0^r \rho r' dr'$$

Now make your $\rho = \rho_0 r'$ substitution and evaluate the last integral.

14. Oct 4, 2011

### Jacob1234

so it is E = (ρ°r^2)/(3ε°) ?