Well, assuming the sphere is all by itself with no other gravitational infulences, then you have a gaseous sphere whose density increases as you get closer to the center. There are two things to use in calculating the density as a function of radius r. First, for any radius r, the pressure at that radius comes about from the weight of the gas above it. The mass of the gas above a point will depend on the density function that you are trying to derive.
The second thing to use is the ideal gas law: [itex]PV = nRT[/itex]. You can google ideal gas law for more info on what the variables stand for and how to use it. The P in the equation is the pressure of the gas, and V is the volume.
You'll end up with a couple simultaneous equations, including an integration of the pressure function over the radius. In the end, you should be able to find the density as a function of radius, based on the total mass of the gas sphere.