Here are some key factors contributing to this variation:
* Formation and Evolution: Elliptical galaxies are thought to form through mergers of smaller galaxies. The angle and relative masses of these merging galaxies significantly influence the final shape of the resulting elliptical. If the merger is head-on, a more spherical galaxy is likely. If the galaxies merge at an angle, a more elongated, lenticular shape is possible.
* Rotation: Elliptical galaxies are not completely devoid of rotation, although it's much less prominent than in spiral galaxies. The amount of rotation a galaxy has also influences its shape. Faster rotation can lead to a more flattened, disk-like shape, while slower rotation allows for a more spherical form.
* Internal Dynamics: The distribution of dark matter and stars within the galaxy plays a role in shaping the gravitational potential. This potential, in turn, influences the galaxy's overall structure.
* Environmental Factors: The environment in which a galaxy resides can also influence its shape. For instance, galaxies in dense clusters tend to have more interactions, which can lead to more frequent mergers and thus, a wider range of shapes.
* Observation Bias: How we observe galaxies from Earth can affect our perception of their shapes. If a flattened elliptical galaxy is viewed edge-on, it appears very thin and elongated. However, if viewed face-on, it appears more circular.
It's worth noting that our understanding of galaxy formation and evolution is still evolving. The exact mechanisms by which the shapes of elliptical galaxies vary remain areas of active research.
In summary, the shape of an elliptical galaxy is a result of a complex interplay of factors including its formation history, rotation, internal dynamics, environment, and our viewing angle.