Zubair Ahmad said:
Doesn't dr points towards center as we move test charge towards the center? Thus dr is dr(-r^)
According to the definition of ## d\vec{r} ## used by Griffith (he actually uses the notation ## d\vec{l} ## for the displacement vector)
## d\vec{r} =dr\hat{r} ## .
This is valid for the radial displacement only. In general there are two more terms, for the angular displacement in spherical coordinates.
So the direction of the radial displacement is given by the sign of dr. In general it can have any direction.
The electric field is given by ## \vec{E}=\frac{q}{4 \pi \epsilon_0 r} \hat{r} ##
So the term ##\vec{E} \cdot d \vec{r} ## is
##\frac{q}{4 \pi \epsilon_0 r} dr ## as the product of the radial unit vectors is 1.
So you don't need to add a minus sign. The sign of the expression to be integrated is determined by the sign of dr. It can be positive or negative, depending on the direction of the integration. You don't need to worry about it, the sign of the result of the integral will be the one corresponding to the chosen direction of integration.
In the book example the integral is from infinity to some finite value. So you will integrate a negative quantity and the result will be negative. And with the minus in front you get positive value of the potential.