Pretty much worked out, but stuck Gauss' Law problem

In summary, the conversation is about deriving an expression for the electric field as a function of radial distance using Gauss' Law and a given charge density distribution. The conversation also suggests using spherical coordinates to simplify the integration process. The goal is to find the electric field at a specific point by integrating the charge density over a sphere of radius R. It is mentioned that understanding the physical concept behind Gauss' Law is crucial in solving this problem.
  • #1
zSanityz
13
0
Pretty much worked out, but stuck! Gauss' Law problem

Homework Statement


"Consider a charge density distribution in space given by [tex]\rho = \rho_0 e^{-r/a}[/tex], where [tex]\rho_0[/tex] and [tex]a[/tex] are constants. Using Gauss' Law, derive an expression for the electric field as a function of radial distance, [tex]r[/tex]. Sketch the [tex]E[/tex] vs. [tex]r[/tex] graph."


Homework Equations


[tex]\oint \vec D \cdot d\vec s = \int \rho dv=Q[/tex]
[tex]E_r = {{\int \rho dv}\over{4 \pi \epsilon R^2}}[/tex]

Now all I'm pretty sure I just need to integrate it through, and I'll be able to isolate [tex]\rho[/tex] and substitute it back in the original equation [tex]\rho = \rho_0 e^{-r/a}[/tex] and finally isolate [tex]E[/tex] for an answer.

I really can't figure out how to integrate this though, if anyone could explain / go through it, that would be really helpful!

Thank you
<3's
 
Last edited:
Physics news on Phys.org
  • #2


Note that actually, r stands for [itex]\sqrt{x^2 + y^2 + z^2}[/itex] and the volume we are talking about is a (filled) sphere.

So, have you tried converting to spherical coordinates? Then the angular integrations will become trivial and the exponent is precisely the remaining integration variable.
 
  • #3


Your area is a sphere with a charge density that varies with radius, so you could use spherical coordinates to sum the charge.

284013d4fd047ea4d52f65a0f89569a0.png


theta goes between 0 and pi and phi goes between 0 and 2pi i think
 
  • #4


zSanityz said:

Homework Statement


"Consider a charge density distribution in space given by [tex]\rho = \rho_0 e^{-r/a}[/tex], where [tex]\rho_0[/tex] and [tex]a[/tex] are constants. Using Gauss' Law, derive an expression for the electric field as a function of radial distance, [tex]r[/tex]. Sketch the [tex]E[/tex] vs. [tex]r[/tex] graph."


Homework Equations


[tex]\oint \vec D \cdot d\vec s = \int \rho dv=Q[/tex]
[tex]E_r = {{\int \rho dv}\over{4 \pi \epsilon R^2}}[/tex]

Now all I'm pretty sure I just need to integrate it through, and I'll be able to isolate [tex]\rho[/tex] and substitute it back in the original equation [tex]\rho = \rho_0 e^{-r/a} [/tex] and finally isolate [tex]E[/tex] for an answer.

I really can't figure out how to integrate this though, if anyone could explain / go through it, that would be really helpful!

Thank you
<3's

It's generally better to keep all of your posts on one problem in the same thread. It makes it easier for people to help. I'm surprised that a math major is having trouble doing this basic integration, but I assume this is a result of you not understanding the physics and not associating the physical quantities with the mathematical entities.

The above answer basically has it correct, but just to make it more explicit try this. (EDIT: note that I swapped the definitions of phi and theta compared to the above post)

[tex]E_r = {{\int \rho dv}\over{4 \pi \epsilon R^2}}[/tex]

[tex]E_r = {{\int_0^\pi \int_0^{2\pi} \int_0^R \rho_0 e^{-r/a} r^2 \sin \phi dr d\theta d\phi}\over{4 \pi \epsilon R^2}}[/tex]

Physically, what you are doing here is integrating the charge density (charge per unit volume) over the entire sphere inside the radius you are calculating the electric field at. This is just the total enclosed charge. This total enclosed charge acts like a point charge with the same total charge. The field is then equal to that of a point charge with charge Q as you calculated with the integral. Very simple if you understand what Gauss's law is saying physically. The spherical symmetry allows Gauss's law to give you the answer almost without thinking, provided you understand the physics.

