MethodMath
DT
May 16, 2026

How to solve quadratic equations by completing the square when the coefficient of x^2 is not 1?

I understand completing the square when the coefficient of x2x^2 is 1, but I'm struggling when it's something like:

3x2+12x+5=03x^2 + 12x + 5 = 0

What is the general method for handling ax2+bx+c=0ax^2 + bx + c = 0 when a1a \neq 1? Does the quadratic formula always work as a fallback?

Specifically, can I complete the square for:

5x220x+15=05x^2 - 20x + 15 = 0

2 answers377 views
Loading comments...

2 Answers

DA
Dr. Ahmed HassanMay 16, 2026 Accepted
When $a \neq 1$, first factor out $a$ from the quadratic and linear terms, then complete the square inside the parentheses. For $3x^2 + 12x + 5 = 0$: Step 1: Factor out 3 from the $x$-terms $$3(x^2 + 4x) + 5 = 0$$ Step 2: Complete the square inside: add and subtract $(4/2)^2 = 4$ $$3(x^2 + 4x + 4 - 4) + 5 = 0$$ $$3[(x + 2)^2 - 4] + 5 = 0$$ Step 3: Distribute and simplify $$3(x + 2)^2 - 12 + 5 = 0$$ $$3(x + 2)^2 = 7$$ $$(x + 2)^2 = \frac{7}{3}$$ $$x = -2 \pm \sqrt{\frac{7}{3}}$$ For your second example $5x^2 - 20x + 15 = 0$, factor 5: $5(x^2 - 4x) + 15 = 0$, then $5(x - 2)^2 - 20 + 15 = 0$, giving $5(x - 2)^2 = 5$, so $x = 1$ or $x = 3$. The quadratic formula $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ always works and is often faster when $a \neq 1$, but completing the square gives you the same result and builds intuition for deriving the formula itself.
Loading comments...
MR
Maria RodriguezMay 16, 2026
A quick tip: if the coefficient of $x^2$ doesn't divide the other terms nicely, just use the quadratic formula. It's derived from completing the square anyway, so you'll get the same result with less algebraic manipulation. $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ For $3x^2 + 12x + 5 = 0$: $$x = \frac{-12 \pm \sqrt{144 - 60}}{6} = \frac{-12 \pm \sqrt{84}}{6} = -2 \pm \frac{\sqrt{21}}{3}$$ Note this is equivalent to the completing-the-square solution since $\sqrt{7/3} = \sqrt{21}/3$.
Loading comments...
Login or Register to post an answer