In a star with mass M, assume that the density decreases from the centre to the surface as a function of radius r according to p=p1- where pc is a given constant and R is the radius of the star.
(b) Find the total mass Mof the star
(c) Find an expression for the central density in terms of R and M and average density Pa