The outward force of gas in a collapsing nebula is primarily due to gas pressure, which acts against gravitational forces. As gravity pulls the gas inward, the pressure from the gas molecules resists this collapse. This phenomenon is explained by the Jeans instability, which describes how gas clouds can become gravitationally unstable. When the gas is compressed, it generates pressure that counteracts the force of gravity until it is overcome. Understanding this balance is crucial in astrophysics for studying star formation and nebula dynamics.