A firearm operates fundamentally on the principles of chemical and pneumatic energy conversion. It functions by containing a confined chemical propellant that, upon ignition, undergoes rapid combustion, generating a large volume of hot gas. The mechanical design of the device is engineered to contain this rapidly expanding gas and convert the chemical potential energy into high-pressure kinetic energy. This pressure forces a projectile down a bore, accelerating it to supersonic velocities. The structural integrity of the chamber and the barrel must withstand extreme cyclical forces, necessitating precise metallurgy and engineering. The resulting motion and trajectory of the projectile are governed by principles of ballistics, considering factors such as drag, gravity, and initial muzzle velocity.