When it comes to quadratic polynomials — which seem to come in all different forms and sizes — most of us have spent at least a semester just learning about how to maneuver around them.

Indeed, when we look through a standard pre-college math curriculum pertaining to quadratic expressions, we would stumble upon topics such as Square of a Sum, Square of a Difference, Completing the Square, Direct Factoring, Grouping, Difference of Squares. AC method (if you’re lucky) and Quadratic Formula — among others.

In what follows though, we will — in addition to putting some of these techniques into good use — develop a general technique for factorising any kind of quadratic polynomials. And yes — it would also include those with complex numbers as coefficients. 🙂

Of course, these are all very useful techniques, and are all worthy of mastering. The problem with them — if there is any — is that most of them are meant to be used for very special cases only. As a result, the need for better solutions sparks the search for other techniques that are more widely applicable.

When it comes to factoring quadratic polynomials specifically, there are 2 primary techniques that stand out in terms of their general applicability and elegance. These are the Direct Factoring Method, and the AC Method.

Admittedly, while both of these methods are trial-and-error-based heuristics for finding factors with integer coefficients, Direct Factoring requires less steps to carry out (though is more insight-demanding). In contrast, the AC Method takes on a bit more steps, but has a simpler verification process.

Just as the name suggests, Direct Factoring consists in finding out the linear factors (i.e., factors of the form $ax+b$) of a quadratic expression directly — mostly by inspection and trial-and-error.

For example, to factorise the trinomial $x^2+13x + 36$ directly, is to find out two linear factors that multiply up to itself:

\begin{equation*}(\Box x + a)(\Box x + b ) = x^2+13x + 36 \end{equation*}

When a trinomial has a leading coefficient of $1$ (i.e., a monic polynomial) — as is in this case — all the $\Box$s reduce to $1$, which simplifies the search a bit:

\begin{equation*}(x + a)(x + b) = x^2+13x + 36 \end{equation*}

To explore a bit, we can expand the left-hand side of the equation, yielding:

\begin{equation*}x^2 + (a+b)x + ab = x^2+13x + 36 \end{equation*}

which suggests that the two constants $a$ and $b$ needs to be such, that they add up to $13$ all of the while multiply up to $36$. After a little bit of experimentation, we see that $4$ and $9$ would do the trick:

So Direct Factoring seems to work particularly well with monic polynomials. However, in the general case where the polynomial is not monic, a successful execution of Direct Factoring requires a bit more thinking and ingenuity. Take the case of $3x^2+ 22x+24$ for instance:

\begin{equation*}(\Box x + a)(\Box x + b ) = 3x^2+22x + 24 \end{equation*}

For one, we know that the $\Box$s must be such that they multiply up to $3$. In this case, $3$ and $1$ pop up as obvious factors:

The next step then becomes finding out which are the constants $a$ and $b$, such that the left-hand side expands to the right-hand side. By inspection, these constants must multiply up to $24$, leaving us with the following factor pairs: $(1,24)$, $(2,12)$, $(3,8)$, $(4,6)$, $(6,4)$, $(8,3)$, $(12,2)$ and $(24,1)$.

By pure observation again, if $b\ge8$, then there is no way we can get a middle coefficient of $22$ (Why?). But then, that still leaves us with several options. Out of curiosity, let’s try $a=6$ and $b=4$:

OK. This suggests that the middle coefficient (i.e., $18$) is too small. By observation, it seems that boosting the value of $b$ increases the value of the middle coefficient as well. With that in mind, let’s give $a=4$ and $b=6$ a try:

Checked! So the numbers work out perfectly in this case.

All right. That pretty much illustrates how in general, factoring a quadratic trinomial directly usually entails making an educated guess first, and adjusting accordingly until the numbers match up. In the cases where the polynomial has well-behaved integer coefficients, this approach is actually not too bad (and could be the fastest even).

In some schools out there (e.g., those in British Colombia), a certain factoring technique called the AC Method is taught as the de-facto factoring method — sometimes even with great success.

What is this mysterious AC Method then? Well, it’s essentially a technique for factoring quadratic expressions that is based on splitting the $x$-term into two, resulting in a quadratic expression with four terms — the left two terms being proportional to the right two terms. This proportionality then allows for completing the factoring via Grouping — a basic factoring technique introduced a bit earlier.

More specifically, given a trinomial $ax^2+bx+c$, the AC Method begins by splitting the term $bx$ into two terms (denoted by $b_1x$ and $b_2x$), such that the coefficients $b_1$ and $b_2$ adds up to $b$, but also multiply up to $ac$ — Hence the AC Method.

