In the stage of red giant star, there will be no thermonuclear reaction in the matter inside the star, but the pressure of the outer shell on the core will increase continuously, which will cause other shape changes. Physics links the movement and energy production in a star, and the change of one factor will cause the overall change. Gas will move, and this movement will continue under the action of gravity to form the original stars. In the middle stage, a nuclear reaction will occur inside, and after one reaction, another reaction will start until all the fuel is consumed. In the final destination stage, Perseverance still collapses or explodes under the action of gravity, which may make some of it become nebula gas, and the other part become various other celestial bodies, such as white dwarfs.
The matter of most stars is gaseous, and the effect of heat conduction is not so great, so it is very hot inside. In the last stage of evolution, a small feather may cause a change in gravity, causing the stars to contract and causing huge molecular clouds to collide. At this time, it is possible to start continuous explosions and let some high-speed substances be thrown out of the star. Then the huge molecular cloud fragments will be broken down into smaller fragments and will wander in the universe. Therefore, the life of a star is actually programmed, which looks very short and takes a long time to evolve, much longer than the life span of human beings.
A massive star will undergo several major changes in the process of collapse, which is what we call a supernova explosion.