Related Calculator: Factoring Polynomials Calculator
Let's try to solve some examples.
Example 1. Solve `x^2+7x+10`.
First, we must somehow rewrite `7x`. But how?
Let's try few options:
- `7x=4x+3x`: `x^2+7x+10=x^2+4x+3x+10` (can't factor)
- `7x=8x-x`: `x^2+7x+10=x^2+8x-x+10` (can't factor)
- `7x=2x+5x`: `x^2+7x+10=x^2+2x+5x+10=x(x+2)+5(x+2)=(x+5)(x+2)` (we factored common factor three times). SUCCESS.
As above example showed, there can be infinite number of ways to rewrite a term. And it can be quite hard to find correct splitting.
Moreover, such "blind guessing" is often unsuccesful.
To narrow the search, let's apply the following method.
Suppose, that following quadratic is given: `ax^2+bx+c`.
Assume, that we know, how to rewrite term:
`= ax(x+b_1/a)+b_2(x+c/b_2)` (factor)
As can be seen, there will be common factor, when `b_1/a=c/b_2`.
This is proportion: cross multiply to get `b_1b_2=ac`.
To factor quadratic `color(brown)(ax^2+bx+c)`, try to find such numbers `b_1` and `b_2`, that `color(brown)(b_1+b_2=b)` and `color(brown)(b_1*b_2=ac)`.
This significantly narrows the search, because we only need to find factors of `ac`, and then check, whether any two of them sum up to `b`.
Example 2. Factor `y^2+8y+15`, using above method.
Here `a=1`, `b=8`, `c=15`.
Now, find factors of `15`. They are `-1,1,-3,3,-5,5`.
Now ,we need to check all pairs of two factors, until we find one, whose sum is `8`:
- `3+5=8` (SUCCESS)
So, we should rewrite `8y` as `3y+5y`: `y^2+8y+15=y^2+3y+5y+15=y(y+3)+5(y+3)=(y+5)(y+3)`.
Let's do another example.
Example 3. Factor the following: `6x^2-13x-5`.
Here `a=6`, `b=-13`, `c=-5`.
Now, find factors of `-30`. They are `+-1,+-2,+-3,+-5,+-6,+-10,+-15,+-30`.
Let's try some pairs:
- `2-15=-13` (SUCCESS)
So, we rewrite `-13x` as `-15x+2x`: `6x^2-13x-5=6x^2-15x+2x-5=3x(2x-5)+1(2x-5)=(3x+1)(2x-5)`.
As above examples showed, if `ac` is very big, then there will be a lot of factors and it is still a lot of work to do.
Luckily, there is method, that doesn't require any guessing.
To factor quadratic `ax^2+bx+c`, find roots of the quadratic equation `ax^2+bx+c=0` (for example, by using quadratic fomula). Let these roots are `p` and `q`. Then `color(magenta)(ax^2+bx+c=a(x-p)(x-q))`.
This method directly follows from Viet Theorem.
There are three cases, depending on the number of roots:
- Two Roots. `x^2-5x+4`: roots are `1` and `4`, so `x^2-5x+4=(x-1)(x-4)`.
- One Root. `x^2-6x+9`: one root `3` (two times), so `x^2-6x+9=(x-3)(x-3)=(x-3)^2`.
- No Roots. `x^2+2x+21`: no roots, so quadratic can't be factored.
Example 4. Factor `21x^2+25x-4`.
Since `ac=21*(-4)=-84`, then there will be a lot of factors.
Therefore, we use method, based on roots of the equation.
Solve equation `21x^2+25x-4=0`: roots are `1/7` and `-4/3`.
Thus, `21x^2+25x-4=21(x-1/7)(x-(-4/3))=21(x-1/7)(x+4/3)` (be careful with minus sign).
We can rewrite last expression to get rid of fractions: `21(x-1/7)(x+4/3)=7*3(x-1/7)(x+4/3)=`
Let's now turn our attention to some cases of factoring special quadratics.
Example 5. Factor the following: `x^4+3x^2+2`.
This doesn't seem to be standard quadratic equation.
However, it is very similar to quadratic.
Since `x^4=x^(2*2)=(x^2)^2`, then `x^4+3x^2+2=(x^2)^2+3x^2+2`.
So, this is quadratic equation in variable `x^2`, not `x`!
Just for visual purposes, let's substitute `u` instead of `x^2`: `u^2+3u+2`.
Now, perform factoring: `u^2+3u+2=(u+1)(u+2)`.
But don't forget, that `u=x^2`: `x^4+3x^2+2=(x^2+1)(x^2+2)`.
Next example is very similar to above.
Example 6. Factor `x^(2/5)+x^(1/5)-2`.
Again exponent of one term is twice exponent of another term. This is sign of quadratic equation.
Let `u=x^(1/5)`, then above quadratic can be rewritten as `u^2+u-2`.
Factor it: `u^2+u-2=(u+2)(u-1)`.
Return to `x`: `x^(2/5)+x^(1/5)-2=(x^(1/5)+2)(x^(1/5)-1)`.
Last example involves two variables, but still can be factored, using quadratic formula.
Example 7. Factor the following: `x^2+3xy-10y^2`.
We already solved such type of problems in Factoring by Grouping and Regrouping.
Let's now solve it, using discussed method.
This is expression in two variables, but if we treat `x` as variable and `y` as some number, then we can apply quadratic formula.
Here `a=1`, `b=3y`, `c=-10y^2`.
Find discriminant: `D=b^2-4ac=(3y)^2-4*1*(-10y^2)=9y^2+40y^2=49y^2`.
Alternatively, we can treat `y` as variable and `x` as some number. Answer will be the same.
Now, it is time to exercise.
Exercise 1. Factor `x^2+4x-5` by guessing.
Exercise 2. Factor `x^2-x-20` by "smart" guessing.
Exercise 3. Factor `24y^2+26y-5` by "smart" guessing.
Exercise 4. Factor `18-19x-12x^2`, using quadratic formula.
Answer: `-(3x-2)(4x+9)`. Hint: factor out `-1` first.
Exercise 5. Factor `16x^2+8x+1`, using quadratic formula.
Exercise 6. Factor `5u^2-4u+5`, using quadartic formula.
Answer: can't be factored.
Exercise 7. Factor the following: `x^6+12x^3+35`.
Answer: `(x^3+5)(x^3+7)`. Hint: `x^6=(x^3)^2`.
Exercise 8. Factor the following: `y+sqrt(y)-6`.
Answer: `(sqrt(y)+3)(sqrt(y)-2)`. Hint: `y=(sqrt(y))^2`.
Exercise 9. Factor `6y^2+xy-35x^2`.
Answer: `(2y+5x)(3y-7x)`. Hint: treat `y` as variable and `x` as number, then apply quadratic formula.