I'm having a hard time understanding the cost of the operations. Take this for example:
Considering the system $Tx=b$, with $T=(t_{ij})$ triangular lower matrix.
\begin{cases} t_{11}x_1=b_1 \\ t_{21}x_1+t_{22}x_2 =b_2\\ ....... \\ t_{n1}x_1+t_{n2}x_2+...+t_{nn}x_n =b_n\\ \end{cases} $\Leftrightarrow$ $\sum_{j=1}^{i} t_{ij}x_j=b_i, i=1(1)n$
The solution is obtained with a downward substitution and,
$x_i=(b_i-\sum_{j=1}^{i-1} t_{ij}x_j)/t_{ii},i=1(1)n$
The calculation of $x_i$ implies $i-1$ products and $1$ division.
But from here how do I get to know that the calculation of $x$ costs $\mathcal{O}( \frac{n^2}{2})$ operations?
You have then $$\sum_{i=1}^n (i-1)=\frac{n(n-1)}{2} $$ products and $n$ divisions : so $$ \frac{n^2}{2}-\frac{n}{2} + n =\frac{n^2}{2}+\frac{n}{2}=O\bigg( \frac{n^2}{2}\bigg)$$ operations.