[Tex/LaTex] Delta-equal to symbol and matrix with dashed lines

matrices

How do i write this in latex plz

enter image description here

Best Answer

You can use

\begin{equation*}
    w \overset{\Delta}{=}
    \begin{bmatrix}
        w^1\\
        \verb!---!\\
        w^2
    \end{bmatrix}
    \overset{\Delta}{=}
    \begin{bmatrix}
        p\\
        \verb!-------------!\\
        [exp(q_n/\pi)]r^3
    \end{bmatrix}
\end{equation*}

to render

enter image description here

\overset places the first argument over the second argument and \verb renders out exactly what its argument is in code form (kind of like the difference between code and text in Stack Exchange!).

Please note that both overset and the bmatrix environment are provided by the amsmath package, so make sure to add \usepackage{amsmath} to your preamble.