Finding flux from electric field

In summary, the flux through a sphere of radius R centered at origin is given by:$$E=a\frac{r\hat r}{r^2}=a\frac{\hat r}{r}.$$
  • #1
Titan97
Gold Member
450
18

Homework Statement


If ##\vec{E}=k\frac{x\hat i +y\hat j}{x^2+y^2}##, find flux through a sphere of radius R centered at origin.

Homework Equations


##\int E.da=\int(\nabla\cdot E)\cdot da##

The Attempt at a Solution


I was able to solve this problem without finding divergence of electric field.
If ##\vec{r}= {x\hat i +y\hat j}##.
Then, $$E=k\frac{\vec{r}}{r^2}=k\frac{\hat r}{r}$$
This is like the electric field due to an infinite line charge which is given by $$E=\frac{\lambda}{2\pi\epsilon_0 r}$$
So the field specified in question can be assumed to be from an infinitely long charged wire.
I can easily find the flux using Gauss' law by finding the charged enclosed by the spherical surface.

But when I tried finding the divergence of E, it came out to be zero.
I used the formula $$E=\frac{\partial E}{\partial x}+\frac{\partial E}{\partial y}$$
 
Physics news on Phys.org
  • #2
The divergence of E is indeed zero at all points other than points on the z axis (i.e., on the line charge itself). However, you can see that ##\partial E/ \partial x## and ##\partial E/ \partial y## are undefined on the z axis.

This is similar to the example of the E field of a single point charge where the divergence is zero everywhere except at the location of the point charge (where the divergence is undefined). To deal with the divergence at the location of the charge, you can use a dirac delta function.

See http://www.physicspages.com/2011/11/14/dirac-delta-function-in-three-dimensions/
 
  • #3
Divergence is zero in this case at all points (except at x-axis). Does that mean flux is zero through a spherical surface?
 
  • #4
If the divergence is zero at every point inside a spherical surface, then the net flux through the surface would be zero. For this problem of a line charge along z axis and spherical surface centered at the origin, there are points inside the spherical surface where the divergence is not zero (namely, at points on the z axis where the divergence is undefined). The net flux through the surface is not zero, as you have shown using Gauss' law.
 
  • Like
Likes Titan97
  • #5
I tried finding divergence in cylindrical coordinates. It worked perfectly. Why?
 
  • #6
In cylindrical coordinates the divergence of ##\vec{E}## for this problem is $$\frac{1}{r} \frac{\partial (r E_r)}{\partial r}$$ The partial derivative is zero everywhere, but the ##\frac{1}{r}## factor is undefined on the z axis. So, the divergence does not have a definite value on the z axis.
 
  • Like
Likes Titan97
  • #7
Thats not what I got.
##r=\sqrt{x^2+y^2}##
##x=r\cos\theta##
##y=r\sin\theta##
##\hat i=(\cos\theta) \hat r-(\sin\theta) \hat \theta##
##\hat j=(\sin\theta) \hat r+(\cos\theta) \hat \theta##
$$E=a\frac{x\hat i+y\hat j}{x^2+y^2}=a\frac{(r\cos\theta)(\cos\theta \hat r-\sin\theta \hat \theta)+(r\sin\theta)(\sin\theta \hat r+\cos\theta \hat \theta)}{r^2}$$
$$E=a\frac{r\hat r}{r^2}=a\frac{\hat r}{r}$$
Hence, $$\nabla\cdot E=-a\frac{1}{r^2}$$
So, divergence is non zero in cylindrical coordinates. But should divergence change if the coordinate system changes? The vector field is still the same.
 
  • #9
Why is it ##\frac{1}{r}\frac{\partial rA}{\partial r}##?
 
  • #10
It is due to the fact that the unit vectors in cylindrical coordinates change direction as you move around in space. Thus, when taking derivatives of a vector you need to take derivatives of the unit vectors as well as the coefficients of the unit vectors. The derivation of the form of the divergence is found in many texts.
Or, see https://www0.maths.ox.ac.uk/system/files/coursematerial/2015/3124/77/CylCoords.pdf
 
  • Like
Likes Titan97
  • #11
