# MediaWiki User Guide/Mathematics

You can enter mathematical formulas into a wiki, using a math tag, such as:

$\sqrt{2}$


The formulas are marked up in the TeX markup, the markup of a complex typesetting system specialized on mathematics.

Before you start writing formulas in this markup, you can consider writing the simpler ones in HTML and wiki markup, such as:

f(x) = b + c / d

which is marked up as

 ''f''(x) = ''b'' + ''c'' / ''d''


## Examples

To get started, follow the examples below.

Examples of mathematical markup
No. Desired Effect Markup
1. ${\displaystyle \alpha }$
$\alpha$

2. ${\displaystyle {\sqrt {2}}}$
$\sqrt{2}$

3. ${\displaystyle {\sqrt {1-e^{2}}}}$
$\sqrt{1-e^2}$

4. ${\displaystyle {\frac {2}{4}}=0.5}$
$\frac{2}{4}=0.5$

5. ${\displaystyle \sum _{k=1}^{N}k^{2}}$
$\sum_{k=1}^N k^2$

6. ${\displaystyle \int \limits _{1}^{3}{\frac {e^{3}/x}{x^{2}}}\,dx}$
$\int\limits_{1}^{3}\frac{e^3/x}{x^2}\, dx$

7. ${\displaystyle {\begin{bmatrix}0&\cdots &0\\\vdots &\ddots &\vdots \\0&\cdots &0\end{bmatrix}}}$
$\begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \end{bmatrix}$

8. ${\displaystyle {\begin{pmatrix}x&y\\z&v\end{pmatrix}}}$
$\begin{pmatrix} x & y \\ z & v \end{pmatrix}$


## Greek and symbols

There is a way of marking up Greek characters and special symbols, as the following table shows.

Markup of Greek alphabet and some symbols
Desired Effect Markup

α β γ δ ε ζ
η θ ι κ λ μ ν
ξ ο π ρ σ ς
τ υ φ χ ψ ω
Γ Δ Θ Λ Ξ Π
Σ Φ Ψ Ω

&alpha; &beta; &gamma; &delta; &epsilon; &zeta;
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu;
&xi; &omicron; &pi; &rho;  &sigma; &sigmaf;
&tau; &upsilon; &phi; &chi; &psi; &omega;
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi;
&Sigma; &Phi; &Psi; &Omega;

∫ ∑ ∏ √ − ± ∞
≈ ∝ = ≡ ≠ ≤ ≥
× · ÷ ∂ ′ ″
∇ ‰ ° ∴ Ø ø
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇
¬ ∧ ∨ ∃ ∀
⇒ ⇔ → ↔ ↑
ℵ - – —
&int; &sum; &prod; &radic; &minus; &plusmn; &infin;
&asymp; &prop; {{=}} &equiv; &ne; &le; &ge;
&times; &middot; &divide; &part; &prime; &Prime;
&nabla; &permil; &deg; &there4; &oslash; &oslash;
&isin; &notin;
&cap; &cup; &sub; &sup; &sube; &supe;
&not; &and; &or; &exist; &forall;
&rArr; &hArr; &rarr; &harr; &uarr;
&alefsym; - &ndash; &mdash;