I am trying to write a long equation which includes a long matrix. I have tried many solutions (multiline, split) from the other so answers but the problem still exists. Could you help me to find out the problem? Thank you in advance.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
\begin{equation}
\begin{multiline}
\label{nineth}
\begin{bmatrix}
\dot{x}\
\dot{y}\
\dot{z}\
\end{bmatrix} =
\begin{bmatrix}
R_{0}^{0} \begin{bmatrix}
0\ 0\ 1
\end{bmatrix} x
(d^{0}{5}-d^{0}{0}) &
R^{0}{1} \begin{bmatrix}
0\ 0\ 1
\end{bmatrix} x
(d^{0}{5}-d^{0}{1}) &
R^{0}{2} \begin{bmatrix}
0\ 0\ 1
\end{bmatrix} x
(d^{0}{5}-d^{0}{2}) &
R^{0}{3} \begin{bmatrix}
0\ 0\ 1
\end{bmatrix} x
(d^{0}{5}-d^{0}{3}) & \
R^{0}{4} \begin{bmatrix}
0\ 0\ 1
\end{bmatrix} x
(d^{0}{5}-d^{0}{4}) &
\end{bmatrix}
\begin{bmatrix}
\dot{\theta_{1}} \
\dot{\theta_{2}} \
\dot{\theta_{3}} \
\dot{\theta_{4}} \
\dot{\theta_{5}} \
\end{bmatrix}
\end{multiline}
\end{equation}
\end{document}
As you can see there are 3 terms in the equation, 2nd term should be splitted but the result of the code is wrong in the image. 



multilinedoes not exist and should bemultline, which cannot be nested in anequation. But apart from this I really do not understand how the equation is supposed to look like. – campa Aug 04 '21 at 16:10multlinedid not give any result btw. – Oğuz KAHRAMAN Aug 04 '21 at 16:14xcharacters denote multiplication, right?) If my assumption is correct, why not just state that\dot{x}=0,\dot{y}=0, and provide an inline math expression for\dot{z}? – Mico Aug 04 '21 at 16:33R^0_{...}andd^0_{...}are scalars, vectors, or matrices. – Mico Aug 04 '21 at 16:54