# PmWiki: EquationSyntax

## How-to use JsMath and the proper equation sytax:

Thanks for showing interest in taking your math2 knowledge to the next level.. The following will provide a brief overview of how to insert an equation into math2. Also examples will be provided so you can learn the tricks of the trade.

### How to insert an equation into math^2:

Two different types of equation can be inserted into math2, one is inserted within text and looks like this: [++{$...$}++] . And one will be centered and padded. That one is done like this:

[++{$$...$$}++]

A few notes: The only difference between the two are the additional dollar signs (\$) that show up. Also the addition symbols (+) are meant to increase the size of the equation. I normally use 1 addition symbol for equations that will be centered and 2 if it will be inside of some text (this is what i have found to look the best).

### Examples of equations being used:

To see how any equation is written, you can double click on the equation and an editor will appear. I have provided a few examples below and also links to many more examples for your use.

There are also multiple online equation editors for the LaTex format (see 1, 2, 3)

A_s = {M_u\over {řf_y(d-λ})}
A = {{20000\times \theta_s}\over l^{\raise1pt 2}_s}
ST = {Y_c\over {\sin \theta_s}}
1+\left(1\over 1-x^2\right)^3
p_1(n) = \lim_{m\to\infty} \sum_{\nu=0}^\infty \bigl(1-\cos^{2m}(\nu!^n\pi/n)\bigr)
ρ_t = 0.0018\left(60,000\over f_y\right) > 0.0014
Matrix:

\begin{bmatrix}2 & 3 & 5\\ 4 & 3 & z \end{bmatrix}

Equation Array:

\begin{eqnarray} && \int 1 = x + C \\ && \int x = \frac{x^2}{2} + C \\ && \int x^2 = \frac{x^3}{3} + C \end{eqnarray}