Once the splitting is done, the resulting quadratic polynomial — $(ax^2 + b_1x) + (b_2x + c)$ — will be such that $ax^2 + b_1x$ is proportional to $b_2x+c$. As a result, Grouping then can be applied to factorise the polynomial with ease.

To illustrate, suppose that we were to factorise $3x^2+22x + 24$ (the same trinomial from the Direct Factoring section) using the AC Method, then we would have to:

Split the $x$-term: We need to split $22x$ into two terms such that their coefficients add up to $22$ and multiply up to $ac=3(24)=72$. That would suggest the following pairs of coefficients: $(1,72)$, $(2,36)$, $(3,24), \dots , (1,72).$ Obviously, pairs containing numbers such as $24$, $36$ and $72$ are too big to add up to $22$, but with just a bit of thinking, we can see that the pair $(4, 18)$ — or the pair $(18,4)$ — would work out perfectly. Either way, we are warranted to turn $3x^2+22x + 24$ into $3x^2+4x + 18x + 24$.

So whether it’s by Direct Factoring or AC Method, the result remains the same.

However, as you might notice here, the AC Method is kind of an interesting and elegant technique, in that while for monic trinomials, using direct factoring is faster and almost equivalent to using the AC Method, for non-monic trinomials, the AC Method in effect turns the hard step of figuring out 4 coefficients into an easier step of figuring out 2 coefficients, thereby reducing the complexity of the factoring process — perhaps at the expense of an additional Grouping step, which can be carried out easily with no guesswork involved.

Another example of factorisation via the AC Method. Note how $-x$ is splitted into $-6x$ and $5x$.

So… with Direct Factoring and AC Method now in our bag of tricks, we’ve got some pretty powerful tools for factoring quadratic trinomials, don’t we? Well, there is only one problem. Namely, these two techniques don’t work at all — for the vast majority of quadratic trinomials!

OK. How is that possible though? Well, here is why:

The fact that a trinomial has integer coefficients, doesn’t mean that the same should be true for its factorisation. Math Vault

And the more you think about it, the more you realise that both Direct Factoring and AC Method are techniques for identifying factors with integer/rational coefficients primarily. As a result, it’s hence no surprise that both methods can fail miserably — for a trinomial that has not been crafted to work out perfectly.

To illustrate, let’s take the trinomial $x^2-x-1$, which is well known to be factorisable with $\frac{1+\sqrt{5}}{2}$ (i.e., the Golden Ratio) as one of its roots. However, if we try to factor it using the primary techniques though, we’ll soon discover that both Direct Factoring and AC Method yields nothing in return.

Actually, this is just the tip of the iceberg. What if we have:

A trinomial with fractions as coefficients, like $\frac{1}{2}x^2+4x + \frac{3}{5}$? While both Direct Factoring and AC Method work with rational coefficients in theory, we might have a hard time finding out the factors from what seems like an infinite amount of possibilities.

Of course, using some clever tricks, it’s always possible to turn a trinomial of rational coefficients into one with integer coefficients, but hey, the linear factors might still have fractions as coefficients.

Here’s another one, what about:

A trinomial with irrational coefficients, like $\pi x^2+ 5x + 3$? Again, while Direct Factoring and AC Method can work in theory, you will have a tough time finding the factors from — this time for real — an infinite amount of possibilities (save some special cases, of course!).

So, all this to convey the idea that primary factorisation techniques can fall short in terms of their scope and applicability, and because of that, the search for the ultimate factorisation technique continues…

Actually, with the basic and primary factorisation techniques introduced earlier, we already have all the tools needed to factorise any quadratic expressions. All that’s needed really is to put the ingredients together into a coherent algorithm — one that consistently takes care of every issue that got us stuck with the previous methods.

So what is this General Method? In a nutshell, it’s a quadratic-factorisation algorithm based on three key steps — with no guesswork or trial-and-error involved:

General Method — Three Key Steps

Standardisation: Factor out the leading coefficient, thereby reducing the original trinomial into a monic trinomial.

Completing the Square: Turning the monic trinomial into the so-called vertex form.

Factorisation: The vertex form can take on different shapes, but if it is a difference of square itself, then further factorisation is possible; if not, the factorisation is complete by default.

OK. Since an illustration is worth a thousand words, let’s kick off with a few examples before going into full-theory mode.

