Math Solver Free

Quadratic Formula

The quadratic formula solves any quadratic equation ax² + bx + c = 0 in one substitution — no factoring needed. Here it is with its variables, its derivation, the discriminant, and a fully worked example.

Circle FormulasA = πr² · C = 2πr · d = 2rArea, circumference, diameter and radius — the whole circle family, worked both ways.Slope Formulam = (y₂ − y₁) / (x₂ − x₁)Rise over run from two points, the four slope types, and the sign mistakes to avoid.Geometric Sequence Formulasaₙ = a₁·rⁿ⁻¹ · Sₙ · S∞The nth term, the finite sum and the infinite sum — each verified by direct addition.Distance Formulad = √((x₂ − x₁)² + (y₂ − y₁)²)Distance between two points from Pythagoras: formula, reasoning and a 6-8-10 example.Midpoint FormulaM = ((x₁ + x₂) / 2, (y₁ + y₂) / 2)The point exactly halfway between two points is just the average of their coordinates.Pythagorean Theorema² + b² = c²a² + b² = c² in right triangles: check 3-4-5, find a missing leg or the hypotenuse.Area FormulasA = lw, A = ½bh, A = ((a + b) / 2)h, A = (d₁d₂) / 2Rectangle, triangle, parallelogram, trapezoid and rhombus areas on one page, with worked examples.Volume FormulasV = s³, V = πr²h, V = (4/3)πr³Cube, cuboid, cylinder, cone, sphere and triangular prism volumes, with worked examples.Exponent Formulas (Laws of Exponents)aᵐ · aⁿ = aᵐ⁺ⁿ, (aᵐ)ⁿ = aᵐⁿ, a⁻ⁿ = 1/aⁿProduct, quotient, power, zero, negative and fractional exponent rules with micro-examples.Logarithm Formulaslog_b(x) = y ⟺ bʸ = x; log_b(xy) = log_b(x) + log_b(y)Definition, product, quotient and power rules, change of base, and ln vs log₁₀ — with examples.Derivative Formulasd/dx xⁿ = n·xⁿ⁻¹Power, sum, exponential, log and trig derivative rules with a worked example.Integral Formulas∫xⁿ dx = xⁿ⁺¹/(n+1) + CPower rule, 1/x, eˣ, sin and cos antiderivatives, the + C, and definite integrals as area.Standard Deviation Formulaσ = √[ Σ(xᵢ − μ)² / N ]Population σ with N and sample s with n − 1, built on the variance, with a fully worked dataset.Probability FormulasP(E) = favourable / totalBasic probability, complement, addition and multiplication rules, permutations and combinations, with dice and counting examples.Compound Interest FormulaA = P(1 + r/n)^(nt)A = P(1 + r/n)^(nt) and continuous compounding Pe^(rt), with $1,000 at 5% for 10 years worked both ways.Simple Interest FormulaI = P · r · tI = Prt and A = P + I, with $2,000 at 6% for 4 years worked to I = $480 and A = $2,480.Arithmetic Sequence Formulasaₙ = a₁ + (n − 1)dThe nth term aₙ = a₁ + (n − 1)d and the sum Sₙ = n/2 · (a₁ + aₙ), with 3, 7, 11, … worked to a₂₀ = 79 and S₂₀ = 820.Percentage Formulas% change = (new − old) / old × 100Percent of a number, percentage change and finding the whole, plus the percentage-points trap, with worked examples.Trigonometric Ratiossin θ = opposite / hypotenusesin, cos and tan on a right triangle, the reciprocal ratios csc, sec and cot, and the exact 30°/45°/60° values.

The quadratic formula: x = (−b ± √(b² − 4ac)) / 2a. It gives the solutions (roots) of every quadratic equation written in standard form ax² + bx + c = 0. Factoring only works when the roots are tidy; this formula works always — for integers, fractions, irrational numbers, and even the cases where the roots are not real at all. Learn to read it in three parts: −b on the left, the square root in the middle, and 2a underneath everything.

The Variables, Explained

  • a is the coefficient of x². It cannot be 0 — if a = 0 the equation is linear, not quadratic.
  • b is the coefficient of x, sign included. In 2x² − 5x + 2, b is −5, not 5.
  • c is the constant term, also with its sign.
  • x is the unknown: the formula returns its value(s).
  • ± means "plus or minus": one pass with + and one with −, which is where the two roots come from.
  • b² − 4ac, under the root, is the discriminant — it predicts how many real roots exist before you finish the calculation.

