Not sure how to take gradient operator in spherical coordinates

202 Views Asked by At

The orginal problem statement

The electric potential from an elementary electric dipole located at the origin is given by the expression

$\phi$($\vec r$) = $\vec p$ $\cdot$ $\vec r$/4$\pi$$\epsilon_0$$r^3$

where $\vec p$ is the electric dipole moment vector. Show that the corresponding electric field is given by the expression

$\vec E$ = -$\nabla$$\phi$ = $\frac{3 (\vec p \cdot \hat r) \hat r - \vec p }{4 \pi \epsilon_0 r^3}$

where $\hat r$ is the unit vector in the direction of the vector $\vec r$.

I'm not too sure if I wrote the electric field expression correctly so I uploaded a snippet of the question which is on the attachment.

So the way I thought to solve it was by replacing $\vec r$ with $r \hat r$

so $\vec E$ = -$\frac{\partial \phi}{\partial r}\hat r$ = -$\frac{\partial}{\partial r}(\vec p$ $\cdot$ $\vec r$/4$\pi$$\epsilon_0$$r^3)\hat r$ = -$\frac{\partial}{\partial r}(\vec p$ $\cdot$ $r \hat r$/4$\pi$$\epsilon_0$$r^3)\hat r$ = $\frac{\vec p \cdot \hat r }{2\pi \epsilon_0 r^3}\hat r$

not sure what I'm doing wrong. I thought maybe since the dot product involves the angle between the two vectors one of the other components of the spherical gradient survive but I'm not sure.

1

There are 1 best solutions below

4
On BEST ANSWER

Let us use the convention $\vec{r} = x_1\hat x_1 + x_2\hat x_2+x_3\hat x_3$ and $r= |\vec{r}|$. Consider \begin{align} \psi(\vec{r}) = \vec{p}\cdot\frac{\vec{r}}{r^3} \end{align} then \begin{align} \frac{\partial}{\partial x_i} \psi(\vec{r}) = \sum_{j}p_j\cdot \frac{\partial}{\partial x_i}\left(\frac{x_j}{r^3} \right) = \sum_j p_j\cdot \frac{\delta_{ij}r^2-3x_ix_j}{r^5} = \frac{p_i}{r^3}-3\frac{x_i}{r^4}\sum_jp_j\cdot \frac{x_j}{r}. \end{align} Hence it follows \begin{align} -\nabla\psi(\vec{r}) = \frac{3(\vec{p}\cdot \hat r)}{r^3}\hat r-\frac{1}{r^3}\vec{p}. \end{align}

Note: We have use the fact that \begin{align} \frac{\partial}{\partial x_i} r = \frac{\partial}{\partial x_i}\sqrt{x_1^2+x_2^2+x_3^2}= \frac{x_i}{\sqrt{x_1^2+x_2^2+x_3^2}}=\frac{x_i}{r}. \end{align} Also, $\delta_{ij}$ is the Kronecker delta, i.e. \begin{align} \delta_{ij} = \begin{cases} 1 & \text{ if } i = j\\ 0 & \text{ otherwise} \end{cases}. \end{align}