@TSny , $$E=a\frac{\hat r}{r}$$
$$\nabla\cdot E=a\nabla\cdot\frac{\hat r}{r}$$
This gives
$$\nabla\cdot E=ak\delta(r)$$
How do I find ##k##?
 
  • #12
To express ##\nabla\cdot\frac{\hat r}{r}## in terms of ##\delta(r)## where ##r## is the radial coordinate in cylindrical coordinates, examine the integral ##\int \nabla\cdot\frac{\hat r}{r} dV## over a cylindrical volume centered on the z-axis. Use the divergence theorem to get the answer by converting the integral to a surface integral. Then try to express ##\nabla\cdot\frac{\hat r}{r}## in terms of ##\delta(r)## such that when you do the volume integral you get the same result as the surface integral. You will see that you must take ##\nabla\cdot\frac{\hat r}{r}## proportional to ##\delta(r)/r## rather than just proportional to ##\delta(r)##.
 
  • Like
Likes Titan97
  • #13
$$\int\int\int \nabla\cdot\frac{\hat r}{r}dV=\int\int\frac{\hat r}{r}\cdot dS$$
Let the cylinder have centre at origin and axis along z-axis.There are three surfaces.
Since field is along radial direction, flux through the plane surfaces will be zero. There will only be flux through the curved surface.
$$dS=rd\theta dz \hat r$$
$$\int\int\frac{\hat r}{r}\cdot dS=\int_{-z}^z\int_0^{2\pi}d\theta dz=4\pi z$$
 
  • #14
Titan97 said:
$$\int\int\int \nabla\cdot\frac{\hat r}{r}dV=\int\int\frac{\hat r}{r}\cdot dS$$
$$\int\int\frac{\hat r}{r}\cdot dS=\int_{-z}^z\int_0^{2\pi}d\theta dz=4\pi z$$

OK.

Now evaluate ##\int\int\int \nabla\cdot\frac{\hat r}{r}dV## for the same volume and force it to equal ##4\pi z## by deducing the necessary relation between ##\nabla\cdot\frac{\hat r}{r}## and ##\delta(r)##.
 
  • Like
Likes Titan97
  • #15
##\int\int\int \nabla\cdot\frac{\hat{r}}{r}dV=0## for all ##r\neq 0##
##\int\int\int \nabla\cdot\frac{\hat{r}}{r}dV=4\pi z## for ##r=0##

So $$\nabla\cdot\frac{\hat{r}}{r}=4\pi z\delta(r)$$
 
  • #16
Titan97 said:
##\int\int\int \nabla\cdot\frac{\hat{r}}{r}dV=0## for all ##r\neq 0##
##\int\int\int \nabla\cdot\frac{\hat{r}}{r}dV=4\pi z## for ##r=0##

So $$\nabla\cdot\frac{\hat{r}}{r}=4\pi z\delta(r)$$
This isn't correct. In ##\int\int\int (\nabla\cdot\frac{\hat{r}}{r})dV## you need to write out the volume element ##dV## in cylindrical coordinates and integrate over the same cylinder that you used for evaluating the surface integral.
 
  • Like
Likes Titan97
  • #17
How can I evaluate that integral? It will come out to be zero since the divergence is zero.
 
  • #18
How can I evaluate that integral? It will come out to be zero since the divergence is zero.
 
  • #19
We are assuming that the divergence is proportional to a delta function ##\delta(r)## so that it will be zero everywhere except at ##r = 0##, where it is singular. (It is good that it is singular at ##r=0## since we know that at the location of a line charge the volume charge density is singular.) So, you can try letting ##\vec{\nabla} \cdot \frac{\hat{r}}{r} = k \delta(r)## and then try to determine k such that the volume integral will equal ##4 \pi z##.

You should find that you can't make it work. But, in the process you might see how to express ##\vec{\nabla} \cdot \frac{\hat{r}}{r}## in terms of ##\delta(r)## to make it work. In a previous post, I alluded to what you should find.

EDIT: Alternately, you can try expressing ##\vec{\nabla} \cdot \frac{\hat{r}}{r}## in terms of Cartesian coordinate delta functions. For example, suppose you try ##\vec{\nabla} \cdot \frac{\hat{r}}{r} = k \delta(x) \delta(y)##. Can you find ##k## such that the volume integral of ##\vec{\nabla} \cdot \frac{\hat{r}}{r}## over your cylindrical volume equals ##4 \pi z##?
 
