Stuck on divergence of electric field

betelgeuse91
Messages
31
Reaction score
0

Homework Statement


For a volume charge, ##\textbf{E}(\textbf{r}) = \frac{1}{4\pi\epsilon_0}\int_{all space}\frac{\hat{\gamma}}{\gamma^2}\rho(r')d\tau'##
and I am trying to get the divergence of it.

Homework Equations


The book says
##\nabla\cdot\textbf{E} = \frac{1}{4\pi\epsilon_0}\int_{all space}[\nabla\cdot(\frac{\hat{\gamma}}{\gamma^2})]\rho(r')d\tau'##

The Attempt at a Solution


I am wondering why it is not
##\nabla\cdot\textbf{E} = \frac{1}{4\pi\epsilon_0}\int_{all space}[\nabla\cdot(\frac{\hat{\gamma}}{\gamma^2}\rho(r'))]d\tau'##
when taking ##\nabla## inside the integral, because if it should be this way,
then we need to apply the product rule of divergence. (I guess it's not the case)
Can somebody please explain why the divergence inside does not include the charge density function?
Thank you.
 
Physics news on Phys.org
The electric field at a point P with position vector ##\vec r## is the integral of the contribution of all charge elements dq. Those contributions depend on the distance of the charge element from the point P. That distance is denoted by γ in your formula. ##\gamma =\vec r- \vec r' ##, ##\hat \gamma =\frac{\vec r- \vec r'}{|\vec r- \vec r'|}##.
You need the divergence with respect to ##\vec {r}##, while ρ is function of ##\vec {r'}##.
 
Actually ##\vec{r}## is the position vector of target charge, and ##\vec{r}'## is the position vector of source charge, so we integrate it over ##\vec{r}'##, so I think I need the divergence with respect to ##\vec{r}'##
 
ehild said:
The electric field at a point P with position vector ##\vec r## is the integral of the contribution of all charge elements dq. Those contributions depend on the distance of the charge element from the point P. That distance is denoted by γ in your formula. ##\gamma =\vec r- \vec r' ##, ##\hat \gamma =\frac{\vec r- \vec r'}{|\vec r- \vec r'|}##.
You need the divergence with respect to ##\vec {r}##, while ρ is function of ##\vec {r'}##.
I get it now...! thank you very much!
 
You are welcome.
 

Similar threads

  • · Replies 32 ·
2
Replies
32
Views
4K
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 13 ·
Replies
13
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
6
Views
3K
Replies
8
Views
3K