4

I want to know how I can write an equation that has a left arrow on top with text and a right arrow on the bottom with text. Essentially, I want to be able to write:

enter image description here

1 Answer 1

11

Due to the symmetry, an array will do with no other trick:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
\frac{dI}{dm}=
\begin{array}{@{}c@{}}
\text{Approach 1} \\
$\leftarrowfill$\\
\displaystyle
\frac{\partial f_p(m_{p})}{m_{p}}\,
\frac{\partial f_{p-1}(m_{p-1})}{m_{p-1}}
\dots
\frac{\partial f_1(m_{1})}{m_{1}}
\\
$\rightarrowfill$\\
\text{Approach 2}
\end{array}
\]

\end{document}

enter image description here

For less generous vertical space use something like

\[
\renewcommand{\arraystretch}{0.75}
\frac{dI}{dm}=
\begin{array}{@{}c@{}}
\text{Approach 1} \\
$\leftarrowfill$\\
[...]

enter image description here

1
  • Thanks, that's perfect! Sep 14, 2020 at 17:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .