How to Write the Integral Symbol (∫) in LaTeX
In LaTeX, you can write the integral symbol (∫) using the \int
command.
The following examples show how to write the integral symbol in LaTeX.
How to Write the Integral Symbol in Text
We can use the \int
command to write the integral symbol in LaTeX document for text.
Suppose we want to write the integral symbol in the text.
We can use the following LaTeX code to do so:
\documentclass{article}
\begin{document}
This is an example of using the integral symbol: \( \int \).
\end{document}
Output: 👇️
This is an example of using the integral symbol: ∫.
In this example, we use the \int
command to display the integral symbol in the document.
How to Write the Integral Symbol in Mathematical Expressions
For mathematical expressions, we can use the \int
command to ensure proper formatting.
Suppose we would like to write mathematical expressions that contain the integral symbol.
We can use the following LaTeX code to do so:
\documentclass{article}
\begin{document}
An inline mathematical expression: \( \int_a^b f(x) \, dx \).
A displayed mathematical expression:
\[
\int_a^b f(x) \, dx
\]
\end{document}
Output: 👇️
In this example, we use the \int
command to denote the integral symbol in both inline and displayed mathematical expressions.
Conclusion
We can use the \int
command for both text and mathematical expressions.