I am wondering what is the best way to make multi-row text comments in the align environment. Here is an example code:
\begin{align*}
\int \left( \frac{x+3}{2}\right) \, dx =& \int \frac{1}{2}(x+3) \, dx & \text{Factoring out a constant.} \\
=& \frac{1}{2} \int (x+3) \, dx & \text{Factoring the constant outside the integral} \\
=& \frac{1}{2}[\frac{1}{2}x^2+3x]+C & \text{Applying the power rule and adding the constant of integration} \\
=& \frac{1}{4}x^2+\frac{3}{2}x+C & \text{Distributing the } \frac{1}{2} \\
=& \frac{x^2+6x}{4}+C& \text{Finding a common denominator} \\
=& \frac{x(x+6)}{4}+C & \text{Factoring out an } x
\end{align*}
I am not very fond of the way the comment is close to the equation in the third line where it says "applying the power rule...", is there any neat way of making a 2 line comment that doesn't look awkward?


&and&&have different outcomes when usingamsmathas given in the documentation ftp://ftp.ams.org/pub/tex/doc/amsmath/amsldoc.pdf – Leucippus Jul 24 '15 at 02:38\parbox. also, the square brackets are too small in that line, and can be improved by using\Bigl[and\Bigr](maybe\biggwould be better; i can't try it out and don't remember the sizes exactly). – barbara beeton Jul 24 '15 at 04:58\parboxdoes blend well – Leucippus Jul 24 '15 at 06:12\raggedright. – barbara beeton Jul 24 '15 at 07:17\\[-1ex](or 1.5ex). – Bernard Jul 24 '15 at 08:30