As you can see here, the monic polynomial is now in the form $(x – h)^2 + k$. This is commonly referred to as the vertex form, because we can then deduce that the vertex — or the minimum of the monic polynomial — occurs at $(h,k)$.

With that in mind, we can see that in this case, our monic polynomial has $k=\frac{11}{9}$. This means that if we were to graph this polynomial, then it would start at a height greater than $0$ at the vertex, and increase beyond bound as it moves away from the vertex.

Sure. This can only mean one thing — that the monic polynomial (and by extension, the original trinomial) could not possibly have a root. Here is an accompanying graph of the original trinomial for additional assurance:

The graph of the original trinomial $3x^2 + 4x + 5$. Note that the graph never touches the x-axis – hence no root.

And since the original trinomial has no root, this also means that there is no way that we can factor it either. Why? Because if we could, then the trinomial must have at least a linear factor (i.e., $ax+b$, $a\ne 0$), which means that it actually has a root — namely, $\frac{-b}{a}$!

And with that settled, we can safely dub $ 3x^2 + 4x + 5$ as an irreducible polynomial (i.e., a “prime” polynomial). This is actually in a sense good to know, because we can always leave the trimonial as it is — with its monic polynomial in the vertex form (i.e., $3\left[(x-\frac{-2}{3})^2 + \frac{11}{9}\right]$).

OK. Here’s another one: what about factoring trinomials such as $-2x^2-12x-18$? Well, using the ideas behind the General Method, the following steps are in order:

Factorisation: The monic polynomial is in vertex form with $k=0$. Hence the factorisation is complete and no further action is required.

All good. Looking at the vertex form, one can also deduce that $-2x^2-12x-18$ has only a root at $x=-3$, and decreases beyond bound as it moves away from the vertex.

Wow! That was fast isn’t it? Here’s a caveat: cases like these happen quite a bit in textbooks, but very rarely in real-life quadratic models.

OK. Let’s choose a trinomial we haven’t seen before, say $5x^2 – 16 x + 4$. What could happen if we apply the ideas behind the General Method on this one?

Let’s see… First, standardisng the trinomial, we get that $5x^2 – 16 x + 4$ = $5 \left[ x^2 – \frac{16}{5} x + \frac{4}{5}\right]$.

Second, completing the square on the monic polynomial yields:

Given any trinomial of the form $ax^2+bx+c$ with real numbers as coefficients, the General Method provides a surefire way of completing its factorisation — whenever applicable. To see why, let’s first start by standardising the trinomial:

$$ax^2+bx+c = a \left[x^2+\frac{b}{a}x + \frac{c}{a} \right]$$

Next, completing the square on the monic polynomial yields:

\begin{align*} a \left[x^2+\frac{b}{a}x + \frac{c}{a} \right] & = a \left[\underbrace{x^2+ 2 \cdot x \cdot \frac{b}{2a} + \left(\frac{b}{2a}\right)^2} – \left(\frac{b}{2a}\right)^2 + \frac{c}{a} \right] \\ & = a \left[ \left(x+ \frac{b}{2a}\right)^2 \underbrace{- \frac{b^2}{4a^2} + \frac{4ac}{4a^2}} \right] \\ & = a \left[ \left(x – \frac{-b}{2a}\right)^2 – \frac{b^2 – 4ac}{4a^2} \right] \end{align*}

See that $b^2 – 4ac$ thingy? It’s also called the discriminant by the way. For simplicity, we will denote it by $\Delta$.

Furthermore, notice that in the process of completing the square, we also just proved for any quadratic polynomial, the vertex occurs when $x = \frac{-b}{2a}$. In other words, we now know — without having to complete the square again — that the vertex of any quadratic function $f(x)=ax^2+bx+c$ occurs at the point $\left(\frac{-b}{2a}, f(\frac{-b}{2a})\right)$.

And since this $\frac{-b}{2a}$ pops up all the time, we will simply denote it by $h$, so that now we have two shorthands instead of one: $\Delta$ for $b^2 – 4ac$, and $h$ for $\frac{-b}{2a}$.

Under this terminology, the above equation can be simplified as follows:

From this, we see that the monic polynomial is already in vertex form, with $k = – \frac{\Delta}{4a^2} $. Depending on the value of $\Delta$, three possible cases can occur:

Case 1 — $\Delta < 0$: In this case, $k$ — the constant in the vertex form — exceeds $0$. As a result, the polynomial has no root, and hence the factorisation is complete as it is:

