Mathematic formulas

This is a sample formula:


\begin{displaymath}c = \pm\sqrt{a^2 + b^2} \end{displaymath}

And this is an inline formula: $\int_0^1 f(x)dx = F(x)\vert _0^1$ and so it goes.