Using downward arrow in an equation

equations

How can I use a downward arrow in a formulae as the below example:

enter image description here

There are some examples in other formats same as using $\underbrace{x}_{y}$ in equations but I could not find a desired style of an equation.

Best Answer

This could be done in a variety of ways as in the answers to this question, or you could use an align environment, using the B character. The \downarrow needs a small shift to the left as shown:

enter image description here

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{align*}
A={}&B+C\\
&\hspace{-.2ex}\downarrow\\
&B=R+q
\end{align*}

\end{document}

If you want to adjust the spacing around the arrow, you can add negative space after the appropriate lines:

\begin{align*}
A={}&B+C\\[-1ex]
&\hspace{-.2ex}\downarrow\\[-.5ex]
&B=R+q
\end{align*}

enter image description here

Related Question