BEGINNER LATEX GUIDE · LEARN THE BASICS

Write the code.
Understand the math.

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.

01

THE FOUNDATION

Three ideas explain most beginner LaTeX.

Commands begin with a backslash

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}\)
Braces keep parts together

Curly braces group everything that belongs to a command, exponent, or subscript. They make the structure unambiguous.

x^{n+1}\(x^{n+1}\)
Math mode marks the equation

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\)
02

QUICK SYNTAX REFERENCE

The building blocks you will use most.

POWERS

Use ^ for an exponent

x^{2} + y^{n+1}
\[x^{2} + y^{n+1}\]
SUBSCRIPTS

Use _ for a lower index

a_{1} + x_{n}
\[a_{1} + x_{n}\]
FRACTIONS

Give \frac a top and bottom

\frac{x+1}{y-2}
\[\frac{x+1}{y-2}\]
ROOTS

Place the inside of a root in braces

\sqrt{x+4}
\[\sqrt{x+4}\]
GREEK LETTERS

Write the letter's name as a command

\alpha + \beta = \pi
\[\alpha + \beta = \pi\]
BRACKETS

Let tall brackets resize themselves

\left(\frac{x}{2}\right)
\[\left(\frac{x}{2}\right)\]
SUMS

Add lower and upper limits

\sum_{i=1}^{n} i
\[\sum_{i=1}^{n} i\]
INTEGRALS

Use a small space before the differential

\int_{0}^{1} x^2 \, dx
\[\int_{0}^{1} x^2 \, dx\]
03

BUILD IT STEP BY STEP

Large expressions are just small pieces combined.

EXAMPLE A

The quadratic formula

\[x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}\]
  1. 1
    Start with the exponentb^2

    The caret raises the next character. Braces become important when the exponent contains more than one character.

  2. 2
    Put the discriminant inside a root\sqrt{b^2-4ac}

    Everything between the braces belongs under the radical.

  3. 3
    Add the plus-or-minus symbol-b \pm \sqrt{b^2-4ac}

    \pm is a command, so it begins with a backslash.

  4. 4
    Wrap the numerator and denominator in a fractionx=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

    The first brace group is the numerator; the second is the denominator.

EXAMPLE B

A definite integral

\[\int_{0}^{1} x^2 \, dx\]
  1. 1
    Create the integral\int

    The integral symbol is written as a command.

  2. 2
    Add the limits\int_{0}^{1}

    The underscore gives the lower limit and the caret gives the upper limit.

  3. 3
    Add the expression\int_{0}^{1} x^2

    Ordinary letters and numbers can be typed directly.

  4. 4
    Finish with the differential\int_{0}^{1} x^2 \, dx

    \, adds a small, readable space before dx.

04

COMMON MISTAKES

When LaTeX looks wrong, check the structure first.

TOO LITTLE GROUPING

x^10 does not mean x^{10}

Without braces, only the next character becomes the exponent. Group multi-character powers and subscripts.

MISSING BRACES

Every opening { needs a closing }

Read from left to right and match each pair. Nested fractions and roots often reveal a missing brace.

COMMAND SPELLING

\theta works; \tetha does not

LaTeX commands use exact names. If a command appears as red text or raw code, check its spelling.

VISUAL CHECKS

Rendered output can still express the wrong idea

Confirm grouping, signs, indices, limits, and brackets against the math you intended to write.

05

PRACTICE

Translate each phrase before revealing the answer.

01 x squared plus y subscript one
x^2 + y_1\[x^2 + y_1\]
02 the fraction a plus b over c
\frac{a+b}{c}\[\frac{a+b}{c}\]
03 the square root of x squared plus one
\sqrt{x^2+1}\[\sqrt{x^2+1}\]
04 the sum from k equals one to n of k
\sum_{k=1}^{n} k\[\sum_{k=1}^{n} k\]

KEEP PRACTICING

Write a little, render it, then correct it.

Open the ithrion AI Editor when you want to test LaTeX inside notes, or use Quick Convert to study how a visible equation is written as source.