Solution:
Concept: When the same bracket appears more than once, call it by one letter, p. The expression becomes a simple quadratic in p; we factorise that and then put the bracket back in place of p.
Splitting the middle term: to factorise ax2+bx+c, find two numbers whose product is a×c and whose sum is b. Write the middle term bx as two terms using these numbers, then factorise the four terms by grouping in pairs.
Step 1 — Write it as a quadratic in p.
Let p stand for a2−a. Then 4a2−4a−5 is 4p−5.
(a2−a)(4a2−4a−5)−6=p(4p−5)−6=4p2−5p−6
Step 2 — Factorise the quadratic.
We need two numbers whose product is 4×(−6)=−24, and whose sum is −5. They are −8 and 3, because their product is −24 and their sum is −5. So we write −5p as −8p+3p.
4p2−5p−6=4p2−8p+3p−6=4p(p−2)+3(p−2)=(p−2)(4p+3)
Step 3 — Put the bracket back.
We replace p by a2−a.
(a2−a)(4a2−4a−5)−6=(a2−a−2)[4(a2−a)+3]=(a2−a−2)(4a2−4a+3)
Step 4 — Factorise the first quadratic again.
We need two numbers whose product is −2 and whose sum is −1. They are −2 and 1, because their product is −2 and their sum is −1. The other factor 4a2−4a+3 does not factorise: no two whole numbers have product 12 and sum −4.
a2−a−2=a2−2a+a−2=a(a−2)+1(a−2)=(a−2)(a+1)
Watch out: The substitution works because 4a2−4a can be written as 4(a2−a), the same as 4p.
Therefore, (a2−a)(4a2−4a−5)−6=(a−2)(a+1)(4a2−4a+3).