Find the central pressure of a star with linear density profile of rho(r)=rho(c)1-r/R?

i have found expressions for m(r) and rho(c) and substituted in to the hydrostatic equilibrium equation and found P(c) = -Gpi rho(c)^2 times the integral of (4r/3-r^2/R)(r-r^2/R) cant seem to get the right answer of 5GM^2/4piR^4 thank you for any help
1 answer 1