The Bernoulli equation for incompressible fluids can be derived by either integrating Newton's second law of motion or by applying the law of conservation of energy, ignoring viscosity, compressibility, and thermal effects.