# How do I add an arrow from one equation to another

I want to have something like this in LaTeX but I don't know how to add the labled arrow:

So the code I have is basically

$$\begin{split} x^4 &= x \cdot x \cdot x \cdot x \\ x^3 &= x \cdot x \cdot x \end{split}$$

and I want to add an arrow on the right hand side pointing from the second to the first equation and labled "$\cdot x$".

I appreciate any help!

• Welcome to TeX.SE!!!. Take a look at this post (there are many other on this site): tex.stackexchange.com/questions/76506/… Apr 22, 2023 at 15:31
• Have a look at the witharrows package. Apr 22, 2023 at 16:05

You could try the witharrows package:

\documentclass{article}
\usepackage{witharrows}

\begin{document}
$\begin{WithArrows} x^4 &= x \cdot x \cdot x \cdot x \Arrow[tikz=<-]{${} \cdot x$} \\ x^3 &= x \cdot x \cdot x \end{WithArrows}$
\end{document}

In order to change the curvature or arrow tip of the arrow, you can style it using TikZ options:

\documentclass{article}
\usepackage{witharrows}

\begin{document}
$\begin{WithArrows} x^4 &= x \cdot x \cdot x \cdot x \Arrow[tikz={stealth-, in=100, out=80, looseness=1.5}]{${} \cdot x$} \\ x^3 &= x \cdot x \cdot x \end{WithArrows}$
\end{document}

• The arrow doesn’t curl enough to point to the top equation. Can that be fixed?
– Simd
Apr 23, 2023 at 5:58
• @Simd Yes, see my edit. Apr 23, 2023 at 6:49