Indicator function
Appearance
An indicator function selects elements based on specific criteria.
General form
If set $A$ encompasses all elements satisfying certain criteria, its indicator function
$$ \mathbf{1}_A(x)= \begin{cases} 1,& x\in A,\\ 0,& x\notin A. \end{cases} $$
Composition
$$\begin{gathered} \mathbf{1}_{A\cap B}(x)=\mathbf{1}_A(x)\cdot \mathbf{1}_B(x)\\ \mathbf{1}_{A\cup B}(x)=\mathbf{1}_A(x)+\mathbf{1}_B(x) - \mathbf{1}_{A\cap B}(x)=\mathbf{1}_A(x)+\mathbf{1}_B(x) - \mathbf{1}_A(x)\cdot \mathbf{1}_B(x)\\ \end{gathered}$$