Spiral galaxies form a class of galaxy originally described by Edwin Hubble in his 1936 work The Realm of the Nebulae  and, as such, form part of the Hubble sequence. Most spiral galaxies consist of a flat, rotating disk containing stars, gas and dust, and a central concentration of stars known as the bulge. These are often surrounded by a much fainter halo of stars, many of which reside in globular clusters.
Spiral galaxies are named by their spiral structures that extend from the center into the galactic disc. The spiral arms are sites of ongoing star formation and are brighter than the surrounding disc because of the young, hot OB stars that inhabit them.
Roughly two-thirds of all spirals are observed to have an additional component in the form of a bar-like structure,  extending from the central bulge, at the ends of which the spiral arms begin. The proportion of barred spirals relative to barless spirals has likely changed over the history of the universe, with only about 10% containing bars about 8 billion years ago, to roughly a quarter 2.5 billion years ago, until present, where over two-thirds of the galaxies in the visible universe ( Hubble volume) have bars. 
The Milky Way is a barred spiral, although the bar itself is difficult to observe from Earth's current position within the galactic disc.  The most convincing evidence for the stars forming a bar in the galactic center comes from several recent surveys, including the Spitzer Space Telescope. 
Together with irregular galaxies, spiral galaxies make up approximately 60% of galaxies in today's universe.  They are mostly found in low-density regions and are rare in the centers of galaxy clusters. 
Spiral galaxies may consist of several distinct components:
The relative importance, in terms of mass, brightness and size, of the different components varies from galaxy to galaxy.
Spiral arms are regions of stars that extend from the center of barred and unbarred spiral galaxies. These long, thin regions resemble a spiral and thus give spiral galaxies their name. Naturally, different classifications of spiral galaxies have distinct arm-structures. Sc and SBc galaxies, for instance, have very "loose" arms, whereas Sa and SBa galaxies have tightly wrapped arms (with reference to the Hubble sequence). Either way, spiral arms contain many young, blue stars (due to the high mass density and the high rate of star formation), which make the arms so bright.
A bulge is a large, tightly packed group of stars. The term refers to the central group of stars found in most spiral galaxies, often defined as the excess of stellar light above the inward extrapolation of the outer (exponential) disk light.
Using the Hubble classification, the bulge of Sa galaxies is usually composed of Population II stars, which are old, red stars with low metal content. Further, the bulge of Sa and SBa galaxies tends to be large. In contrast, the bulges of Sc and SBc galaxies are much smaller  and are composed of young, blue Population I stars. Some bulges have similar properties to those of elliptical galaxies (scaled down to lower mass and luminosity); others simply appear as higher density centers of disks, with properties similar to disk galaxies.
Many bulges are thought to host a supermassive black hole at their centers. In our own galaxy, for instance, the object called Sagittarius A* is believed to be a supermassive black hole. There are many lines of evidence for the existence of black holes in spiral galaxy centers, including the presence of active nuclei in some spiral galaxies, and dynamical measurements that find large compact central masses in galaxies such as Messier 106.
Bar-shaped elongations of stars are observed in roughly two-thirds of all spiral galaxies.   Their presence may be either strong or weak. In edge-on spiral (and lenticular) galaxies, the presence of the bar can sometimes be discerned by the out-of-plane X-shaped or (peanut shell)-shaped structures   which typically have a maximum visibility at half the length of the in-plane bar.
The bulk of the stars in a spiral galaxy are located either close to a single plane (the galactic plane) in more or less conventional circular orbits around the center of the galaxy (the Galactic Center), or in a spheroidal galactic bulge around the galactic core.
However, some stars inhabit a spheroidal halo or galactic spheroid, a type of galactic halo. The orbital behaviour of these stars is disputed, but they may exhibit retrograde and/or highly inclined orbits, or not move in regular orbits at all. Halo stars may be acquired from small galaxies which fall into and merge with the spiral galaxy—for example, the Sagittarius Dwarf Spheroidal Galaxy is in the process of merging with the Milky Way and observations show that some stars in the halo of the Milky Way have been acquired from it.
Unlike the galactic disc, the halo seems to be free of dust, and in further contrast, stars in the galactic halo are of Population II, much older and with much lower metallicity than their Population I cousins in the galactic disc (but similar to those in the galactic bulge). The galactic halo also contains many globular clusters.
The motion of halo stars does bring them through the disc on occasion, and a number of small red dwarfs close to the Sun are thought to belong to the galactic halo, for example Kapteyn's Star and Groombridge 1830. Due to their irregular movement around the center of the galaxy, these stars often display unusually high proper motion.
The oldest spiral galaxy on file is BX442. At eleven billion years old, it is more than two billion years older than any previous discovery. Researchers believe the galaxy's shape is caused by the gravitational influence of a companion dwarf galaxy. Computer models based on that assumption indicate that BX442's spiral structure will last about 100 million years.  
The pioneer of studies of the rotation of the Galaxy and the formation of the spiral arms was Bertil Lindblad in 1925. He realized that the idea of stars arranged permanently in a spiral shape was untenable. Since the angular speed of rotation of the galactic disk varies with distance from the centre of the galaxy (via a standard solar system type of gravitational model), a radial arm (like a spoke) would quickly become curved as the galaxy rotates. The arm would, after a few galactic rotations, become increasingly curved and wind around the galaxy ever tighter. This is called the winding problem. Measurements in the late 1960s showed that the orbital velocity of stars in spiral galaxies with respect to their distance from the galactic center is indeed higher than expected from Newtonian dynamics but still cannot explain the stability of the spiral structure.
Since the 1970s, there have been two leading hypotheses or models for the spiral structures of galaxies:
These different hypotheses are not mutually exclusive, as they may explain different types of spiral arms.
Bertil Lindblad proposed that the arms represent regions of enhanced density (density waves) that rotate more slowly than the galaxy's stars and gas. As gas enters a density wave, it gets squeezed and makes new stars, some of which are short-lived blue stars that light the arms. 
The first acceptable theory for the spiral structure was devised by C. C. Lin and Frank Shu in 1964,  attempting to explain the large-scale structure of spirals in terms of a small-amplitude wave propagating with fixed angular velocity, that revolves around the galaxy at a speed different from that of the galaxy's gas and stars. They suggested that the spiral arms were manifestations of spiral density waves – they assumed that the stars travel in slightly elliptical orbits, and that the orientations of their orbits is correlated i.e. the ellipses vary in their orientation (one to another) in a smooth way with increasing distance from the galactic center. This is illustrated in the diagram to the right. It is clear that the elliptical orbits come close together in certain areas to give the effect of arms. Stars therefore do not remain forever in the position that we now see them in, but pass through the arms as they travel in their orbits. 
The following hypotheses exist for star formation caused by density waves:
Spiral arms appear visually brighter because they contain both young stars and more massive and luminous stars than the rest of the galaxy. As massive stars evolve far more quickly,  their demise tends to leave a darker background of fainter stars immediately behind the density waves. This make the density waves much more prominent. 
Spiral arms simply appear to pass through the older established stars as they travel in their galactic orbits, so they also do not necessarily follow the arms.  As stars move through an arm, the space velocity of each stellar system is modified by the gravitational force of the local higher density. Also the newly created stars do not remain forever fixed in the position within the spiral arms, where the average space velocity returns to normal after the stars depart on the other side of the arm. 
Charles Francis and Erik Anderson showed from observations of motions of over 20,000 local stars (within 300 parsecs) that stars do move along spiral arms, and described how mutual gravity between stars causes orbits to align on logarithmic spirals. When the theory is applied to gas, collisions between gas clouds generate the molecular clouds in which new stars form, and evolution towards grand-design bisymmetric spirals is explained. 
with being the disk scale-length; is the central value; it is useful to define: as the size of the stellar disk, whose luminosity is
The spiral galaxies light profiles, in terms of the coordinate , do not depend on galaxy luminosity.
Before it was understood that spiral galaxies existed outside of our Milky Way galaxy, they were often referred to as spiral nebulae. The question of whether such objects were separate galaxies independent of the Milky Way, or a type of nebula existing within our own galaxy, was the subject of the Great Debate of 1920, between Heber Curtis of Lick Observatory and Harlow Shapley of Mt. Wilson Observatory. Beginning in 1923, Edwin Hubble   observed Cepheid variables in several spiral nebulae, including the so-called "Andromeda Nebula", proving that they are, in fact, entire galaxies outside our own. The term spiral nebula has since fallen out of use.
The Milky Way was once considered an ordinary spiral galaxy. Astronomers first began to suspect that the Milky Way is a barred spiral galaxy in the 1960s.   Their suspicions were confirmed by Spitzer Space Telescope observations in 2005,  which showed that the Milky Way's central bar is larger than what was previously suspected.
Lin and Shu showed that this spiral pattern would persist more or less for ever, even though individual stars and gas clouds are always drifting into the arms and out again.