Wikipedia article Displaying a formula, which is actually about formulas in Math Markup.
.
\begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}

\begin{array}{rcr} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}

\begin{array}{rcl} f: R^3 & \to & R \\ (x,y,z) & \to & x + y + z \\ f(x,y,z) & = & x + y + z \end{array}

\begin{array} {lcl} f(x) & = & (a+b)^2 \\ & = & a^2+2ab+b^2 \end{array}

.
f(n) = \begin{cases} n/2, & \mbox{if } n\mbox{ is even} \\ 3n+1, & \mbox{if } n\mbox{ is odd} \end{cases}

.
\begin{cases} 3x + 5y + z \\ 7x – 2y + 4z \\ -6x + 3y + 2z \end{cases}

.
\left| \begin{array}{cc} x_{11} & x_{12} \\ x_{21} & x_{22} \end{array} \right|

Matrix frames are provided by \left and \right. If you suppress these statements, it will be displayed like:
\begin{array}{cc} A & B \\ C & D \end{array}

However, there is another statement, the matrix declaration, slightly easier to use:
\begin{matrix} x & y \\ z & v \end{matrix}

The frames of the matrix can be displayed in several forms, by just changing the matrix declaration to vmatrix, Vmatrix, bmatrix, Bmatrix or pmatrix, as shown ahead:
\begin{vmatrix} x & y \\ z & v \end{vmatrix}

\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}

\begin{bmatrix} x & y \\ z & v \end{bmatrix}

\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}

\begin{pmatrix} x & y \\ z & v \end{pmatrix}

As a final example, let us construct more complicated matrices and matricial expressions:
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \end{bmatrix}

