There is an infinite cylinder surface which uniformly charged along and has a surface charge density, which can be represented as $$ \sigma = \sigma_{0}cos(\varphi ), $$ where $\varphi$ - polar angle in a cylindrical coordinate system (it means that z-axis is matches with cylinder axis). There need to find z-component $|\mathbf E|$.
I tried to learn use Gauss law, but tasks, where density isn't constant on the surface, are still hard for me. Can you help?