Free-text: mathematical input (detailed)
In questions that allow you to enter multiple lines of text and mathematics containing an extended solution to some problem, mathematics is entered using AsciiMath syntax between backticks, for example ` x^2 + 2x ` . This section provides and extensive list of this syntax. The complete reference is available from asciimath.org.
Note This only applies to questions where two panels are shown (as below), with one (on the left) for entering your solution and one (on the right) where your answer is displayed properly formatted.

Operation symbols
| Type | See | TeX alt |
|---|---|---|
+ |
||
- |
||
* |
cdot | |
** |
ast | |
*** |
star | |
// |
||
\\ |
backslash, setminus | |
xx |
times | |
-: |
div | |
| >< |
||
>< | |
||
| >< | |
||
@ |
circ | |
o+ |
oplus | |
ox |
otimes | |
o. |
odot | |
sum |
||
prod |
||
^^ |
wedge | |
^^^ |
bigwedge | |
vv |
vee | |
vvv |
bigvee | |
nn |
cap | |
nnn |
bigcap | |
uu |
cup | |
uuu |
bigcup |
Miscellaneous symbols
| Type | See | TeX alt |
|---|---|---|
2/3 |
frac{2}{3} | |
2^3 |
||
sqrt x |
||
root(3)(x) |
||
int |
||
oint |
||
del |
partial | |
grad |
nabla | |
+- |
pm | |
O/ |
emptyset | |
oo |
infty | |
aleph |
||
:. |
therefore | |
:' |
because | |
| ... | |
||
| cdots | |
||
vdots |
||
ddots |
||
| \ | |
||
| quad | |
||
/_ |
angle | |
frown |
||
/_\ |
triangle | |
diamond |
||
square |
||
| __ |
||
__ | |
||
| ~ |
||
~ | |
||
CC |
||
NN |
||
QQ |
||
RR |
||
ZZ |
||
"hi" |
\text{hi} |
Relation symbols
| Type | See | TeX alt |
|---|---|---|
= |
||
!= |
ne | |
< |
lt | |
> |
gt | |
<= |
le | |
>= |
ge | |
mlt |
ll | |
mgt |
gg | |
-< |
prec | |
-<= |
preceq | |
>- |
succ | |
> -= |
succeq | |
in |
||
!in |
notin | |
sub |
subset | |
sup |
supset | |
sube |
subseteq | |
supe |
supseteq | |
-= |
equiv | |
~= |
cong | |
~~ |
approx | |
prop |
propto |
Logical symbols
| Type | See | TeX alt |
|---|---|---|
and |
||
or |
||
not |
neg | |
=> |
implies | |
if |
||
<=> |
iff | |
AA |
forall | |
EE |
exists | |
_ | _ |
||
TT |
top | |
| -- |
||
| == |
Grouping brackets
| Type | See | TeX alt |
|---|---|---|
( |
||
) |
||
[ |
||
] |
||
(: |
langle | |
:) |
rangle | |
<< |
||
>> |
||
floor(x) |
||
ceil(x) |
||
norm(vecx) |
(\left | \vec{x} \right |
Note, you can also use {...} for curly braces and abs(x) for .
Arrows
| Type | See | TeX alt |
|---|---|---|
uarr |
uparrow | |
darr |
downarrow | |
rarr |
rightarrow | |
-> |
to | |
>-> |
rightarrowtail | |
->> |
twoheadrightarrow | |
\|-> |
mapsto | |
larr |
leftarrow | |
harr |
leftrightarrow | |
rArr |
Rightarrow | |
lArr |
Leftarrow | |
hArr |
Leftrightarrow |
Accents
| Type | TeX alt |
|---|---|
hat x |
|
bar x |
overline x |
ul x |
underline x |
vec x |
|
tilde x |
|
dot x |
|
ddot x |
|
overset(x)(=) |
overset(x)(=) |
underset(x)(=) |
|
ubrace(1+2) |
underbrace(1+2) |
obrace(1+2) |
overbrace(1+2) |
overarc(AB) |
overparen(AB) |
color(red)(x) |
|
cancel(x) |
Greek Letters
| Type | See | Type | See |
|---|---|---|---|
alpha |
|||
beta |
|||
gamma |
Gamma |
||
delta |
Delta |
||
epsilon |
|||
varepsilon |
|||
zeta |
|||
eta |
|||
theta |
Theta |
||
vartheta |
|||
iota |
|||
kappa |
|||
lambda |
Lambda |
||
mu |
|||
nu |
|||
xi |
Xi |
||
pi |
Pi |
||
rho |
|||
sigma |
Sigma |
||
tau |
|||
upsilon |
|||
phi |
Phi |
||
varphi |
|||
chi |
|||
psi |
Psi |
||
omega |
Omega |
Font commands
| Type | See | TeX alt |
|---|---|---|
bb "AaBbCc" |
mathbf "AaBbCc" | |
bbb "AaBbCc" |
mathbb "AaBbCc" | |
cc "AaBbCc" |
mathcal "AaBbCc" | |
tt "AaBbCc" |
mathtt "AaBbCc" | |
fr "AaBbCc" |
mathfrak "AaBbCc" | |
sf "AaBbCc" |
mathsf "AaBbCc" |
Standard Functions: sin, cos, tan, sec, csc, cot, arcsin, arccos, arctan, sinh, cosh, tanh, sech, csch, coth, exp, log, ln, det, dim, mod, gcd, lcm, lub, glb, min, max, f, g.
Special Cases
-
Matrices:
[[a,b],[c,d]]yields -
Column vectors:
((a),(b))yields -
Augmented matrices:
[[a,b,|,c],[d,e,|,f]]yields -
Matrices can be used for layout:
{(2x,+,17y,=,23),(x,-,y,=,5):}yields
-
Complex subscripts:
lim_(N->oo) sum_(i=0)^Nyields -
Subscripts must come before superscripts:
int_0^1 f(x)dxyields -
Derivatives:
f'(x) = dy/dxyields
For variables other than x, y, z, or t you will need grouping symbols: (dq)/(dp) yields
- Overbraces and underbraces:
ubrace(1+2+3+4)_("4 terms")yields
obrace(1+2+3+4)^("4 terms") yields
- Attention: Always try to surround the
>and<characters with spaces so that the HTML parser does not confuse them with opening or closing tags.