I have solved an exercise, but the result I have obtined is wrong and I can't understand why. If you can help me, I'll be so grateful.
Let's consider a charged cylinder, its radius is equal to R and its height=4R. Its center of is in the origin of the cartesian axes and its axis is parallel to z axis; we know the volumic density of charge: $\rho= 2az \epsilon$ where $a, \epsilon$ constant $>0$.
There is an electric field inner to the cylinder, described by: $E_{ox}=0, E_{0y}=0, E_{0z}=az^2$
We want to find the electric potential to a great distance from the origin of the axes.
I have thought as follow.
Using Maxwell's first equation, I have found the volumic density of charge: $\rho=2\epsilon_0 a z$.
At a very big distance to the origin, I can consider the cylinder like an electric dipole, with the positive charge concetrated in the center uf the upper part of the cylinder and the negative one in the center of the lower part:
So $Q_+$ will be in (0,0,R) and $Q_-$ in (0,0,-R).
Now, I need the moment of dipole, ${\bf p}=q{\bf a}$ where ${\bf a}$ is the vector from the negative charge to the positive charge.
I have integrate $\rho$ and I have obtained $q=\int_0^{2R}\int_0^R\int_0^{2\pi}2az\epsilon r d\theta dr dz$ and I have obtained $q=4\pi a \epsilon_0 R^5$
Then I have posed a=2R, so I have obtained $p=8\pi a \epsilon_0 R^4$.The correct result is $p=32/3 \pi a \epsilon_0 R^5$
I can't understand where I was wrong and I wouldn't like to have made an error of proceeding.