Case 2 — $\Delta = 0$: In this (very lucky) case, $k$ becomes $0$ as well. As a result, the factorisation is also complete and can be simplified as $a (x – h)^2$, with $h$ being the only root.

Case 3 — $\Delta > 0$: In this last case, with $k$ being a negative number, the vertex form can be further factorised using the difference of square formula:

Once here, the factorisation is complete, yielding $h \pm \frac{\sqrt{\Delta}}{2a}$ as the two roots of the trinomial. Looking familar? Of course! We just proved the (in)famous Quadratic Formula along the way!

OK. Now that we have done all the hard work, we can leverage it into constructing a general algorithm for factoring quadratic expressions, which involves — oddly enough — no factoring at all (at least not in the ordinary sense)!

General Method — The Algorithm

Given a quadratic trinomial with real coefficients (i.e., $ax^2+bx+c$, $a$, $b$, $c \in \mathbb{R}$), the factorisability of the trinomial can be determined using the value of its discriminant $\Delta$, with the factorisation expressible in terms of $\Delta$ and $h$ as follows:

$\Delta < 0$: The polynomial is irreducible, with the factorisation being $a \left[ (x – h)^2 – \frac{\Delta}{4a^2}\right]$.

$\Delta = 0$: The polynomial is a perfect square, with the factorisation being simply $a (x – h)^2$.

$\Delta > 0$: The polynomial has two distinct roots $r_1$ and $r_2$ (shorthands for $h + \frac{\sqrt{\Delta}}{2a}$ and $h – \frac{\sqrt{\Delta}}{2a}$, respectively), with the factorisation being simply $a (x – r_1) (x – r_2)$.

So now you might be asking: “How is this different from the good old Quadratic Formula?” Well, in a nutshell, the General Method is an ultimate technique for factorising quadratic trinomials, while the Quadratic Formula is an ultimate technique for solving their roots.

As a rule of thumb, factorisation generally does much more than simply solving for the roots. And in this case, since the process of factorization also reveals the roots, the General Method can be thought of as a precursor of the Quadratic Formula itself.

In fact, more is true: the General Method also reveals additional information about the quadratic trinomial:

Vertex: An application of the General Method would reveal the coordinates of the vertex, which determines the position the graph of the trinomial stems from.

Shape: A factorisation via the General Method reveals the role of the leading coefficient $a$ in determining the orientation (i.e., opens upwards/downwards) and the sloppiness of the graph (of the trinomial).

Vertex Form: Regardless of whether a trinomial has root or not, the General Method either provides a factorisation for the trinomial, or converts its corresponding monic polynomial into vertex form. While seemingly extraneous, these different representations of trinomials can come in handy in a series of scenarios, where algebraic manipulations are crucial (e.g., partial fraction, trigonometric integrals).

Taking the ideas behind of the General Method one step further, if a trinomial $ax^2+bx+c$ is such that $a$, $b$ and $c$ are complex numbers (or considered to be to complex numbers), then the above argument with the three cases collapses into one, with the trinomial always factorisable as follows:

where $\sqrt{\Delta}$ stands for the complex number on the upper quadrant (i.e., with angle $\theta \in [0. \pi)$) which squares up to $\Delta$.

In this case, we can see that the two roots of the trinomial are $h \pm \frac{\sqrt{\Delta}}{2a}$. so that if we denote these two roots by $r_1$ and $r_2$, the factorisation can be further simplified as follows:

$$ a ( x – r_1) (x – r_2) $$

Not too shabby isn’t it? Incidentally, this also proves in the world of complex numbers, a quadratic polynomial (i.e., a polynomial of degree two) always has two (not necessarily distinct) roots. This is a special case of the so-called Fundamental Theorem of Algebra, which states that in the field of complex numbers, a polynomial of degree $n$ ($n \in \mathbb{N}$) always has $n$ (not necessarily distinct) roots.

This all seems a bit abstract of course, so let’s run through an example to see what how that result comes about. For simplicity, let’s say that we were to factor $3x^2+6x+6$ using the ideas behind the General Method, then we’ll have the following steps:

This means that while $3x^2+6x+6$ (or equivalently, $3\left[ (x + 1)^2 +1\right]$) is irreducible in the world of real numbers, in the world of complex numbers, it actually factorises to $3\left[ (x – [-1 – i])(x- [-1 + i]) \right]$.

Alternatively, if you prefer factorising $3x^2+6x+6$ using the General Method itself, then here is what you would do:

