← Back to explore

Quadratic Formula

Solves for the roots of a quadratic equation ax2 + bx + c = 0. Using 'aligned' to make the equation looks neater.

by IUTest · /s/aae

\begin{aligned}
  x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
  \\[10px]
  x &= \frac{-5 \pm \sqrt{5^2 - 4(2)(-3)}}{2(2)}
  \\[10px]
  &= \frac{-5 \pm \sqrt{49}}{4}
  \\[10px]
  &= \frac{-5 \pm 7}{4}
  \\[10px]
  &\boxed{x = \frac{1}{2}} \quad \text{or} \quad \boxed{x = -3}
\end{aligned}
x=b±b24ac2ax=5±524(2)(3)2(2)=5±494=5±74x=12orx=3\begin{aligned} x &= \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \\[10px] x &= \frac{-5 \pm \sqrt{5^2 - 4(2)(-3)}}{2(2)} \\[10px] &= \frac{-5 \pm \sqrt{49}}{4} \\[10px] &= \frac{-5 \pm 7}{4} \\[10px] &\boxed{x = \frac{1}{2}} \quad \text{or} \quad \boxed{x = -3} \end{aligned}