2

Often I've seen the matrix equation Ax = b presented as matrix A augmented with vector b, with the individual elements x_1 ... x_n written sequentially as headers across the columns; is it possible to visually achieve this sort of formatting in TeX or LaTeX?

2
  • Short answer: Yes. Commented Nov 28, 2014 at 13:19
  • 1
    Check out kbordermatrix - the bordermatrix tag should help. Commented Nov 28, 2014 at 13:27

1 Answer 1

1

One option using blkarray:

enter image description here

The code:

\documentclass{article} \usepackage{blkarray} \usepackage{amsmath} \begin{document} \[ \begin{blockarray}{ccccc} x_{1} & x_{2} & \cdots & x_{n} \\ \begin{block}{[cccc|c]} a_{11} & a_{12} & \cdots & a_{1n} & b_{1} \\ a_{21} & a_{22} & \cdots & a_{2n} & b_{2} \\ \vdots & \vdots & \ddots & \vdots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} & b_{m} \\ \end{block} \end{blockarray} \] \end{document} 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.