Question
A non-conducting spherical ball of radius R contains a spherically symmetric charge with volume charge density ρ=krn, where r is the distance from the centre of the ball and n is a constant. What should be n such that the electric field inside the ball is directly proportional to the square of distance from the centre?