I'm pretty new to LaTeX and I'm trying to write properly integrals in my notes.
Here's an example of the code:
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\[\int_{-\infty}^{t} f_X(z) \,dz\]
$\int\limits_{-\infty}^{t} f_X(z) \,dz$
\end{document}
The problem is the way the limit is shown in the two versions.
In summary: I need to put the second limit in an array (as follows) but I would like to display the first version instead of the second one.
\begin{itemize}
\item se $t < a$, allora
\[\int_{-\infty}^{t} f_X(z) \,dz = \int_{-\infty}^{t} 0 \cdot \,dz = 0\]
\item se $a \le x \le b$, allora
$$
\begin{array}{rcl}
\int\limits_{-\infty}^{t} f_X(z) \,dz & = & \int\limits_{-\infty}^{a} 0 \cdot \,dz +
\int\limits_{a}^{t} \dfrac{1}{b-a} \,dz \\
& = & \dfrac{z}{b-a}\bigg\rvert_a^t = \dfrac{t-a}{b-a};
\end{array}
$$
\item se $t > b$, allora
$$
\begin{array}{rcl}
\int\limits_{-\infty}^{t} f_X(z) \,dz & = & \int\limits_{-\infty}^{a} 0 \cdot \,dz +
\int\limits_{a}^{b} \dfrac{1}{b-a} \,dz + \int\limits_{b}^{t} 0 \cdot \,dz\\
& = & \dfrac{z}{b-a}\bigg\rvert_a^t = 1;
\end{array}
$$
\end{itemize}
\end{itemize}
Thanks in advance




\int\nolimits? – Rmano May 07 '21 at 09:20$$is not LaTeX: https://tex.stackexchange.com/questions/503/why-is-preferable-to – Rmano May 07 '21 at 09:21\displaystyleat the beginning of your lines where you need to display the limits in your first version, and you can remove the\limits– needle May 07 '21 at 09:21arrayis the wrong tool here. You want to use a displayed alignment likealign*. – campa May 07 '21 at 09:26$$is not LaTeX! – LukeTheWolf May 07 '21 at 10:31align*thanks, mate! – LukeTheWolf May 07 '21 at 10:35