A non-conducting sphere of radius R has a non-uniform charge density that varies with the distance from its center as given by
where a is a constant. We require so that the charge density is not undefined at . Find the electric field at a point outside the sphere and at a point inside the sphere.
Credit: University Physics Volume 2 by OpenStax, openstax.org, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Exercises adapted: converted to Kosoma's format, maths re-typeset, some exercises split into parts. Source commit db44eb99e9aa1d918fd8cf182f82ccdece9c7b11.