MethodMath
Ask
Join
HomeTopicsAskAlerts
Profile

© 2026 MethodMath. Built for mathematical knowledge sharing.

AboutContactGuidelinesPrivacyTermsCookies
Robert Fischer
Mar 9, 2026

Why does the quadratic formula work the way it does?

I use the quadratic formula all the time but I've never understood where it actually comes from. It looks so arbitrary with the plus-minus and the square root and the division by 2a. Can someone show me how you would derive it from scratch using completing the square?

1 answers150 views

1 Answer

-3
Priya Sharma
Mar 9, 2026
Accepted
The quadratic formula comes from completing the square on the general quadratic equation: $$ax^2+bx+c=0,\qquad a\neq 0.$$ First divide everything by $a$: $$x^2+\frac{b}{a}x+\frac{c}{a}=0.$$ Move the constant term: $$x^2+\frac{b}{a}x=-\frac{c}{a}.$$ To complete the square, take half of the coefficient of $x$ and square it: $$\left(\frac{b}{2a}\right)^2.$$ Add it to both sides: $$x^2+\frac{b}{a}x+\left(\frac{b}{2a}\right)^2 =-\frac{c}{a}+\left(\frac{b}{2a}\right)^2.$$ The left side is now a square: $$\left(x+\frac{b}{2a}\right)^2 =\frac{b^2-4ac}{4a^2}.$$ Take the square root of both sides: $$x+\frac{b}{2a}=\pm\frac{\sqrt{b^2-4ac}}{2a}.$$ Finally subtract $\frac{b}{2a}$: $$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}.$$ So nothing in the formula is random. The $\pm$ comes from taking a square root, the $2a$ comes from completing the square after dividing by $a$, and $b^2-4ac$ is the expression left under the square root.
Still unsure? Join to comment or ask a follow-up.
Login or Register to post your answer

Suggested questions

Why does 0 factorial equal 1 instead of 0? Simple proof

31.4k

Why is dividing by zero undefined instead of infinity?

22.4k

what is the actual answer to 8 divided by 2 parentheses 2 plus 2 viral math problem

21.6k

Does the Banach-Steinhaus theorem hold for non-complete normed spaces?

31.1k

Do I need Calculus 3 before learning Fourier series?

3501