When some math expressions such as complex fractions are around the braces which should be on the same baseline, besides, equality sign should be aligned with vinculum, how can we handle? For example, in the following formula, is it possible to make the equality signs aligned with the fraction bars?
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
S_d=\left[\begin{array}{@{}c@{}}
\cfrac{\displaystyle\sum_{j=1}^{n}{(d_j-\bar{d})^2}}{n-1}
\end{array}\right]^{1/2}
=\left[\begin{array}{@{}c@{}}
\cfrac{\displaystyle\sum_{j=1}^{n}{d_j^2}-\cfrac{1}{n}\left(\sum_{j=1}^{n}{d_j}\right)^2}{n-1}
\end{array}\right]^{1/2}
\end{equation}
\end{document}
\documentclass
and all, please.)