As with other markup, there is a directive and a mode:
to insert in your code, just prepend it with the
:math: mode tag:
to insert :math:`c= \pm \sqrt{a^2+b^2}` in your code, ...
The quadratic formula gives in general, two solutions to the equation
:
(1)
in your code, just prepend it with the ..math:: directive:
.. math:: x = \frac{-b\pm \sqrt{b^2-4ac}}{2a}
:label: quadratic
The :label: option creates a label and allows us to refer to the equation elsewhere (see (1)).
See also