[Tex/LaTex] How to align a row vector and column vector such that the row align to the first entry of the column

matrices

I have a column vector multiplies by a row vector. I want to align the row vector with the first entry of the column vector.

I would appreciate any feedback.

Best Answer

This should work for simple vectors, but you may need \vphantom instead of \mathstrut for larger entries.

\documentclass{article}
\usepackage{mathtools}

\begin{document} 
\begin{equation}
\begin{bmatrix}a\\b\\c\end{bmatrix}
\begin{array}{@{}c@{}}
\begin{bmatrix}d&e&f\end{bmatrix}\\
\mathstrut\\
\mathstrut
\end{array}
\end{equation}
\end{document}

outer product

Related Question