The field potential in a certain region of space depends only on the \(x\) coordinate as \(\varphi=-a x^{3}+b,\) where \(a\) and \(b\) are constants. Find the distribution of the space charge \(\rho(x)\).