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_taMheDv9SFIc8nvYFDAxFzhhzCgGCLY5Yai87mvz8UAIoTSYl-qrMlI_pKTAqDMfnACZ-nHz3fuotHUmMRDZWH3Al4HzJo-1XkPqKYLhZRg2d763sOliS-aBPENfSQk0gUTUqqHnq7enfFkPAEPNyGI6KX1tIRM2Z7MmJT25WR73Flp0W6JJjdjQQW3VtSdrr7gD2lgRmH28zCg-G_KFxXBZLCVw0Pzm3zr4GHW2ccOAbNYqtlJPcAulAOMpxXGcJ0n_0A3TJhPPvdZ0Qrh8a8UxCHFSWuBNVcBYmv4q70rUZ2d3E8MrBN7KOknMvL24KmIEKINCYDwzP3H4rIMMnatrSaw218XIdhlRij2N2aHCovlZuXfPRmtZdj0G3BK76lff-tNCpZ0ZC2PXKKzfU4r1jMiRNiA6to-ZBl3EIzTWo88f229Jol2RjJAvRjlTMHZPi1TJ09mw=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_tm4o6OAD3veg-ZQdL_wxQ9jIM-S5vpe1MNXNvmGhwFJzb2nWxbKtUm05WXyaUDzkQGco73PS8Mt2Mudwk6K5FKbCth8gulaXKk62G-WnTPi7FwZS4mhUGRqzmpNeu8zBJtWfv2f0gLpY-7lFHLHVPRK4NsBTox12NGu5e4Qi9UTtAzYcHlcOQag0LUWRkFheYKX-OG58AzZumunCA8HbZ6qH9gLfcg3BLVAPW6I14O6GkQ13ikGMjCKe_uyKmKHXWungtL0WMd1r2L6sbka94Z0_NJTFL2NaG12mGiUi9xw3S6b-fhSi1OGO673BSi4-Eqs9nFG9Myr0tpykX9nuIQnA74TWxo26naiRepQNPun8vHRDIG2M_YRRbiPbnfWoXAZZDcmTscKGpvjQOkIxdEzIK6gTpsk6wo69cwJZV6a2iMqPvM2mEE-Ntg=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