• For $x \in X$ we have $\dim _ x(X) = \max \dim (Z) = \min \dim (\mathcal{O}_{X, x'})$ where the maximum is over irreducible components $Z \subset X$ containing $x$ and the minimum is over specializations $x \leadsto x'$ with $x'$ closed in $X$.

In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the toolbar).