# Align word to the right after Equation (same line)

I'm trying to get a name for the equation (AA) in the same line. Unfortunately it appears one line below.

\usepackage{amsmath}
\usepackage{amssymb}

%
\begin{eqnarray*}
x  & \geq & y+z \\
\Leftrightarrow x -z & \geq & y  \end{eqnarray*}  \hfill (AA)
%


But I want the AA to occur in the same line as the last equation. Can someone tell me how to get this result? Many thanks in advance!

• Welcome to TeX.SX! Please help us (and also you) and add a minimal working example (MWE), that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass and ending with \end{document}. Jun 9 '17 at 15:02

Don't use eqnarray. Use the align environment from the amsmath package, and use the \tag command for the custom label.
\documentclass{article}