Skip to content

Fractions and Roots

Fractions

Use \frac{numerator}{denominator}.

  • \(\frac{1}{2}\) - \frac{1}{2}
  • \(\frac{a+b}{c+d}\) - \frac{a+b}{c+d}
  • Need larger fractions? Use \dfrac{...}{...} (display fraction).
  • Need inline fraction? Use \tfrac{...}{...} (inline fraction).

Roots

Use \sqrt{...} for square roots and \sqrt[n]{...} for nth roots.

  • \(\sqrt{2}\) - \sqrt{2}
  • \(\sqrt[3]{8}\) - \sqrt[3]{8} (cube root)
  • \(\sqrt{x^2+y^2}\) - \sqrt{x^2+y^2}
  • \(\sqrt{1+\sqrt{x}}\) - \sqrt{1+\sqrt{x}}

Complex Examples

Combining these features: $$ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$ $$ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} $$