[example: A Set With No Maximum]
Let $A=\{x\in\mathbb{R}:0<x<1\}$. We first show that $A$ has no maximum. Choose any $x\in A$. Then $0<x<1$. From $x<1$, adding $x$ to both sides gives
\begin{align*}
x+x<x+1.
\end{align*}
Since $x+x=2x$, this is
\begin{align*}
2x<x+1.
\end{align*}
Dividing by $2>0$ preserves the inequality, so
\begin{align*}
x<\frac{x+1}{2}.
\end{align*}
Now we check that $(x+1)/2$ is still in $A$. From $x<1$, adding $1$ to both sides gives
\begin{align*}
x+1<2.
\end{align*}
Dividing by $2>0$ gives
\begin{align*}
\frac{x+1}{2}<1.
\end{align*}
From $0<x$, adding $1$ to both sides gives
\begin{align*}
1<x+1.
\end{align*}
Since $0<1$, transitivity gives
\begin{align*}
0<x+1.
\end{align*}
Dividing by $2>0$ gives
\begin{align*}
0<\frac{x+1}{2}.
\end{align*}
Thus $0<(x+1)/2<1$, so $(x+1)/2\in A$. Since $x<(x+1)/2$, the element $x$ is not a maximum of $A$. Because the choice of $x\in A$ was arbitrary, no element of $A$ is a maximum.
We now show that $1$ is the least upper bound of $A$. If $a\in A$, then $0<a<1$, hence
\begin{align*}
a\le 1.
\end{align*}
Therefore $1$ is an upper bound for $A$.
It remains to show that every real number below $1$ fails to be an upper bound. Let $b<1$. If $b<0$, then $1/2\in A$ because
\begin{align*}
0<\frac{1}{2}.
\end{align*}
Also $1<2$, and dividing by $2>0$ gives
\begin{align*}
\frac{1}{2}<1.
\end{align*}
Since $b<0$ and $0<1/2$, transitivity gives
\begin{align*}
b<\frac{1}{2}.
\end{align*}
Thus $b$ is not an upper bound for $A$.
Now suppose $0\le b<1$. Define
\begin{align*}
a=\frac{b+1}{2}.
\end{align*}
Since $0\le b$, adding $1$ gives
\begin{align*}
1\le b+1.
\end{align*}
Because $0<1$, transitivity gives
\begin{align*}
0<b+1.
\end{align*}
Dividing by $2>0$ gives
\begin{align*}
0<\frac{b+1}{2}.
\end{align*}
Also, from $b<1$, adding $1$ to both sides gives
\begin{align*}
b+1<2.
\end{align*}
Dividing by $2>0$ gives
\begin{align*}
\frac{b+1}{2}<1.
\end{align*}
Therefore $0<a<1$, so $a\in A$. To compare $a$ with $b$, start from $b<1$ and add $b$ to both sides:
\begin{align*}
b+b<b+1.
\end{align*}
Since $b+b=2b$, this becomes
\begin{align*}
2b<b+1.
\end{align*}
Dividing by $2>0$ gives
\begin{align*}
b<\frac{b+1}{2}.
\end{align*}
Because $a=(b+1)/2$, we have
\begin{align*}
b<a.
\end{align*}
Thus $b$ is not an upper bound for $A$.
We have shown that $1$ is an upper bound for $A$, and that every real number $b<1$ fails to be an upper bound for $A$. Therefore $1$ is the least upper bound of $A$. Since $1\notin A$, this supremum is not attained as a maximum.
[/example]