How do you take the derivative of this?
k and r are constants
$E=kq\hat{r}(\frac{1}{r^{2}})$
$\frac{d}{dq}(E)=\frac{d}{dq}(kq\hat{r}(\frac{1}{r^{2}}))$
$\frac{d}{dq}(E)=(\frac{k\hat{r}}{r^{2}})\frac{d}{dq}(q)$
This is where I am now. And the answer is posted below.
$dE=(\frac{k\hat{r}}{r^{2}})dq$
How did they get this? Did they multiply both sides by dq?