If you want to write formulas with integrals in LaTeX, you only need one command. You can read more about this here..
You can't avoid the integral in math to calculate areas. If formulas in LaTeX with the integral sign are to be displayed cleanly, a command must be used. No matter if you are a complete LaTeX beginner or a professional - here you will find out which command you need for it.
Integral signs can be added with the command \ int_ {a} ^ {b} . _a and ^ b represent the lower and upper limits of the integral and are to be written in curly brackets. Note that the integral expression in math mode should be entered within LaTeX. The math mode is started with the characters $ and also closed again.
For example, if you want to represent the integral from a to b over f of x, dx, enter: $ \int_{a}^{b} f(x)dx $
$ \int_{a}^{b} f(x)dx $
Another minimal example for a double integral as a complete LaTeX file: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} $ \int_{a}^b\int_{c}^d f(x,y)dxdy $ \end{document}
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
$ \int_{a}^b\int_{c}^d f(x,y)dxdy $
\end{document}