University of California, San Diego: Edward Bender and S. Williamson's "Arithmetic, Logic and Numbers: Boolean Functions and Computer Arithmetic"

Study Theorem 2 (Algebraic rules for Boolean Functions) on pages BF-6 and BF-7.