Last edited:
  • Like
Likes Titan97
  • #20
TSny said:
So, you can try letting →∇⋅ˆrr=kδ(r)
δ(r) is infinite at r=0. But is ##\nabla\cdot\frac{\hat r}{r}## infinite at r=0?
 
  • #21
Titan97 said:
δ(r) is infinite at r=0. But is ##\nabla\cdot\frac{\hat r}{r}## infinite at r=0?

I would say that neither δ(r) nor ##\nabla\cdot\frac{\hat r}{r}## is infinite at r = 0. Neither one can actually be said to take on any particular value (finite or infinite) at r = 0. See here for some discussion: https://en.wikipedia.org/wiki/Dirac_delta_function

The important thing is not what their value is at r = 0, but how they behave when you integrate them. You can show that ##\nabla\cdot\frac{\hat r}{r}## has the same properties as δ(r)/r when occurring in volume integrals using cylindrical coordinates (r, θ, z).
 
  • Like
Likes Titan97
  • #22
I will use cylindrical coordinates.

Let ##\nabla\cdot\frac{\hat r}{r}=f(r)\delta(r)##

$$\int\nabla\cdot\frac{\hat r}{r}=\int_0^R\int_{-z}^z\int_0^{2\pi}rf(r)\delta(r)drd\phi dz=4\pi z\int_0^R rf(r)\delta(r)dr$$

So $$\int_0^R rf(r)\delta(r)dr=1$$
 
  • #23
Titan97 said:
I will use cylindrical coordinates.

Let ##\nabla\cdot\frac{\hat r}{r}=f(r)\delta(r)##

$$\int\nabla\cdot\frac{\hat r}{r}=\int_0^R\int_{-z}^z\int_0^{2\pi}rf(r)\delta(r)drd\phi dz=4\pi z\int_0^R rf(r)\delta(r)dr$$

So $$\int_0^R rf(r)\delta(r)dr=1$$
Yes. So, you need to deduce the form of ##f(r)##.

##\delta(r)## is defined so that ##\int_0^a \delta(r)dr=1## and ##\int_0^a g(r) \delta(r)dr=g(0)## for any function g(r) and any positive number ##a##. This definition of ##\delta(r)## is a little different than the usual definition of the delta function because the lower limit of the integral (r = 0) occurs at the point where the argument of the delta function is zero. Usually we require the point where the argument is zero to be within the range of integration (rather than at the boundary of the range of integration) in order for the delta function to yield it's full nonzero contribution.

So, if you compare your result ##\int_0^R rf(r)\delta(r)dr=1## with ##\int_0^R \delta(r)dr=1##, you can see what f(r) must be.
 
  • Like
Likes Titan97
  • #24
So does this new δ(r) look like a rectangular hyperbola with its value zero at all points except at x=0?
This a graph of ##\frac{e^-{100x^2}}{x}##.
IMG_20151108_162113_738.jpg

TSny said:
Usually we require the point where the argument is zero to be within the range of integration (rather than at the boundary of the range of integration) in order for the delta function to yield it's full nonzero contribution.

Why can't it be defined such that ##\int_0^R\delta(r)=1##
If you take ##\int_{-a}^R\delta(r)##, it will be zero.(from the graph).
What do you mean by argument of a function?
 
  • #25
We are working in cylindrical coordinates (r, θ, z) where r is always greater than or equal to zero.

You could also work in Cartesian coordinates (x, y, z) and find ##\nabla \cdot \frac{\hat{r}}{r}= 2\pi \delta(x) \delta(y)## where ##\vec{r} = x \hat{i} + y \hat{j}##.
 
  • #26
@TSny , $$E=a\frac{x\hat i+ y\hat J}{x^2+y^2}$$
$$E=a\frac{\hat r}{r^2}$$
Let $$\nabla\cdot E=kf(r)\delta(r)$$

In cylindrical coordinates, ##dA=rd\theta dz## and ##dV=rdrd\theta dz##.
Let ##\delta(r)## be the Dirac delta function.

