What if the equation cannot be turned to factors by any of the ways we have learned so far? For example the equation \( x^2-2x-15=0 \).
Quadratic equations can generally be written as \(ax^2+bx+c=0\). But we can also write them in the factored form \(k(x-p)(x-q)=0\) where \(k\), \(p\) and \(q\) are constants.
Using the zero product property, we can easily see that the solutions to the equation are \(p\) and \(q\) because then one of the factors equals \(0\) (\(k\) cannot be \(0\) because then the whole expression would be \(0\)). If we have a quadratic equation which is either written in factored form, or if you can change it to factored form, you can easily solve it. In the previous equation, we learned how to factorise simpler quadratic expressions. Now we will learn how to factor more difficult expressions. This is useful because factoring is often the fastest technique for solving quadratic equations. To start with we will only look at equations on the form \(x^2+bx+c=0\) and \((x-p)(x-q)\) where there is no coefficient in front of the \(x^2\) term. Once we have mastered this factoring these equations, we will move on to equations that includes such a coefficient.
We factor \(x^2-2x-15\) as follows:
We have an expression written as \(x^2+bx+c\) and we want it in the form of \((x+p)(x+q)\). If we expand this expression we get:
$$ (x+p)(x+q)=x^2+px+qx+pq=x^2+(p+q)x+pq $$
Compare this to the general equation \(ax^2 + bx + c = 0\). As you can see, \(b=(p+q)\) and \(c=pq\).
Or in our case: \((p+q)=-2\) and \(pq=-15\)
We are thus looking for two numbers \(p\) and \(q\) where the sum is \( -2 \) and the product is \(-15\).
Often the best way to start is by factoring \(c\).
$$ -15=3 \cdot 5 \cdot (-1) $$
This gives us a clue that \(p\) and \(q\) are \( \pm 5\) and \( \pm 3\) where one is positive and the other is negative. Let us look at the other equation: \(p+q=-2\). And because \(5\) is \(2\) greater than \(3\) and \(p+q\) is a negative number, \(5\) should be negative. \(3+(-5)=3-5=-2\). \(x^2-2x-15\) can be factored as \((x-5)(x+3)\). The solutions are thus \(x_1=5\) and \(x_2=(-3)\).
When factoring a quadratic expression, what we strive to do is to split up the coefficient \(b\) into two numbers \(p\) and \(q\) so that the sum \(p+q\) is equal to \(b\) and the product \(pq\) is equal to the constant \(c\). In the example above, we notice that \(3+(-5)=-2\) and \(3 \cdot (-5) =-15\). From this we decide to split up \(b=-2\) in the original equations as:
$$x^2-2x-15$$
$$x^2+3x-5x-15$$
Now the terms \(x^2\) and \(3x\) share the common factor \(x\). Similarly, \(5x\) and \(-15\) share the common factor \(5\). Factoring this out gives us:
$$x(x+3)-5(x+3)$$
Now both terms \(x(x+3)\) and \(5(x+3)\) share the common factor \( (x+3) \) so we can factor this as:
$$(x+3)(x-5)$$
and we are done.