I am using the following code but the result obtained is not setting in the space (left column of the page). I have it on my page but it is overlapping the text on the right column of the page. How can I decrease the size of math equations or is there any other way I can make it settle in that particular space?
\Bigg(
\begin{tabular}{c}
$x_n$ \\
$y_n$ \\
$z_n$
\end{tabular}
\Bigg) = \Bigg(
\begin{tabular}{ccc}
$\cos\theta\cos\psi$ & $-\cos\phi\sin\psi +\sin\phi\sin\theta\cos\psi$ & $\sin\phi\sin\psi +\cos\phi\cos\psi\sin\theta$ \\
$\cos\theta\sin\psi$ & $\cos\phi\cos\psi +\sin\phi\sin\theta\sin\psi$ & $\sin\theta\sin\psi\cos\phi - \cos\psi\sin\phi$ \\
$\sin\theta$ & $cos\theta\sin\phi$ & $cos\theta\cos\phi$
\end{tabular} \Bigg( \begin{tabular}{c}
$x_b$ \\
$y_b$ \\
$z_b$
\end{tabular} \Bigg)
Best Answer
It is best to divide this up into smaller elements, the
3x3
matrix is simply too big. Giving names to the columns and writing them out separately provides narrower text. Below I give two version, the first using the convenientamsmath
package, the second with standard LaTeX commands. In the standard LaTeX version, note thatarray
is appropriate in math mode, rather thantabular
.See the
amsmath
documentation for other math environments with differental alignment possibilities.