November 2, 2024

How to Write Integrals and Limits in Latex


In this tutorial, we explain how to write different types of integrals and limits in Latex and Tex. The YouTube tutorial accompanying this webpage is given below.

The minimal latex code is given below

\documentclass[a4paper]{article}
\usepackage{amssymb,amsmath}
\usepackage{float}


\title{Integrals and limits in Latex}

\author{A. Haber}


\begin{document}
\maketitle
\begin{abstract}
This is abstract
\end{abstract}

\section*{Integrals}




\end{document}

You can edit this template with the latex code given below.

How to Write Integrals

Simple integrals can be written like this:

\int_{a}^{b} f(x) \, dx

The output is

(1)   \begin{align*}\int_{a}^{b} f(x) \, dx\end{align*}

Integrals with two integrals and two bounds can be written like this

\int_{a}^{b} \int_{c}^{d} f(x) \, dx \, dy

(2)   \begin{align*}\int_{a}^{b} \int_{c}^{d} f(x) \, dx \, dy\end{align*}

Double integrals over a single integration domain can be written like this:

\iint_{D} f(x,y) \, dx \, dy

(3)   \begin{align*}\iint_{D} f(x,y) \, dx \, dy\end{align*}

Triple integrals over a single integration domain can be written like this

\iiint_{D} f(x,y,z) \, dx \, dy \, dz

(4)   \begin{align*}\iiint_{D} f(x,y,z) \, dx \, dy \, dz\end{align*}

Quadruple integrals over a single integration domain can be written like this

\iiiint_{D} f(x,y,z,w) \, dx \, dy \, dz \, dw

(5)   \begin{align*}\iiiint_{D} f(x,y,z,w) \, dx \, dy \, dz \, dw\end{align*}

We can also write integrals and dots like this

\idotsint_V  f(x_{1},x_{2},\ldots, x_{n}) \, dx_{1}\, dx_{2}\ldots dx_{n}

(6)   \begin{align*}\idotsint_V  f(x_{1},x_{2},\ldots, x_{n}) \, dx_{1}\, dx_{2}\ldots dx_{n}\end{align*}

We can write integrals with a circle like this

\oint_V f(s) \, ds

(7)   \begin{align*}\oint_V f(s) \, ds\end{align*}

How to write limit values in Latex

We write limit values as follows

\lim_{x\to \infty} f(x) = 2

(8)   \begin{align*}\lim_{x\to \infty} f(x) = 2\end{align*}

We can also write them like this

\lim_{x \rightarrow \infty} f(x) = 2

(9)   \begin{align*}\lim_{x \rightarrow \infty} f(x) = 2\end{align*}

Then, we can also write limits in fraction expressions like this

\lim_{x \to 3} \frac{3-x}{x-2}

(10)   \begin{align*}\lim_{x \to 3} \frac{3-x}{x-2}\end{align*}