Bernoulli's equation explains how pressure and energy distribution vary in a fluid while flowing through a pipe.