I'm trying to reproduce the following calculation of a determinant in LaTeX:

Any ideas? I thought of using the `tabular`

environment but unfortunately I'm not able to align the "=" correctly.

Skip to content
# [Tex/LaTex] How to draw the calculation of a determinant

alignmentequationsmath-modematrices

I'm trying to reproduce the following calculation of a determinant in LaTeX:

Any ideas? I thought of using the `tabular`

environment but unfortunately I'm not able to align the "=" correctly.

## Best Answer

No, I don't, but according to comments by percusse and Manuel you can do that by loading

mathtoolsinstead ofamsmathand use`\begin{vmatrix*}[r] … \end{vmatrix*}`

. I haven't checked though by myself. But I do recomment keep the standard alignement provided by`\begin{vmatrix} ... \end{vmatrix}`

.UPDATE with

align. Thanks to cmhughes's advice I've replaced`eqnarray`

with`align`

and`&=&`

with`&=`

. ADDED. As commented by egreg`eqnarray`

should be avoided (see e.g. here and here) due to spacing discrepancies.The

updated codeis:The

Outputis:We can use the following code (with

eqnarray)to type