I often used \boxed{...}
from the AMS math package to place a box around important equations. However, this approach often produces somewhat awkward looking output. Consider
\documentclass{article}
\pagestyle{empty}
\usepackage{amsmath}
\begin{document}
\[
\boxed{c_i = \sum_jA_{ij}}
\]
\[
\boxed{c_i = \langle\psi|\phi\rangle}
\]
\end{document}
Observe that in the first case the box looks unbalanced while in the second case could do with more padding on both the top and bottom. What is the best way to go about this? I know that I could use a \phantom
but am wondering if more elegant solutions exist.