1

I am having a problem in aligning some symbols under an equation... This is the code:

\begin{align*}
D(\ldots,\,&tA^j,\,\ldots)=tD(\ldots,\,&A^j,\,\ldots).\\
& \uparrow & \uparrow \\
& k & k
\end{align*}

...and the output I get:

I also tried using the array environment instead, but still can't figure out how to put the arrow (and letter k) in the exact position. How should I do?

Thanks in advance.

P.S.

Same thing happens over here:

\begin{align*}
D(\ldots,\,A^k & +tA^j,\,\ldots) = D(\ldots,&\,A^k,\,\ldots) + D(\ldots,&\,tA^j,\,\ldots) \\
& \uparrow & \uparrow & \uparrow \\
& k & k & k
\end{align*}

which gives:

enter image description here

2

You don't have to align the \uparrows: \underset and a matrix environment will do:

\documentclass{article}
\usepackage[utf8]{inputenc}%
\usepackage{mathtools}

\begin{document}

\begin{align*}
  D(\ldots,\,\underset{\begin{matrix} \uparrow \\ k \end{matrix}}{tA^j},\,\ldots) & =tD(\ldots,\,\underset{\begin{matrix} \uparrow \\ k \end{matrix}}{A}^j,\,\ldots) \\
  D(\ldots,\,A^k \underset{\begin{matrix} \uparrow \\ k \end{matrix}}{+}tA^j,\,\ldots) & = D(\ldots,\,\underset{\begin{matrix} \uparrow \\ k \end{matrix}}{A}^k,\,\ldots) + D(\ldots,\,\underset{\begin{matrix} \uparrow \\ k \end{matrix}}{tA^j},\,\ldots)
\end{align*}

\end{document} 

enter image description here

| improve this answer | |
  • Didn't know about the \underset command, thanks a lot! – CAKES Sep 26 '17 at 17:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.