So assume there is an insulated sphere with a non-uniform charge density and radius $R$. It has a constant electric field of $E$.
Here is my current line of thinking:
We can pick a Gaussian surface at radius $r < R$.
That would give $ E(4 \pi r^2) = \frac{q(r)}{\epsilon_o} $, where $q(r)$ is a function which defines the charge enclosed by the Gaussian surface.
Assuming this is right (It seems too easy) can't we pick a point r so close to R, such that we can say $r=R$ in our calculations? that would give:
$q(R) = \frac{ER^2}{k_e} $
Is this right?