Where the Formula Comes From: Completing the Square

The formula is not a trick to memorise; it is completing the square done once, in general. Start with ax² + bx + c = 0 and divide everything by a: x² + (b/a)x + c/a = 0. Move the constant over: x² + (b/a)x = −c/a. Now complete the square by adding (b/2a)² to both sides — half the x-coefficient, squared. The left side becomes the perfect square (x + b/2a)², and the right side tidies, over the common denominator 4a², into (b² − 4ac) / 4a². Take the square root of both sides (remembering ± on the right), then subtract b/2a, and the quadratic formula is exactly what remains. Every step is ordinary algebra, which is why the formula can be trusted for every a, b and c.

Worked Example: 2x² − 5x + 2 = 0

Read off a = 2, b = −5, c = 2. Discriminant first: b² − 4ac = (−5)² − 4(2)(2) = 25 − 16 = 9, a perfect square, so the roots will be rational. Now substitute: x = (5 ± √9) / (2 × 2) = (5 ± 3) / 4. Split on the ±: x = (5 + 3) / 4 = 8 / 4 = 2, or x = (5 − 3) / 4 = 2 / 4 = 1/2. Check x = 2: 2(4) − 5(2) + 2 = 8 − 10 + 2 = 0 ✓. Check x = 1/2: 2(1/4) − 5(1/2) + 2 = 0.5 − 2.5 + 2 = 0 ✓.

The Discriminant: D = b² − 4ac

  • D > 0: two different real roots. In the example D = 9, giving 2 and 1/2.
  • D = 0: one repeated real root. For x² − 4x + 4 = 0, D = 16 − 16 = 0 and the only root is x = 2 (the graph just touches the axis).
  • D < 0: no real roots, because the formula would need the square root of a negative number. For x² + x + 1 = 0, D = 1 − 4 = −3; the two roots exist only as complex numbers.

Common Mistakes

  • Losing the sign of b. The formula starts with −b: when b = −5, −b is +5. Writing −5 anyway is the single most common error.
  • Dividing only part of the top by 2a. The bar covers the whole numerator: (5 ± 3) / 4, never 5 ± 3/4.
  • Computing −4ac with the wrong sign. If c is negative, −4ac is positive: for c = −2, −4(2)(−2) = +16.
  • Forgetting the equation must equal zero. Move everything to one side first: 2x² = 5x − 2 becomes 2x² − 5x + 2 = 0 before you read off a, b, c.
  • Stopping at one root. The ± always means two calculations, even when they happen to give the same value.

Run your own coefficients through the quadratic equation solver to check each step, read the standard treatment in OpenStax Elementary Algebra, and browse the full formulas library for more reference pages.

Frequently Asked Questions

What is the quadratic formula?

x = (−b ± √(b² − 4ac)) / 2a. It gives the roots of any quadratic equation ax² + bx + c = 0 directly from its coefficients, whether or not the equation factors.

What does the ± in the formula mean?

It means you calculate twice: once adding the square root and once subtracting it. For (5 ± 3) / 4 that gives 8/4 = 2 and 2/4 = 1/2 — the two roots of 2x² − 5x + 2 = 0.

What does the discriminant tell me?

D = b² − 4ac predicts the roots before you solve: D > 0 means two different real roots, D = 0 one repeated real root, and D < 0 no real roots (the roots are complex).

What if a = 0?

Then there is no x² term and the equation is linear, like bx + c = 0, solved by x = −c/b. The quadratic formula itself breaks down, because it would divide by 2a = 0.

Do I have to use the formula, or can I factor?

Either is fine when factoring works: 2x² − 5x + 2 factors as (2x − 1)(x − 2), giving the same roots 1/2 and 2. The formula is the reliable fallback when no tidy factors exist.

Why does the formula come from completing the square?

Because completing the square solves ax² + bx + c = 0 in general: divide by a, add (b/2a)² to both sides, take roots, and rearrange — the quadratic formula is exactly the result, proved once for all coefficients.

Related Tools & Guides