Help:Math
This page explains the Math syntax that can be used in order to format mathematical equations or chemical equations. For example:
Syntax
The syntax for displaying a formula is:
<math>{equation}</math>
Where "equation" is replaced by the wanted equation.
Equation Formatting
Description | You type | You get |
---|---|---|
Exponent | <math>x^2</math> |
![]() |
Exponent Grouping | <math>x^{21+y}</math> |
![]() |
Subscript | <math>CO_2</math> |
![]() |
Subscript Grouping | <math>a_{i,j}</math> |
![]() |
Fraction | <math>1\over2</math> <math>\frac{x}{y}=z</math> |
![]()
|
Fraction Grouping | <math>{x+y}\over{2(x-y)}</math> |
![]() |
Square Root | <math>\sqrt{2}</math> |
![]() |
Log | <math>\exp_a b = a^b, \exp b = e^b, 10^m</math> <math>\ln c, \lg d = \log e, \log_{10} f</math> |
|
Trig | <math>\sin a, \cos b, \tan c, \cot d, \sec e, \csc f</math> <math>\arcsin h, \arccos i, \arctan j</math> |
|
Derivative | <math>\operatorname{d}y/\operatorname{d}x {\operatorname{d}y\over\operatorname{d}x} {\partial^2\over\partial x_1\partial x_2}y</math> |
![]() |
Integral | <math>\int\limits_{1}^{3} x \, dx</math> |
![]() |
Double Integral | <math>\iint\limits_{1}^{3} x \, dx</math> |
![]() |
Symbols
Description | You type | You get |
---|---|---|
Operators | <math>+, -, \pm, \mp, \dotplus </math> <math>\times, \div, \divideontimes, /, \backslash</math> <math>\cdot, * \ast, \star, \circ, \bullet</math> |
|
Relations | <math>=, \ne \neq, \equiv, \not\equiv</math> <math>\doteq, \overset{\underset{\mathrm{def}}{}}{=}, :=</math> <math>\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong</math> <math><, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot</math> <math>>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot</math> <math>\le \leq, \lneq, \leqq, \nleqq, \lneqq, \lvertneqq</math> <math>\ge \geq, \gneq, \geqq, \ngeqq, \gneqq, \gvertneqq</math> |
|
Greek | <math>\alpha</math> Where alpha can be replaced by:
|
![]() |
Arrows | <math>\Rightarrow</math> Where "Rightarrow" can be replaced by:
|
|
Examples
- Reactions
<math> CH_4 + \frac{2}{\Phi} (O_2 + 3.76N_2) \Rightarrow CO_2 + 2H_2O + \frac{2}{\Phi} 3.76 N_2</math>
- Equations
<math>x^{\alpha} + x^{\beta} + x^{\gamma + 2 \zeta} + x =5</math>
- Differential Equations
<math>u'' + p(x)u' + q(x)u=f(x),\quad x>a</math>
- Color
<math>{\color{Blue}x^2}+{\color{YellowOrange}2x}-{\color{OliveGreen}1}</math>