# Math expressions

Mathematical expressions are an important part of technical documentation, especially in fields like mathematics, physics, data science, and engineering.

Writerside supports rendering mathematical expressions as block elements using Tex syntax, which can include Greek letters, operators, trigonometric functions, and other mathematical symbols. For more information on the syntax, see Wikibooks: LaTeX/Mathematics.

To add a math expression, use a code block and set the language to `tex`

. For example, the following code defines the quadratic formula:

<code-block lang="tex">
\begin{equation}
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\end{equation}
</code-block>

```tex
\begin{equation}
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\end{equation}
```

The result will look as follows:

Last modified: 20 February 2024