# Math & TeX

You can use the mathTeX format to include mathematical formulae in your documentation. We offer this through the [KaTeX](https://katex.org/docs/supported.html) library.

You can also add mathTeX [as inline content](/docs/creating-content/formatting/inline.md#math-and-tex).&#x20;

### Example of Math & TeX block

$$
s = \sqrt{\frac{1}{N-1} \sum\_{i=1}^N (x\_i - \overline{x})^2}
$$

### Representation in Markdown

$$f(x) = x \* e^{2 pi i \xi x}$$

```markdown
# Math and TeX block

$$f(x) = x * e^{2 pi i \xi x}$$
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.com/docs/creating-content/blocks/math-and-tex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
