Inline vs display
The function $f(x) = x^2$ is continuous.
$$
f(x) = x^2 + 1
$$
Exercise: rewrite two lines from your current notes using inline and display maths.
This page is for students who are opening LaTeX for the first time. The goal is simple: by the end, you should be able to type the main symbols you meet in UI courses and place them correctly inside sentences and displayed equations.
You may use:
For assignments and projects, Overleaf or a local installation is ideal. For short practice, the LaTeX Lab editor is enough.
Inline maths lives inside the sentence, for example
$f(x) = x^2$. Display maths sits on its own line:
$$
f(x) = x^2 + 1
$$
Use inline maths when the formula is part of the grammar of the sentence. Use display maths when you want the expression to stand out, be centred, or be referenced as an equation.
Use ^ for superscripts and _ for subscripts:
$x^2$, $\alpha_n$, $a_{n+1}$, $x^{2n+1}$
Whenever you need more than one character in a super- or subscript, wrap it in
{...}. That way LaTeX knows where the exponent or index stops.
Greek letters and standard symbols follow simple names:
$\alpha, \beta, \gamma, \lambda, \pi, \sigma$
$\infty, \leq, \geq, \neq, \mathbb{R}, \mathbb{N}, \mathbb{Z}$
The rule is: type a backslash and the name of the symbol, then place it between
$ ... $ or inside a displayed equation.
{...}.These are the patterns that show up in almost every first- and second-year mathematics course. Type them slowly, then adapt them to your current lecture notes.
The function $f(x) = x^2$ is continuous.
$$
f(x) = x^2 + 1
$$
Exercise: rewrite two lines from your current notes using inline and display maths.
$$
(a+b)^2 = a^2 + 2ab + b^2
$$
$$
\sqrt{a^2} = |a|
$$
Exercise: type the binomial formula and one identity you know from algebra.
$$
\forall x \in \mathbb{R},\ x^2 \ge 0.
$$
$$
\exists n \in \mathbb{N} \text{ such that } n \ge 10.
$$
Exercise: write the formal statement for the definition of an even integer.
$$
[0,1] = \{ x \in \mathbb{R} : 0 \le x \le 1 \}
$$
$$
A \cup B,\quad A \cap B,\quad A \subseteq B
$$
Exercise: describe the solution set of a simple inequality using set notation.
Use this routine any time you finish a topic in class. The aim is to make LaTeX a normal part of your study, not an extra burden.
After a few weeks of doing this, typing mathematics in LaTeX will feel as natural as writing in your notebook.