a)
CA∩B=CACB.CA∪B=CA+CB−CACBCR−A=CR∩A=CRCA=CR(1−CA).b) Define A={x:f(x)=1}. Then, for x∈A, we have
f(x)=1=CA(x).Inversely, for x∈/A, we have
x∈A={x:f(x)=0},so
f(x)=0=CA(x).Hence, A is a set such that f=CA.
c) In the forward direction (⇒), suppose f2=f. Then, simple algebraic manipulations yield
f(x)2−f(x)=0⟹f(x)(f(x)−1)=0⟹f(x)=0∨f(x)=1.Hence, explained in words, f(x)=0 or 1 for each x. By what we proved in b), there is therefore a set A such that f=CA.
In the backward direction (⇐), suppose f=CA. Then, the range of f is {0,1}. We also have that 02=0 and 12=1. Thus, f=f2.