A command tells LaTeX what to create. For example, \sqrt creates a square root and \alpha creates the Greek letter alpha.
\sqrt{x}\(\sqrt{x}\)BEGINNER LATEX GUIDE · LEARN THE BASICS
You do not need to know LaTeX before starting. LaTeX is a plain-text way to describe math: commands name the symbol or structure, braces group the parts, and the rendered result turns that code into readable notation.
THE FOUNDATION
A command tells LaTeX what to create. For example, \sqrt creates a square root and \alpha creates the Greek letter alpha.
\sqrt{x}\(\sqrt{x}\)Curly braces group everything that belongs to a command, exponent, or subscript. They make the structure unambiguous.
x^{n+1}\(x^{n+1}\)Use \(...\) for math inside a sentence and \[...\] for an equation on its own line. ithrion AI's fields usually handle math mode for you.
\(a+b\)\(a+b\)QUICK SYNTAX REFERENCE
^ for an exponentx^{2} + y^{n+1}
_ for a lower indexa_{1} + x_{n}
\frac a top and bottom\frac{x+1}{y-2}
\sqrt{x+4}
\alpha + \beta = \pi
\left(\frac{x}{2}\right)
\sum_{i=1}^{n} i
\int_{0}^{1} x^2 \, dx
BUILD IT STEP BY STEP
b^2The caret raises the next character. Braces become important when the exponent contains more than one character.
\sqrt{b^2-4ac}Everything between the braces belongs under the radical.
-b \pm \sqrt{b^2-4ac}\pm is a command, so it begins with a backslash.
x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}The first brace group is the numerator; the second is the denominator.
\intThe integral symbol is written as a command.
\int_{0}^{1}The underscore gives the lower limit and the caret gives the upper limit.
\int_{0}^{1} x^2Ordinary letters and numbers can be typed directly.
\int_{0}^{1} x^2 \, dx\, adds a small, readable space before dx.
COMMON MISTAKES
x^10 does not mean x^{10}Without braces, only the next character becomes the exponent. Group multi-character powers and subscripts.
{ needs a closing }Read from left to right and match each pair. Nested fractions and roots often reveal a missing brace.
\theta works; \tetha does notLaTeX commands use exact names. If a command appears as red text or raw code, check its spelling.
Confirm grouping, signs, indices, limits, and brackets against the math you intended to write.
PRACTICE
x^2 + y_1\[x^2 + y_1\]\frac{a+b}{c}\[\frac{a+b}{c}\]\sqrt{x^2+1}\[\sqrt{x^2+1}\]\sum_{k=1}^{n} k\[\sum_{k=1}^{n} k\]