[Tex/LaTex] long equation in two column paper (the mathtool doesnt work.)

equations

I have an equation which is too long for a two-column paper. the code that I write is like below :

\begin{equation*}
\begin{split}
J=\frac{\displaystyle -l_2}{\displaystyle sin(\theta_3-\theta_2)}\cdot
\begin{matrix}
sin(\theta_1)sin(\theta_3-\theta_2)+sin(\theta_2)sin(\theta_1-\theta_3)&-sin(\theta_2)sin(\theta_4-\theta_3)\\
-cos(\theta_1)sin(\theta_3-\theta_2)-cos(\theta_2)sin(\theta_1-\theta_3)&cos(\theta_2)sin(\theta_4-\theta_3)
\end{matrix}
 \end{split}
\end{equation*}

but it doesn't work.what can i do?

Best Answer

The best approach would be to introduce some new symbols such as Z=\sin(\theta_3-\theta_2) in order to get it easier to read and shorter to typeset.

Assuming that you need all those terms in one equation, you could possibly do like the following:

% arara: pdflatex

\documentclass[twocolumn]{article}
\usepackage{mathtools}
\usepackage{blindtext}

\begin{document}
\blindtext
    \begin{multline*}
        J=\frac{-l_2}{\sin(\theta_3-\theta_2)}\cdot \\
        \begin{bmatrix}
            \begin{split}&\sin(\theta_1)\sin(\theta_3-\theta_2)\\&\quad+\sin(\theta_2)\sin(\theta_1-\theta_3)\end{split}&-\sin(\theta_2)\sin(\theta_4-\theta_3)\\[3ex]
            \begin{split}&-\cos(\theta_1)\sin(\theta_3-\theta_2)\\&\quad-\cos(\theta_2)\sin(\theta_1-\theta_3)\end{split}&\cos(\theta_2)\sin(\theta_4-\theta_3)
        \end{bmatrix}
    \end{multline*}
\blindtext
\end{document}

enter image description here