We know that for complex numbers, $ax^2+bx+c$ always factorises to $a (x -r_1) (x-r_2)$, with $r_1$ and $r_2$ being $h\pm \frac{\sqrt{\Delta}}{2a}$. Once we gather the ingredients $h$, $\Delta$ and $\frac{\sqrt{\Delta}}{2a}$, we should be all set.

Since $h \stackrel{def}{=} \frac{-b}{2a}$, we have that $h = \frac{-6}{6} = -1$ in this case.

Since $\Delta \stackrel{def}{=} b^2 – 4ac$, we get that $\Delta = 6^2 – 4\cdot 3 \cdot 6$ $= -36$.

Lastly, putting everything together, we get that the roots of the trinomial are $-1 \pm i$, with the factorisation $3 (x – [-1 + i])(x-[-1 – i])$ — same as above.

See the beauty of this? There is no basic/primary factoring techniques involved — just pure computations. 😉 Granted, we did picked an example that’s relatively gentle to work with, but it’s still true that for quadratic trinomials with complex coefficients, whenever we are dealing with $4x^2 + 8x + 9$ or $(2+i)x^2 + \pi x + e+4i$, the General Method takes care of them all!

OK. Now that we have developed the ultimate technique for quadratic factorisation, does it mean that it is over? Well, the search might be, but the need for practices continues on!

To be sure, the fact that the General Method caters to all kinds of quadratic trinomials doesn’t mean that it should be applied all the time. Why? Because unlike the basic and primary factoring techniques, the General Method — while universally applicable — can be quite computationally intensive at times (sometimes even an overkill).

Truth to told, mastering quadratic factorisation is all about learning the mechanics of different kinds of techniques, while adjusting one’s approach accordingly so that a problem can be solved with minimal effort. In this sense, one can even say that quadratic factorisation is as much an art as it is a science.

And before we go, here’s an interactive table summarizing what we have learnt so far:

A trial-and-error-based factoring method consisting in finding the coefficients of the two linear factors, so that the linear factors multiply to the quadratic trinomial in question.

For example, in order for $(\Box x + \Box )$ and $(\Box x + \Box )$ to multiply up to $3x^2+22x + 24$, the left $\Box$s should be $3$ and $1$, while the right $\Box$s should be $6$ and $4$.

A trial-and-error-based method for factoring quadratic trinomial, which consists in breaking up the middle term of the trinomial into two, such that the coefficients of these two terms multiply up to $ac$. The resulting polynomial is then factorised via a standard application of Grouping.

For a trinomial $ax^2+bx+c$ with real coefficients, the General Method allows for it to be factorised as follows:

$\Delta < 0$: The trinomial is irreducible, with the factorisation being $a \left[ (x – h)^2 – \frac{\Delta}{4a^2}\right]$.

$\Delta = 0$: The trinomial is a perfect square, with the factorisation being simply $a (x – h)^2$.

$\Delta > 0$: The trinomial has two distinct roots $r_1$ and $r_2$, with the factorisation being $a (x – r_1) (x – r_2)$.

For any trinomial with complex coefficients, the General Method allows for it to be factorised as $a (x – r_1) (x – r_2)$.

All right. That’s about it! This page is now clocking at 4200+ words, making it potentially the longest and the most comprehensive article about quadratic factorisation on the Web. If you enjoy and appreciate the learning process, make sure hop into our Facebook and peek at what the kind of weird cognitive technologies we’re experimenting with in the Math Vault Lab!

Follow

About the Author

Math Vault and its Redditbots enjoy advocating for mathematical experience through digital publishing and the uncanny use of technologies. Check out their 10-principle learning manifesto so that you can be transformed into a fuller mathematical being too.

You guys are simply amazing! I’ve tried deriving the quadratic roots formula time and again, but never thought of connecting the standard form to the vertex form and seeing what pops out. The General method has also helped improve my intuition for the quadratic trinomials, so thank you guys very much! I’m going to remember and thank you guys every time I apply one of the many great techniques I’ve learnt here! 🙂

This is really great. I learned all there is to know about factoring. Perfect level of difficulty and explanation of how it really works. Can you go beyond High School level ? Regards Pat Orlando B.S. Physics Columbia University.

Hi Patrick. Thanks for the kind words. Yes. The vast majority of our guides and eBooks go beyond the high school level, and if we cover a basic topic that’s usually means that there’s a higher-math twist to it!