Insert Formulas

Wikidot uses LaTeX-syntax to handle mathematical formulas.

There are two different ways to display a mathematical formula. You can have a formula in regular text like this one:$f(x)=x^2+3x$, this is called an inline equation. If you want to insert an inline equation, click on the icon "inline mathematical expression".

The other way is to write the expression centered on a separate line, like this one:

(1)
\begin{align} \int^{\infty}_{1}\frac{1}{x^2}\,dx \end{align}

To get a formula in "display"-style, click on the icon "mathematical equation". The integral (1) can also be displayed as an inline formula, $\int^{\infty}_{1}\frac{1}{x^2}\,dx$; in this case the expression is squashed.

Fractions

The most common way to write a fraction like this one $\frac{2+x}{1-x^2}$, is to use \frac.

\frac{2+x}{1-x^2}

The fraction will appear as squashed or not depending on if it is inline or not:

(2)
\begin{align} \frac{2+x}{1-x^2} \end{align}

If you want a fraction in text that is not squashed, that is displayed in "display"-style, use \dfrac; it will look like this: $\dfrac{2+x}{1-x^2}$.

There is also a command \cfrac that is used for continued fractions, if you don't want the successiv fractions to become smaller. The difference between \frac and \cfrac is shown below.

\frac{1}{1+\frac{1}{1+\frac{1}{x}}} \mid \cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{x}}}
(3)
\begin{align} \frac{1}{1+\frac{1}{1+\frac{1}{x}}} \mid \cfrac{1}{1+\cfrac{1}{1+\cfrac{1}{x}}} \end{align}
Page tags: latex wiki