Finding flux from electric field

Click For Summary

Homework Help Overview

The discussion revolves around finding the electric flux through a sphere of radius R centered at the origin, given the electric field \(\vec{E}=k\frac{x\hat i +y\hat j}{x^2+y^2}\). Participants explore the implications of the divergence of the electric field and its relation to the flux through the surface.

Discussion Character

  • Exploratory, Assumption checking, Conceptual clarification

Approaches and Questions Raised

  • Participants discuss the divergence of the electric field, noting that it is zero except along the z-axis. Some suggest that this indicates the flux through the spherical surface might be zero, while others argue that the divergence being undefined at certain points complicates this conclusion. There is also exploration of the divergence in cylindrical coordinates and its implications.

Discussion Status

The discussion is ongoing, with various interpretations being explored regarding the divergence of the electric field and its implications for calculating flux. Some participants have provided guidance on using the divergence theorem and the Dirac delta function, while others are questioning the consistency of results across different coordinate systems.

Contextual Notes

Participants are navigating the complexities of the divergence of the electric field in different coordinate systems, particularly the implications of singularities at certain points. The discussion reflects the challenges of applying Gauss' law and the divergence theorem in this context.

Titan97
Gold Member
Messages
450
Reaction score
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
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/
 
Divergence is zero in this case at all points (except at x-axis). Does that mean flux is zero through a spherical surface?
 
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   Reactions: Titan97
I tried finding divergence in cylindrical coordinates. It worked perfectly. Why?
 
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   Reactions: Titan97
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.
 
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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: 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.
 

Similar threads

Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 18 ·
Replies
18
Views
1K
Replies
11
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
Replies
12
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
Replies
6
Views
2K
Replies
1
Views
3K
Replies
2
Views
1K