- This article is about the mathematical concept. For the financial term see factoring (trade).
In mathematics, factorization or factoring is the decomposition of an object (for example, a number, a polynomial, or a matrix) into a product of other objects, or factors, which when multiplied together give the original. For example, the number 15 factors into primes as 3 × 5; and the polynomial x2 − 4 factors as (x − 2)(x + 2). In all cases, we obtain a product of simpler things.
The aim of factoring is usually to reduce something to "basic building blocks", such as numbers to prime numbers, or polynomials to irreducible polynomials. Factoring integers is covered by the fundamental theorem of arithmetic and factoring polynomials by the fundamental theorem of algebra.
The opposite of factorization is expansion. This is the process of multiplying together factors to recreate the original, "expanded" polynomial.
Integer factorization for large integers appears to be a difficult problem. There is no known method to carry it out quickly. Its complexity is the basis of the assumed security of some public key cryptography algorithms, such as RSA.
A matrix can also be factorized into a product of matrices of special types, for an application in which that form is convenient. One major example of this uses an orthogonal or unitary matrix, and a triangular matrix. There are different types: QR decomposition, LQ, QL, RQ, RZ.
Another example is the factorization of a function as the composition of other functions having certain properties; for example, every function can be viewed as the composition of a surjective function with an injective function.
Factoring a quadratic equation
Quadratic equations (equations in the form of ) can sometimes be factored into two binomials with simple integer coefficients, thus exposing its roots, without the need to use the quadratic formula. The formula
would be factored into
where , , and . You can then set each binomial equal to zero, and solve for x to reveal the two roots. Factoring does not involve any other formulas, and is mostly just something you see when you come upon a quadratic equation.
Take for example 2x2 - 5x + 2 = 0. Because a = 2 and mn = a, mn = 2, which means that of m and n, one is 1 and the other is 2. Now we have (2x + p)(x + q) = 0. Because c = 2 and pq = c, pq = 2, which means that of p and q, one is 1 and the other is 2 or one is -1 and the other is -2. A guess and check of substituting the 1 and 2, and -1 and -2, into p and q (while applying pn + mq = b) tells us that 2x2 - 5x + 2 = 0 factors into (2x - 1)(x - 2) = 0, giving us the roots x = {1/2, 2}
Table method (for quadratics)
A less used (hard to teach, easy to learn) method often involves creating a multiplication table.
For example, let's work with 6x2 - 17x + 12.
Multiply first and last terms. (72x2)
What multiplies into 72 (first term) and adds up to -17(x) (middle term)?
-9 and -8
In the table, place the first term in the first box and the last in the last box. Fit the (in this example) -9 and -8 in the remaining boxes. Find the GCF up and down and side to side for each row for the answer.
6x2 | -8x |
-9x | 12 |
The answer would be (3x-4)(2x-3)
This method is very decisive and much faster than the others. However, there are a few special rules surrounding the method, but when all of the rules are followed, it works every time.
Sum/difference of two squares
Another common type of algebraic factoring is called the difference of two squares. It is the application of the formula
to any two terms, whether or not they are perfect squares. If the two terms are subtraced, simply apply the formula. If they are added, the two binomials obtained from the factoring will each have an imaginary term. This formula can be represented as
For example, can be factored into .
Sum/difference of two cubes
Sum of Two Cubes
- can be factored into
Difference of Two Cubes
- can be factored into
Trinomial squares
- can be factored into
- can be factored into
Prime factorization of an integer
By the fundamental theorem of arithmetic, every positive integer has a unique prime factorization. Given an algorithm for integer factorization, one can factor any integer down to its constituent primes by repeated application of this algorithm. For very large numbers, however, no efficient algorithm is known. For smaller numbers, however, there are a variety of different algorithms that can be applied. (See prime factorization algorithms)
Factoring in mathematical logic
In mathematical logic and automated theorem proving, factoring is the technique of deriving a single, more specific atom from a disjunction of two more general unifiable atoms. For example, from ∀ X, Y : P(X, a) or P(b, Y) we can derive P(b, a).
See also
- Integer factorization
- Prime factorization algorithm
- Program synthesis
- Unique factorization
- Polynomial expansion, the opposite of factorization
External links
- A page about factorization, Algebra, Factoring
- WIMS Factoris is an online factorization tool.
- Polynomial Factoring is a comprehensive tutorial resource on basic factoring of polynomials.