Square Brackets in LaTeX (\left[ x \right])

[x]\left[ x \right]
LaTeX command
\left[ x \right]
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Square brackets that scale to fit their contents, for grouping, commutators or closed intervals.

Square brackets serve as the next level of grouping outside parentheses, the closed interval [a, b], the commutator [A, B] = AB - BA, the expectation \mathbb{E}[X], and matrices. With \left[ ... \right] the brackets stretch around fractions, integrals or matrices, as in \left[ \frac{x^2}{2} \right]_0^1 for evaluated antiderivatives. Inside a bmatrix environment the brackets are already provided, so you do not need \left[ yourself. For nested brackets in a long expression, manual sizes like \Bigl[ ... \Bigr] give finer control.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

[x33]01=13\left[ \frac{x^3}{3} \right]_0^1 = \frac{1}{3}
\documentclass{article}
\begin{document}
Square Brackets: $\left[ x \right]$

\[ \left[ \frac{x^3}{3} \right]_0^1 = \frac{1}{3} \]
\end{document}

Related symbols

All 괄호 및 구분자 →

Frequently asked questions

How do I write Square Brackets in LaTeX?
Type \left[ x \right] in math mode, for example $\left[ \frac{x^3}{3} \right]_0^1 = \frac{1}{3}$. It works in plain LaTeX without loading any package.
Which package do I need for \left[ x \right]?
None. \left[ x \right] is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \left[ x \right] in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\left[ x \right]$ in running text.
Math poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기