# Charge density causing an Electric Field

1. Jun 13, 2012

### RP8

So the problem is: The electrostatic field is E =g|r|r where g is a constant. Find the charge density p(r) which can generate the field?

My attempt was gauss law: divE=p0

But I'm struggling to take divE. I guess r=x+y+z?