Want this question answered?
Gravity
When a star runs out of energy, its mass is so great that the remaining energy cannot force the outer edges of a star away from its core, so the gravity causes the star to implode on itself.
A protostar generates energy by friction whereas a main sequence star generates energy by fusion.
Gravity pulls the star in and tries to squeeze it down to a point. Because it pulls all of the atoms of the star in to the middle, gravity speeds them up, giving them energy. Eventually gravity gives enough energy to the atoms that they move fast enough that when they collide, they sometimes stick together and nuclear fusion happens. This is what gives a star its light and what keeps a star from collapsing further.
a supernova.
This fusion gives off energy, which expands the surface of the star. Gravity pulls the outer parts of a red giant towards the center.
Obviously at the beginning, when it hasn't used up its fuel yet, and when it hasn't emitted this energy yet. Unless the star acquires some additional mass later in its life.
In a star a balance exist between gravity shrinking and expansion due to fusion energy released.
A protostar generates energy by friction whereas a main sequence star generates energy by fusion.
radiation pressure
Gravity. However, sometimes the star IS blown apart.
"While the star can produce energy, that keeps the star in balance - it keeps the star from collapsing. By the way, another outward force is the gas pressure, but that, by itself, is not enough to counteract the force of gravity in the case of a star."