25

I read that I can use \int_a^b or \int\limits_a^b. With \limits, the equation looks more compact horizontally, but a little bigger vertically.

Is there some design rule to it, or just personal preference?

2
  • \limits is traditionally used in German and Russian (and I guess everywhere in between), but it also needs a proper integral sign, like that of Euler, not that of Computer Modern.
    – Yrogirg
    Mar 9, 2018 at 0:35
  • It looks like most or all of the integrals in the Encyclopedia of Mathematics are written with \limits, e.g. encyclopediaofmath.org/wiki/Integral
    – Wood
    Oct 16 at 4:32

2 Answers 2

24

I am not aware of explicit design rules that would stipulate when to use side-set and when to used below/above limits of integration. That said, it's very rare to see anything but side-set limits of integration in either inline or display math mode.

The main reason for not placing the limits of integration above and below the integral sign must surely be that doing otherwise would increase considerably the depth and height of the expressions, which greatly risks ruining the overall "color" (more precisely: the average grayness) of the page on which the expressions are typeset.

The only exception to this dictum I can think of -- at least for single integrals -- is if the integrand itself is quite large, e.g., if it contains a double-fraction term. In such cases, placing the limits of integration above and below the integral symbol could help simplify the visual experience of the entire expression. As @PeterGrill and the other answer highlight, two further good candidate cases for setting the limit of integration below the integral symbol(s) are (i) if one is dealing with multiple integrals and (ii) if one wishes to express the entire set over which the integration takes place with a symbol (e.g., \mathbb{R}) rather than with explicit lower and upper bounds.

The following example, in which all expressions are typeset in display math mode, contrasts the visual appeal of three separate integral expressions: the Gamma function, the Beta function (in a form that involves a fractional term), and an entirely fictitious integral expression that involves a double fraction term. Speaking for myself, I'd stay that only in the third case is it defensible to use \int\limits instead of just \int. Observe that the example code also demonstrates that issues of excessive amounts of white space between the integral symbol (and its side-set limits of integration) and the integrand are best dealt with by applying one or more \! (negative thinspace) instructions rather than by setting the limits of integration above and below the integral symbol.

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
\Gamma(z)=\int_0^\infty \!\! e^{-x}x^{z-1}\,dx 
  \quad&\text{vs.}\quad 
  \Gamma(z)=\int\limits_0^\infty e^{-x}x^{z-1}\,dx\\
B(x,y) = \int_0^\infty \!\! \frac{t^{x-1}}{(1+t)^{x+y}}\,dt
  \quad&\text{vs.}\quad
  B(x,y) = \int\limits _0^\infty \frac{t^{x-1}}{(1+t)^{x+y}}\,dt\\
\int_{-\infty}^\infty \frac{\frac{a(x)}{b(x)}}{\frac{c(x)}{f(x)}}\,dx 
  \quad&\text{vs.}\quad
  \int\limits_{-\infty}^\infty \frac{\frac{a(x)}{b(x)}}{\frac{c(x)}{f(x)}}\,dx
\end{align*}
\end{document}
8
  • 2
    I find \limits useful when the integration is over a region (as in the other answer). Nov 20, 2012 at 20:56
  • @PeterGrill -- Thanks for this. I've added a couple of sentences to mention that \int\limits may also be called for if one is dealing with (i) multiple integrals and (ii) set notation (e.g., \mathbb{R}) to denote a region over which the integration takes place instead of providing explicit lower and upper bounds.
    – Mico
    Nov 20, 2012 at 22:24
  • To whom it may concern: Why the downvote? More than five years have passed since I posted this answer, which had collected 20 upvotes. Now, finally, a downvote. What annoyed or angered you? Please speak up.
    – Mico
    Mar 9, 2018 at 5:42
  • 1
    I get downvotes on some radom questions and think it is some new user who accidently clicked on the downvote arrow. Otherwise, I can't see a reason for that. Mar 10, 2018 at 3:27
  • Instead of adding negative space(s) (\!) after the limits it may be more straight-forward to put the limit subscript and/or superscript each into a \mathclap{...} (provided the formula being integrated is not too tall). \mathclap is provided by the mathtools package.
    – Bastian
    Aug 5, 2021 at 10:02
11

I have never seen \int\limits used in syllabi at my university unless it was used for double (\iint) or more combined integrals. In the code fragment below, without the \limits, it is formatted wrong.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\iint\limits_D \quad \iint_D
\end{equation}
\end{document}

iint with limits vs without

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .