We have a quadratic inequality
$$Ax^2+Bx+C>0$$
After solving it for cases where $B^2-4AC > 0$, my textbook turns to cases where $B^2-4AC < 0$:
Using the perfect square method, let's write down this inequality as
$$A\left[\left(X+\frac{B}{2A}\right)^2-\frac{B^2-4AC}{4A^2}\right]>0$$
But how did they get to that result? When I use the formula for completing the square (wikipedia), I get
$$A\left(X+\frac{B}{2A}\right)^2-\frac{B^2}{4A}+C>0;$$ $$A\left(X+\frac{B}{2A}\right)^2-\frac{B^2+4AC}{4A}>0$$
Clearly if I factor out $A$ I would not get those $A$'s the textbook has in the second term within the square brackets (and one even an $A$ squared!). Could the texbook be wrong?
P.S. It's just occurred to me - could I just multiply the $\frac{B^2+4AC}{4A}$ by another $A$ to get to that result?
Here's the excerpt from the texbook:

\begin{align*} &\phantom{{}={}}Ax^2 + Bx + C\\ &=A\left(x^2+ \frac{B}{A} x + \frac{C}{A}\right)\\ &= A\left(x^2+ \frac{B}{A} x + \frac{B^2}{4A^2} - \frac{B^2}{4A^2} +\frac{C}{A}\right)\\ &= A\left(\left(x+ \frac{B}{2A}\right)^2 - \frac{B^2}{4A^2} +\frac{C}{A}\right)\\ &= A\left(\left(x+ \frac{B}{2A}\right)^2 + \frac{4AC-B^2}{4A^2}\right)\\ \end{align*}