Let $A$ and $B$ be two events from $\Omega, \mathcal{P}(\Omega),\mathbb{P})$. I need to show that next equal is true $$\mathbb{I}_{\{A \Delta B \}}=(\mathbb{I}_{\{ A\}}-\mathbb{I}_{\{ B\}})^2$$.
I think $A \Delta B=(A\cap \overline{B})\cup(B\cap \overline{A})$ Is it right? what to do next?
My notation for your $\mathbb I_{\{A\}}$ is $\mathbf1_A$.
Since indicator functions only take values in $\{0,1\}$ for any $\omega\in \Omega$ the following statements are evidently equivalent:
This proves that $(\mathbf1_A-\mathbf1_B)^2$ serves as indicator function of set $A\Delta B$.