Bernoulli’s equation is derived from the principle of conservation of energy. For a flowing fluid, the total mechanical energy (comprising pressure energy, kinetic energy, and potential energy) remains constant along a streamline.