In a homework problem, we were to assume the Sun is a sphere with uniform density and use the hydrostatic equilibrium equation to compute the pressure at the center of the Sun? Upon doing this, I was able to derive this equation:
$ \frac{dP}{dr} = \frac{-GM(<r)}{r^2}\rho(r)$
$ \frac{dP}{dr} = -g(r)\rho(r)$
Now, a related part of the problem is asking that we assume the core of the Sun contains only ionized hydrogen. We are to use the equation derived in the first part of the problem for the central pressure and the ideal gas law to estimate the temperature at the core of the Sun, and compare it to its actual temperature of $ 1.6 \times 10^7 K $.
Can someone explain how to combine the equation for finding the central pressure with the ideal gas law? Also, why is it relevant that we assume the Sun is only composed of ionizable hydrogen?