Hello matsci0000A slightly simpler version of the formula that HallsofIvy has given you is , where is the complement of (which is sometimes written ).
If you know the Laws of Sets, you can prove this as follows:
First, the definition: (the elements that are in but not in )
So
(De Morgan's Law)
(Involution Law)
Grandad