How to draw this particular block matrix

by Subhajit Paul   Last Updated August 13, 2019 20:23 PM - source

I need to draw the following block matrix

enter image description here

The closest I have got is by using the following code:

\begin{pmatrix}
    \lambda_1 & * & \dots & *\\
    0 &  \lceil &  & \rceil \\
    \vdots  & \mid & A_{n-1} & \mid \\
    0 & \lfloor & & \rfloor 
\end{pmatrix}

which produces enter image description here.

I am open for a tikz based solution; but in that case, it needs to fit properly with the following alignat* environment:

\begin{alignat*}{3}
            A\begin{pmatrix}
            u_1 & \tilde{u}_{2} & \dots & \tilde{u}_{n}
            \end{pmatrix} \quad&=&&\quad    \begin{pmatrix}
            \ lambda_1 u_1 & A\tilde{u}_{2} & \dots & A\tilde{u}_{n}
            \end{pmatrix}\\
            &=&&\quad   \begin{pmatrix}
            u_1 & \tilde{u}_{2} & \dots & \tilde{u}_{n}
            \end{pmatrix}\begin{pmatrix}
                lambda_1 & * & \dots & *\\
                0 &  \lceil &  & \rceil \\
                \vdots  & \mid & A_{n-1} & \mid \\
                0 & \lfloor & & \rfloor 
            \end{pmatrix}
        \end{alignat*}


Answers 1


Two solutions: one based on blkarray, another based on pstricks:

\documentclass{article}
\usepackage{mathtools}
\usepackage{blkarray}
\usepackage{bigdelim}
\usepackage{pst-node, auto-pst-pdf}

\begin{document}

        \begin{alignat*}{3}
        A\begin{pmatrix}
        u_1 & \tilde{u}_{2} & \dots & \tilde{u}_{n}
        \end{pmatrix} \quad&=&&\quad \begin{pmatrix}
        \lambda_1 u_1 & A\tilde{u}_{2} & \dots & A\tilde{u}_{n}
        \end{pmatrix}\\
        &=&&\quad \begin{pmatrix}
        u_1 & \tilde{u}_{2} & \dots & \tilde{u}_{n}
        \end{pmatrix}\begin{pmatrix}
         \begin{blockarray}{@{}[email protected]{\;}}
         \lambda_1 & * & \dots & *\\
         \begin{block}{c|@{}[email protected]{\;}|}
         \BAhhline{~|---|}
         0 & & & \\
         \vdots & & A_{n-1} & \\
         0 & & & \\
         \end{block}
         \BAhhline{~|---|}
         \end{blockarray}
        \end{pmatrix}
    \end{alignat*}

        \begin{alignat*}{3}
        A\begin{pmatrix}
        u_1 & \tilde{u}_{2} & \dots & \tilde{u}_{n}
        \end{pmatrix} \quad&=&&\quad \begin{pmatrix}
        \lambda_1 u_1 & A\tilde{u}_{2} & \dots & A\tilde{u}_{n}
        \end{pmatrix}\\
        &=&&\quad \begin{pmatrix}
        u_1 & \tilde{u}_{2} & \dots & \tilde{u}_{n}
        \end{pmatrix}\begin{pmatrix}
         \lambda_1 & * & \dots & *\\
         0 & \pnode[-1ex, 2ex]{A} & & \\
         \vdots & & A_{n-1} &\\
         0 & & & \phantom{*}\pnode[0.4ex, -0.4ex]{B}\,\\
        \end{pmatrix}
    \psframe[linewidth=0.4pt](A)(B)
    \end{alignat*}

\end{document} 

enter image description here

Bernard
Bernard
August 13, 2019 19:52 PM

Related Questions




sketching rectangle in matrix latex

Updated May 21, 2017 16:23 PM

How to draw complex matrix?

Updated May 31, 2017 15:23 PM

Big matrix in two parts

Updated March 01, 2018 17:23 PM