I am aligning some equations using the \begin{aligned} from amsmath package. This aligns the equations using the = as alignment point, which is nice, but I also want a vertical line drawn between every two = symbols. Essentially, I want to achieve this:
Is there a way to do this? Many thanks
EDIT: here is the code I use now:
\documentclass{article}
\usepackage{amsmath,amssymb,amsthm}
\begin{document}
\begin{align*}
x &= 3+2 \\
&= 5
\end{align*}
\end{document}