# Formulas

The formula block allows you easily to add LaTeX-formatted equations to your report, with an optional caption. A brief intro into LaTeX formulas can be found here.

## Simple LaTeX Formula

import datapane as dp

report = dp.Report(dp.Formula(r"\frac{1}{\sqrt{x^2 + 1}}"))

report.save(path="simple-formula.html")


Info

LaTeX formulas commonly make use of special characters, hence prefix your formulas with r in Python as per the example above to make them raw strings, e.g. r"x^2"

Under the hood we use MathJAX to render the equations in the browser and not a full TeX engine. This means that some of your TeX input may not be rendered correctly on our system - read the MathJAX documentation for more info.