$$\int(\nabla\cdot E) dV=\int_{?}^{?}\int_{-z}^z\int_0^{2\pi} kf(r)\delta(r)rdrd\theta dz= 4\pi zk\int f(r)\delta(r)$$
$$\int E\cdot dA=\int_{-z}^z\int_0^{2\pi} a\frac{\hat r}{r^2} = 4\pi az$$
This shows ##k=a## and ##f(r)=\frac{1}{r}##

But what about the limits for integration ( labelled as ? )
 
  • #27
Titan97 said:
@TSny , $$E=a\frac{x\hat i+ y\hat J}{x^2+y^2}$$
$$E=a\frac{\hat r}{r^2}$$
The ##\hat{r}## should be replaced by ##\vec{r}## in the numerator above.

Let $$\nabla\cdot E=kf(r)\delta(r)$$

In cylindrical coordinates, ##dA=rd\theta dz## and ##dV=rdrd\theta dz##.
Let ##\delta(r)## be the Dirac delta function.

$$\int(\nabla\cdot E) dV=\int_{?}^{?}\int_{-z}^z\int_0^{2\pi} kf(r)\delta(r)rdrd\theta dz= 4\pi zk\int f(r)\delta(r)$$
Typo: Some of the integrand is missing in the last integral above.
$$\int E\cdot dA=\int_{-z}^z\int_0^{2\pi} a\frac{\hat r}{r^2} = 4\pi az$$
Typo: Some of the integrand is missing in the middle expression.
This shows ##k=a## and ##f(r)=\frac{1}{r}##

But what about the limits for integration ( labelled as ? )

If you are integrating over the volume of a cylinder of radius R centered on the z-axis, then r would range from 0 to R, as in your post #22.
 
  • #28
Titan97 said:

Homework Statement


If ##\vec{E}=k\frac{x\hat i +y\hat j}{x^2+y^2}##, find flux through a sphere of radius R centered at origin.

Homework Equations


##\int E.da=\int(\nabla\cdot E)\cdot da##

The Attempt at a Solution


I was able to solve this problem without finding divergence of electric field.
If ##\vec{r}= {x\hat i +y\hat j}##.
Then, $$E=k\frac{\vec{r}}{r^2}=k\frac{\hat r}{r}$$
Sorry if I'm wrong, just completed reading chapter 2 Schaum's electromagnetic.
Vector r/r = xi+yj/ r^3/2
Since r= root(x^2+y^2)
Thank you.
 

What is flux and how is it related to electric field?

Flux is a measure of the flow of a physical quantity through a given surface. In the case of electric flux, it represents the flow of electric field lines through a surface. The magnitude of electric flux is directly proportional to the strength of the electric field.

How do you find the electric flux through a closed surface?

To find the electric flux through a closed surface, you can use Gauss's Law which states that the electric flux through a closed surface is equal to the enclosed charge divided by the permittivity of free space. This can be represented mathematically as Φ = Q/ε0.

What factors affect the magnitude of electric flux?

The magnitude of electric flux depends on the strength of the electric field, the area of the surface, and the angle between the electric field lines and the surface. A larger electric field or surface area will result in a higher electric flux, while a smaller angle will decrease the flux.

Can electric flux be negative?

Yes, electric flux can be negative. This occurs when the electric field lines are directed into the surface, resulting in a negative value for the flux. Positive flux indicates that the electric field lines are directed out of the surface.

Can you explain the concept of flux density in relation to electric field?

Flux density, also known as electric displacement, is a measure of the amount of electric field passing through a given area. It is represented by the symbol D and is related to electric flux by the equation D = ε0E, where E is the electric field strength. Flux density is useful for calculating the electric flux through a non-uniform electric field or a material with varying permittivity.

Similar threads

  • Introductory Physics Homework Help
Replies
12
Views
203
  • Introductory Physics Homework Help
Replies
25
Views
1K
  • Introductory Physics Homework Help
Replies
2
Views
188
  • Introductory Physics Homework Help
Replies
1
Views
896
  • Introductory Physics Homework Help
Replies
1
Views
131
  • Introductory Physics Homework Help
Replies
1
Views
154
  • Introductory Physics Homework Help
Replies
3
Views
149
  • Introductory Physics Homework Help
Replies
2
Views
1K
  • Introductory Physics Homework Help
Replies
17
Views
402
  • Introductory Physics Homework Help
Replies
2
Views
926
Back
Top