Red-giant branch through several distinct stages which are reflected in the outward appearance. The evolutionary stages vary depending primarily on the mass of the star, but also on its metallicity. After a main-sequence star has exhausted its core hydrogen, it begins to fuse hydrogen in a thick shell around a core consisting largely of helium. The mass of the helium core is below the Schönberg–Chandrasekhar limit and is in thermal equilibrium, and the star is a subgiant. Any additional energy production from the shell fusion is consumed in inflating the envelope and the star cools but does not increase in luminosity. Shell
Planetary system and B typically rotate very quickly, which makes it very difficult to measure the small Doppler shifts induced by orbiting planets because the spectral lines are very broad. However, this type of massive star eventually evolves into a cooler red giant that rotates more slowly and thus can be measured using the radial-velocity method. A few tens of planets have been found around red giants. Observations using the Spitzer Space Telescope indicate that extremely massive stars of spectral category O, which are much hotter than the Sun, produce a photo-evaporation effect that inhibits planetary formation. When the O-type star goes