I'm new to LaTeX. I'm trying to create a table where one of the cells contains aligned equations.
The naive approach of nesting an align environment inside the table environment does not work:
\begin{tabular}{l r}
A & B\\
\begin{align}
x &= y+1\\
x &= (y+1) (y-1)
\end{align}
\end{tabular}
This gives the error 'Argument of \align has an extra }.'
I must admit I have no idea what that error message means... Why is it not possible to nest align and table environments? How do I put aligned equations in a table?
Thanks!

alignalignment character&from thetabularby bracing it. – Werner Mar 03 '14 at 20:21