A planetary nebula is a nebula that is made up of gas and plasma. They are made by certain types of stars later in their life. They look like planets through small optical telescopes. They do not last for long compared to a star, only tens of thousands of years.

At the end of a normal-sized star's life, in the red giant phase, the outside layers of a star are ejected. Because the outside is gone, the star shines brightly and is very hot. The ultraviolet radiation given off by the center of the star ionizes the gas and plasma that was thrown out from the star. This is what causes a planetary nebula to look like it does.

While some planetary nebulae look similar, others have very distinct and unique shapes. Scientists are not sure why planetary nebulae can look so different from one another. Scientists think that binary stars, stellar winds and magnetic fields might be some of the reasons planetary nebulae can look so varied. In the early 21st century some astronomers began calling them “globular nebulas” to avoid confusing them with the Protoplanetary nebulas that make planets.

Observations

Planetary nebula are not very bright. None of them are bright enough to see without a telescope. The first one discovered was the Dumbbell nebula. 
Astronomers did not know what these objects were until the first spectroscopic experiments were done in the 1800's. William Huggins used a prism to look at galaxies. He noticed that they looked a lot like stars.

When he looked at the Cat's Eye nebula, it did not look the same. He saw an emission line at a place that no one had seen before. This meant that it looked like an element that no one had ever seen before. Scientists thought it might be a new element. They decided to call it nebulium.

Later, physicists showed that it is possible for gasses with a very low density to look like something else. It turned out that the gas they were looking at was oxygen, and not nebulium.

The stars in planetary nebulae are very hot. They are not very bright, though. This means that they must be very small. The only time that stars get that small is when they are dying. That means that they are one of the last steps in a star's death. Astronomers saw that all planetary nebula are expanding. This meant that they were caused by a star's outer layers being thrown into space at the end of its life.

Origins
Stars weighing more than eight solar masses will become supernovae. Stars of lesser mass will form planetary nebulae. After billions of years of stellar evolution a star will have no more hydrogen. This makes the surface of the star colder, and makes the core smaller. The sun's core is about 15 million degrees Kelvin. When it runs out of hydrogen, the smaller core will cause it to rise to about 100 million degrees Kelvin.

The outer layers of the star become much bigger because of the heat of the core, and become much cooler. The star becomes a red giant. The core gets even smaller and hotter. When its reaches 100 million K, helium begins to fuse into carbon and oxygen. When this happens, the core stops shrinking. Helium burning soon forms a core of carbon and oxygen, with both a helium and a hydrogen shell surrounding it.

Because helium in fusion reactions is not very stable, the core starts to grow and shrink very quickly. Strong stellar winds blow the gas and plasma in the outer layer of the star outwards. These gases form a cloud around the core of the star. As more and more of the gas moves away from the star, deeper and deeper layers at higher and higher temperatures are sent out. When the gas heats up to around 30,000 degrees kelvin, the gas starts to glow. The cloud has then become a planetary nebula.

Numbers and position 
We know of about 3,000 of these nebulae in our galaxy, compared to 200 billion stars.<ref>Parker Q.A. et al. 2006. The Macquarie/AAO/Strasbourg H-alpha Planetary Nebulae Catalogue: MASH, MNRAS 373, 79</ref> Their very short lifetime compared to a star is why there are not that many compared to stars. They are found mostly in the plane of the Milky Way, and there are more and more the closer you get to the center of the Milky Way.

Shape
Only about twenty percent of planetary nebulae are spheres (like Abell 39). The rest of them have various shapes. The reason for these shapes is not understood. It may be because of the gravitational pull of secondary stars (for example, if it is a binary star system). A second theory is that planets near the star might change how the nebula forms. A third theory is that magnetic fields cause the shapes.  .

Problems
A problem in studying planetary nebulae is that astronomers can not always work out how far away they are. When they are close, astronomers use something called expansion parallax'' to  estimate how far away they are, but this takes a long time. If they are not close, there is not yet a good way to find how distant they are.

Related pages
 Interstellar medium
 Nebula
 Stellar evolution
 White dwarf

References

Other websites
 Entry in the Encyclopedia of Astrobiology, Astronomy, and Spaceflight
 Press release on recent observations of the Cat's Eye nebula
 Planetary Nebulae , SEDS Messier Pages
 The first detection of magnetic fields in the central stars of four planetary nebulae 
 WWW search for Galactic planetary nebulae 
 Planetary nebulae - Information and amateur observations
 Planetary nebula on arxiv.org

Nebulae