I need help in aligning some long math in a matrix. I have tried the array format and it still doesn't work. My margins are 1.25in all around and simply inputting them as is results in the equation going outside the page. Breaking the math up into sections makes it get treated as different elements and therefore go out of alignment.
Here's the tex code with the array setting ( I used "bmatrix" with similar results):
Code: Select all
\begin{equation}
e^{[\mathbf{M}]}=
\left[\begin{array}{c c}
\cosh((\sqrt{k^2 - \hat{\sigma}^2})z)+\frac{i\hat{\sigma}}{(\sqrt{k^2-\hat{\sigma}^2})} \sinh((\sqrt{k^2-\hat{\sigma}^2})z) & \frac{i k}{(\sqrt{k^2 - \hat{\sigma}^2})} \sinh((\sqrt{k^2 -\hat{\sigma}^2})z)\\
\frac{-i k}{(\sqrt{k^2 - \hat{\sigma}^2})} \sinh((\sqrt{k^2 -\hat{\sigma}^2})z) & \cosh((\sqrt{k^2 - \hat{\sigma}^2})z) + \frac{-i \hat{\sigma}}{(\sqrt{k^2 - \hat{\sigma}^2})} \sinh((\sqrt{k^2 -\hat{\sigma}^2})z)
\end{array}\right]
\end{equation}