I find that often times I'll be tripped up by questioning whether or not I can do something mathematically, and be unable to come up with a satisfying answer. This is, unfortunately, one of those times.
I'm told:
A uniform electric field, $\vec{E} = E_0\hat{x}$. What is the potential, expressed using cylindrical coordinates, $V(s,\phi,z)$?
My first course of action is:
We know... $$|r| = \sqrt{x^2 + y^2 + z^2} = \sqrt{x^2} = x = E_0$$ $$\tan^{-1}{\frac{y}{x}} = \theta = 0$$ $$z = z = 0$$
So the electric field only has a component in the $\hat{r}$ direction.
Now, we know that $\vec{E} = -\nabla V(r, \phi, z) = - \frac{\partial V}{r} - \frac{1}{r}\frac{\partial V}{\theta} - \frac{\partial V}{z}$
So, I think "Oh. I just have to integrate." ... but over what? Do I integrate three times, once w.r.t. radius, then phi, then z? I'm pretty sure that won't give me the right answer. If I decide to express $\nabla V$ in terms of cartesian coordinates, I get $- \nabla V(x,y,z) = E_0 \hat{x}$ ... but the question still remains.
I feel like this is definitely the easy part of the problem, and I can often do the more complicated parts—it's just small things like this often throw me off. How would I go about extracting the potential from either of those equations? I know I have to integrate, but... where?