For all sets $A, B$ and $C$, I need to prove that it holds
$$(A \cup B)\backslash (C \backslash A)=A \cup (B \backslash C)$$
I tried to prove on this way:
$$C\backslash A= X$$
$$(A \cup B) \backslash X = \\ =AX \cup BX = \\ =AX \cup B\backslash C\backslash A=\\ = A\cup (B\backslash C)$$
Is this correct?
Could you please help me to prove this correctly if I'm wrong?
not quite. You should try doing it by contentions...so if $x\in(A\cup B)-(C-A)$ then ($x\in A$ or $x\in B$) and $x\not\in(C-A)$. if $x\in A$ then you are done because then $x\in A\cup (B-C)$. So assume $x\not\in A$. Then $x\in B$, then again also $x\not\in C-A$ which means $x\not\in C$ or $x\in A$, but $x\not\in A$, so it must mean $x\not\in C$. so, $x\in B-C$ and therefore $x\in A\cup(B-C)$. This proves $(A\cup B)-(C-A)\subset A\cup (B-C)$.
Try proving $A\cup (B-C)\subset (A\cup B)-(C-A)$ by the same means as above.