Suppose that $X$ is some set and $\sim$ is an equivalence relation on $X$ and $X\neq \varnothing$. For each $x\in X$ define $$R(x):=\{y\in X: y\sim x\}$$ an equivalence class of $x$. One can show that if $R(x_1)\cap R(x_2)\neq \varnothing$ then $R(x_1)=R(x_2).$
I would like to understand why these equivalence classes form the partition of $X$. So I need to show that there exist $\{P_i\}_{i\in I}$ such that $P_i\cap P_j=\varnothing$ and $X=\cup_{i\in I}P_i$, right?
Intuitively, I know that they form partition but cannot prove it rigorously. I was wondering how to specify these partitioning sets explicitly.