I want to simultaneously have text left and right justified around an align environment. I'm able to do this, but my solution seems like a dreadful hack. I really don't want to prepend every line with &&. But && doesn't really get the text to be flush with the left. Does anyone have a better solution?
Here's my code:
\documentclass{article}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage[margin=1in]{geometry}
\setlength{\parindent}{0pt}
\begin{document}
Establish the following identity:
\[\cos^4\theta-\sin^4\theta=\cos(2\theta)\]
\begin{align*}%'
\tag*{\makebox[0pt][l]{\hspace*{-\textwidth}\textbf{Proof:}}}
\cos^4\theta-\sin^4\theta
&= (1-\sin^2\theta)^2 - \sin^4\theta
&& \text{Use $\cos^2\theta=1-\sin^2\theta$}
\\
& = 1 - 2\sin^2\theta + \sin^4\theta - \sin^4\theta
\\
& = 1 - 2\sin^2\theta = \cos(2\theta) && \text{Double angle formula.}
\end{align*}
\end{document}
Result:


{}) button. – T. Verron Nov 22 '12 at 00:30align*environment? Having it on the same height as the first formula is not at all needed or desirable, in my opinion. – egreg Nov 22 '12 at 00:33align*is achieved using\intertext. See inserting sentences between subequations. – Werner Nov 22 '12 at 00:41flalign*really flushes left and right, but it still needs&&hacks, as you said. – Manuel Nov 22 '12 at 00:50