The following definitions and results are from my textbook.
A partition $\mathcal{P}$ of a set $X$ is a collection of nonempty sets $X_1, X_2, \dots$ such that $X_1 \cap X_j = \emptyset$ for $i \neq j$ and $\bigcup_k X_k = X$. Let $\sim$ be an equivalence relation on a set $X$ and let $x \in X$. Then $[x] = \{y \in X: y \sim x\}$ is called the equivalence class of $x$. We will see that an equivalence relation gives rise to a partition via equivalence classes. Also, whenever a partition of a set exists, there is some natural underlying equivalence relation, as the following theorem demonstrates.
Theorem. Given an equivalence relation $\sim$ on a set $X$, the equivalence classes of $X$ form a partition of $X$. Conversely, if $\mathcal{P} = \{X_i\}$ is a partition of a set $X$, then there is an equivalence relation on $X$ with equivalence classes $X_i$.
Corollary. Two equivalence classes of an equivalence relation are either disjoint or equal.
This is great and all, but I do not really understand how to find the partitions in practice... can anyone help me? An intuitive explanation of why the partitions arise/the connection between partition, equivalence classes, and equivalence relations would also be very helpful. Thanks.
Equivalence relations (which are basically 'the same' as partitions by the Theorem) arise everywhere.
For a generic example, any function $f:A\to B$ determines an equivalence relation on $A$ by $a\sim a'$ iff $f(a)=f(a')$.
E.g. two persons are equivalent with respect to their height if they have the same height (here $f$ maps a person his/her height, say in integer millimeters). Then the partition (which consists of the equivalence classes) divides the people in as many groups as many possible heights are.
You can find infinitely many other examples.