What does factoring mean?
Factoring means breaking something into smaller pieces that multiply back to the original. For a whole number, the factors are all the whole numbers that divide it evenly, so the factors of 12 are 1, 2, 3, 4, 6 and 12. For an algebra expression such as x² + 5x + 6, factoring means rewriting it as a product, here (x + 2)(x + 3).
This calculator handles both: it lists every factor of a whole number and gives its prime factorization, and it factors quadratics using the discriminant.
How to find all the factors of a number
- Start with 1 and the number itself. Both are always factors.
- Test each whole number from 2 upward to see whether it divides evenly.
- Stop when you pass the square root of the number. Each divisor you found has a partner (the number divided by it).
- Write the divisors and their partners in order.
Prime factorization
A prime number has exactly two factors: 1 and itself. Every whole number above 1 can be written as a product of primes in only one way (apart from order). This is the prime factorization, and it is written in exponent form, for example 360 = 23 × 32 × 5.
The prime factorization also tells you how many factors a number has. Add 1 to each exponent and multiply: for 360 that is (3+1)(2+1)(1+1) = 24 factors. Perfect squares always have an odd number of factors; every other number has an even number.
How to factor a quadratic with the discriminant
For a x² + b x + c, first pull out any common factor of a, b and c. Then work out the discriminant D = b² − 4ac.
- D is a perfect square (0, 1, 4, 9, 16...): the quadratic factors over the integers. The roots are rational numbers.
- D is positive but not a perfect square: there are two real roots, but they are irrational, so the quadratic does not factor with whole numbers.
- D is negative: there are no real roots, only complex ones, and it does not factor over the real numbers.
When it does factor, each root r = p/q gives a factor (qx − p).
Worked examples
A quadratic like x² − 2x + 1 has D = 0, so it has one repeated root and factors as (x − 1)².
Common mistakes
- Sign errors. A root of −2 gives the factor (x + 2), not (x − 2).
- Forgetting the common factor. 2x² + 4x + 2 is 2(x + 1)², not just (x + 1)².
- Skipping a missing term. For x² − 9, enter b = 0.
- Thinking 1 is prime. It is not. It has only one factor.
Where factoring is used
Factoring numbers helps with simplifying fractions, finding the greatest common factor and least common multiple, and splitting items into equal groups. Factoring quadratics is used to solve equations, find where a parabola crosses the x-axis, and simplify algebraic fractions.