x^2+5x+6
from x^2+5*x+6
✓ Checked
Show steps
Trinomial x² + bx + c
Find two numbers with the right sum and product
m+n=5, m*n=6
Let m and n be the missing numbers in (x+m)*(x+n). Expanding gives middle coefficient m+n and last coefficient m*n.
Calculate the two numbers
(5)^2-4*(6)=1^2 m=(5+1)/2=3 n=(5-1)/2=2 3+(2)=5; 3*(2)=6
Their squared difference is the sum squared minus four times the product. Half the sum plus or minus that difference gives the two numbers directly.
Write the two factors
x^2+5*x+6 = (x+3)*(x+2)
Substitute 3 and 2 for the two missing numbers. Their sum and product reproduce the original coefficients.
Recognize a prime linear polynomial
x+3
A linear polynomial with no integer common factor cannot split into lower-degree polynomial factors.
Recognize a prime linear polynomial
x+2
A linear polynomial with no integer common factor cannot split into lower-degree polynomial factors.
Put the factors together
(x+3)*(x+2)
Combine the factors obtained in the preceding steps. Repeated factors are written as powers.
Check by expanding
(x+3)*(x+2) = x^2+2*x+3*x+6 = x^2+5*x+6
Expanding and collecting like terms reproduces the original polynomial, so the factorization is equal to the input. ✓