Option (D) is correct.
Explanation: An element of X−Y is in X and not in Y, that is, in X and in Y′. So for any two sets,
X−Y=X∩Y′
Apply this with X=A′ and Y=B′, and use (B′)′=B:
A′−B′=A′∩(B′)′=A′∩B=B−A
So A′−B′ is the set B−A, not A−B. A small example shows they can differ. Take U={1,2,3}, A={1,2} and B={2,3}. Then A−B={1}. But A′={3} and B′={1}, so A′−B′={3}.
Why the other options are wrong (each of them is always equal to A−B)
- (A) A∩B′ is the set of elements in A and not in B, which is exactly A−B.
- (B) By De Morgan's law and (A′)′=A, we get (A′∪B)′=(A′)′∩B′=A∩B′=A−B.
- (C) Using X−Y=X∩Y′ and (A′)′=A, we get B′−A′=B′∩(A′)′=B′∩A=A−B.