Sinon il y a la commande \verb=\xrightarrow[d]{u}= écrit une flèche avec ce qui est dans "[ ]" en dessous et dans "\{ \}" au dessus, en allongeant la flèche de la quantité nécessaire.
Cela donne : $$u_n \xrightarrow[n\to \infty]{} 2$$
\verb=u_n \xrightarrow[n\to \infty]{} 2=
On peut ainsi faire de belles flèches, par exemple :
$$ A \xrightarrow[\approx]{\quad \varphi \quad} B $$
\verb=A \xrightarrow[\approx]{\quad \varphi \quad} B=
Alain
Au contraire, la solution d'Alain permet d'avoir une cohérence typographique entre la flèche $\xymatrix{u_n \ar[r] &2}$ et celle de $n \rightarrow \infty$, ce qui est souhaitable, tout de même ! Ce n'est pas un hasard si Knuth a utilisé dans ses fontes la même pointe de flèche pour toutes les flèches.
Réponses
Utilise la commande underset
$$U_n\underset{n\to +\infty}{\longrightarrow} 0$$
\verb=U_n\underset{n\to +\infty}{\longrightarrow} 0=
Joyeuses fêtes.
\newcommand{\tend}[2]{\displaystyle\mathop{\longrightarrow}_{#1\rightarrow#2}}
ça marche aussi.
$a^2+b^2 \to 0$
$$\xymatrix{u_n \ar[r]_{n \rightarrow \infty} &2}$$
\verb=\xymatrix{u_n \ar[r]_{n \rightarrow \infty} &2}=
Sinon il y a la commande \verb=\xrightarrow[d]{u}= écrit une flèche avec ce qui est dans "[ ]" en dessous et dans "\{ \}" au dessus, en allongeant la flèche de la quantité nécessaire.
Cela donne : $$u_n \xrightarrow[n\to \infty]{} 2$$
\verb=u_n \xrightarrow[n\to \infty]{} 2=
On peut ainsi faire de belles flèches, par exemple :
$$ A \xrightarrow[\approx]{\quad \varphi \quad} B $$
\verb=A \xrightarrow[\approx]{\quad \varphi \quad} B=
Alain