I'm preparing for a test tomorrow and going over some reading material, and I came across this problem that was worked out. So far I think I'm following each step of logic, but I've hit a wall with this part:
(p $\land$ ($\lnot$(r $\land$ q))) $\lor$ (($\lnot$p $\lor$ (r $\land$ q)))
is logically equivalent to
(p $\lor$ $\lnot$p $\lor$ ((r $\lor$ q)) $\land$ (($\lnot$(r $\land$ q)) $\lor$ $\lnot$p $\lor$ (r $\lor$ q))
I'm stumped as to what law is applied that allows you to go from the first and conclude the second.