LatexNotes

LaTeX practice: type the maths you see

Each question shows a formula. Type its LaTeX in the box below it, and it is marked as you type. Stuck? Open the hint, or show the answer.

Free, no account. Your answers stay on this page: nothing is saved or sent.

New to LaTeX? Learn it step by step in LaTeX for Maths, a free course of twelve short lessons.

0 of 60 done

Powers and subscripts

0 / 6

Type ^ for a power and _ for a subscript. Only the next character is raised or lowered, so put anything longer in braces: x^{10}, not x^10.

  1. x2x^2

  2. a1a_1

  3. x10x^{10}

  4. x12x_1^2

  5. e−x2e^{-x^2}

  6. an+1=2an+1a_{n+1} = 2a_n + 1

Fractions and roots

0 / 6

\frac{top}{bottom} makes a fraction and \sqrt{x} a square root. For any other root, put its number in square brackets: \sqrt[3]{x}.

Read the guide: Fractions in LaTeX

  1. 12\frac{1}{2}

  2. a+bc\frac{a+b}{c}

  3. 2\sqrt{2}

  4. x3\sqrt[3]{x}

  5. 11+1x\frac{1}{1 + \frac{1}{x}}

  6. x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

Greek letters

0 / 6

A Greek letter is its name after a backslash: \alpha, \theta, \pi. Start the name with a capital for the capital letter: \Delta, \Omega.

Read the guide: Greek letters in LaTeX

  1. α\alpha

  2. θ\theta

  3. Δx\Delta x

  4. λ1,λ2\lambda_1, \lambda_2

  5. σ2\sigma^2

  6. Ω=2πf\Omega = 2\pi f

Operators and relations

0 / 6

Symbols that are not on the keyboard each have a command: \times for ×, \cdot for a centred dot, \leq for ≤, \neq for ≠ and \approx for ≈.

Read the guide: LaTeX symbols

  1. 3×4=123 \times 4 = 12

  2. a⋅ba \cdot b

  3. x≤5x \leq 5

  4. x≠0x \neq 0

  5. π≈3.14\pi \approx 3.14

  6. x→∞x \to \infty

Brackets that grow

0 / 6

Brackets typed on their own stay small. Write \left before the opening bracket and \right before the closing one, and they grow to fit what is between them. Curly braces need a backslash: \{ and \}.

Read the guide: Brackets and delimiters in LaTeX

  1. (12)\left( \frac{1}{2} \right)

  2. [ab]\left[ \frac{a}{b} \right]

  3. ∣x2∣\left| \frac{x}{2} \right|

  4. {1,2,3}\{1, 2, 3\}

  5. (∑i=1nxi)2\left( \sum_{i=1}^{n} x_i \right)^2

  6. ∥v∥\|\mathbf{v}\|

Sums and products

0 / 6

\sum and \prod take their limits from _ and ^. In a formula on its own line, like these, the limits sit below and above the symbol.

Read the guide: Summation (∑)

  1. ∑i=1ni\sum_{i=1}^{n} i

  2. ∑k=0∞12k\sum_{k=0}^{\infty} \frac{1}{2^k}

  3. ∏i=1nai\prod_{i=1}^{n} a_i

  4. ∑i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2}

  5. ∑k=0n(nk)=2n\sum_{k=0}^{n} \binom{n}{k} = 2^n

  6. ∑i=1m∑j=1naij\sum_{i=1}^{m} \sum_{j=1}^{n} a_{ij}

Integrals

0 / 6

\int gives the integral sign, with its limits in _ and ^. A thin space, \,, before the dx is the usual style; here it is optional.

Read the guide: Integrals in LaTeX

  1. ∫x dx\int x \, dx

  2. ∫01x2 dx\int_0^1 x^2 \, dx

  3. ∫−∞∞e−x2 dx=π\int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}

  4. ∬Df(x,y) dA\iint_D f(x, y) \, dA

  5. ∮CF⋅dr\oint_C \mathbf{F} \cdot d\mathbf{r}

  6. ddx∫axf(t) dt=f(x)\frac{d}{dx} \int_a^x f(t) \, dt = f(x)

Limits, derivatives and functions

0 / 6

Names like \sin, \log and \lim are commands, so they print upright instead of as slanted letters. \lim takes what x tends to from _, and ' gives a prime.

Read the guide: Derivatives in LaTeX

  1. sin⁡x\sin x

  2. log⁡28=3\log_2 8 = 3

  3. lim⁡x→0sin⁡xx=1\lim_{x \to 0} \frac{\sin x}{x} = 1

  4. f′(x)f'(x)

  5. dydx\frac{dy}{dx}

  6. ∂f∂x\frac{\partial f}{\partial x}

Vectors and sets

0 / 6

\mathbf{v} makes a bold vector and \vec{v} puts an arrow over it. \mathbb{R} gives the blackboard-bold R of the real numbers, and \in, \cup and \subseteq are set symbols.

Read the guide: Vectors in LaTeX

  1. v\mathbf{v}

  2. a⃗⋅b⃗\vec{a} \cdot \vec{b}

  3. x∈Rx \in \mathbb{R}

  4. A∪BA \cup B

  5. A⊆BA \subseteq B

  6. {x∈Z:x>0}\{ x \in \mathbb{Z} : x > 0 \}

Matrices and cases

0 / 6

A matrix goes between \begin{pmatrix} and \end{pmatrix}: & moves to the next column and \\ starts a new row. bmatrix gives square brackets, vmatrix straight bars, and cases the brace of a function in several parts.

Read the guide: Matrices in LaTeX

  1. (1001)\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}

  2. [abcd]\begin{bmatrix} a & b \\ c & d \end{bmatrix}

  3. ∣abcd∣=ad−bc\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

  4. (xyz)\begin{pmatrix} x \\ y \\ z \end{pmatrix}

  5. A=(a11a12a21a22)A = \begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix}

  6. ∣x∣={xif x≥0−xif x<0|x| = \begin{cases} x & \text{if } x \geq 0 \\ -x & \text{if } x < 0 \end{cases}

Would you rather write it by hand?

LatexNotes turns a photo or PDF of your handwritten maths into LaTeX like this. Free to try, no sign-up.

Convert your handwriting to LaTeX →