Suppose an electric field E(x,y,z) has the form:
E_x = ax, E_y = 0, E_z = 0
where a is a constant. What is the charge density? How do you account for the fact that the field points in a particular direction, when the charge density is uniform?
charge density = charge per unit volume
gauss's law says the volume integral of the electric field around some closed surface is negative the charge enclosed divided by the epsilon constant
The Attempt at a Solution
I picture this as an infinite charged plate going through x = 0 in the yz plane, which would have purely an electric field in the x-direction. So i think I am supposed to use gauss' law and integrate over all space? But i think that would get me some kind of infinite solution? Any hints would be greatly appreciated.