I'm new to LaTeX and I'm trying to figure out how to correctly format a proof. Can someone show me a basic template for how to do this?
The part I am having the most trouble with is creating new columns and customizing alignment... for instance, how do I add a right-aligned annotation (i.e. by distributive property
) to a line of this sample proof? Should I use eqnarray*
or is there a better option?
\begin{proof}
Let $t,u \in \mathbb{R}$ where $t=xy$ and $u=zw$. So,
\begin{eqnarray*}
4xyzw &=& 2\cdot2tu \\
&\le& 2\cdot(t^2+u^2) \\
&=& 2\cdot((xy)^2+(zw)^2) \\
&=& 2\cdot(x^2y^2+z^2w^2) \\
&=& 2x^2y^2+2z^2w^2 \\
&\le& ((x^2)^2+(y^2)^2)+((z^2)^2)+(w^2)^2) \\
&=& x^4+y^4+z^4+w^4
\end{eqnarray*}
\end{proof}
eqnarray*
. The short of it is that you should rather avoid it in lieu of something like thealign
environment fromamsmath
.