So I was given the electric field:
##\overrightarrow{E} = {E_0} e^{-kx}\hat i. ##
Which is completely in the x-direction.
Now using:
## V = {V_a} - {V_b} = - \int_a^b \overrightarrow{E}.\overrightarrow{dl}, ##
with the above electric field we have:
## V = - \int_\infty^x {E_0} e^{-kx}dx = \frac{E_0} {k} e^{-kx}.##
Then using what BvU suggested:
BvU said:
Helo Alex,
You can check for yourself if this is correct: how do you derive an electric field from a potential ? Does that work OK for your answer ?
Oh, and did I miss a minus sign somewhere ?
I remembered from my notes that the electric field is related to the potential as follows:
##\overrightarrow{E} = - \nabla V.##
So to test if the potential I found is correct, I just plug it in and find:
##- (\frac{\partial V} {\partial x})=-(-{E_0} e^{-kx}\hat i) ##
Which gives us back our original Electric Field:
##\overrightarrow{E} = {E_0} e^{-kx}\hat i.##
Thanks again BvU, much appreciated!