- #1
Cepterus
- 29
- 0
Homework Statement
Given an electric field $$\vec E(x,y,z)=\begin{pmatrix}ax^2+bz\\cy\\bx\end{pmatrix},$$with nonzero constants ##a,b,c##, I am supposed to find the charge density ##\rho(x,y,z)## which is necessary to create this field ##\vec E##.
Homework Equations
##\rho=\frac{\mathrm dq}{\mathrm dV}##
The Attempt at a Solution
I know that electric fields are created by charges, but I don't understand the connection between charge density and an electric field. As far as I understand the above formula, charge density is simply the amount of charge in a certain volume. How does this relate to electric fields?