This is LaTeX code:

[latex]
f\left( {a,b} \right) = \sum\limits_{i = 1}^m {\left( {ax_i + b - y_i } \right)^2 }
[/latex]