A galaxy is an astronomical structure containing millions to billions of stars, gas, and dust bound together by gravity. Interestingly, there is no agreed-upon definition of what a galaxy is. Even with the definition provided above, there is no distinction between a galaxy and a large star cluster. For the purpose of this discussion, we will consider the defining factor of a galaxy to be the existence of multiple generations of stars, mainly because this is something that star clusters generally lack. Thus, we can define a galaxy as an astronomical object that contains millions to billions of stars from multiple generations, all of which are bound by gravity.
Galaxies And The Great Debate

The size of our galaxy was relatively known at the time, so all Hubble needed to do was determine how far away some of these objects were. If they extended beyond the known size of the galaxy, they must be objects outside of the galaxy and thus other galaxies in and of themselves. Sounds pretty simple, right? But it's not as easy as it sounds. Knowing how far away something is in astronomy is something most of us take for granted. It hasn't always been easy. In the 1920s, determining how far away something has mainly used the method of parallax. The problem with parallax is that it doesn't allow you to determine distances beyond the Milky Way. If these objects were outside the galaxy, they could be millions of light-years away. A new technique was needed, and Hubble found just what to look for.
In astronomy, you can relate brightness and distance mathematically, and so if you know one, you can determine the other. But how do you determine brightness? There's a difference between how bright something is versus how bright it appears to be. For example, imagine placing a 5-watt light bulb a foot in front of you and an 8-watt bulb a km in front of you. To you, the 5-watt bulb is brighter. However, it only appears more radiant because it is closer to you. This type of brightness is called apparent magnitude. If you could measure their actual brightness, called absolute magnitude, you would find that despite appearance, the further bulb is, in fact, brighter. This makes it hard to determine distances in space because a bright star could be closer or further away and emit more energy. Because there are several different types of stars, this makes it all the more difficult. However, Hubble used a unique kind of star to determine distance. These kinds of stars are called cepheid variables, and they can rapidly change their energy output and brightness. However, these changes are consistent and regular, allowing astronomers to determine their absolute brightness at vast distances. These stars allowed Hubble to determine the distance to the Andromeda Nebula, which he determined to be around two million light-years. This placed it far outside the Milky Way, and thus it could not be a nebula. Instead, Hubble found that the Andromeda Nebula was, in fact, the Andromeda Galaxy. Our picture of the universe was forever changed. In a short period of time, our view of the universe changed from a small static universe containing only one galaxy to a universe that could be infinite in its expanse and is home to hundreds of billions of other galaxies. The discovery of our place in the universe is a very recent one. It was a discovery that was nearly as perspective-changing as the discovery that the Earth is but one planet in orbit around a star that is one of many in a gigantic galaxy. The universe went from finite to infinite in a matter of years. Astronomy and science were changed forever.
Spiral Galaxies

Spiral galaxies are one of nature's most brilliant sights. When observed through a small telescope, they appear as large cloudy disks, and you likely would not be able to tell the difference between a galaxy and a cloud. With larger telescopes, however, their true brilliance comes into view. Most of what is known about spiral galaxies comes from observations of our galaxy, the Milky Way. Unfortunately, we can't discern our galaxy's shape because we exist inside the Milky Way. From observations of other spiral galaxies, we know the Milky Way must also be a spiral due to physical characteristics common between all spirals. These include a central bulge of stars surrounded by a disk of stars, vast amounts of star-forming material, and the motion of stars within the galaxy.
How exactly does the spiral galaxy form? How does a group of many billions of stars end up in such a stunning shape? The complex spiral is one of nature's most beautiful creations. All you need is time and physics, along with many stars. All of the material in a spiral galaxy orbits around the galactic center. It was once assumed that the spiral shape was created because stars closer to the galactic center orbit faster than those further out. This turned out not to be the case, although something similar happened. Rather than differences in stellar velocity being the cause, it turns out that the spiral arms themselves rotate at varying speeds. When a material is exchanged between spiral arms, such as fast-moving material moving into a slow-moving arm, it hits a wall and slows down. This can compress stellar material, leading to a wave of star formation. Stars are denser than gas clouds and thus move slower than the surrounding material. Over time, stellar material moves ahead of the stars and compresses, forming more stars and continuing the process. These differences in velocity and exchanges of material create and maintain the spiral structures of these magnificent galaxies. However, this isn't actually why the galaxy becomes a spiral. The spiral arms themselves contain a much higher material density than other regions, so when gas and dust pass into a high-density region, they compress and form stars. Interestingly, the arms themselves move slower than the material within them. These changes in density create density waves that propagate through the galaxy and create a spiral shape.
Read MoreWhat Is The Milky Way Galaxy Made Of?
Irregular Galaxies

Interestingly, most irregular galaxies are relatively small, averaging around 10 billion stars each. Although this seems like a huge number, it represents only about 10% of the stars in our Milky Way. Their relatively small number of stars also makes irregulars rather dim compared to other galaxies, with only about 10% of the brightest galaxies being irregular.
Elliptical Galaxies

Interestingly, most of an elliptical galaxy's physical characteristics can be explained by galactic mergers. In addition to their shape, galactic mergers explain why elliptical galaxies are mostly devoid of star-forming material. During a galactic merger, gravitational forces will cause most of a galaxy's star-forming material to form a vast multitude of stars. The process may last millions of years, and by the time it is finished, the galaxy will have used up most of its star-forming material. The most massive stars to form will go supernova in less than a hundred million years, and so eventually, an elliptical galaxy is left with nothing but small mass red stars.
Ring Galaxies

Galactic Mergers

Interestingly, nearly every elliptical galaxy contains little to no star-forming material, while spiral galaxies are rich in stellar nurseries. Galactic mergers help to explain this observation. During a galactic merger, tidal forces from both galaxies' gravity cause stellar gas within the two galaxies to heat up and clump together, leading to an increase in star formation. It is improbable that any stars collide during the merger due to the vast distances between them. However, large nebulae may crash due to their much larger surface area. When nebulae collide, stellar material can clump together, directly increasing temperature and pressure. The collision may result in a rapid increase in star formation rate. The star formation rate is so drastic that by the time the merger is finished, most of the star-forming material is gone. This phase of rapid star birth is referred to as the starburst phase, and any galaxy within this phase is called a starburst galaxy. Things calm down after many millions of years, and a new, much larger elliptical galaxy is born.