How To Write Math Equations

Math Sandbox

If you would like to experiment writing math equations, enter your equation in the text field or edit an existing equation by clicking on a sample below. In sandbox mode, you do not need to enter $ and $. Your equation will show beneath the input field as you type.

How To Write Math Equations

In order for math equations to be recognized and formatted properly, they must be surrounded by special tags. When creating a question:

• Click on the insert a math equation button. A dialog box will appear.
• Type your equation in the field.
• Click the insert equation button in the dialog box.

Your equation will automatically appear between $ and $.

OR

• Manually type a single equation between $ and $

Some features and limitations:

• Multiple equations can appear in both questions and answers
• All symbols below are case sensitive
• $ and $ are case sensitive

Use a plus (+) between two expressions. A leading and/or trailing space around the plus symbol will not change the image. Vertical addition requires a combination of symbols.

 x+y $x+y$ ul({:(,97),(+,234):}) $ul({:(,97),(+,234):})$

Subtraction - (dash)

Use a dash (-) between two expressions. Subtraction with regrouping requires a combination of symbols.

 x-y $x-y$ -x $-x$ ul({:( ,237),(-,94):}) $ul({:( ,237),(-,94):})$

Multiplication xx (double x)

Use a double x (xx) between two expressions.

 5xx3 $5xx3$

Explicit Multiplication * (asterisk)

Use the asterisk (*) between two expressions. A double asterisk (**) produces a star.

 x*y $x*y$ x**y $x**y$

Division -: (dash colon)

Use a dash (-) followed by a colon (:) between two expresions for division. Unfortunately, there is no long division symbol.

 2bar({:)24) $2bar({:)24)$ x-:y $x-:y$

Parenthesis & Grouping Brackets

Below is a comma separated list of grouping brackets:

(, ), [, ], {, }, (:, :), :}, {:

{: and :} are invisible brackets.

Grouping brackets do not have to match in style.

 (:x:) $(:x:)$ [x} $[x}$ {:) ${:)$

Fractions / (slash)

There are two ways to write fractions. The first uses a double slash (//) between two expressions. This will inline the fraction. The second uses a single slash (/) between two expressions. This will stack the expressions. Remember to use parenthesis when grouping expresssions with more than one term. Parenthesis are also required when grouping multiple fractions.

 x//y $x//y$ x/y $x/y$ (5x)/y $(5x)/y$ (a/b)/(c/d) $(a/b)/(c/d)$

Power & Exponents ^ (caret)

The expression following a caret (^) will be shown in superscript.

 x^y $x^y$

Subscript _ (underscore)

The expression following an underscore (_) will be show in subscript. Subscripts must precede superscripts.

 x_y $x_y$ int_0^1f(x)dx $int_0^1f(x)dx$ lim_(x->oo) $lim_(x->oo)$ H_2O $H_2O$

Prescripts

Prescripts can be written using subscripts and superscripts. Note the use of the invisible grouping brackets: {: and :} in the example below.

 {::}_92^238U ${::}_92^238U$

Accents

Accents can be used on any expression.

 bar(xy) $bar(xy)$ vecx $vecx$

The expression following the text (sqrt) will be shown within a radical. The n-th root can be shown by using the word root followed by the value of n. Notice that parenthesis are not required after sqrt and root.

 sqrtx $sqrtx$ root3x $root3x$

Functions

The following functions are supported:

sin, cos, tan, csc, sec, cot, sinh, cosh, tanh, log, ln, det, dim, lim, mod, gcd, and lcm

 sin(90) $sin(90)$

Matrices

 [[a,b],[c,d]] $[[a,b],[c,d]]$

You can view additional symbols for writing equations by navigating to a symbol set below.