Now, we will show a first matricial expression:
\left[ \begin{array}{c} x_1 \\ x_2 \end{array} \right] = \begin{bmatrix} A & B \\ C & D \end{bmatrix} \times \left[ \begin{array}{c} y_1 \\ y_2 \end{array} \right]
![\left[ \begin{array}{c} x_1 \\ x_2 \end{array} \right] = \begin{bmatrix} A & B \\ C & D \end{bmatrix} \times \left[ \begin{array}{c} y_1 \\ y_2 \end{array} \right] \left[ \begin{array}{c} x_1 \\ x_2 \end{array} \right] = \begin{bmatrix} A & B \\ C & D \end{bmatrix} \times \left[ \begin{array}{c} y_1 \\ y_2 \end{array} \right]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_tEsSbJhEEIG9ptG8T0gamlvNPRfiqv7g8y49fu-rfAKK8w8pIyFvb97s0HbpX7-5fePT449HMkCtx8J6PSB2g1BfwutXgk17XSutn5Uq5E71gWpcsAUVFsyaoT3C09m7d8NoJBT__50W2BS9fOFWg6cQAJJO4A-hxtwS7D8NthSB9_RaKCY4Qv1wIQZHq8T2Yj3UZIdmlvc_Mb_Wa8Aopb09MCIzFPABHSJ1Eo71fdBmChEPAwE4a3m-YSWviIxyxsQ7Pdz7nr7PnzMTWEq7EQMOJlvy5f-W713B6Npc9iDZTnMiXXY-B2-SWoeoKhzbOLVw6OU9L2ciOd8rDSZ-7umAvHC0M208muWow5V6kRANNKctLcReHDnI14HCSSYdCSoaJFz8HG6z20K1_Pon47mLsypftv3KpnrgP80DX3t6fbXXifd6H2hhjr6sx_4nGAAhIwAfsSWQ=s0-d)
and, here is another example, now using two kinds of vectors:
\begin{bmatrix} xz & xw \\ yz & yw \end{bmatrix} = \left[ \begin{array}{c} x \\ y \end{array} \right] \times \left[ \begin{array}{cc} z & w \end{array} \right]
![\begin{bmatrix} xz & xw \\ yz & yw \end{bmatrix} = \left[ \begin{array}{c} x \\ y \end{array} \right] \times \left[ \begin{array}{cc} z & w \end{array} \right] \begin{bmatrix} xz & xw \\ yz & yw \end{bmatrix} = \left[ \begin{array}{c} x \\ y \end{array} \right] \times \left[ \begin{array}{cc} z & w \end{array} \right]](https://lh3.googleusercontent.com/blogger_img_proxy/AEn0k_vwiHQH6SZGBOxTFhay_-PuaSPZJ9WqgVj0W9ePBWAviuhOEJ4uc182po9IpUQdAQPdF6Byf9MnderMej-MDiN_ZEYIbkgfUSBk1ChuYIOKW03tJ9TRFffmGad5PbQaLL3wg5C7KDE1MAJOkjA5hPs928xJLZwlj3G4aNxufpEryt4lNfV6CiCNN3vY9Vu4cQCGC0D90NzvaxgBrVuQlCq1r1YGLfiS--jmTs8unFUJWGZElhwyJ1-gvVkRFeqbIbfTuiYJq4kfiGMZGcIb4Beapjt6gKM5kgW9zpqHX2O8jhdnVHztAJY_bR0tIZoaF5ogzOUCf7ac6fVOR2VWSiAXrwpO1GnOQk92ekw8aoOx2duVXNxRNSIx1ZI7RuJxF1-iA0dI81Ep4ZG_HgxeJLM4ztHBXBgC5IhBfpCdzvV1PZ9v7JmT2lBI-63a=s0-d)
Many of the examples shown here were adapted from the .
Multiline Equations
You can present equations with several lines, using the array statement. Inside its declaration you must :- Define the number of columns
- Define column alignment
- Define column indentation
- Indicate column separator with & symbol &
\begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}
\begin{array}{rcr} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}
\begin{array}{rcl} f: R^3 & \to & R \\ (x,y,z) & \to & x + y + z \\ f(x,y,z) & = & x + y + z \end{array}
\begin{array} {lcl} f(x) & = & (a+b)^2 \\ & = & a^2+2ab+b^2 \end{array}
.
Case definitions
Used when a definition have two or more cases. Use the case statement. Notice that the spaces after the instances of if were included inside the mbox declarations.f(n) = \begin{cases} n/2, & \mbox{if } n\mbox{ is even} \\ 3n+1, & \mbox{if } n\mbox{ is odd} \end{cases}
.
Simultaneous Equations
Here we have a very simple application of the case statement.\begin{cases} 3x + 5y + z \\ 7x – 2y + 4z \\ -6x + 3y + 2z \end{cases}
.
Matrices
Matrices can be assembled by using the array statement, like in this example:\left| \begin{array}{cc} x_{11} & x_{12} \\ x_{21} & x_{22} \end{array} \right|
Matrix frames are provided by \left and \right. If you suppress these statements, it will be displayed like:
\begin{array}{cc} A & B \\ C & D \end{array}
However, there is another statement, the matrix declaration, slightly easier to use:
\begin{matrix} x & y \\ z & v \end{matrix}
The frames of the matrix can be displayed in several forms, by just changing the matrix declaration to vmatrix, Vmatrix, bmatrix, Bmatrix or pmatrix, as shown ahead:
\begin{vmatrix} x & y \\ z & v \end{vmatrix}
\begin{Vmatrix} x & y \\ z & v \end{Vmatrix}
\begin{bmatrix} x & y \\ z & v \end{bmatrix}
\begin{Bmatrix} x & y \\ z & v \end{Bmatrix}
\begin{pmatrix} x & y \\ z & v \end{pmatrix}
As a final example, let us construct more complicated matrices and matricial expressions:
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \end{bmatrix}
Now, we will show a first matricial expression:
\left[ \begin{array}{c} x_1 \\ x_2 \end{array} \right] = \begin{bmatrix} A & B \\ C & D \end{bmatrix} \times \left[ \begin{array}{c} y_1 \\ y_2 \end{array} \right]
and, here is another example, now using two kinds of vectors:
\begin{bmatrix} xz & xw \\ yz & yw \end{bmatrix} = \left[ \begin{array}{c} x \\ y \end{array} \right] \times \left[ \begin{array}{cc} z & w \end{array} \right]
No comments:
Post a Comment
Thank you