# How to get the square brackets that are involved in integration working

The clearest way to clearly show what I want is using an example:

I am looking for the Latex syntax that gives me the stuff on the right-hand side of the equation.

• What did you type for the left-hand side? It's the same thing. :-) – Matthew Leingang Jun 20 '13 at 15:37
• @MatthewLeingang is it? I typed something like \displaystyle\int^4_0 2x+1\ dx. I couldn't find any information on this when searching for "square brackets integration latex" – nebffa Jun 20 '13 at 15:51
• Probably the best start point for learning LaTeX is not Google... – karlkoeller Jun 20 '13 at 16:03
\left[\frac{x^3}{3}+x\right]_1^2

• @BjörnLindqvist better to ask a new question than leave a comment on a years old one, but your comment seems strange actually. The integral sign is a fixed size character, but the \left[ used here will grow to cover the fraction in its content, so the exact sizes depend on the fonts being used but in general the [] will be larger than the integral as they grow arbitrarily large and the integral is fixed size. – David Carlisle Mar 15 '17 at 23:02