Factoring Trinomials Calculator
Type a trinomial such as \(6x^2 + 11x + 3\) to factor it with every step shown. The calculator takes out the greatest common factor first, then uses the method your class uses: two numbers for \(x^2 + bx + c\), or the AC method with grouping when \(a\) is not 1.
Your trinomial
Type powers with ^, like x^2. Any single letter works.
Factored form
Step-by-step working
The same answer as a picture
How to use the factoring trinomials calculator
- Type your trinomial in the box, for example
x^2 + 5x + 6or6x^2 + 11x + 3. Use^for powers. - The factored form appears straight away, checked by multiplying the factors back together.
- Read the steps underneath. For most trinomials you also get the X puzzle and the box method as a picture.
How to factor a trinomial when a = 1
For a trinomial of the form \(x^2 + bx + c\), look for two numbers that multiply to \(c\) and add to \(b\). If the numbers are \(m\) and \(n\), then
\[ x^2 + bx + c = (x + m)(x + n) \]
Worked example: factor \(x^2 + 5x + 6\). Two numbers that multiply to 6 and add to 5 are 2 and 3. So \(x^2 + 5x + 6 = (x + 2)(x + 3)\).
The signs of \(b\) and \(c\) tell you the signs of the two numbers:
- \(c\) positive, \(b\) positive: both numbers are positive. \(x^2 + 7x + 12\) \(= (x + 3)(x + 4)\)
- \(c\) positive, \(b\) negative: both numbers are negative. \(x^2 – 7x + 12\) \(= (x – 3)(x – 4)\)
- \(c\) negative, \(b\) positive: one of each, and the larger one is positive. \(x^2 + x – 12\) \(= (x – 3)(x + 4)\)
- \(c\) negative, \(b\) negative: one of each, and the larger one is negative. \(x^2 – x – 12\) \(= (x + 3)(x – 4)\)
How to factor a trinomial when a is not 1 (the AC method)
- Take out the greatest common factor, if there is one.
- Multiply \(a\) and \(c\).
- Find two numbers that multiply to \(ac\) and add to \(b\).
- Use those two numbers to split the middle term into two terms.
- Factor by grouping: take the common factor out of the first two terms and out of the last two terms.
- Take out the bracket that both parts share.
Worked example: factor \(6x^2 + 11x + 3\). Here \(ac = 6 \times 3 = 18\). Two numbers that multiply to 18 and add to 11 are 2 and 9. Split the middle term: \(6x^2 + 2x + 9x + 3\). Group: \(2x(3x + 1) + 3(3x + 1)\). Take out the common bracket: \((3x + 1)(2x + 3)\).
The X puzzle and the box method
These are two ways of drawing the same steps. Many teachers use them because they keep the numbers organised.
- X puzzle (diamond): write the product \(ac\) at the top and the sum \(b\) at the bottom. The two numbers that fit go on the left and right.
- Box method (area model): draw a 2 by 2 grid. Put \(ax^2\) in the top left and \(c\) in the bottom right. Put the two middle terms from the X puzzle in the other two boxes. The common factor of each row and each column gives the two brackets.
The calculator draws both for your trinomial under the working.
Special cases
- Perfect square trinomial: \(a^2 + 2ab + b^2 = (a + b)^2\). For example \(x^2 – 6x + 9 = (x – 3)^2\).
- Difference of squares: \(a^2 – b^2 = (a – b)(a + b)\). For example \(4x^2 – 9 = (2x – 3)(2x + 3)\).
- Common factor first: \(2x^2 + 8x + 8\) \(= 2(x^2 + 4x + 4)\) \(= 2(x + 2)^2\).
- Higher powers with the same pattern: \(x^4 – 5x^2 + 4\) is a quadratic in \(x^2\), and factors as \((x^2 – 1)(x^2 – 4)\), then as \((x – 1)(x + 1)\)\((x – 2)(x + 2)\).
What if a trinomial cannot be factored?
Some trinomials cannot be factored using whole numbers. They are called prime. You can tell from the discriminant, \(b^2 – 4ac\): the trinomial factors with whole numbers only when the discriminant is a perfect square (0, 1, 4, 9, 16, …).
Example: for \(x^2 + x + 1\), the discriminant is \(1^2 – 4(1)(1) = -3\). It is not a perfect square, so the trinomial is prime.
A prime trinomial can still have roots. Use the quadratic equation solver to find them with the quadratic formula.
Frequently asked questions
How do you factor a trinomial?
First take out any common factor. If the leading coefficient is 1, find two numbers that multiply to c and add to b. If it is not 1, use the AC method: find two numbers that multiply to a times c and add to b, split the middle term and factor by grouping.
What is the AC method?
It is a way to factor ax² + bx + c when a is not 1. Multiply a and c, find two numbers with that product that add to b, rewrite bx using those two numbers, then factor by grouping.
How do you know if a trinomial is prime?
Work out the discriminant, b² − 4ac. If it is not a perfect square, the trinomial cannot be factored with whole numbers and is called prime.
What is a perfect square trinomial?
It is a trinomial that factors into two identical brackets, such as x² + 6x + 9 = (x + 3)². The first and last terms are perfect squares and the middle term is twice the product of their square roots.
How do you check that factoring is correct?
Multiply the factors back together, for example with FOIL. You should get the trinomial you started with.
Does the order of the factors matter?
No. (x + 2)(x + 3) and (x + 3)(x + 2) are the same answer, because multiplication can be done in any order.
