# Density at the centre of the sun

Tags:
1. Oct 15, 2014

### maximus123

Hello, here is the question I have to answer;

I am aware that the gravitational energy of one layer of thickness dr is
$dU=-\frac{GM(r)dm}{r}$​
and that ultimately I will have to integrate this over all radii but I am unclear about the expression for $\rho_{center}$. The only thing that springs to mind is
$\rho=\frac{M}{\frac{4}{3}\pi R^3}$​
but this must be for an average density over the whole star. Can anyone point me in the direction of how to establish an expression for $\rho_{center}$?

Thanks a lot

2. Oct 15, 2014

### Staff: Mentor

It says in the problem that it is the density at the center ie r=0 its just a constant scalar.

so you must construct a function M(r) using p(r) for the shell.

3. Oct 15, 2014

### maximus123

However the question says "give an expression for $\rho_{center}$, so presumably I have to calculate the value of $\rho_{center}$ from scratch rather than looking it up. For example I know that the value for the center density quoted from many sources is $1.622\times10^5\textrm{ kg m}^{-3}$ however it is clear from the question I cannot simply use this value but I need to form an expression and then set r=0, but anything I try always ends up with r in the denominator thus resulting in infinity.