Results 1 to 4 of 4

Math Help - Latex: Determinant

  1. #1
    Newbie
    Joined
    Nov 2008
    Posts
    2

    Latex: Determinant

    Hi

    I'm trying to add some braces above/below and left/right of a Determinant to describe how many Columns and Rows certain ranges of the matrix has.
    For example I have a 2 by 2 Block-matrix. I want a brace over the first and the one over the second column telling me how large each blockdeterminant is.


    I hope someone knows a solution to this problem.

    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    Plain TeX has a macro called \bordermatrix that lets you put labels above the columns and to the left of the rows. It can give you things like this:

     M =   \bordermatrix{&\overbrace{}^{\textstyle m}&\overbrace{}^{\textstyle n}\cr p\{&A&B\cr q\{&C&D\cr}

    Code:
     M = \bordermatrix{&\overbrace{}^{\textstyle m}
     &\overbrace{}^{\textstyle n}\cr 
     p\{ &A&B\cr q\{ &C&D\cr}
    As far as I know, there is no LaTeX version of this, so you have to use the plain TeX syntax, with for example \cr instead of \\ for the carriage returns.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Nov 2008
    Posts
    2
    OPALG, Thank you for your help, but I think that \bracematrix use just for matrix and I want to use for a determinant.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    Ahem, yes. You'd think I might have noticed that very conspicuous bolded word Determinant

    So, the best I can do is a really ugly kludge that produces \begin{array} {r|@{\hspace{9pt}}c@{\hspace{12pt}}c@{\hspace{9pt}  }|} \multicolumn{3}{r@{\hspace{1pt}}}{\overbrace{}^{\t  extstyle m} \overbrace{}^{\textstyle n}} \\ p\,\{&A&B\\ q\,\{&C&D \end{array}<br />
.

    Code:
    \begin{array}
    {r|@{\hspace{9pt}}c@{\hspace{12pt}}c@{\hspace{9pt}}|}
    \multicolumn{3}{r@{\hspace{1pt}}}{\overbrace{}^{\textstyle m}
    \overbrace{}^{\textstyle n}} \\  p\,\{&A&B\\ q\,\{&C&D \end{array}
    This has the drawback that it isn't well aligned vertically. If you want to put it in a formula like M = \begin{array} {r|@{\hspace{9pt}}c@{\hspace{12pt}}c@{\hspace{9pt}  }|} \multicolumn{3}{r@{\hspace{1pt}}}{\overbrace{}^{\t  extstyle m} \overbrace{}^{\textstyle n}} \\ p\,\{&A&B\\ q\,\{&C&D \end{array} then you'll want to raise it by putting it into an \hbox along with a \raise command, as in
    M = \raise2ex\hbox{$\begin{array}{r|@{\hspace{9pt}}c@{  \hspace{12pt}}c@{\hspace{9pt}}|}\multicolumn{3}{r@  {\hspace{1pt}}}{\overbrace{}^{\textstyle m} \overbrace{}^{\textstyle n}} \\ p\,\{&A&B\\ q\,\{&C&D \end{array}$}.
    Last edited by Opalg; November 24th 2008 at 02:15 PM. Reason: fussing around making cosmetic adjustments
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: December 10th 2011, 07:40 PM
  2. determinant
    Posted in the Advanced Algebra Forum
    Replies: 1
    Last Post: September 17th 2011, 02:49 PM
  3. LaTex inside of LaTex
    Posted in the LaTeX Help Forum
    Replies: 2
    Last Post: November 12th 2009, 12:07 PM
  4. Determinant 2
    Posted in the Advanced Algebra Forum
    Replies: 1
    Last Post: March 28th 2009, 02:34 AM
  5. determinant
    Posted in the Advanced Algebra Forum
    Replies: 2
    Last Post: August 20th 2007, 06:14 AM

Search Tags


/mathhelpforum @mathhelpforum