This is LaTeX code:
[latex]
{f\left(\frac{a+b}{2}\right)}\cdot\left(b-a\right)
[/latex]