How it works
To copy and paste the quadratic formula as plain text, take x = (−b ± √(b² − 4ac)) / 2a. It gives both roots of ax² + bx + c = 0, as long as a is not 0.
Read the full guide
Which form for which box
A message or a form field takes One line. A box that drops ±, √ or ² takes Plain keys. A site that typesets math takes LaTeX and MathJax. As a fraction, in text needs a font of one width, such as a code block, or its bar slips.
Why all the brackets
A written fraction shows what is on top and what is below. On one line the brackets do that. The whole top is in one pair, and the pair after √ says how far the root goes. A reader takes / 2a as over 2a. Code reads / 2*a as divide by 2, then multiply by a, so there it is / (2a) or / (2*a).
- A negative b goes in with brackets: b = −5 gives −(−5) = 5 and (−5)² = 25.
Questions and answers
How do I put the quadratic formula in Word?
Press Alt and = for an equation box, paste x=(-b±√(b^2-4ac))/2a and choose Convert, then Professional. By the rules of the linear format the outer brackets go when the fraction is built, and 2a needs none.
What is the quadratic formula in LaTeX?
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. For MathJax put it between \( and \) in a sentence, or between $$ and $$ on its own line. MathJax does not read single dollars unless the page turns them on.
How do I use the quadratic formula in a spreadsheet?
Put a, b and c in A1, B1 and C1, and **=B1^2-4*A1*C1** in D1. E1 and F1 take the two formulas that test D1 first and say no real root below zero.
What does b² − 4ac tell you?
How many real roots there are; it is the discriminant, D or Δ. Positive means two: x² − 5x + 6 = 0 has 1. Zero means one: x² − 2x + 1 = 0. Negative means none: x² + 1 = 0 has −4.
Is the first sign a hyphen?
In the one-line forms it is the minus sign, U+2212. Plain keys, LaTeX, cells and code have the hyphen instead, because programs read that one.