What relationship exists between a star's mass and its lifespan?

Answer

Lifespan is inversely proportional to mass

The more massive a star is, the faster it consumes its nuclear fuel; therefore, massive stars have drastically shorter lifespans compared to less massive stars like the Sun.

What relationship exists between a star's mass and its lifespan?
Spacestarscosmologyformationastrophysicsnebulaestellar formation