I'm trying to work through the full derivation to find the equation $$ \underline{E}(\underline{r}) = -\underline{\nabla}V $$ where V is the electric potential and E is the electric field strength. So far I have the definition: $$ V(\underline{r})=\int_{\underline{r}}^{\infty}\underline{E}(\underline{r})\cdot d\underline{r} $$(Ignoring q for now), and then the result:
$$ V(\underline{r_1}) - V(\underline{r_2}) =\int_{\underline{r_1}}^{\infty}\underline{E}(\underline{r})\cdot d\underline{r} - \int_{\underline{r_2}}^{\infty}\underline{E}(\underline{r})\cdot d\underline{r} = \int_{\underline{r_1}}^{r_2}\underline{E}(\underline{r})\cdot d\underline{r}$$
From course notes, I have:
$$ dV=V(\underline{r}+d\underline{r})-V(\underline{r}) $$But I am struggling to understand how to go from get to the next line shown here:
$$V(\underline{r}+d\underline{r})-V(\underline{r}) = -\underline{E}(\underline{r}) \cdot d\underline{r} $$
I understand that you need to use the r1 r2 result, which gives: $$ V(\underline{r}+d\underline{r}) - V(\underline{r})=\int_{\underline{r}+d\underline{r}}^{\infty}\underline{E}(\underline{r})\cdot d\underline{r} - \int_{\underline{r}}^{\infty}\underline{E}(\underline{r})\cdot d\underline{r} = \int_{\underline{r}+d\underline{r}}^{\underline{r}}\underline{E}(\underline{r})\cdot d\underline{r} = -\int_{0}^{d\underline{r}}\underline{E}(\underline{r})\cdot d\underline{r}$$ But I do not understand how to get:
$$ -\int_{0}^{d\underline{r}}\underline{E}(\underline{r})\cdot d\underline{r} = -\underline{E}(\underline{r}) \cdot d\underline{r}$$ In the general case (without knowing E). I had the idea that in the infinitesimal dr, E(r) is constant with regards to r, and so the integral just integrates dr, which then gives dr again when the limits are applied. Is this correct? Any help is much appreciated!
P.S. For posterity, the rest of the derivation is:
Using the relation $$ dT=\underline{\nabla}T \cdot d\underline{r} $$
We find: $$ dV = \underline{\nabla}V \cdot d\underline{r}$$
And inserting into the dV equation above,
$$ \underline{\nabla}V \cdot d\underline{r} = -\underline{E}(\underline{r}) \cdot d\underline{r}$$
Hence
$$ \underline{E}(\underline{r})=-\underline{\nabla}V$$