Sample code
1
2
3
4
5
6
7
8
9
10
When $$a \ne 0$$,
there are two solutions to
$$ax^2 + bx + c = 0$$
and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}$$
Rendering as
When \(a \ne 0\),
there are two solutions to
\[ax^2 + bx + c = 0\]and they are
\[x = {-b \pm \sqrt{b^2-4ac} \over 2a}\]