In general, Gauss's law is only useful when there is symmetry that you can exploit. In other cases, it is often easier to use Coulomb's law and just integrate the field of each volume element (with given charge density). As an exercise you can try this to see if you get the same answer. This should be very easy for a math major, and will really help you get a handle on the physical concepts.

By the way, I have now done the integral out explicitely, but I don't want to give you the answer. However, if you post your solution, I am willing to verify it for you and tell you whether or not I agree.
 
Last edited:
  • #5


Alright, still all sounds fairly confusing, but I'm going to try to work through it on paper, and I'll post what I get. (still all seems a bit tough for calculus based physics 1 :( )

Feel free to post any other suggestions or comments if anyone has one, they all help!
<3's
 
  • #6


elect_eng said:
It's generally better to keep all of your posts on one problem in the same thread. It makes it easier for people to help. I'm surprised that a math major is having trouble doing this basic integration, but I assume this is a result of you not understanding the physics and not associating the physical quantities with the mathematical entities.

The above answer basically has it correct, but just to make it more explicit try this. (EDIT: note that I swapped the definitions of phi and theta compared to the above post)

[tex]E_r = {{\int \rho dv}\over{4 \pi \epsilon R^2}}[/tex]

[tex]E_r = {{\int_0^\pi \int_0^{2\pi} \int_0^R \rho_0 e^{-r/a} r^2 \sin \phi dr d\theta d\phi}\over{4 \pi \epsilon R^2}}[/tex]

Physically, what you are doing here is integrating the charge density (charge per unit volume) over the entire sphere inside the radius you are calculating the electric field at. This is just the total enclosed charge. This total enclosed charge acts like a point charge with the same total charge. The field is then equal to that of a point charge with charge Q as you calculated with the integral. Very simple if you understand what Gauss's law is saying physically. The spherical symmetry allows Gauss's law to give you the answer almost without thinking, provided you understand the physics.

In general, Gauss's law is only useful when there is symmetry that you can exploit. In other cases, it is often easier to use Coulomb's law and just integrate the field of each volume element (with given charge density). As an exercise you can try this to see if you get the same answer. This should be very easy for a math major, and will really help you get a handle on the physical concepts.

By the way, I have now done the integral out explicitely, but I don't want to give you the answer. However, if you post your solution, I am willing to verify it for you and tell you whether or not I agree.

Sorry, I just wasn't grasping it (still not sure if I am). I'm not familiar on how to integrate variables in terms of other variables (i.e integrating [tex]\phi[/tex] in terms of r and vice versa), it's just something that wasn't possible in calc I. If it was deriving, you'd simply make it a derivative, and depending on it's interaction with any other variable, apply the rule that went with it, but these aren't quite the same as x's and y's. :/
 
  • #7


zSanityz said:
Sorry, I just wasn't grasping it (still not sure if I am). I'm not familiar on how to integrate variables in terms of other variables (i.e integrating [tex]\phi[/tex] in terms of r and vice versa), it's just something that wasn't possible in calc I. If it was deriving, you'd simply make it a derivative, and depending on it's interaction with any other variable, apply the rule that went with it, but these aren't quite the same as x's and y's. :/

OK, this is a Calc 3 type problem, maybe you haven't taken this yet, or if you have maybe the concepts are not fully crystalized in your mind yet.

The position or coordinate variables are independent, hence the inner integrals can be performed in terms of the inner variables, while treating the outer variables as constants. This particular triple integral becomes separable because of the particular function involved. I'll try another simplification step for you, and then you can go from there.

Consider the following.

[tex]
E_r = {{\int_0^\pi \int_0^{2\pi} \int_0^R \rho_0 e^{-r/a} r^2 \sin \phi dr d\theta d\phi}\over{4 \pi \epsilon R^2}}
[/tex]

Since each coordinate variable is independent of the others, we can do the following.

[tex]
E_r = {{\rho_0\;\int_0^\pi \sin \phi d\phi \; \int_0^{2\pi} d\theta \; \int_0^R e^{-r/a} r^2 dr }\over{4 \pi \epsilon R^2}}
[/tex]

Remember that [tex] a[/tex] is a constant. The integrals are very easy, but the radial one is a little more difficult than the others. I used an integral table for the radial integral in order to save time, but it's not too hard to figure that one out with some thought.
 
  • #8


elect_eng said:
OK, this is a Calc 3 type problem, maybe you haven't taken this yet, or if you have maybe the concepts are not fully crystalized in your mind yet.

The position or coordinate variables are independent, hence the inner integrals can be performed in terms of the inner variables, while treating the outer variables as constants. This particular triple integral becomes separable because of the particular function involved. I'll try another simplification step for you, and then you can go from there.

Consider the following.

[tex]
E_r = {{\int_0^\pi \int_0^{2\pi} \int_0^R \rho_0 e^{-r/a} r^2 \sin \phi dr d\theta d\phi}\over{4 \pi \epsilon R^2}}
[/tex]

Since each coordinate variable is independent of the others, we can do the following.

[tex]
E_r = {{\rho_0\;\int_0^\pi \sin \phi d\phi \; \int_0^{2\pi} d\theta \; \int_0^R e^{-r/a} r^2 dr }\over{4 \pi \epsilon R^2}}
[/tex]

Remember that [tex] a[/tex] is a constant. The integrals are very easy, but the radial one is a little more difficult than the others. I used an integral table for the radial integral in order to save time, but it's not too hard to figure that one out with some thought.

Lol, I've only done Calc I. :X But wow! I had no idea you could do that with the integrals, that makes it MUCH more understandable. :D That was my main problem for sure, though after working through it that [tex]\int_0^R e^{-r/a} r^2 dr[/tex] was a little tricky, but I think I got it figured. ^-^

After going through it all this, this is what I came up with:
[tex]
E_r = {{\rho_0 (2a^3 - e^{-R/a}(a R^2 + 2 a^2 R + 2 a^3))}\over{2\epsilon_0 R^2}}
[/tex]

Looks a bit messy, but I think it's right. :Z
<3's
 
  • #9


zSanityz said:
Lol, I've only done Calc I.

Ah, OK! That makes me feel much better. It's unusual to find someone doing field problems with only Calc 1. Yeah, field theory really needs full vector calculus to really sink in well. Well, it will come to you quickly, so no problems.


zSanityz said:
After going through it all this, this is what I came up with:
[tex]
E_r = {{\rho_0 (2a^3 - e^{-R/a}(a R^2 + 2 a^2 R + 2 a^3))}\over{2\epsilon_0 R^2}}
[/tex]

Looks a bit messy, but I think it's right. :Z
<3's

I did this out at work and now don't have the paper with me. However, it does look correct (or at least very close) going from my memory. I'll double check on Monday and give you a final yes/no answer then.
 
  • #10


elect_eng said:
Ah, OK! That makes me feel much better. It's unusual to find someone doing field problems with only Calc 1. Yeah, field theory really needs full vector calculus to really sink in well. Well, it will come to you quickly, so no problems.

I did this out at work and now don't have the paper with me. However, it does look correct (or at least very close) going from my memory. I'll double check on Monday and give you a final yes/no answer then.

Wonderful! :D

Also, if I messed up somewhere it would've been with the [tex]\int_0^R e^{-r/a} r^2 dr[/tex], and that just becomes the [tex]2a^3 - e^{-R/a}(a R^2 + 2 a^2 R + 2 a^3)[/tex] after an [tex]s=-r[/tex] substitution, and then integrating by parts twice to get [tex]e^{s/a}[/tex] alone in an integral, correct? ^-^

By the way, thank you sooo much for all the help! I'm sure I didn't make it easy on you with my limited knowledge of higher level physics and math, but I am happy to have learned that with the multiple integrals you treat the other variables like constants, or separate them like you did to make it easier on the eyes. <3's
 
  • #11


that's a bit lame that you're asked to do volume integrals without a prerequisite to the class being calc III
 
  • #12


zSanityz said:
Wonderful! :D

Also, if I messed up somewhere it would've been with the [tex]\int_0^R e^{-r/a} r^2 dr[/tex], and that just becomes the [tex]2a^3 - e^{-R/a}(a R^2 + 2 a^2 R + 2 a^3)[/tex] after an [tex]s=-r[/tex] substitution, and then integrating by parts twice to get [tex]e^{s/a}[/tex] alone in an integral, correct? ^-^

So, I had a few minutes before bed and figured this would be good to put me to sleep. :smile:

I get the same answer as you for the radial integral. However, somehow I got 2 times the answer you did for Er. Of course, I could have made a mistake, but you might want to double check your answer. Did you obtain 2 for the phi integral and 2pi for the theta integral? This would give you 4pi for the total solid angle for a sphere, which I believe is correct.
 
  • #13


elect_eng said:
So, I had a few minutes before bed and figured this would be good to put me to sleep. :smile:

I get the same answer as you for the radial integral. However, somehow I got 2 times the answer you did for Er. Of course, I could have made a mistake, but you might want to double check your answer. Did you obtain 2 for the phi integral and 2pi for the theta integral? This would give you 4pi for the total solid angle for a sphere, which I believe is correct.

When I think about it, your answer does look and seem more correct, and... ohhh, I forgot to subtract [tex]cos0[/tex]!, lol. Thank you once again. ^-^ <3
 
  • #14


zSanityz said:
When I think about it, your answer does look and seem more correct, and... ohhh, I forgot to subtract [tex]cos0[/tex]!, lol. Thank you once again. ^-^ <3

OK, very good! I wish you luck in your studies.
 

1. What is Gauss' Law?

Gauss' Law is a fundamental law in electromagnetism that relates the electric flux through a closed surface to the net electric charge enclosed by that surface.

2. How do I solve a Gauss' Law problem?

To solve a Gauss' Law problem, you will typically need to follow these steps: 1. Identify the closed surface in question 2. Calculate the net electric charge enclosed by the surface 3. Determine the electric field at every point on the surface 4. Calculate the electric flux through the surface 5. Use Gauss' Law to equate the flux to the net charge enclosed and solve for the unknown variable.

3. What are some common mistakes when solving Gauss' Law problems?

Some common mistakes when solving Gauss' Law problems include: - Using the wrong expression for the electric field - Forgetting to account for the direction of the electric field - Using the wrong units for charge or flux - Not properly identifying the closed surface - Failing to consider the symmetry of the problem.

4. How can I check my answer for a Gauss' Law problem?

You can check your answer for a Gauss' Law problem by using the divergence theorem to convert the integral form of Gauss' Law into a differential form. This allows you to compare your calculated electric field with the known electric field equation for the given charge distribution.

5. Are there any real-world applications of Gauss' Law?

Yes, Gauss' Law has many real-world applications, including: - Calculating the electric field and potential of a charged particle or system - Designing and analyzing electrical circuits - Understanding the behavior of capacitors and other electrical devices - Investigating the behavior of electric fields in different materials - Studying the electric field of Earth and other celestial bodies.

Similar threads

  • Introductory Physics Homework Help
Replies
1
Views
823
  • Introductory Physics Homework Help
Replies
3
Views
820
  • Introductory Physics Homework Help
Replies
12
Views
2K
  • Introductory Physics Homework Help
Replies
12
Views
4K
  • Introductory Physics Homework Help
Replies
13
Views
2K
  • Introductory Physics Homework Help
Replies
3
Views
976
  • Introductory Physics Homework Help
Replies
9
Views
2K
  • Introductory Physics Homework Help
Replies
21
Views
2K
  • Introductory Physics Homework Help
Replies
5
Views
1K
  • Introductory Physics Homework Help
Replies
3
Views
1K
Back
Top