For sake of simplicity, please assume a star of 2 solar mass. If one were to plot the density (bulk density) over its lifetime - will the curve be linear, parabolic, exponential, etc ?
Also, how does the curve look when the star transitions to a black hole ? Is it sudden, like a step functions, does it pulsate, linear or some other form ?
It’s going to be a complicated curve, changing wildly when fusion first intermittently begins in the star, stabilizing for a long period during the star’s middle age, then decreasing as the star gets hotter, before jumping sharply when the star collapses (all based on my memories of stellar physics lectures)
It’ll depend on what you mean by “the star”. Suppose, for instance, that a star’s core collapses, while its outer layers get puffed out into a planetary nebula. Do you count the density of the core remnant, or of the nebula as a whole?
Let’s count all the matter that ends up in the final black hole. I am not an expert -so please make all the assumptions to simplify the question. All I am looking for is the shape of the density versus time curve during the life of the star. Especially the shape of the curve around the time the star transitions to a black hole.
Lets assume that what the OP means here is, when hydrogen fuses into helium, then helium into carbon, etc-etc until the dead end at iron, where the star goes supernova, yes?
Taking into account the mass loss of photons and solar wind, is it possible to calculate a 2 solar mass stellar diameter over it’s lifetime?
The problem with defining density as a function of time is that when the star gets very dense the choice of global time coordinate will greatly influence the answer. For example Schwarzschild coordinates will become singular at the event horizon.